Avoid side effects from tests-related modules on the compilation of lib.
[gnulib.git] / ChangeLog
1 2010-03-27  Bruno Haible  <bruno@clisp.org>
2
3         Avoid side effects from tests-related modules on the compilation of lib.
4         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8         macro.
9         (func_import): Define a witness macro. Assign it a value that depends
10         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
11         tests-related modules.
12         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
13         Reported by Jim Meyering.
14
15 2010-03-27  Bruno Haible  <bruno@clisp.org>
16
17         Factorize common .m4 code.
18         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
20         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
24         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
37         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
38         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
39         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
40         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
41         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
42         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
43         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
44         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
45         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
46         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
47         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
49         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50
51 2010-03-27  Bruno Haible  <bruno@clisp.org>
52
53         Fix a compilation error on Cygwin with g++ >= 4.3.
54         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
55         if it is undefined or if we alias it to chmod.
56         (lstat): Don't warn about the use of this function if it is undefined
57         or if we alias it to stat.
58         Reported by Simon Josefsson.
59
60 2010-03-27  Bruno Haible  <bruno@clisp.org>
61
62         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
63         * modules/getlogin (configure.ac): Update.
64
65         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66         * modules/getlogin_r (configure.ac): Update.
67
68         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70         * modules/inet_ntop (configure.ac): Update.
71
72         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
73         * modules/inet_pton (configure.ac): Update.
74
75         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
76         * modules/mbslen (configure.ac): Update.
77
78         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
79         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
80         * modules/forkpty (configure.ac): Update.
81         * modules/openpty (configure.ac): Update.
82
83 2010-03-26  Simon Josefsson  <simon@josefsson.org>
84
85         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
86         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
87
88 2010-03-25  Eric Blake  <eblake@redhat.com>
89
90         maint: use pragma consistently across replacement headers
91         * lib/ctype.in.h (system_header): Hoist for consistent placement.
92         * lib/dirent.in.h (system_header): Likewise.
93         * lib/errno.in.h (system_header): Likewise.
94         * lib/float.in.h (system_header): Likewise.
95         * lib/getopt.in.h (system_header): Likewise.
96         * lib/iconv.in.h (system_header): Likewise.
97         * lib/inttypes.in.h (system_header): Likewise.
98         * lib/langinfo.in.h (system_header): Likewise.
99         * lib/locale.in.h (system_header): Likewise.
100         * lib/math.in.h (system_header): Likewise.
101         * lib/netdb.in.h (system_header): Likewise.
102         * lib/netinet_in.in.h (system_header): Likewise.
103         * lib/pty.in.h (system_header): Likewise.
104         * lib/sched.in.h (system_header): Likewise.
105         * lib/se-selinux.in.h (system_header): Likewise.
106         * lib/search.in.h (system_header): Likewise.
107         * lib/spawn.in.h (system_header): Likewise.
108         * lib/stdarg.in.h (system_header): Likewise.
109         * lib/stdint.in.h (system_header): Likewise.
110         * lib/string.in.h (system_header): Likewise.
111         * lib/strings.in.h (system_header): Likewise.
112         * lib/sys_file.in.h (system_header): Likewise.
113         * lib/sys_ioctl.in.h (system_header): Likewise.
114         * lib/sys_socket.in.h (system_header): Likewise.
115         * lib/sys_times.in.h (system_header): Likewise.
116         * lib/sys_utsname.in.h (system_header): Likewise.
117         * lib/sys_wait.in.h (system_header): Likewise.
118         * lib/sysexits.in.h (system_header): Likewise.
119         * lib/unistd.in.h (system_header): Likewise.
120         * lib/wctype.in.h (system_header): Likewise.
121
122         arpa/inet: fix mingw compilation warning
123         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
124         Reported by Matthew Bolte.
125
126 2010-03-25  Bruno Haible  <bruno@clisp.org>
127
128         Avoid collision between gnulib wrapper and libintl wrapper.
129         * lib/printf.c (printf): Don't define if a printf wrapper is already
130         defined in intl/printf.c.
131         Reported by Michel Boaventura <michel@michelboaventura.com>.
132
133 2010-03-25  Bruno Haible  <bruno@clisp.org>
134
135         Use ANSI C.
136         * lib/readutmp.h (getutent): Provide ANSI C prototype.
137
138 2010-03-25  Bruno Haible  <bruno@clisp.org>
139
140         Minor formatting changes.
141         * lib/acosl.c: Insert space before function argument list.
142         * lib/argz.c: Likewise.
143         * lib/asinl.c: Likewise.
144         * lib/expl.c: Likewise.
145         * lib/gen-uni-tables.c: Likewise.
146         * lib/gettext.h: Likewise.
147         * lib/glthread/lock.h: Likewise.
148         * lib/tanl.c: Likewise.
149         * lib/uniname/uniname.c: Likewise.
150         * tests/test-idpriv-drop.c: Likewise.
151         * tests/test-idpriv-droptemp.c: Likewise.
152         * tests/test-lock.c: Likewise.
153         * tests/test-tls.c: Likewise.
154         * lib/argp-help.c: Insert space before function-like macro argument
155         list.
156         * lib/memcmp.c: Likewise.
157         * tests/test-base64.c: Likewise.
158         * lib/localename.c: Insert space before sizeof's argument list.
159         * lib/safe-alloc.h: Likewise.
160         * lib/file-set.h: Insert space before macro argument list.
161         * tests/test-argp.c: Likewise.
162         * lib/argp-namefrob.h: Insert space before function parameter list.
163         * lib/getaddrinfo.c: Likewise.
164         * lib/netdb.in.h: Likewise.
165         * lib/parse-duration.h: Likewise.
166         * lib/parse-duration.c: Likewise.
167         * lib/poll.c: Likewise.
168         * lib/select.c: Likewise.
169         * lib/trim.h: Likewise.
170         * tests/test-usleep.c: Likewise.
171         * lib/ldexpl.c: Insert space before function parameter list and before
172         function argument list.
173         * lib/logl.c: Likewise.
174         * lib/sqrtl.c: Likewise.
175         * lib/trim.c: Likewise.
176         * lib/cosl.c: Use GNU style indentation. Insert space before function
177         argument list.
178         * lib/sinl.c: Likewise.
179         * lib/tsearch.c: Insert space after 'for'.
180         Reported by Jim Meyering.
181
182 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
183
184         * maint.mk (sc_Wundef_boolean): Check for the presence of the
185         config header before grepping, as it's not present before
186         autoreconf/configure are run.  Reported by Simon Josefsson.
187
188 2010-03-23  Bruno Haible  <bruno@clisp.org>
189
190         pt_chown: Make it work with automake < 1.11.
191         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
192         Reported by Simon Josefsson.
193
194 2010-03-23  Bruno Haible  <bruno@clisp.org>
195
196         pt_chown: Don't depend on GPLed modules.
197         * lib/pt_chown.c: Don't include idpriv.h.
198         (main): Don't drop privileges.
199         * modules/pt_chown (Depends-on): Remove idpriv-drop.
200         Reported by Simon Josefsson.
201
202 2010-03-24  Simon Josefsson  <simon@josefsson.org>
203
204         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
205         suggestions from karl@freefriends.org (Karl Berry).
206
207 2010-03-22  Eric Blake  <eblake@redhat.com>
208
209         gethostname: further tweaks
210         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
211         are overriding gethostname.
212         Suggested by Bruno Haible.
213
214 2010-03-21  Bruno Haible  <bruno@clisp.org>
215
216         Fix comments.
217         * lib/forkpty.c (rpl_forkpty): Fix comment.
218         * lib/openpty.c (rpl_openpty): Likewise.
219         Reported by Eric Blake.
220
221 2010-03-22  Eric Blake  <eblake@redhat.com>
222
223         gethostname: fix build on mingw
224         * lib/unistd.in.h (includes): Work around fact that mingw
225         <winsock2.h> re-includes <unistd.h>, by avoiding any
226         redeclarations if we are being included by <winsock2.h>.
227         Reported by Matthias Bolte.
228
229 2010-03-21  Bruno Haible  <bruno@clisp.org>
230
231         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
232         * lib/forkpty.c (forkpty): New replacement function, from glibc with
233         modifications.
234         * lib/pty.in.h (forkpty): Update declaration. Add comments.
235         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
236         provide the replacement.
237         * modules/forkpty (Depends-on): Add openpty, login_tty.
238         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
239         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
240         * doc/glibc-functions/forkpty.texi: More supported platforms.
241         * config/srclist.txt: Add forkpty.c (commented).
242
243 2010-03-21  Bruno Haible  <bruno@clisp.org>
244
245         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
246         (Makefile.am): Verify that PTY_LIB is defined.
247
248         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
249
250 2010-03-21  Bruno Haible  <bruno@clisp.org>
251
252         Tests for module 'login_tty'.
253         * modules/login_tty-tests: New file.
254         * tests/test-login_tty.c: New file.
255
256         New module 'login_tty'.
257         * lib/login_tty.c: New file.
258         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
259         * modules/login_tty: New file.
260         * doc/glibc-functions/login_tty.texi: Mention the new module.
261
262 2010-03-21  Bruno Haible  <bruno@clisp.org>
263
264         login_tty: Documentation.
265         * doc/glibc-functions/login_tty.texi: New file.
266         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
267
268 2010-03-21  Bruno Haible  <bruno@clisp.org>
269
270         pty: Consistent macro naming.
271         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
272         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
273         * modules/pty (configure.ac): Update.
274
275 2010-03-21  Bruno Haible  <bruno@clisp.org>
276
277         Tests for openpty: Make stricter.
278         * tests/test-openpty.c (main): Add test of canonical processing and
279         erase.
280         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
281
282         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
283         * lib/openpty.c (openpty): New replacement function.
284         * lib/pty.in.h: Include <termios.h>.
285         (openpty): Update declaration. Add comments.
286         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
287         is not declared, arrange to provide the replacement. Check for _getpty
288         and posix_openpt.
289         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
290         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
291         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
292         * modules/pty-tests (test_pty_c___LDADD): New variable.
293         * doc/glibc-functions/openpty.texi: More supported platforms.
294
295 2010-03-21  Bruno Haible  <bruno@clisp.org>
296
297         setenv: Tweaks.
298         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
299         the test program.
300         * doc/posix-functions/setenv.texi: Update platforms list.
301
302 2010-03-21  Bruno Haible  <bruno@clisp.org>
303
304         New module 'unlockpt'.
305         * lib/unlockpt.c: New file, from glibc with modifications.
306         * m4/unlockpt.m4: New file.
307         * modules/unlockpt: New file.
308         * lib/stdlib.in.h (unlockpt): New declaration.
309         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
310         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
311         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
312         HAVE_UNLOCKPT.
313         * doc/posix-functions/unlockpt.texi: Mention the new module.
314         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
315         * config/srclist.txt: Add unlockpt.c (commented).
316
317 2010-03-21  Jim Meyering  <meyering@redhat.com>
318
319         maint.mk: prohibit inclusion of "intprops.h" without use
320         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
321
322 2010-03-21  Bruno Haible  <bruno@clisp.org>
323
324         New module 'grantpt'.
325         * lib/grantpt.c: New file, from glibc with modifications.
326         * m4/grantpt.m4: New file.
327         * modules/grantpt: New file.
328         * lib/stdlib.in.h (grantpt): New declaration.
329         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
330         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
331         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
332         HAVE_GRANTPT.
333         * doc/posix-functions/grantpt.texi: Mention the new module.
334         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
335         * config/srclist.txt: Add grantpt.c (commented).
336
337 2010-03-21  Bruno Haible  <bruno@clisp.org>
338
339         New module 'pt_chown'.
340         * lib/pt_chown.c: New file, from glibc with modifications.
341         * lib/pty-private.h: New file, from glibc with modifications.
342         * modules/pt_chown: New file.
343         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
344
345 2010-03-21  Bruno Haible  <bruno@clisp.org>
346
347         Tests for module 'ptsname'.
348         * modules/ptsname-tests: New file.
349         * tests/test-ptsname.c: New file.
350
351         New module 'ptsname'.
352         * lib/ptsname.c: New file, from glibc with modifications.
353         * m4/ptsname.m4: New file.
354         * modules/ptsname: New file.
355         * lib/stdlib.in.h (ptsname): New declaration.
356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
357         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
358         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
359         HAVE_PTSNAME.
360         * doc/posix-functions/ptsname.texi: Mention the new module.
361         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
362         * config/srclist.txt: Add ptsname.c (commented).
363
364 2010-03-21  Bruno Haible  <bruno@clisp.org>
365
366         Tests for module 'ttyname_r'.
367         * modules/ttyname_r-tests: New file.
368         * tests/test-ttyname_r.c: New file.
369
370         New module 'ttyname_r'.
371         * lib/ttyname_r.c: New file.
372         * m4/ttyname_r.m4: New file.
373         * modules/ttyname_r: New file.
374         * lib/unistd.in.h (ttyname_r): New declaration.
375         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
376         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
377         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
378         HAVE_TTYNAME_R.
379         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
380         * doc/posix-functions/ttyname_r.texi: Mention the new module.
381
382 2010-03-20  Bruno Haible  <bruno@clisp.org>
383
384         signal: Undefine macro definitions in C++ mode.
385         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
386         sigfillset): Undefine macro definitions from the system header in C++
387         mode.
388         Reported by John W. Eaton <jwe@gnu.org>.
389
390 2010-03-20  Bruno Haible  <bruno@clisp.org>
391
392         Ensure no #include statements inside extern "C" { ... }.
393         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
394         contain #include statements.
395         * lib/time.in.h: Likewise.
396
397 2010-03-20  Bruno Haible  <bruno@clisp.org>
398
399         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
400         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
401         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
402         Reported by John W. Eaton <jwe@gnu.org>.
403
404 2010-03-20  Bruno Haible  <bruno@clisp.org>
405
406         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
407         Reported by Jim Meyering.
408
409 2010-03-20  Bruno Haible  <bruno@clisp.org>
410
411         pipe: Set errno upon failure.
412         * lib/pipe.h: Specify that when -1 is returned, errno is set.
413         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
414         errno value in error message.
415
416 2010-03-20  Bruno Haible  <bruno@clisp.org>
417             Jim Meyering  <meyering@redhat.com>
418
419         lchown: Avoid "unused variable" warning.
420         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
421
422 2010-03-20  Bruno Haible  <bruno@clisp.org>
423
424         Work around unlink() bug on MacOS X 10.5.6.
425         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
426         attempting to unlink a parent directory.
427         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
428         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
429         activate for the replacement function.
430         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
431
432 2010-03-20  Bruno Haible  <bruno@clisp.org>
433
434         Fix link errors on Solaris 8.
435         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
436         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
437
438 2010-03-19  Jim Meyering  <meyering@redhat.com>
439
440         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
441         The _LIBC implementation of build_range_exp correctly honors the
442         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
443         However, the non-_LIBC implementation would ignore that syntax-bit
444         flag and return REG_ERANGE unconditionally.
445         This change makes it honor that flag.
446         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
447         Make two pointer parameters "const".
448         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
449         (parse_bracket_exp): Update caller.
450
451         regex.m4: correct the reversed range endpoint ([b-a]) test
452         * m4/regex.m4: When requiring that [b-a] evoke failure,
453         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
454         test pass once again for x86-based systems.
455
456 2010-03-19  Bruno Haible  <bruno@clisp.org>
457
458         scandir: Fix link error on Solaris 8.
459         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
460         macros.
461
462 2010-03-19  Bruno Haible  <bruno@clisp.org>
463
464         getusershell: Fix documentation.
465         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
466         module.
467         * doc/glibc-functions/setusershell.texi: Likewise.
468
469         getusershell: Provide declaration, missing on Solaris 9.
470         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
471         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
472         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
473         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
475         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
476         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
477         HAVE_GETUSERSHELL.
478         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
479
480 2010-03-19  Bruno Haible  <bruno@clisp.org>
481
482         wctype: Provide iswblank function.
483         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
484         exists and is fine.
485         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
486         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
487         * tests/test-wctype.c (main): Re-enable the iswblank tests.
488         * doc/posix-functions/iswblank.texi: Update.
489
490 2010-03-19  Bruno Haible  <bruno@clisp.org>
491
492         Tests of module 'pty' in C++ mode.
493         * modules/pty-tests: New file.
494         * tests/test-pty-c++.cc: New file.
495         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
496
497 2010-03-19  Eric Blake  <eblake@redhat.com>
498
499         logb: fix documentation
500         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
501         1.5 declaration bug.
502
503         forkpty, openpty: prefer glibc's const-safe prototype
504         * lib/forkpty.c (rpl_forkpty): New file.
505         * lib/openpty.c (rpl_openpty): Likewise.
506         * modules/forkpty (Files): Distribute it.
507         * modules/openpty (Files): Likewise.
508         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
509         check...
510         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
511         replacement for for non-const BSD signature.
512         * modules/pty (Makefile.am): Substitute witnesses.
513         * lib/pty.in.h (forkpty, openpty): Declare replacements.
514         * tests/test-forkpty.c: Update signature check.
515         * tests/test-openpty.c: Likewise.
516         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
517         * doc/glibc-functions/openpty.texi (openpty): Likewise.
518
519         forkpty, openpty: split functions into new modules
520         * modules/pty (Makefile.am): Substitute new witnesses.
521         (Libraries): Move library detection...
522         * modules/forkpty: ...into new module.
523         * modules/openpty: Another new module.
524         * modules/pty-tests: Rename and split...
525         * modules/forkpty-tests: ...to this...
526         * modules/openpty-tests: ...and this.
527         * tests/test-pty.c: Rename and split...
528         * tests/test-forkpty.c: ...to this...
529         * tests/test-openpty.c: ...and this.
530         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
531         (gl_PTY): Split library searching...
532         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
533         (gl_FORKPTY, gl_OPENPTY): New macros.
534         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
535         * NEWS: Mention the split.
536         * MODULES.html.sh (Misc): Document the modules.
537         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
538         * doc/glibc-functions/openpty.texi (openpty): Likewise.
539
540         pty: improve replacement header
541         * lib/pty.in.h: New file.
542         * modules/pty (Files): Ship it.
543         (Makefile.am): Always build replacement.
544         * m4/pty.m4: Rename...
545         * m4/pty_h.m4: ...to this.
546         (gl_PTY): Modernize setting of witness macros; update check of
547         forkpty to take proper advantage of cache.
548         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
549
550         getopt: avoid compiler warning
551         * lib/getopt.c (attribute_hidden): Remove unused macro.
552
553 2010-03-18  Bruno Haible  <bruno@clisp.org>
554
555         Fix link errors on Solaris 8.
556         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
557         * modules/search-tests (test_search_c___LDADD): Likewise.
558         * modules/signal-tests (test_signal_c___LDADD): Likewise.
559         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
560         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
561         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
562         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
563         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
564         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
565
566 2010-03-18  Bruno Haible  <bruno@clisp.org>
567
568         Fix bug introduced on 2010-03-14.
569         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
570         (gl_SPAWN_H): Require it.
571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
572         Reported by Simon Josefsson.
573
574 2010-03-18  Bruno Haible  <bruno@clisp.org>
575
576         Fix typo introduced on 2009-12-31.
577         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
578         posix_spawn_file_actions_adddup2.
579
580 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
581         and Eric Blake  <eblake@redhat.com>
582
583         test-vc-list-files-git: make more robust
584         * tests/test-vc-list-files-git.sh: Unset problematic environment
585         variables.  Chain commands together.
586
587 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
588
589         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
590         `AC_CHECK_DECL' invocation.
591
592 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
593
594         * lib/inttostr.c (inttostr): Make sure the invocation of verify
595         appears before executable statements. Suggested by Petr Sumbera
596         <Petr.Sumbera@Sun.COM>.
597
598 2010-03-14  Bruno Haible  <bruno@clisp.org>
599
600         * tests/test-flock.c (test_exclusive): Comment out a test that causes
601         portability problems. Instead use a simpler test.
602         (main): Check that invalid arguments are rejected only on Linux.
603
604 2010-03-14  Bruno Haible  <bruno@clisp.org>
605
606         Fix bug introduced on 2009-12-31.
607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
608         gl_PREREQ_SYS_H_WINSOCK2 always.
609         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
610         SYS_SOCKET_H variable.
611         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
612         Update comments.
613         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
614         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
615         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
616         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
617         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
618
619 2010-03-14  Bruno Haible  <bruno@clisp.org>
620
621         Fix values returned by sinl, cosl.
622         * lib/trigl.h: Add specification comments.
623         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
624         that combines the values from the precomputed table with the values of
625         the Chebyshev polynomials.
626
627 2010-03-14  Bruno Haible  <bruno@clisp.org>
628
629         Fix compilation error when modules 'posix_spawn[p]' are not used.
630         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
632
633 2010-03-14  Bruno Haible  <bruno@clisp.org>
634
635         Fix compilation error on mingw when module 'time_r' is not used.
636         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
637         is 1.
638         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
639         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
640         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
641         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
642
643 2010-03-14  Bruno Haible  <bruno@clisp.org>
644
645         Fix compilation error with Sun C.
646         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
647         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
648         instead of GCC specific ULONG_LONG_MAX.
649         * lib/xstrtoll.c: Likewise.
650         * lib/xstrtoull.c: Likewise.
651
652 2010-03-13  Bruno Haible  <bruno@clisp.org>
653
654         Allow the user to disable C++ code and tests.
655         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
656         (gl_PROG_ANSI_CXX): Require it.
657
658 2010-03-13  Bruno Haible  <bruno@clisp.org>
659
660         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
661         cases.
662
663 2010-03-13  Bruno Haible  <bruno@clisp.org>
664
665         Test that gnulib does not break the standard C++ headers.
666         * tests/test-locale-c++2.cc: New file.
667         * modules/locale-tests (Files): Add it.
668         (Makefile.am): Compile it for test-locale-c++.
669         * tests/test-math-c++2.cc: New file.
670         * modules/math-tests (Files): Add it.
671         (Makefile.am): Compile it for test-math-c++.
672         * tests/test-signal-c++2.cc: New file.
673         * modules/signal-tests (Files): Add it.
674         (Makefile.am): Compile it for test-signal-c++.
675         * tests/test-stdio-c++2.cc: New file.
676         * modules/stdio-tests (Files): Add it.
677         (Makefile.am): Compile it for test-stdio-c++.
678         * tests/test-stdlib-c++2.cc: New file.
679         * modules/stdlib-tests (Files): Add it.
680         (Makefile.am): Compile it for test-stdlib-c++.
681         * tests/test-string-c++2.cc: New file.
682         * modules/string-tests (Files): Add it.
683         (Makefile.am): Compile it for test-string-c++.
684         * tests/test-time-c++2.cc: New file.
685         * modules/time-tests (Files): Add it.
686         (Makefile.am): Compile it for test-time-c++.
687         Reported by John W. Eaton <jwe@gnu.org>.
688
689 2010-03-13  Bruno Haible  <bruno@clisp.org>
690
691         * gnulib-tool (func_usage): Clarify which options are available for
692         --create-testdir and --create-megatestdir.
693
694 2010-03-13  Bruno Haible  <bruno@clisp.org>
695
696         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
697         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
698         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
699         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
700         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
701         when appropriate.
702         Reported by Jim Meyering.
703
704 2010-03-12  Simon Josefsson  <simon@josefsson.org>
705
706         * gnulib-tool (func_import): Explain origin of code.
707
708 2010-03-12  Bruno Haible  <bruno@clisp.org>
709
710         Fix problem with automake's definition of CXXLINK.
711         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
712         Reported by Simon Josefsson and Ludovic Courtès.
713
714 2010-03-12  Bruno Haible  <bruno@clisp.org>
715
716         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
717         stable releases.
718
719 2010-03-11  Bruno Haible  <bruno@clisp.org>
720
721         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
722         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
723         whether the system provides one variant or multiple variants of the
724         function.
725         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
726         C++ compilers.
727         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
728         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
729         Reported by Jim Meyering.
730
731 2010-03-09  Simon Josefsson  <simon@josefsson.org>
732
733         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
734
735 2010-03-08  Bruno Haible  <bruno@clisp.org>
736
737         gnulib-tool: Add support for --libtool in --create-testdir.
738         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
739         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
740
741 2010-03-08  Eric Blake  <eblake@redhat.com>
742
743         gnulib-tool.texi: mention possibility of git submodule
744         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
745         submodules.
746         * doc/.gitignore: Ignore another generated file.
747
748 2010-03-08  Karl Berry  <karl@gnu.org>
749
750         * doc/gnulib-tool.texi (VCS Issues): Mention third option
751         of committing gnulib files while skipping others.
752
753 2010-03-07  Bruno Haible  <bruno@clisp.org>
754
755         Tests of module 'wctype' in C++ mode.
756         * tests/test-wctype-c++.cc: New file.
757         * modules/wctype-tests (Files): Add it and tests/signature.h.
758         (Depends-on): Add ansi-c++-opt.
759         (Makefile.am): Arrange to compile and run test-wctype-c++.
760
761         Tests of module 'wchar' in C++ mode.
762         * tests/test-wchar-c++.cc: New file.
763         * modules/wchar-tests (Files): Add it and tests/signature.h.
764         (Depends-on): Add ansi-c++-opt.
765         (Makefile.am): Arrange to compile and run test-wchar-c++.
766         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
767         gl_MODULE_INDICATOR.
768
769         Tests of module 'unistd' in C++ mode.
770         * tests/test-unistd-c++.cc: New file.
771         * modules/unistd-tests (Files): Add it and tests/signature.h.
772         (Depends-on): Add ansi-c++-opt.
773         (Makefile.am): Arrange to compile and run test-unistd-c++.
774         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
775         gl_MODULE_INDICATOR.
776
777         Tests of module 'time' in C++ mode.
778         * tests/test-time-c++.cc: New file.
779         * modules/time-tests (Files): Add it and tests/signature.h.
780         (Depends-on): Add ansi-c++-opt.
781         (Makefile.am): Arrange to compile and run test-time-c++.
782         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
783
784         Tests of module 'sys_time' in C++ mode.
785         * tests/test-sys_time-c++.cc: New file.
786         * modules/sys_time-tests (Files): Add it and tests/signature.h.
787         (Depends-on): Add ansi-c++-opt.
788         (Makefile.am): Arrange to compile and run test-sys_time-c++.
789         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
790         gl_MODULE_INDICATOR.
791
792         Tests of module 'sys_stat' in C++ mode.
793         * tests/test-sys_stat-c++.cc: New file.
794         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
795         (Depends-on): Add ansi-c++-opt.
796         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
797         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
798         gl_MODULE_INDICATOR.
799
800         Tests of module 'sys_socket' in C++ mode.
801         * tests/test-sys_socket-c++.cc: New file.
802         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
803         (Depends-on): Add ansi-c++-opt.
804         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
805         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
806         gl_MODULE_INDICATOR.
807
808         Tests of module 'sys_select' in C++ mode.
809         * tests/test-sys_select-c++.cc: New file.
810         * modules/sys_select-tests (Files): Add it and tests/signature.h.
811         (Depends-on): Add ansi-c++-opt.
812         (Makefile.am): Arrange to compile and run test-sys_select-c++.
813         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
814         gl_MODULE_INDICATOR.
815
816         Tests of module 'sys_ioctl' in C++ mode.
817         * tests/test-sys_ioctl-c++.cc: New file.
818         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
819         (Depends-on): Add ansi-c++-opt.
820         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
821         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
822         gl_MODULE_INDICATOR.
823
824         Tests of module 'string' in C++ mode.
825         * tests/test-string-c++.cc: New file.
826         * modules/string-tests (Files): Add it and tests/signature.h.
827         (Depends-on): Add ansi-c++-opt.
828         (Makefile.am): Arrange to compile and run test-string-c++.
829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
830         gl_MODULE_INDICATOR.
831
832         Tests of module 'stdlib' in C++ mode.
833         * tests/test-stdlib-c++.cc: New file.
834         * modules/stdlib-tests (Files): Add it and tests/signature.h.
835         (Depends-on): Add ansi-c++-opt.
836         (Makefile.am): Arrange to compile and run test-stdlib-c++.
837         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
838         gl_MODULE_INDICATOR.
839
840         Tests of module 'stdio' in C++ mode.
841         * tests/test-stdio-c++.cc: New file.
842         * modules/stdio-tests (Files): Add it and tests/signature.h.
843         (Depends-on): Add ansi-c++-opt.
844         (Makefile.am): Arrange to compile and run test-stdio-c++.
845         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
846         gl_MODULE_INDICATOR.
847
848         Tests of module 'spawn' in C++ mode.
849         * tests/test-spawn-c++.cc: New file.
850         * modules/spawn-tests (Files): Add it and tests/signature.h.
851         (Depends-on): Add ansi-c++-opt.
852         (Makefile.am): Arrange to compile and run test-spawn-c++.
853         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
854         gl_MODULE_INDICATOR.
855
856         Tests of module 'signal' in C++ mode.
857         * tests/test-signal-c++.cc: New file.
858         * modules/signal-tests (Files): Add it and tests/signature.h.
859         (Depends-on): Add ansi-c++-opt.
860         (Makefile.am): Arrange to compile and run test-signal-c++.
861         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
862         gl_MODULE_INDICATOR.
863
864         Tests of module 'search' in C++ mode.
865         * tests/test-search-c++.cc: New file.
866         * modules/search-tests (Files): Add it and tests/signature.h.
867         (Depends-on): Add ansi-c++-opt.
868         (Makefile.am): Arrange to compile and run test-search-c++.
869         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
870         gl_MODULE_INDICATOR.
871
872         Tests of module 'math' in C++ mode.
873         * tests/test-math-c++.cc: New file.
874         * modules/math-tests (Files): Add it and tests/signature.h.
875         (Depends-on): Add ansi-c++-opt.
876         (Makefile.am): Arrange to compile and run test-math-c++.
877         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
878
879         Tests of module 'locale' in C++ mode.
880         * tests/test-locale-c++.cc: New file.
881         * modules/locale-tests (Files): Add it and tests/signature.h.
882         (Depends-on): Add ansi-c++-opt.
883         (Makefile.am): Arrange to compile and run test-locale-c++.
884         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
885         gl_MODULE_INDICATOR.
886
887         Tests of module 'langinfo' in C++ mode.
888         * tests/test-langinfo-c++.cc: New file.
889         * modules/langinfo-tests (Files): Add it and tests/signature.h.
890         (Depends-on): Add ansi-c++-opt.
891         (Makefile.am): Arrange to compile and run test-langinfo-c++.
892         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
893         gl_MODULE_INDICATOR.
894
895         Tests of module 'iconv-h' in C++ mode.
896         * tests/test-iconv-h-c++.cc: New file.
897         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
898         (Depends-on): Add ansi-c++-opt.
899         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
900
901         Tests of module 'glob' in C++ mode.
902         * tests/test-glob-c++.cc: New file.
903         * modules/glob-tests (Files): Add it.
904         (Depends-on): Add ansi-c++-opt.
905         (Makefile.am): Arrange to compile and run test-glob-c++.
906
907         Tests of module 'fcntl-h' in C++ mode.
908         * tests/test-fcntl-h-c++.cc: New file.
909         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
910         (Depends-on): Add ansi-c++-opt.
911         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
912         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
913         gl_MODULE_INDICATOR.
914
915         Tests of module 'dirent' in C++ mode.
916         * tests/test-dirent-c++.cc: New file.
917         * modules/dirent-tests (Files): Add it and tests/signature.h.
918         (Depends-on): Add ansi-c++-opt.
919         (Makefile.am): Arrange to compile and run test-dirent-c++.
920         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
921         gl_MODULE_INDICATOR.
922
923         New module 'ansi-c++-opt'.
924         * modules/ansi-c++-opt: New file.
925         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
926
927         Document C++ namespace mode.
928         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
929
930         wctype: Avoid #define replacements in C++ mode.
931         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
932         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
933         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
934         In C++, define a namespaced alias symbol.
935         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
936         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
937         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
938         rule.
939
940         wchar: Avoid #define replacements in C++ mode.
941         * lib/wchar.in.h: Include c++defs.h.
942         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
943         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
944         symbol.
945         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
946         * modules/wchar (Depends-on): Add c++defs.
947         (Makefile.am): Update wchar.h rule.
948
949         unistd: Avoid #define replacements in C++ mode.
950         * lib/unistd.in.h: Include c++defs.h.
951         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
952         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
953         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
954         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
955         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
956         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
957         symbol.
958         (environ): Update.
959         * modules/unistd (Depends-on): Add c++defs.
960         (Makefile.am): Update unistd.h rule.
961
962         time: Avoid #define replacements in C++ mode.
963         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
964         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
965         define a namespaced alias symbol.
966         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
967         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
968         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
969         * modules/time (Depends-on): Add c++defs, warn-on-use.
970         (Makefile.am): Update time.h rule.
971         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
972         * modules/nanosleep (configure.ac): Likewise.
973         * modules/strptime (configure.ac): Likewise.
974         * modules/timegm (configure.ac): Likewise.
975
976         sys_time: Avoid #define replacements in C++ mode.
977         * lib/sys_time.in.h: Include c++defs.h.
978         (gettimeofday): In C++, define a namespaced alias symbol.
979         * modules/sys_time (Depends-on): Add c++defs.
980         (Makefile.am): Update sys/time.h rule.
981
982         sys_stat: Avoid #define replacements in C++ mode.
983         * lib/sys_stat.in.h: Include c++defs.h.
984         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
985         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
986         namespaced alias symbol.
987         In C++, define a namespaced alias symbol.
988         * modules/sys_stat (Depends-on): Add c++defs.
989         (Makefile.am): Update sys/stat.h rule.
990
991         sys_socket: Avoid #define replacements in C++ mode.
992         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
993         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
994         definitions also when the system has a <sys/socket.h>.
995         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
996         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
997         In C++, define a namespaced alias symbol.
998         * modules/sys_socket (Depends-on): Add c++defs.
999         (Makefile.am): Update sys/socket.h rule.
1000
1001         sys_select: Avoid #define replacements in C++ mode.
1002         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1003         definitions also when the system has a <sys/select.h>.
1004         (select): In C++, define a namespaced alias symbol.
1005         * modules/sys_select (Depends-on): Add c++defs.
1006         (Makefile.am): Update sys/select.h rule.
1007
1008         sys_ioctl: Avoid #define replacements in C++ mode.
1009         * lib/sys_ioctl.in.h: Include c++defs.h.
1010         (ioctl): In C++, define a namespaced alias symbol.
1011         * modules/sys_ioctl (Depends-on): Add c++defs.
1012         (Makefile.am): Update sys/ioctl.h rule.
1013
1014         string: Avoid #define replacements in C++ mode.
1015         * lib/string.in.h: Include c++defs.h.
1016         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1017         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1018         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1019         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1020         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1021         * modules/string (Depends-on): Add c++defs.
1022         (Makefile.am): Update string.h rule.
1023
1024         stdlib: Avoid #define replacements in C++ mode.
1025         * lib/stdlib.in.h: Include c++defs.h.
1026         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1027         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1028         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1029         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1030         symbol.
1031         * modules/stdlib (Depends-on): Add c++defs.
1032         (Makefile.am): Update stdlib.h rule.
1033
1034         stdio: Avoid #define replacements in C++ mode.
1035         * lib/stdio.in.h: Include c++defs.h.
1036         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1037         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1038         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1039         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1040         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1041         namespaced alias symbol.
1042         * modules/stdio (Depends-on): Add c++defs.
1043         (Makefile.am): Update stdio.h rule.
1044
1045         spawn: Avoid #define replacements in C++ mode.
1046         * lib/spawn.in.h: Include c++defs.h.
1047         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1048         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1049         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1050         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1051         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1052         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1053         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1054         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1055         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1056         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1057         In C++, define a namespaced alias symbol.
1058         * modules/spawn (Depends-on): Add c++defs.
1059         (Makefile.am): Update spawn.h rule.
1060
1061         signal: Avoid #define replacements in C++ mode.
1062         * lib/signal.in.h: Include c++defs.h.
1063         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1064         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1065         namespaced alias symbol.
1066         * modules/signal (Depends-on): Add c++defs.
1067         (Makefile.am): Update signal.h rule.
1068
1069         search: Avoid #define replacements in C++ mode.
1070         * lib/search.in.h: Include c++defs.h.
1071         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1072         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1073         symbol.
1074         * modules/search (Depends-on): Add c++defs.
1075         (Makefile.am): Update search.h rule.
1076
1077         math: Avoid #define replacements in C++ mode.
1078         * lib/math.in.h: Include c++defs.h.
1079         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1080         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1081         trunc, truncl): In C++, define a namespaced alias symbol.
1082         * modules/math (Depends-on): Add c++defs.
1083         (Makefile.am): Update math.h rule.
1084
1085         locale: Avoid #define replacements in C++ mode.
1086         * lib/locale.in.h: Include c++defs.h.
1087         (duplocale): In C++, define a namespaced alias symbol.
1088         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1089         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1090         * modules/locale (Depends-on): Add c++defs.
1091         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1092
1093         langinfo: Avoid #define replacements in C++ mode.
1094         * lib/langinfo.in.h: Include c++defs.h.
1095         (nl_langinfo): In C++, define a namespaced alias symbol.
1096         * modules/langinfo (Depends-on): Add c++defs.
1097         (Makefile.am): Update langinfo.h rule.
1098
1099         iconv-h: Avoid #define replacements in C++ mode.
1100         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1101         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1102         symbol.
1103         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1104         whenever iconv is present.
1105         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1106         (Makefile.am): Update iconv.h rule.
1107
1108         glob: Avoid #define replacements in C++ mode.
1109         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1110         (_gl_glob_errfunc_fn): New type.
1111         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1112         symbol.
1113         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1114         (Makefile.am): Update glob.h rule.
1115
1116         fcntl-h: Avoid #define replacements in C++ mode.
1117         * lib/fcntl.in.h: Include c++defs.h.
1118         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1119         * modules/fcntl-h (Depends-on): Add c++defs.
1120         (Makefile.am): Update fcntl.h rule.
1121
1122         dirent: Avoid #define replacements in C++ mode.
1123         * lib/dirent.in.h: Include c++defs.h.
1124         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1125         namespaced alias symbol.
1126         (dirfd): Update declaration.
1127         * modules/dirent (Depends-on): Add c++defs.
1128         (Makefile.am): Update dirent.h rule.
1129
1130         ctype: Make it usable in C++ code.
1131         * lib/ctype.in.h: Include c++defs.h.
1132         (isblank): Declare as extern "C".
1133         * modules/ctype (Depends-on): Add c++defs.
1134         (Makefile.am): Update ctype.h rule.
1135
1136         New module 'c++defs'.
1137         * modules/c++defs: New file.
1138         * build-aux/c++defs.h: New file.
1139         Reported by John W. Eaton <jwe@gnu.org>.
1140
1141 2010-03-07  Bruno Haible  <bruno@clisp.org>
1142
1143         logb: Provide missing declaration for Cygwin.
1144         * lib/math.in.h (logb): New declaration.
1145         * m4/logb.m4: New file.
1146         * modules/logb (Files): Add m4/logb.m4.
1147         (Depends-on): Add math.
1148         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1149         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1151         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1152         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1153
1154 2010-03-07  Bruno Haible  <bruno@clisp.org>
1155
1156         Fix test-cond link error.
1157         * tests/test-cond.c: Include <stdio.h>.
1158
1159 2010-03-07  Bruno Haible  <bruno@clisp.org>
1160
1161         Fix test-dirent-safer link error.
1162         * modules/dirent-safer-tests (Makefile.am): Define
1163         test_dirent_safer_LDADD.
1164
1165 2010-03-07  Bruno Haible  <bruno@clisp.org>
1166
1167         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1168         among default module list.
1169
1170 2010-03-07  Bruno Haible  <bruno@clisp.org>
1171
1172         Fix link error on platforms with GNU libiconv.
1173         * modules/unistr/u8-strcoll-tests (Makefile): Define
1174         test_u8_strcoll_LDADD.
1175         * modules/unistr/u16-strcoll-tests (Makefile): Define
1176         test_u16_strcoll_LDADD.
1177         * modules/unistr/u32-strcoll-tests (Makefile): Define
1178         test_u32_strcoll_LDADD.
1179
1180 2010-03-07  Bruno Haible  <bruno@clisp.org>
1181
1182         Use POSIX declarations for socket functions.
1183         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1184         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1185         rpl_sendto): Change declaration to match POSIX.
1186         * lib/connect.c (rpl_connect): Likewise.
1187         * lib/accept.c (rpl_accept): Likewise.
1188         * lib/bind.c (rpl_bind): Likewise.
1189         * lib/getpeername.c (rpl_getpeername): Likewise.
1190         * lib/getsockname.c (rpl_getsockname): Likewise.
1191         * lib/recv.c (rpl_recv): Likewise.
1192         * lib/send.c (rpl_send): Likewise.
1193         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1194         * lib/sendto.c (rpl_sendto): Likewise.
1195
1196 2010-03-06  Bruno Haible  <bruno@clisp.org>
1197
1198         Clarify access, euidaccess, faccessat.
1199         * doc/posix-functions/faccessat.texi: Mention security problem under
1200         "Other problems", not "Portability problems".
1201         * doc/posix-functions/access.texi: Likewise. Mention a related security
1202         problem.
1203         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1204         * lib/euidaccess.c: Add comments about platforms.
1205         * lib/unistd.in.h (access, euidaccess): Add warnings.
1206
1207 2010-03-07  Bruno Haible  <bruno@clisp.org>
1208
1209         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1210         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1211         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1212         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1213         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1214         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1215         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1216         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1217         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1219         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1220         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1221         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1222         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1223         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1224         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1225         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1226         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1227         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1228         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1229         Likewise.
1230         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1231         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1232         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1233         Likewise.
1234         * tests/test-spawn.c (main): Make it work when
1235         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1236
1237 2010-03-07  Bruno Haible  <bruno@clisp.org>
1238
1239         Fix incorrect Makefile.am generation in German locale.
1240         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1241         Execute sed command with character range in C locale.
1242
1243 2010-03-06  Bruno Haible  <bruno@clisp.org>
1244
1245         Tests for module 'iconv-h'.
1246         * modules/iconv-h-tests: New file.
1247         * tests/test-iconv-h.c: New file.
1248
1249         New module 'iconv-h'.
1250         * modules/iconv-h: New file.
1251         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1252         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1253         (configure.ac): Remove gl_ICONV_H.
1254         (Makefile.am): Remove rule for iconv.h.
1255
1256 2010-03-06  Bruno Haible  <bruno@clisp.org>
1257
1258         More consistent naming of *.m4 files.
1259         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1260         * modules/wctype (Files): Update.
1261
1262         More consistent naming of *.m4 files.
1263         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1264         * modules/wchar (Files): Update.
1265
1266 2010-03-06  Jim Meyering  <meyering@redhat.com>
1267
1268         euidaccess: relax license to LGPLv2+
1269         * modules/euidaccess (License): Relax to LGPLv2+.
1270
1271 2010-03-06  Bruno Haible  <bruno@clisp.org>
1272
1273         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1274         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1275         (Makefile.am): Augment lib_SOURCES instead.
1276
1277 2010-03-04  Jim Meyering  <meyering@redhat.com>
1278
1279         utime: remove obsolete module
1280         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1281         unnecessary for years, and has been marked as obsolete for 10 months.
1282         * modules/utime: Remove file.
1283         * lib/utime.c: Remove file.
1284         * m4/utime.m4: Remove file.
1285         * m4/utimes-null.m4: Remove file.
1286         * doc/posix-functions/utime.texi (utime): Remove reference to
1287         the module.  Move the sole "fixed by gnulib" item into the
1288         "problems not fixed by Gnulib" list.
1289         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1290
1291 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1292
1293         * modules/exit (License): Relax license to LGPLv2+.
1294         (Status): Mark as obsolete.
1295         * NEWS: Mention deprecated 'exit' module.
1296         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1297         of now obsolete 'exit'.
1298
1299 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1300
1301         fts-lgpl: remove unused module
1302         * modules/fts-lgpl: Remove.
1303         * MODULES.html.sh (func_all_modules): Adjust.
1304         * check-module (find_included_lib_files): Adjust.
1305         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1306
1307 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1308
1309         copy-acl: enhance Solaris ACL error handling
1310         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1311         * lib/set-mode-acl.c (qset_acl): Likewise.
1312
1313 2010-03-02  Bruno Haible  <bruno@clisp.org>
1314
1315         spawn: Don't override the system defined values on FreeBSD 8.
1316         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1317         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1318         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1319         if HAVE_POSIX_SPAWN is 1.
1320         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1321
1322 2010-03-01  Bruno Haible  <bruno@clisp.org>
1323
1324         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1325         regarding Automake.
1326
1327 2010-02-25  Bruno Haible  <bruno@clisp.org>
1328
1329         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1330         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1331         setting, not afterwards.
1332         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1333
1334 2010-02-24  Eric Blake  <eblake@redhat.com>
1335
1336         bootstrap, git-version-gen: use timestamp
1337         * build-aux/git-version-gen (scriptversion): Force UTC.
1338         * build-aux/bootstrap (scriptversion): New variable.
1339
1340         bootstrap: allow older git
1341         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1342         older than 1.6.4.  Requested by the libvirt project.
1343
1344 2010-02-23  Eric Blake  <eblake@redhat.com>
1345
1346         warn-on-use: work with old autoconf
1347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1348         AS_VAR semantics of autoconf 2.60.
1349         Reported by Bruno Haible.
1350
1351         bootstrap: improve some comments
1352         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1353         clarification comments.
1354
1355         gettimeofday: provide correct function
1356         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1357         when replacement is declared, otherwise provide gettimeofday.
1358         Reported by Michael Goffioul.
1359
1360 2010-02-23  Jim Meyering  <meyering@redhat.com>
1361
1362         lib-ignore: relax license to "unlimited", not LGPLv2+
1363         * modules/lib-ignore (License): Relax to "unlimited".
1364
1365 2010-02-23  Jim Meyering  <meyering@redhat.com>
1366
1367         lib-ignore: relax license to LGPLv2+
1368         * modules/lib-ignore (License): Relax to LGPLv2+.
1369
1370 2010-02-22  Eric Blake  <eblake@redhat.com>
1371
1372         lseek: avoid bash 3.2 broken pipe bug
1373         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1374         warning from bash 3.2.
1375         Reported by Ben Pfaff, with analysis from Bruno Haible.
1376
1377         bootstrap: support non-FSF copyright holder
1378         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1379         bootstrap.conf override of COPYRIGHT_HOLDER.
1380         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1381
1382         bootstrap: interoperate with gettext 0.14.1
1383         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1384
1385         bootstrap: allow for alternate submodule location
1386         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1387         hardcoding submodule location.
1388         (gnulib_mk): Allow direct use of Makefile.am.
1389
1390         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1391         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1392         rather than reconfiguring where the submodule points.
1393
1394         gettimeofday: restore support for platforms that lack function
1395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1396         replacement if function is missing.
1397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1398         * modules/sys_time (Makefile.am): Substitute it.
1399         * lib/sys_time.in.h (gettimeofday): Check it.
1400         Reported by Michael Goffioul.
1401
1402 2010-02-21  Bruno Haible  <bruno@clisp.org>
1403
1404         * lib/stdio.in.h (obstack_printf): Fix typo.
1405
1406 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1407
1408         vc-list-files: use bzr ls's -R option
1409         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1410         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1411
1412 2010-02-21  Jim Meyering  <meyering@redhat.com>
1413
1414         init.sh: fix EXEEXT shims to work also for names like test-prog
1415         * tests/init.sh: Re-exec a better shell, when needed.
1416         If the current shell lacks support for posix $(...), an init.sh-using
1417         test will now try to find a shell that supports that.  If EXEEXT is
1418         nonempty, we also require support for hyphen-in-alias-name and shell
1419         substitutions like ${var#glob}.  Failure to find such a shell results
1420         in a skipped test.
1421
1422 2010-02-21  Bruno Haible  <bruno@clisp.org>
1423
1424         Really work around around "broken pipe" error message from bash 3.2.
1425         * gnulib-tool (func_reset_sigpipe): Remove function.
1426         (echo): In bash 3.2, define to a function that uses printf.
1427         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1428
1429 2010-02-20  Bruno Haible  <bruno@clisp.org>
1430
1431         Restore support for automake 1.9.6 with autoconf 2.61.
1432         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1433         Reported by James Youngman <jay@gnu.org>.
1434
1435 2010-02-20  Bruno Haible  <bruno@clisp.org>
1436
1437         Improve *printf warning condition.
1438         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1439         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1440         and the function is overridden due to SIGPIPE emulation.
1441
1442 2010-02-20  Bruno Haible  <bruno@clisp.org>
1443
1444         * lib/stdio.in.h: Tweak comments.
1445
1446 2010-02-19  Bruno Haible  <bruno@clisp.org>
1447
1448         Make it easier to find modules. New gnulib-tool option '--find'.
1449         * gnulib-tool: New option --find.
1450         (func_usage): Document it.
1451         (func_sanitize_modulelist): New function, extracted from
1452         func_all_modules.
1453         (func_all_modules): Invoke it.
1454         * doc/gnulib-tool.texi (Which modules?): New node.
1455
1456 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1457
1458         * lib/sys_select.in.h: Provide select replacement even if
1459         sys/select.h exists on a system, for Interix.
1460
1461 2010-02-18  Jim Meyering  <meyering@redhat.com>
1462
1463         init.sh: don't use $(...) just yet
1464         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1465         to accommodate e.g., Solaris' /bin/sh.
1466
1467 2010-02-17  Bruno Haible  <bruno@clisp.org>
1468
1469         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1470         Reported by Ludovic Courtès <ludo@gnu.org>.
1471
1472 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1473
1474         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1475         linking with -lintl.
1476
1477 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1478
1479         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1480         if not provided by the system's netdb.h.  Reported by
1481         ludo@gnu.org (Ludovic Courtès).
1482
1483 2010-02-15  Jim Meyering  <meyering@redhat.com>
1484
1485         init.sh: improve portability and efficiency
1486         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1487         "dummy" in a for loop.
1488         Use '!', not '^' to select the complement of a character set used
1489         in a "case" statement.
1490         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1491         Suggestions from Eric Blake.
1492
1493         init.sh: automatically accommodate programs with the .exe suffix
1494         Automatically arrange for an invocation of "prog" to execute the
1495         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1496         may use the simpler "prog", yet still work when built on a system
1497         that requires specifying the added suffix.
1498         Do this by constructing a function named "prog" that invokes
1499         "prog.exe" for each .exe file in selected directories.
1500         * tests/init.sh (find_exe_basenames_): New function.
1501         (create_exe_shim_functions_): New function.
1502         (path_prepend_): Use it.
1503
1504         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1505         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1506         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1507
1508 2010-02-14  Jim Meyering  <meyering@redhat.com>
1509
1510         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1511         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1512         (sc_prohibit_hash_pjw_without_use): New rule.
1513
1514         maint.mk: allow the default upload destination dir to be overridden
1515         * top/maint.mk (upload_dest_dir_): Define with a default that
1516         preserves the status quo.
1517         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1518         Reported by Peter Simons.
1519
1520         maint.mk: prohibit inclusion of "hash.h" without_use
1521         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1522
1523 2010-02-10  Jim Meyering  <meyering@redhat.com>
1524
1525         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1526         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1527
1528 2010-02-09  Eric Blake  <ebb9@byu.net>
1529         and Bruno Haible  <bruno@clisp.org>
1530
1531         obstack-printf-posix: ensure declaration
1532         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1533         extracted from gl_FUNC_OBSTACK_PRINTF.
1534         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1535         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1536         Likewise.
1537         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1538         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1539         0.
1540
1541 2010-02-08  Bruno Haible  <bruno@clisp.org>
1542
1543         gnulib-tool: Fix typo in 2010-02-07 commit.
1544         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1545         Reported by Eric Blake.
1546
1547 2010-02-07  Bruno Haible  <bruno@clisp.org>
1548
1549         gnulib-tool: Fix up caching patches.
1550         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1551         option --no-cache. Use associative arrays when supported by the shell.
1552         (sed_comments): New variable.
1553         (modcache): Renamed from do_cache.
1554         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1555         abbreviate unnecessarily.
1556         (have_associative): New variable.
1557         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1558         way also for ksh and zsh.
1559         (func_init_sed_convert_to_cache_statements): New function, extracted
1560         from func_cache_lookup_module. Add support for associative arrays.
1561         Don't set the c_MODULE_cached variable here. Ignore all lines before
1562         the first field header. Remove only the final newline, not all trailing
1563         newlines. Support empty fields correctly. Limit the use of 'eval' to
1564         assignments.
1565         (func_get_description, func_get_status, func_get_notice,
1566         func_get_applicability, func_get_filelist, func_get_dependencies,
1567         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1568         func_get_automake_snippet, func_get_include_directive,
1569         func_get_link_directive, func_get_license, func_get_maintainer):
1570         Update documentation. List the unoptimized code first. Add support for
1571         associative arrays. Limit the use of 'eval' to assignments.
1572         (func_get_applicability): Undo stylistic pessimisations.
1573         (func_get_automake_snippet, func_get_include_directive): Reduce code
1574         duplication.
1575         (func_modules_transitive_closure, func_modules_add_dummy,
1576         func_modules_notice, func_modules_to_filelist, func_add_file,
1577         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1578         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1579         func_create_testdir, func_create_megatestdir): Update documentation.
1580
1581 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1582
1583         * gnulib-tool (func_cache_lookup_module): Store the module name
1584         belonging to the cache variable; error out if two different
1585         module names map to the same cache variable name.
1586
1587 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1588
1589         gnulib-tool: Make caching optional.
1590         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1591         Update matching short versions of --no-changelog.
1592         (func_usage): Update.
1593         (sed_extract_cache_prog): Renamed from ...
1594         (sed_extract_prog): ... this; revert to old extraction script.
1595         (func_get_description, func_get_status)
1596         (func_get_notice, func_get_applicability, func_get_filelist)
1597         (func_get_dependencies, func_get_autoconf_early_snippet)
1598         (func_get_autoconf_snippet, func_get_automake_snippet)
1599         (func_get_include_directive, func_get_link_directive)
1600         (func_get_license, func_get_maintainer): If $do_cache is false,
1601         use old, non-caching extraction scripts.
1602         Suggestion by Bruno Haible.
1603
1604 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1605
1606         gnulib-tool: cache module metainformation.
1607         * gnulib-tool (sed_extract_prog): Match newline before each
1608         header, and rewrite header to a shell variable suffix.
1609         (func_cache_var, func_cache_lookup_module): New functions,
1610         to turn a module name into a cache variable prefix, and to
1611         look up and cache module metainformation.
1612         (func_get_description, func_get_status)
1613         (func_get_notice, func_get_applicability, func_get_filelist)
1614         (func_get_dependencies, func_get_autoconf_early_snippet)
1615         (func_get_autoconf_snippet, func_get_automake_snippet)
1616         (func_get_include_directive, func_get_link_directive)
1617         (func_get_license, func_get_maintainer): Use
1618         func_cache_lookup_module.
1619
1620 2010-02-07  Bruno Haible  <bruno@clisp.org>
1621
1622         fnctl: Fix missing dependency.
1623         * modules/fcntl (Depends-on): Add getdtablesize.
1624         Reported by John W. Eaton <jwe@gnu.org>.
1625
1626 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1627
1628         Argp: fix recognition of short alias options.
1629
1630         * lib/argp-parse.c (convert_options): Fix improper use of
1631         `|' between character values.
1632         * tests/test-argp.c (group1_option): New alias option
1633         --read (-r).
1634         (group1_parser): Special handling for 'r'.
1635         (test15): New test case.
1636         (test_fun): Add test15.
1637         * tests/test-argp-2.sh: Update expected --help and --usage
1638         outputs.
1639
1640 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1641
1642         * tests/test-argp.c: Fix indentation.
1643
1644 2010-02-04  Eric Blake  <ebb9@byu.net>
1645
1646         gettimeofday: expose type of second argument
1647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
1648         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
1649         * tests/test-gettimeofday.c: Use it to silence warning.
1650         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
1651         the issue.
1652
1653 2010-02-03  Jim Meyering  <meyering@redhat.com>
1654
1655         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
1656         * lib/regcomp.c (TYPE_SIGNED): Define.
1657         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1658
1659         regcomp.c: avoid a new -Wshadow warning
1660         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1661
1662 2010-02-01  Jim Meyering  <meyering@redhat.com>
1663
1664         removing useless parentheses in cpp #define directives
1665         For motivation, see commit c0221df4, "define STREQ(a,b)
1666         consistently, removing useless parentheses"
1667         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1668         * lib/mountlist.c (MNT_IGNORE): Likewise.
1669         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1670
1671 2010-02-01  Eric Blake  <ebb9@byu.net>
1672
1673         sys_time: use link-warning
1674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1675         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1676         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1677         * modules/sys_time (Depends-on): Add warn-on-use.
1678         (Makefile.am): Always build replacement.
1679         (configure.ac): Update substitutions.
1680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1681         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1682         bother with SYS_TIME_H.
1683         * modules/gettimeofday (configure.ac): Declare indicator.
1684         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1685         in use.
1686
1687         closein-tests: silence compiler warning
1688         * tests/test-closein.c (main): Ignore fread result.
1689         * modules/closein-tests (Depends-on): Add ignore-value.
1690
1691         tests: silence warning about system return
1692         * tests/test-areadlink-with-size.c (main): Ignore system result.
1693         * tests/test-areadlink.c (main): Likewise.
1694         * tests/test-areadlinkat-with-size.c (main): Likewise.
1695         * tests/test-areadlinkat.c (main): Likewise.
1696         * tests/test-canonicalize-lgpl.c (main): Likewise.
1697         * tests/test-canonicalize.c (main): Likewise.
1698         * tests/test-chown.c (main): Likewise.
1699         * tests/test-fchownat.c (main): Likewise.
1700         * tests/test-fdutimensat.c (main): Likewise.
1701         * tests/test-fstatat.c (main): Likewise.
1702         * tests/test-futimens.c (main): Likewise.
1703         * tests/test-lchown.c (main): Likewise.
1704         * tests/test-link.c (main): Likewise.
1705         * tests/test-linkat.c (main): Likewise.
1706         * tests/test-lstat.c (main): Likewise.
1707         * tests/test-mkdir.c (main): Likewise.
1708         * tests/test-mkdirat.c (main): Likewise.
1709         * tests/test-mkfifo.c (main): Likewise.
1710         * tests/test-mkfifoat.c (main): Likewise.
1711         * tests/test-mknod.c (main): Likewise.
1712         * tests/test-readlink.c (main): Likewise.
1713         * tests/test-remove.c (main): Likewise.
1714         * tests/test-rename.c (main): Likewise.
1715         * tests/test-renameat.c (main): Likewise.
1716         * tests/test-rmdir.c (main): Likewise.
1717         * tests/test-symlink.c (main): Likewise.
1718         * tests/test-symlinkat.c (main): Likewise.
1719         * tests/test-unlink.c (main): Likewise.
1720         * tests/test-unlinkat.c (main): Likewise.
1721         * tests/test-utimens.c (main): Likewise.
1722         * tests/test-utimensat.c (main): Likewise.
1723         * modules/areadlink-tests (Depends-on): Add ignore-value.
1724         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1725         * modules/areadlinkat-tests (Depends-on): Likewise.
1726         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1727         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1728         * modules/canonicalize-tests (Depends-on): Likewise.
1729         * modules/chown-tests (Depends-on): Likewise.
1730         * modules/fdutimensat-tests (Depends-on): Likewise.
1731         * modules/futimens-tests (Depends-on): Likewise.
1732         * modules/lchown-tests (Depends-on): Likewise.
1733         * modules/link-tests (Depends-on): Likewise.
1734         * modules/linkat-tests (Depends-on): Likewise.
1735         * modules/lstat-tests (Depends-on): Likewise.
1736         * modules/mkdir-tests (Depends-on): Likewise.
1737         * modules/mkfifo-tests (Depends-on): Likewise.
1738         * modules/mkfifoat-tests (Depends-on): Likewise.
1739         * modules/mknod-tests (Depends-on): Likewise.
1740         * modules/openat-tests (Depends-on): Likewise.
1741         * modules/readlink-tests (Depends-on): Likewise.
1742         * modules/remove-tests (Depends-on): Likewise.
1743         * modules/rename-tests (Depends-on): Likewise.
1744         * modules/renameat-tests (Depends-on): Likewise.
1745         * modules/rmdir-tests (Depends-on): Likewise.
1746         * modules/symlink-tests (Depends-on): Likewise.
1747         * modules/symlinkat-tests (Depends-on): Likewise.
1748         * modules/unlink-tests (Depends-on): Likewise.
1749         * modules/utimens-tests (Depends-on): Likewise.
1750         * modules/utimensat-tests (Depends-on): Likewise.
1751
1752 2010-01-31  Bruno Haible  <bruno@clisp.org>
1753
1754         Perform the same test for many <math.h> functions.
1755         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1756         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1757         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1758         of gl_MATHFUNC.
1759         * modules/acos (configure.ac): Likewise.
1760         * modules/asin (configure.ac): Likewise.
1761         * modules/atan (configure.ac): Likewise.
1762         * modules/atan2 (configure.ac): Likewise.
1763         * modules/cbrt (configure.ac): Likewise.
1764         * modules/copysign (configure.ac): Likewise.
1765         * modules/cos (configure.ac): Likewise.
1766         * modules/cosh (configure.ac): Likewise.
1767         * modules/erf (configure.ac): Likewise.
1768         * modules/erfc (configure.ac): Likewise.
1769         * modules/exp (configure.ac): Likewise.
1770         * modules/fmod (configure.ac): Likewise.
1771         * modules/hypot (configure.ac): Likewise.
1772         * modules/j0 (configure.ac): Likewise.
1773         * modules/j1 (configure.ac): Likewise.
1774         * modules/jn (configure.ac): Likewise.
1775         * modules/lgamma (configure.ac): Likewise.
1776         * modules/log (configure.ac): Likewise.
1777         * modules/log10 (configure.ac): Likewise.
1778         * modules/log1p (configure.ac): Likewise.
1779         * modules/pow (configure.ac): Likewise.
1780         * modules/remainder (configure.ac): Likewise.
1781         * modules/sin (configure.ac): Likewise.
1782         * modules/sinh (configure.ac): Likewise.
1783         * modules/tan (configure.ac): Likewise.
1784         * modules/tanh (configure.ac): Likewise.
1785         * modules/y0 (configure.ac): Likewise.
1786         * modules/y1 (configure.ac): Likewise.
1787         * modules/yn (configure.ac): Likewise.
1788         Suggested by Paolo Bonzini.
1789
1790 2010-01-31  Bruno Haible  <bruno@clisp.org>
1791
1792         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1793
1794 2010-01-31  Bruno Haible  <bruno@clisp.org>
1795
1796         Work around getdelim() bug on FreeBSD 8.0.
1797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1798         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1799         not work.
1800         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1801         is 1.
1802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1803         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1804         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1805         a non-zero size.
1806         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1807
1808 2010-01-31  Bruno Haible  <bruno@clisp.org>
1809
1810         Work around getline() bug on FreeBSD 8.0.
1811         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1812         and a non-zero size.
1813         * tests/test-getline.c (main): Likewise.
1814         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1815         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1816
1817 2010-01-28  Eric Blake  <ebb9@byu.net>
1818
1819         regex: fix build failure
1820         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1821         platforms.
1822
1823 2010-01-28  Jim Meyering  <meyering@redhat.com>
1824
1825         regex: do not ignore memory allocation failure
1826         * lib/regex_internal.c (create_cd_newstate): Detect
1827         re_node_set_init_copy failure.   Extracted from glibc commit
1828         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1829
1830         regex: sync more white-space changes from libc
1831         * lib/regex_internal.c: White-space only changes.
1832         * lib/regexec.c: Likewise.
1833
1834         regex: add many uses of __attribute_warn_unused_result__
1835         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1836         * lib/regexec.c: Likewise.
1837         Extracted from a messy glibc commit.
1838
1839         regcomp.c: spelling and merge-artifact from glibc
1840         * lib/regcomp.c: Merge remainder of glibc's
1841         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1842
1843         regcomp.c: sync white-space changes from glibc
1844         * lib/regcomp.c: Merge to accommodate white space
1845         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1846
1847         regcomp.c: do not ignore internal return values
1848         * lib/regcomp.c: Do not ignore internal return values.
1849         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1850         but without its white-space changes and spelling fixes.
1851
1852         regex_internal.h: define __attribute_warn_unused_result__
1853         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1854
1855         maint: add a syntax-check rule to check for vulnerable Makefile.in
1856         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1857
1858 2010-01-27  Jim Meyering  <meyering@redhat.com>
1859
1860         ncftpput-ftp: clean up spaces
1861         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1862         Remove trailing blanks.
1863
1864 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1865
1866         * build-aux/git-version-gen: Fix copyright statement.
1867         * build-aux/gnupload: Likewise.
1868         * tests/test-arcfour.c: Likewise.
1869         * tests/test-arctwo.c: Likewise.
1870         * tests/test-count-one-bits.c: Likewise.
1871         * tests/test-crc.c: Likewise.
1872         * tests/test-des.c: Likewise.
1873         * tests/test-gc-arcfour.c: Likewise.
1874         * tests/test-gc-arctwo.c: Likewise.
1875         * tests/test-gc-des.c: Likewise.
1876         * tests/test-gc-hmac-md5.c: Likewise.
1877         * tests/test-gc-hmac-sha1.c: Likewise.
1878         * tests/test-gc-md2.c: Likewise.
1879         * tests/test-gc-md4.c: Likewise.
1880         * tests/test-gc-md5.c: Likewise.
1881         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1882         * tests/test-gc-rijndael.c: Likewise.
1883         * tests/test-gc-sha1.c: Likewise.
1884         * tests/test-gc.c: Likewise.
1885         * tests/test-gethostname.c: Likewise.
1886         * tests/test-gettimeofday.c: Likewise.
1887         * tests/test-hash.c: Likewise.
1888         * tests/test-hmac-md5.c: Likewise.
1889         * tests/test-hmac-sha1.c: Likewise.
1890         * tests/test-md2.c: Likewise.
1891         * tests/test-md4.c: Likewise.
1892         * tests/test-md5.c: Likewise.
1893         * tests/test-memchr.c: Likewise.
1894         * tests/test-memchr2.c: Likewise.
1895         * tests/test-memcmp.c: Likewise.
1896         * tests/test-memmem.c: Likewise.
1897         * tests/test-memrchr.c: Likewise.
1898         * tests/test-rawmemchr.c: Likewise.
1899         * tests/test-read-file.c: Likewise.
1900         * tests/test-rijndael.c: Likewise.
1901         * tests/test-sockets.c: Likewise.
1902         * tests/test-strchrnul.c: Likewise.
1903         * tests/test-strstr.c: Likewise.
1904         * tests/test-strtod.c: Likewise.
1905         * build-aux/ncftpput-ftp: Likewise.
1906
1907 2010-01-26  Eric Blake  <ebb9@byu.net>
1908
1909         ignore-value: update recommended header name
1910         * modules/ignore-value (Include): Only use <> for headers that
1911         exist in glibc.
1912
1913 2010-01-26  Jim Meyering  <meyering@redhat.com>
1914
1915         test-userspec.c: avoid compiler warnings
1916         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1917         and "initialization discards qualifiers..." warnings.
1918         Put the first "uid" in its own scope, and make char* members "const".
1919
1920 2010-01-25  Bruno Haible  <bruno@clisp.org>
1921
1922         gnulib-tool: Make warning diagnostics consistent.
1923         * gnulib-tool (func_warning): New function.
1924         Use it everywhere where gnulib-tool produces output to stderr and it is
1925         not a fatal error.
1926
1927 2010-01-25  Bruno Haible  <bruno@clisp.org>
1928
1929         Fix test dependencies.
1930         * modules/xstrtol-tests (Depends-on): Add inttypes.
1931         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1932
1933 2010-01-25 Pádraig Brady <P@draigBrady.com>
1934
1935         syntax-check: detect incorrect boolean macro values in config.h
1936         * modules/maintainer-makefile (configure.ac): Parameterize the location
1937         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1938         The logic is from Eric Blake and the location indicated by Jim Meyering.
1939         Note the more natural CONFIG_HEADER name is prohibited by automake
1940         for backwards compatibility reasons.
1941         * top/maint.mk (sc_Wundef_boolean): New rule.
1942
1943 2010-01-25  Jim Meyering  <meyering@redhat.com>
1944
1945         bootstrap: detect MacOS 10.6's shasum, too
1946         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1947         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1948
1949 2010-01-23  Jim Meyering  <meyering@redhat.com>
1950
1951         xstrtoll: new module
1952         * modules/xstrtoll: New file.
1953         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1954         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1955         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1956         ./configure fails if you use this module and lack "long long".
1957         * modules/xstrtoll-tests: New module.
1958         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1959         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1960         new init.sh-based test framework.
1961
1962 2010-01-24  Bruno Haible  <bruno@clisp.org>
1963
1964         Tests for module 'yn'.
1965         * modules/yn-tests: New file.
1966         * tests/test-yn.c: New file.
1967
1968         Tests for module 'y1'.
1969         * modules/y1-tests: New file.
1970         * tests/test-y1.c: New file.
1971
1972         Tests for module 'y0'.
1973         * modules/y0-tests: New file.
1974         * tests/test-y0.c: New file.
1975
1976         Tests for module 'tanh'.
1977         * modules/tanh-tests: New file.
1978         * tests/test-tanh.c: New file.
1979
1980         Tests for module 'tan'.
1981         * modules/tan-tests: New file.
1982         * tests/test-tan.c: New file.
1983
1984         Tests for module 'sqrt'.
1985         * modules/sqrt-tests: New file.
1986         * tests/test-sqrt.c: New file.
1987
1988         Tests for module 'sinh'.
1989         * modules/sinh-tests: New file.
1990         * tests/test-sinh.c: New file.
1991
1992         Tests for module 'sin'.
1993         * modules/sin-tests: New file.
1994         * tests/test-sin.c: New file.
1995
1996         Tests for module 'rint'.
1997         * modules/rint-tests: New file.
1998         * tests/test-rint.c: New file.
1999
2000         Tests for module 'remainder'.
2001         * modules/remainder-tests: New file.
2002         * tests/test-remainder.c: New file.
2003
2004         Tests for module 'pow'.
2005         * modules/pow-tests: New file.
2006         * tests/test-pow.c: New file.
2007
2008         Tests for module 'nextafter'.
2009         * modules/nextafter-tests: New file.
2010         * tests/test-nextafter.c: New file.
2011
2012         Tests for module 'modf'.
2013         * modules/modf-tests: New file.
2014         * tests/test-modf.c: New file.
2015
2016         Tests for module 'logb'.
2017         * modules/logb-tests: New file.
2018         * tests/test-logb.c: New file.
2019
2020         Tests for module 'log1p'.
2021         * modules/log1p-tests: New file.
2022         * tests/test-log1p.c: New file.
2023
2024         Tests for module 'log10'.
2025         * modules/log10-tests: New file.
2026         * tests/test-log10.c: New file.
2027
2028         Tests for module 'log'.
2029         * modules/log-tests: New file.
2030         * tests/test-log.c: New file.
2031
2032         Tests for module 'lgamma'.
2033         * modules/lgamma-tests: New file.
2034         * tests/test-lgamma.c: New file.
2035
2036         Tests for module 'ldexp'.
2037         * modules/ldexp-tests: New file.
2038         * tests/test-ldexp.c: New file.
2039
2040         Tests for module 'jn'.
2041         * modules/jn-tests: New file.
2042         * tests/test-jn.c: New file.
2043
2044         Tests for module 'j1'.
2045         * modules/j1-tests: New file.
2046         * tests/test-j1.c: New file.
2047
2048         Tests for module 'j0'.
2049         * modules/j0-tests: New file.
2050         * tests/test-j0.c: New file.
2051
2052         Tests for module 'hypot'.
2053         * modules/hypot-tests: New file.
2054         * tests/test-hypot.c: New file.
2055
2056         Tests for module 'fmod'.
2057         * modules/fmod-tests: New file.
2058         * tests/test-fmod.c: New file.
2059
2060         Tests for module 'fabs'.
2061         * modules/fabs-tests: New file.
2062         * tests/test-fabs.c: New file.
2063
2064         Tests for module 'exp'.
2065         * modules/exp-tests: New file.
2066         * tests/test-exp.c: New file.
2067
2068         Tests for module 'erfc'.
2069         * modules/erfc-tests: New file.
2070         * tests/test-erfc.c: New file.
2071
2072         Tests for module 'erf'.
2073         * modules/erf-tests: New file.
2074         * tests/test-erf.c: New file.
2075
2076         Tests for module 'cosh'.
2077         * modules/cosh-tests: New file.
2078         * tests/test-cosh.c: New file.
2079
2080         Tests for module 'cos'.
2081         * modules/cos-tests: New file.
2082         * tests/test-cos.c: New file.
2083
2084         Tests for module 'copysign'.
2085         * modules/copysign-tests: New file.
2086         * tests/test-copysign.c: New file.
2087
2088         Tests for module 'cbrt'.
2089         * modules/cbrt-tests: New file.
2090         * tests/test-cbrt.c: New file.
2091
2092         Tests for module 'atan2'.
2093         * modules/atan2-tests: New file.
2094         * tests/test-atan2.c: New file.
2095
2096         Tests for module 'atan'.
2097         * modules/atan-tests: New file.
2098         * tests/test-atan.c: New file.
2099
2100         Tests for module 'asin'.
2101         * modules/asin-tests: New file.
2102         * tests/test-asin.c: New file.
2103
2104         Tests for module 'acos'.
2105         * modules/acos-tests: New file.
2106         * tests/test-acos.c: New file.
2107
2108 2010-01-24  Bruno Haible  <bruno@clisp.org>
2109
2110         Fix tests for common <math.h> functions.
2111         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2112         code snippet that references the function pointer, rather than merely
2113         calling the function. Substitute the FUNC_LIBM variable.
2114         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2115         * modules/acos (configure.ac): Likewise.
2116         * modules/asin (configure.ac): Likewise.
2117         * modules/atan (configure.ac): Likewise.
2118         * modules/atan2 (configure.ac): Likewise.
2119         * modules/cbrt (configure.ac): Likewise.
2120         * modules/copysign (configure.ac): Likewise.
2121         * modules/cos (configure.ac): Likewise.
2122         * modules/cosh (configure.ac): Likewise.
2123         * modules/erf (configure.ac): Likewise.
2124         * modules/erfc (configure.ac): Likewise.
2125         * modules/exp (configure.ac): Likewise.
2126         * modules/fabs (configure.ac): Likewise.
2127         * modules/fmod (configure.ac): Likewise.
2128         * modules/hypot (configure.ac): Likewise.
2129         * modules/j0 (configure.ac): Likewise.
2130         * modules/j1 (configure.ac): Likewise.
2131         * modules/jn (configure.ac): Likewise.
2132         * modules/ldexp (configure.ac): Likewise.
2133         * modules/lgamma (configure.ac): Likewise.
2134         * modules/log (configure.ac): Likewise.
2135         * modules/log10 (configure.ac): Likewise.
2136         * modules/log1p (configure.ac): Likewise.
2137         * modules/logb (configure.ac): Likewise.
2138         * modules/modf (configure.ac): Likewise.
2139         * modules/nextafter (configure.ac): Likewise.
2140         * modules/pow (configure.ac): Likewise.
2141         * modules/remainder (configure.ac): Likewise.
2142         * modules/rint (configure.ac): Likewise.
2143         * modules/sin (configure.ac): Likewise.
2144         * modules/sinh (configure.ac): Likewise.
2145         * modules/tan (configure.ac): Likewise.
2146         * modules/tanh (configure.ac): Likewise.
2147         * modules/y0 (configure.ac): Likewise.
2148         * modules/y1 (configure.ac): Likewise.
2149         * modules/yn (configure.ac): Likewise.
2150
2151 2010-01-24  Bruno Haible  <bruno@clisp.org>
2152
2153         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2154         * tests/test-acosl.c (x): New variable.
2155         (main): Store argument in x and fetch it from x.
2156         * tests/test-asinl.c (x): New variable.
2157         (main): Store argument in x and fetch it from x.
2158         * tests/test-atanl.c (x): New variable.
2159         (main): Store argument in x and fetch it from x.
2160         * tests/test-cosl.c (x): New variable.
2161         (main): Store argument in x and fetch it from x.
2162         * tests/test-expl.c (x): New variable.
2163         (main): Store argument in x and fetch it from x.
2164         * tests/test-logl.c (x): New variable.
2165         (main): Store argument in x and fetch it from x.
2166         * tests/test-sinl.c (x): New variable.
2167         (main): Store argument in x and fetch it from x.
2168         * tests/test-sqrtl.c (x): New variable.
2169         (main): Store argument in x and fetch it from x.
2170         * tests/test-tanl.c (x): New variable.
2171         (main): Store argument in x and fetch it from x.
2172
2173 2010-01-24  Bruno Haible  <bruno@clisp.org>
2174
2175         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2176         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2177         assignments to the initial TESTS_ENVIRONMENT.
2178         * doc/gnulib.texi (Unit test modules): Document it.
2179         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2180         TESTS_ENVIRONMENT.
2181         * modules/btowc-tests (Makefile.am): Likewise.
2182         * modules/c-stack-tests (Makefile.am): Likewise.
2183         * modules/c-strcase-tests (Makefile.am): Likewise.
2184         * modules/copy-file-tests (Makefile.am): Likewise.
2185         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2186         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2187         * modules/mbrtowc-tests (Makefile.am): Likewise.
2188         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2189         * modules/mbscasestr-tests (Makefile.am): Likewise.
2190         * modules/mbschr-tests (Makefile.am): Likewise.
2191         * modules/mbscspn-tests (Makefile.am): Likewise.
2192         * modules/mbsinit-tests (Makefile.am): Likewise.
2193         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2194         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2195         * modules/mbspbrk-tests (Makefile.am): Likewise.
2196         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2197         * modules/mbsrchr-tests (Makefile.am): Likewise.
2198         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2199         * modules/mbsspn-tests (Makefile.am): Likewise.
2200         * modules/mbsstr-tests (Makefile.am): Likewise.
2201         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2202         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2203         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2204         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2205         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2206         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2207         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2208         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2209         * modules/wcrtomb-tests (Makefile.am): Likewise.
2210         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2211         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2212         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2213         assignments from TESTS_ENVIRONMENT.
2214         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2215         augmentation.
2216         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2217         * modules/atexit-tests (Makefile.am): Likewise.
2218         * modules/binary-io-tests (Makefile.am): Likewise.
2219         * modules/closein-tests (Makefile.am): Likewise.
2220         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2221         * modules/exclude-tests (Makefile.am): Likewise.
2222         * modules/fflush-tests (Makefile.am): Likewise.
2223         * modules/fpending-tests (Makefile.am): Likewise.
2224         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2225         * modules/freadahead-tests (Makefile.am): Likewise.
2226         * modules/freadptr-tests (Makefile.am): Likewise.
2227         * modules/freadseek-tests (Makefile.am): Likewise.
2228         * modules/fseek-tests (Makefile.am): Likewise.
2229         * modules/fseeko-tests (Makefile.am): Likewise.
2230         * modules/ftell-tests (Makefile.am): Likewise.
2231         * modules/ftello-tests (Makefile.am): Likewise.
2232         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2233         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2234         * modules/lseek-tests (Makefile.am): Likewise.
2235         * modules/parse-duration-tests (Makefile.am): Likewise.
2236         * modules/perror-tests (Makefile.am): Likewise.
2237         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2238         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2239         * modules/pipe-tests (Makefile.am): Likewise.
2240         * modules/pread-tests (Makefile.am): Likewise.
2241         * modules/printf-posix-tests (Makefile.am): Likewise.
2242         * modules/select-tests (Makefile.am): Likewise.
2243         * modules/sigpipe-tests (Makefile.am): Likewise.
2244         * modules/tsearch-tests (Makefile.am): Likewise.
2245         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2246         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2247         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2248         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2249         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2250         * modules/version-etc-tests (Makefile.am): Likewise.
2251         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2252         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2253         * modules/xalloc-die-tests (Makefile.am): Likewise.
2254         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2255         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2256         * modules/xstrtol-tests (Makefile.am): Likewise.
2257         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2258         * modules/yesno-tests (Makefile.am): Likewise.
2259         Suggested by Jim Meyering.
2260
2261 2010-01-24  Bruno Haible  <bruno@clisp.org>
2262
2263         More documentation.
2264         * doc/gnulib.texi (Writing modules): New chapter.
2265         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2266         the new chapter.
2267
2268 2010-01-24  Jim Meyering  <meyering@redhat.com>
2269
2270         maint.mk: do not prepend "./" after filtering
2271         * top/maint.mk (_prepend_srcdir_prefix): New variable
2272         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2273         "./" when $(srcdir) is ".".
2274
2275         define STREQ(a,b) consistently, removing useless parentheses
2276         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2277         since the only risk is that "a" or "b" contains an unparenthesized
2278         comma, but if either did that, STREQ would have 3 or more arguments.
2279         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2280         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2281         * lib/hash-triple.c (STREQ): Likewise.
2282         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2283         * lib/getugroups.c (STREQ): Likewise.
2284
2285 2010-01-23  Jim Meyering  <meyering@redhat.com>
2286
2287         maint.mk: fix syntax-check in a non-srcdir build directory
2288         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2289         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2290
2291 2010-01-22  Jim Meyering  <meyering@redhat.com>
2292
2293         userspec: add unit tests
2294         * tests/test-userspec.c: New file.
2295         * modules/userspec-tests: Likewise.
2296
2297 2010-01-21  Jim Meyering  <meyering@redhat.com>
2298
2299         maint.mk: handle source file names containing "." robustly
2300         * top/maint.mk (_dot_escaped_srcdir): Define.
2301         (VC_LIST): Use it in LHS of sed substitution.
2302
2303 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2304
2305         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2306         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2307         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2308         from a non-srcdir build.
2309
2310 2010-01-20  Eric Blake  <ebb9@byu.net>
2311
2312         warn-on-use: use instead of link-warning
2313         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2314         * modules/unistd (Depends-on, Makefile.am): Likewise.
2315         * modules/arpa_inet (Depends-on): Replace link-warning with
2316         warn-on-use.
2317         (Makefile.am): Update rules accordingly.
2318         * modules/ctype (Depends-on, Makefile.am): Likewise.
2319         * modules/dirent (Depends-on, Makefile.am): Likewise.
2320         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2321         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2322         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2323         * modules/locale (Depends-on, Makefile.am): Likewise.
2324         * modules/math (Depends-on, Makefile.am): Likewise.
2325         * modules/search (Depends-on, Makefile.am): Likewise.
2326         * modules/signal (Depends-on, Makefile.am): Likewise.
2327         * modules/spawn (Depends-on, Makefile.am): Likewise.
2328         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2329         * modules/string (Depends-on, Makefile.am): Likewise.
2330         * modules/strings (Depends-on, Makefile.am): Likewise.
2331         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2332         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2333         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2334         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2335         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2336         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2337         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2338         * modules/wchar (Depends-on, Makefile.am): Likewise.
2339         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2340         should be poisoned.
2341         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2342         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2343         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2344         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2345         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2346         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2347         * m4/math_h.m4 (gl_MATH_H): Likewise.
2348         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2349         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2350         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2351         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2352         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2353         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2354         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2355         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2356         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2360         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2361         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2362         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2363         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2364         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2365         GL_LINK_WARNING.
2366         * lib/ctype.in.h: Likewise.
2367         * lib/dirent.in.h: Likewise.
2368         * lib/fcntl.in.h: Likewise.
2369         * lib/inttypes.in.h: Likewise.
2370         * lib/langinfo.in.h: Likewise.
2371         * lib/locale.in.h: Likewise.
2372         * lib/math.in.h: Likewise.
2373         * lib/search.in.h: Likewise.
2374         * lib/signal.in.h: Likewise.
2375         * lib/spawn.in.h: Likewise.
2376         * lib/stdio.in.h: Likewise.
2377         * lib/stdlib.in.h: Likewise.
2378         * lib/string.in.h: Likewise.
2379         * lib/strings.in.h: Likewise.
2380         * lib/sys_file.in.h: Likewise.
2381         * lib/sys_ioctl.in.h: Likewise.
2382         * lib/sys_select.in.h: Likewise.
2383         * lib/sys_socket.in.h: Likewise.
2384         * lib/sys_stat.in.h: Likewise.
2385         * lib/sys_times.in.h: Likewise.
2386         * lib/sys_utsname.in.h: Likewise.
2387         * lib/unistd.in.h: Likewise.
2388         * lib/wchar.in.h: Likewise.
2389
2390 2010-01-20  Bruno Haible  <bruno@clisp.org>
2391
2392         Avoid duplicate -lm.
2393         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2394         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2396         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2397         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2398         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2399         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2400         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2401         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2402         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2403         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2404         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2405         Reported by Paolo Bonzini.
2406
2407 2010-01-19  Bruno Haible  <bruno@clisp.org>
2408
2409         langinfo, nl_langinfo: Relicense under LGPLv2+.
2410         * modules/langinfo (License): Change to LGPLv2+.
2411         * modules/nl_langinfo (License): Likewise.
2412         Patch by David Lutterkort <lutter@redhat.com>.
2413
2414 2010-01-19  Bruno Haible  <bruno@clisp.org>
2415
2416         Avoid compilation error with cc on OSF/1 5.1.
2417         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2418         statement, not before.
2419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2420
2421 2010-01-18  Bruno Haible  <bruno@clisp.org>
2422
2423         Avoid a link error due to the __printf__ symbol.
2424         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2425         and 2.6.x.
2426         (__format__, __printf__): Remove definitions.
2427         * lib/argp-fmtstream.h: Likewise.
2428         * lib/argp.h: Likewise.
2429         * lib/error.h: Likewise.
2430         * lib/vasnprintf.h: Likewise.
2431         * lib/xprintf.h: Likewise.
2432         * lib/xvasprintf.h: Likewise.
2433         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2434
2435 2010-01-18  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'tanl'.
2438         * modules/tanl-tests: New file.
2439         * tests/test-tanl.c: New file.
2440
2441         Tests for module 'sqrtl'.
2442         * modules/sqrtl-tests: New file.
2443         * tests/test-sqrtl.c: New file.
2444
2445         Tests for module 'sinl'.
2446         * modules/sinl-tests: New file.
2447         * tests/test-sinl.c: New file.
2448
2449         Tests for module 'logl'.
2450         * modules/logl-tests: New file.
2451         * tests/test-logl.c: New file.
2452
2453         Tests for module 'expl'.
2454         * modules/expl-tests: New file.
2455         * tests/test-expl.c: New file.
2456
2457         Tests for module 'cosl'.
2458         * modules/cosl-tests: New file.
2459         * tests/test-cosl.c: New file.
2460
2461         Tests for module 'atanl'.
2462         * modules/atanl-tests: New file.
2463         * tests/test-atanl.c: New file.
2464
2465         Tests for module 'asinl'.
2466         * modules/asinl-tests: New file.
2467         * tests/test-asinl.c: New file.
2468
2469         Tests for module 'acosl'.
2470         * modules/acosl-tests: New file.
2471         * tests/test-acosl.c: New file.
2472
2473         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2474         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2475         tanl): Use the standard gnulib idiom.
2476         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2477         * lib/sinl.c: Likewise.
2478         * lib/tanl.c: Don't include trigl.c.
2479         (kernel_tanl): Make static.
2480         * lib/sincosl.c: Include trigl.h first.
2481         * lib/trigl.c: Likewise.
2482         * m4/acosl.m4: New file.
2483         * m4/asinl.m4: New file.
2484         * m4/atanl.m4: New file.
2485         * m4/cosl.m4: New file.
2486         * m4/expl.m4: New file.
2487         * m4/logl.m4: New file.
2488         * m4/sinl.m4: New file.
2489         * m4/sqrtl.m4: New file.
2490         * m4/tanl.m4: New file.
2491         * m4/mathl.m4: Remove file.
2492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2493         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2494         Don't initialize GNULIB_MATHL.
2495         * modules/acosl: New file.
2496         * modules/asinl: New file.
2497         * modules/atanl: New file.
2498         * modules/cosl: New file.
2499         * modules/expl: New file.
2500         * modules/logl: New file.
2501         * modules/sinl: New file.
2502         * modules/sqrtl: New file.
2503         * modules/tanl: New file.
2504         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2505         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2506         substitute GNULIB_MATHL.
2507         * modules/mathl: Rewritten.
2508         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2509         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2510         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2511         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2512         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2513         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2514         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2515         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2516         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2517
2518 2010-01-18  Bruno Haible  <bruno@clisp.org>
2519
2520         sqrt: Make gl_FUNC_SQRT requirable.
2521         * m4/sqrt.m4: New file.
2522         * modules/sqrt (Files): Add it.
2523         (configure.ac): Invoke gl_FUNC_SQRT.
2524
2525 2010-01-18  Bruno Haible  <bruno@clisp.org>
2526
2527         New modules for common <math.h> functions.
2528         * m4/mathfunc.m4: New file.
2529         * modules/acos: New file.
2530         * modules/asin: New file.
2531         * modules/atan: New file.
2532         * modules/atan2: New file.
2533         * modules/cbrt: New file.
2534         * modules/copysign: New file.
2535         * modules/cos: New file.
2536         * modules/cosh: New file.
2537         * modules/erf: New file.
2538         * modules/erfc: New file.
2539         * modules/exp: New file.
2540         * modules/fabs: New file.
2541         * modules/fmod: New file.
2542         * modules/hypot: New file.
2543         * modules/j0: New file.
2544         * modules/j1: New file.
2545         * modules/jn: New file.
2546         * modules/ldexp: New file.
2547         * modules/lgamma: New file.
2548         * modules/log: New file.
2549         * modules/log10: New file.
2550         * modules/log1p: New file.
2551         * modules/logb: New file.
2552         * modules/modf: New file.
2553         * modules/nextafter: New file.
2554         * modules/pow: New file.
2555         * modules/remainder: New file.
2556         * modules/rint: New file.
2557         * modules/sin: New file.
2558         * modules/sinh: New file.
2559         * modules/sqrt: New file.
2560         * modules/tan: New file.
2561         * modules/tanh: New file.
2562         * modules/y0: New file.
2563         * modules/y1: New file.
2564         * modules/yn: New file.
2565         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2566         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2567         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2568         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2569         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2570         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2571         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2572         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2573         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2574         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2575         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2576         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2577         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2578         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2579         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2580         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2581         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2582         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2583         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2584         * doc/posix-functions/log.texi: Mention the 'log' module.
2585         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2586         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2587         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2588         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2589         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2590         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2591         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2592         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2593         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2594         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2595         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2596         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2597         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2598         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2599         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2600         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2601
2602 2010-01-18  Jim Meyering  <meyering@redhat.com>
2603
2604         ignore-value: relax license to LGPLv2+
2605         * modules/ignore-value (License): Relax to LGPLv2+.
2606
2607         getdate: don't leak when TZ contains two or more '"'s
2608         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2609         double quote in TZ after the first one.
2610
2611         readtokens: do not leak internal token_lengths buffer
2612         * lib/readtokens.c (readtokens): Free the local, lengths,
2613         when the supplied "token_lengths" parameter is NULL.
2614
2615 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2616
2617         Fix a couple of missing LIBTHREAD link failures on AIX.
2618         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2619         $(LIBTHREAD).
2620         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2621
2622         Link test-poll against INET_PTON_LIB.
2623         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2624         for inet_pton on Solaris 10.
2625
2626 2010-01-17  Bruno Haible  <bruno@clisp.org>
2627
2628         unistdio/*-sprintf: Fix typo in module description.
2629         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2630         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2631         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2632         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2633         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2634         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2635         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2637
2638 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2639
2640         gnulib-tool: fix filelist for AIX, HP-UX ksh.
2641         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
2642         variables in shell case patterns, for AIX and HP-UX ksh.
2643
2644         Split large sed scripts, for HP-UX sed.
2645         * modules/stdio: Split sed scripts around 50 sed commands,
2646         to avoid HP-UX limit of 99 commands, in the near future.
2647         * modules/string: Likewise.
2648         * modules/unistd: Likewise.
2649
2650         gnulib-tool: avoid writing in the current directory.
2651         * gnulib-tool (func_emit_lib_Makefile_am)
2652         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
2653         not in the current directory, so concurrent gnulib-tool
2654         instances do not interfere.
2655
2656 2010-01-16  Jim Meyering  <meyering@redhat.com>
2657
2658         doc: update users.txt
2659         * users.txt: Add grep.
2660         (diffutils, gzip): Update URLs.
2661
2662 2010-01-12  Bruno Haible  <bruno@clisp.org>
2663
2664         posix_spawn: Avoid test failure on Cygwin.
2665         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2666         characters.
2667         Reported by Simon Josefsson.
2668
2669 2010-01-12  Bruno Haible  <bruno@clisp.org>
2670
2671         * tests/test-cond.c (main): When skipping the test, show the reason.
2672
2673 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2674
2675         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2676
2677 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2678
2679         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2680         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2681
2682 2010-01-12  Eric Blake  <ebb9@byu.net>
2683
2684         build: guarantee AS_VAR_IF
2685         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2686         (gl_AS_VAR_IF): Move...
2687         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2688         Reported by Simon Josefsson.
2689
2690 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2691
2692         * lib/stdio.in.h: Fix typo.
2693
2694 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2695
2696         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2697         libgpg-error.
2698
2699 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2700
2701         * tests/test-xalloc-die.sh: Use $EXEEXT.
2702
2703 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2704             Bruno Haible  <bruno@clisp.org>
2705
2706         getlogin, getlogin_r: Avoid test failure.
2707         * tests/test-getlogin.c: Include <stdio.h>.
2708         (main): Skip the test when the function fails because stdin is not a
2709         tty.
2710         * tests/test-getlogin_r.c: Include <stdio.h>.
2711         (main): Skip the test when the function fails because stdin is not a
2712         tty.
2713
2714 2010-01-11  Eric Blake  <ebb9@byu.net>
2715
2716         tests: avoid more large file warnings
2717         * tests/test-fflush.c: Avoid warning about ftell use.
2718         * tests/test-fseek.c: Avoid warning about fseek use.
2719
2720 2010-01-10  Bruno Haible  <bruno@clisp.org>
2721
2722         nproc: Work better on Linux when /proc and /sys are not mounted.
2723         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2724         as lower bound when, on glibc/Linux systems,
2725         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2726         Suggested by Pádraig Brady <P@draigbrady.com>.
2727         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2728
2729         nproc: Refactor.
2730         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2731         extracted from num_processors.
2732         (num_processors): Call it.
2733
2734 2010-01-11  Jim Meyering  <meyering@redhat.com>
2735
2736         utimecmp: avoid new warning from upcoming gcc-4.5.0
2737         * lib/utimecmp.c (BILLION): Define using #define rather than an
2738         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2739
2740 2010-01-11  Eric Blake  <ebb9@byu.net>
2741
2742         math: add portability warnings for classification macros
2743         * modules/math (Depends-on): Add warn-on-use.
2744         (Makefile.am): Provide new substitutions.
2745         * m4/math_h.m4 (gl_MATH_H): Require inline.
2746         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2747         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2748         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2749         implement warnings.
2750
2751         unistd: warn on use of environ without module
2752         * modules/unistd (Depends-on): Add warn-on-use.
2753         (Makefile.am): Provide new substitutions.
2754         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2755         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2756
2757         stdio: warn on suspicious uses
2758         * modules/stdio (Depends-on): Add warn-on-use.
2759         (Makefile.am): Provide new substitutions.
2760         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2761         fseeko.
2762         * lib/stdio.in.h (gets): Always warn on use.
2763         (fseek, ftell): Adjust when warnings are issued, and honor
2764         _GL_NO_LARGE_FILES as a way to silence the warning.
2765         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2766         any warning about large file offsets.
2767         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2768         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2769         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2770         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2771         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2772         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2773         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2774         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2775
2776         warn-on-use: new module
2777         * modules/warn-on-use: New file.
2778         * build-aux/warn-on-use.h: Likewise.
2779         * m4/warn-on-use.m4: Likewise.
2780         * MODULES.html.sh (Support for building): Mention it.
2781
2782 2010-01-10  Bruno Haible  <bruno@clisp.org>
2783
2784         Tests for module 'unistr/u32-strdup'.
2785         * modules/unistr/u32-strdup-tests: New file.
2786         * tests/unistr/test-u32-strdup.c: New file.
2787
2788         Tests for module 'unistr/u16-strdup'.
2789         * modules/unistr/u16-strdup-tests: New file.
2790         * tests/unistr/test-u16-strdup.c: New file.
2791
2792         Tests for module 'unistr/u8-strdup'.
2793         * modules/unistr/u8-strdup-tests: New file.
2794         * tests/unistr/test-u8-strdup.c: New file.
2795         * tests/unistr/test-strdup.h: New file.
2796
2797         Tests for module 'unistr/u32-strncmp'.
2798         * modules/unistr/u32-strncmp-tests: New file.
2799         * tests/unistr/test-u32-strncmp.c: New file.
2800
2801         Tests for module 'unistr/u16-strncmp'.
2802         * modules/unistr/u16-strncmp-tests: New file.
2803         * tests/unistr/test-u16-strncmp.c: New file.
2804
2805         Tests for module 'unistr/u8-strncmp'.
2806         * modules/unistr/u8-strncmp-tests: New file.
2807         * tests/unistr/test-u8-strncmp.c: New file.
2808         * tests/unistr/test-strncmp.h: New file.
2809
2810         Tests for module 'unistr/u32-strcoll'.
2811         * modules/unistr/u32-strcoll-tests: New file.
2812         * tests/unistr/test-u32-strcoll.c: New file.
2813
2814         Tests for module 'unistr/u16-strcoll'.
2815         * modules/unistr/u16-strcoll-tests: New file.
2816         * tests/unistr/test-u16-strcoll.c: New file.
2817
2818         Tests for module 'unistr/u8-strcoll'.
2819         * modules/unistr/u8-strcoll-tests: New file.
2820         * tests/unistr/test-u8-strcoll.c: New file.
2821
2822         Tests for module 'unistr/u32-strcmp'.
2823         * modules/unistr/u32-strcmp-tests: New file.
2824         * tests/unistr/test-u32-strcmp.c: New file.
2825         * tests/unistr/test-u32-strcmp.h: New file.
2826
2827         Tests for module 'unistr/u16-strcmp'.
2828         * modules/unistr/u16-strcmp-tests: New file.
2829         * tests/unistr/test-u16-strcmp.c: New file.
2830         * tests/unistr/test-u16-strcmp.h: New file.
2831
2832         Tests for module 'unistr/u8-strcmp'.
2833         * modules/unistr/u8-strcmp-tests: New file.
2834         * tests/unistr/test-u8-strcmp.c: New file.
2835         * tests/unistr/test-u8-strcmp.h: New file.
2836         * tests/unistr/test-strcmp.h: New file.
2837
2838         Tests for module 'unistr/u32-strncat'.
2839         * modules/unistr/u32-strncat-tests: New file.
2840         * tests/unistr/test-u32-strncat.c: New file.
2841
2842         Tests for module 'unistr/u16-strncat'.
2843         * modules/unistr/u16-strncat-tests: New file.
2844         * tests/unistr/test-u16-strncat.c: New file.
2845
2846         Tests for module 'unistr/u8-strncat'.
2847         * modules/unistr/u8-strncat-tests: New file.
2848         * tests/unistr/test-u8-strncat.c: New file.
2849         * tests/unistr/test-strncat.h: New file.
2850
2851         Tests for module 'unistr/u32-strcat'.
2852         * modules/unistr/u32-strcat-tests: New file.
2853         * tests/unistr/test-u32-strcat.c: New file.
2854
2855         Tests for module 'unistr/u16-strcat'.
2856         * modules/unistr/u16-strcat-tests: New file.
2857         * tests/unistr/test-u16-strcat.c: New file.
2858
2859         Tests for module 'unistr/u8-strcat'.
2860         * modules/unistr/u8-strcat-tests: New file.
2861         * tests/unistr/test-u8-strcat.c: New file.
2862         * tests/unistr/test-strcat.h: New file.
2863
2864         Tests for module 'unistr/u32-stpncpy'.
2865         * modules/unistr/u32-stpncpy-tests: New file.
2866         * tests/unistr/test-u32-stpncpy.c: New file.
2867
2868         Tests for module 'unistr/u16-stpncpy'.
2869         * modules/unistr/u16-stpncpy-tests: New file.
2870         * tests/unistr/test-u16-stpncpy.c: New file.
2871
2872         Tests for module 'unistr/u8-stpncpy'.
2873         * modules/unistr/u8-stpncpy-tests: New file.
2874         * tests/unistr/test-u8-stpncpy.c: New file.
2875         * tests/unistr/test-stpncpy.h: New file.
2876
2877         Tests for module 'unistr/u32-strncpy'.
2878         * modules/unistr/u32-strncpy-tests: New file.
2879         * tests/unistr/test-u32-strncpy.c: New file.
2880
2881         Tests for module 'unistr/u16-strncpy'.
2882         * modules/unistr/u16-strncpy-tests: New file.
2883         * tests/unistr/test-u16-strncpy.c: New file.
2884
2885         Tests for module 'unistr/u8-strncpy'.
2886         * modules/unistr/u8-strncpy-tests: New file.
2887         * tests/unistr/test-u8-strncpy.c: New file.
2888         * tests/unistr/test-strncpy.h: New file.
2889
2890         Tests for module 'unistr/u32-stpcpy'.
2891         * modules/unistr/u32-stpcpy-tests: New file.
2892         * tests/unistr/test-u32-stpcpy.c: New file.
2893
2894         Tests for module 'unistr/u16-stpcpy'.
2895         * modules/unistr/u16-stpcpy-tests: New file.
2896         * tests/unistr/test-u16-stpcpy.c: New file.
2897
2898         Tests for module 'unistr/u8-stpcpy'.
2899         * modules/unistr/u8-stpcpy-tests: New file.
2900         * tests/unistr/test-u8-stpcpy.c: New file.
2901         * tests/unistr/test-stpcpy.h: New file.
2902
2903         Tests for module 'unistr/u32-strcpy'.
2904         * modules/unistr/u32-strcpy-tests: New file.
2905         * tests/unistr/test-u32-strcpy.c: New file.
2906
2907         Tests for module 'unistr/u16-strcpy'.
2908         * modules/unistr/u16-strcpy-tests: New file.
2909         * tests/unistr/test-u16-strcpy.c: New file.
2910
2911         Tests for module 'unistr/u8-strcpy'.
2912         * modules/unistr/u8-strcpy-tests: New file.
2913         * tests/unistr/test-u8-strcpy.c: New file.
2914         * tests/unistr/test-strcpy.h: New file.
2915
2916         Tests for module 'unistr/u32-strnlen'.
2917         * modules/unistr/u32-strnlen-tests: New file.
2918         * tests/unistr/test-u32-strnlen.c: New file.
2919
2920         Tests for module 'unistr/u16-strnlen'.
2921         * modules/unistr/u16-strnlen-tests: New file.
2922         * tests/unistr/test-u16-strnlen.c: New file.
2923
2924         Tests for module 'unistr/u8-strnlen'.
2925         * modules/unistr/u8-strnlen-tests: New file.
2926         * tests/unistr/test-u8-strnlen.c: New file.
2927         * tests/unistr/test-strnlen.h: New file.
2928
2929         Tests for module 'unistr/u32-strlen'.
2930         * modules/unistr/u32-strlen-tests: New file.
2931         * tests/unistr/test-u32-strlen.c: New file.
2932
2933         Tests for module 'unistr/u16-strlen'.
2934         * modules/unistr/u16-strlen-tests: New file.
2935         * tests/unistr/test-u16-strlen.c: New file.
2936
2937         Tests for module 'unistr/u8-strlen'.
2938         * modules/unistr/u8-strlen-tests: New file.
2939         * tests/unistr/test-u8-strlen.c: New file.
2940
2941         Tests for module 'unistr/u32-prev'.
2942         * modules/unistr/u32-prev-tests: New file.
2943         * tests/unistr/test-u32-prev.c: New file.
2944
2945         Tests for module 'unistr/u16-prev'.
2946         * modules/unistr/u16-prev-tests: New file.
2947         * tests/unistr/test-u16-prev.c: New file.
2948
2949         Tests for module 'unistr/u8-prev'.
2950         * modules/unistr/u8-prev-tests: New file.
2951         * tests/unistr/test-u8-prev.c: New file.
2952
2953         Tests for module 'unistr/u32-next'.
2954         * modules/unistr/u32-next-tests: New file.
2955         * tests/unistr/test-u32-next.c: New file.
2956
2957         Tests for module 'unistr/u16-next'.
2958         * modules/unistr/u16-next-tests: New file.
2959         * tests/unistr/test-u16-next.c: New file.
2960
2961         Tests for module 'unistr/u8-next'.
2962         * modules/unistr/u8-next-tests: New file.
2963         * tests/unistr/test-u8-next.c: New file.
2964
2965         Tests for module 'unistr/u32-strmbtouc'.
2966         * modules/unistr/u32-strmbtouc-tests: New file.
2967         * tests/unistr/test-u32-strmbtouc.c: New file.
2968
2969         Tests for module 'unistr/u16-strmbtouc'.
2970         * modules/unistr/u16-strmbtouc-tests: New file.
2971         * tests/unistr/test-u16-strmbtouc.c: New file.
2972
2973         Tests for module 'unistr/u8-strmbtouc'.
2974         * modules/unistr/u8-strmbtouc-tests: New file.
2975         * tests/unistr/test-u8-strmbtouc.c: New file.
2976
2977         Tests for module 'unistr/u32-strmblen'.
2978         * modules/unistr/u32-strmblen-tests: New file.
2979         * tests/unistr/test-u32-strmblen.c: New file.
2980
2981         Tests for module 'unistr/u16-strmblen'.
2982         * modules/unistr/u16-strmblen-tests: New file.
2983         * tests/unistr/test-u16-strmblen.c: New file.
2984
2985         Tests for module 'unistr/u8-strmblen'.
2986         * modules/unistr/u8-strmblen-tests: New file.
2987         * tests/unistr/test-u8-strmblen.c: New file.
2988
2989         Tests for module 'unistr/u32-cpy-alloc'.
2990         * modules/unistr/u32-cpy-alloc-tests: New file.
2991         * tests/unistr/test-u32-cpy-alloc.c: New file.
2992
2993         Tests for module 'unistr/u16-cpy-alloc'.
2994         * modules/unistr/u16-cpy-alloc-tests: New file.
2995         * tests/unistr/test-u16-cpy-alloc.c: New file.
2996
2997         Tests for module 'unistr/u8-cpy-alloc'.
2998         * modules/unistr/u8-cpy-alloc-tests: New file.
2999         * tests/unistr/test-u8-cpy-alloc.c: New file.
3000         * tests/unistr/test-cpy-alloc.h: New file.
3001
3002         Tests for module 'unistr/u32-mbsnlen'.
3003         * modules/unistr/u32-mbsnlen-tests: New file.
3004         * tests/unistr/test-u32-mbsnlen.c: New file.
3005
3006         Tests for module 'unistr/u16-mbsnlen'.
3007         * modules/unistr/u16-mbsnlen-tests: New file.
3008         * tests/unistr/test-u16-mbsnlen.c: New file.
3009
3010         Tests for module 'unistr/u8-mbsnlen'.
3011         * modules/unistr/u8-mbsnlen-tests: New file.
3012         * tests/unistr/test-u8-mbsnlen.c: New file.
3013
3014         Tests for module 'unistr/u32-chr'.
3015         * modules/unistr/u32-chr-tests: New file.
3016         * tests/unistr/test-u32-chr.c: New file.
3017
3018         Tests for module 'unistr/u16-chr'.
3019         * modules/unistr/u16-chr-tests: New file.
3020         * tests/unistr/test-u16-chr.c: New file.
3021
3022         Tests for module 'unistr/u8-chr'.
3023         * modules/unistr/u8-chr-tests: New file.
3024         * tests/unistr/test-u8-chr.c: New file.
3025         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3026
3027         Tests for module 'unistr/u32-cmp2'.
3028         * modules/unistr/u32-cmp2-tests: New file.
3029         * tests/unistr/test-u32-cmp2.c: New file.
3030
3031         Tests for module 'unistr/u16-cmp2'.
3032         * modules/unistr/u16-cmp2-tests: New file.
3033         * tests/unistr/test-u16-cmp2.c: New file.
3034
3035         Tests for module 'unistr/u8-cmp2'.
3036         * modules/unistr/u8-cmp2-tests: New file.
3037         * tests/unistr/test-u8-cmp2.c: New file.
3038         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3039
3040         Tests for module 'unistr/u32-cmp'.
3041         * modules/unistr/u32-cmp-tests: New file.
3042         * tests/unistr/test-u32-cmp.c: New file.
3043
3044         Tests for module 'unistr/u16-cmp'.
3045         * modules/unistr/u16-cmp-tests: New file.
3046         * tests/unistr/test-u16-cmp.c: New file.
3047
3048         Tests for module 'unistr/u8-cmp'.
3049         * modules/unistr/u8-cmp-tests: New file.
3050         * tests/unistr/test-u8-cmp.c: New file.
3051         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3052
3053         Tests for module 'unistr/u32-set'.
3054         * modules/unistr/u32-set-tests: New file.
3055         * tests/unistr/test-u32-set.c: New file.
3056
3057         Tests for module 'unistr/u16-set'.
3058         * modules/unistr/u16-set-tests: New file.
3059         * tests/unistr/test-u16-set.c: New file.
3060
3061         Tests for module 'unistr/u8-set'.
3062         * modules/unistr/u8-set-tests: New file.
3063         * tests/unistr/test-u8-set.c: New file.
3064         * tests/unistr/test-set.h: New file.
3065
3066         Tests for module 'unistr/u32-move'.
3067         * modules/unistr/u32-move-tests: New file.
3068         * tests/unistr/test-u32-move.c: New file.
3069
3070         Tests for module 'unistr/u16-move'.
3071         * modules/unistr/u16-move-tests: New file.
3072         * tests/unistr/test-u16-move.c: New file.
3073
3074         Tests for module 'unistr/u8-move'.
3075         * modules/unistr/u8-move-tests: New file.
3076         * tests/unistr/test-u8-move.c: New file.
3077         * tests/unistr/test-move.h: New file.
3078
3079         Tests for module 'unistr/u32-cpy'.
3080         * modules/unistr/u32-cpy-tests: New file.
3081         * tests/unistr/test-u32-cpy.c: New file.
3082
3083         Tests for module 'unistr/u16-cpy'.
3084         * modules/unistr/u16-cpy-tests: New file.
3085         * tests/unistr/test-u16-cpy.c: New file.
3086
3087         Tests for module 'unistr/u8-cpy'.
3088         * modules/unistr/u8-cpy-tests: New file.
3089         * tests/unistr/test-u8-cpy.c: New file.
3090         * tests/unistr/test-cpy.h: New file.
3091
3092 2010-01-09  Bruno Haible  <bruno@clisp.org>
3093
3094         Tests for module 'unistr/u32-uctomb'.
3095         * modules/unistr/u32-uctomb-tests: New file.
3096         * tests/unistr/test-u32-uctomb.c: New file.
3097
3098         Tests for module 'unistr/u16-uctomb'.
3099         * modules/unistr/u16-uctomb-tests: New file.
3100         * tests/unistr/test-u16-uctomb.c: New file.
3101
3102         Tests for module 'unistr/u8-uctomb'.
3103         * modules/unistr/u8-uctomb-tests: New file.
3104         * tests/unistr/test-u8-uctomb.c: New file.
3105
3106         Tests for module 'unistr/u32-mbtoucr'.
3107         * modules/unistr/u32-mbtoucr-tests: New file.
3108         * tests/unistr/test-u32-mbtoucr.c: New file.
3109
3110         Tests for module 'unistr/u16-mbtoucr'.
3111         * modules/unistr/u16-mbtoucr-tests: New file.
3112         * tests/unistr/test-u16-mbtoucr.c: New file.
3113
3114         Tests for module 'unistr/u8-mbtoucr'.
3115         * modules/unistr/u8-mbtoucr-tests: New file.
3116         * tests/unistr/test-u8-mbtoucr.c: New file.
3117
3118         Tests for module 'unistr/u32-mbtouc'.
3119         * modules/unistr/u32-mbtouc-tests: New file.
3120         * tests/unistr/test-u32-mbtouc.c: New file.
3121
3122         Tests for module 'unistr/u16-mbtouc'.
3123         * modules/unistr/u16-mbtouc-tests: New file.
3124         * tests/unistr/test-u16-mbtouc.c: New file.
3125
3126         Tests for module 'unistr/u8-mbtouc'.
3127         * modules/unistr/u8-mbtouc-tests: New file.
3128         * tests/unistr/test-u8-mbtouc.c: New file.
3129
3130         Tests for module 'unistr/u32-mbtouc-unsafe'.
3131         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3132         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3133         * tests/unistr/test-u32-mbtouc.h: New file.
3134
3135         Tests for module 'unistr/u16-mbtouc-unsafe'.
3136         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3137         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3138         * tests/unistr/test-u16-mbtouc.h: New file.
3139
3140         Tests for module 'unistr/u8-mbtouc-unsafe'.
3141         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3142         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3143         * tests/unistr/test-u8-mbtouc.h: New file.
3144
3145         Tests for module 'unistr/u32-mblen'.
3146         * modules/unistr/u32-mblen-tests: New file.
3147         * tests/unistr/test-u32-mblen.c: New file.
3148
3149         Tests for module 'unistr/u16-mblen'.
3150         * modules/unistr/u16-mblen-tests: New file.
3151         * tests/unistr/test-u16-mblen.c: New file.
3152
3153         Tests for module 'unistr/u8-mblen'.
3154         * modules/unistr/u8-mblen-tests: New file.
3155         * tests/unistr/test-u8-mblen.c: New file.
3156
3157         Tests for module 'unistr/u32-to-u16'.
3158         * modules/unistr/u32-to-u16-tests: New file.
3159         * tests/unistr/test-u32-to-u16.c: New file.
3160
3161         Tests for module 'unistr/u32-to-u8'.
3162         * modules/unistr/u32-to-u8-tests: New file.
3163         * tests/unistr/test-u32-to-u8.c: New file.
3164
3165         Tests for module 'unistr/u16-to-u32'.
3166         * modules/unistr/u16-to-u32-tests: New file.
3167         * tests/unistr/test-u16-to-u32.c: New file.
3168
3169         Tests for module 'unistr/u16-to-u8'.
3170         * modules/unistr/u16-to-u8-tests: New file.
3171         * tests/unistr/test-u16-to-u8.c: New file.
3172
3173         Tests for module 'unistr/u8-to-u32'.
3174         * modules/unistr/u8-to-u32-tests: New file.
3175         * tests/unistr/test-u8-to-u32.c: New file.
3176
3177         Tests for module 'unistr/u8-to-u16'.
3178         * modules/unistr/u8-to-u16-tests: New file.
3179         * tests/unistr/test-u8-to-u16.c: New file.
3180
3181         Tests for module 'unistr/u32-check'.
3182         * modules/unistr/u32-check-tests: New file.
3183         * tests/unistr/test-u32-check.c: New file.
3184
3185         Tests for module 'unistr/u16-check'.
3186         * modules/unistr/u16-check-tests: New file.
3187         * tests/unistr/test-u16-check.c: New file.
3188
3189         Tests for module 'unistr/u8-check'.
3190         * modules/unistr/u8-check-tests: New file.
3191         * tests/unistr/test-u8-check.c: New file.
3192
3193         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3194         (category_equals): New function.
3195         (main): Add more tests.
3196         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3197
3198         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3199
3200 2010-01-10  Bruno Haible  <bruno@clisp.org>
3201
3202         unistr/u*-strcoll: Try harder to distinguish different strings.
3203         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3204         compare s1 and s2 to see if they are different.
3205
3206 2010-01-10  Bruno Haible  <bruno@clisp.org>
3207
3208         unistr/u*-stpncpy: Fix the return value.
3209         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3210         description of the return value consistent with stpncpy in glibc.
3211         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3212         written non-NUL unit.
3213
3214 2010-01-10  Bruno Haible  <bruno@clisp.org>
3215
3216         unistr/u*-next: Add missing dependencies.
3217         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3218         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3219         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3220
3221 2010-01-10  Bruno Haible  <bruno@clisp.org>
3222
3223         unistr/u8-mbsnlen: Fix return value for incomplete character.
3224         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3225         u8_mblen.
3226         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3227         Remove unistr/u8-mblen.
3228         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3229         u16_mblen.
3230         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3231         Remove unistr/u16-mblen.
3232
3233 2010-01-10  Bruno Haible  <bruno@clisp.org>
3234
3235         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3236         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3237         Reported by Brian Gough <bjg@gnu.org> and
3238         Chris Clayton <chris2553@googlemail.com> via
3239         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3240
3241 2010-01-09  Bruno Haible  <bruno@clisp.org>
3242
3243         unistr/u16-to-u32: Reject invalid input.
3244         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3245         u16_mbtouc.
3246         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3247         Remove unistr/u16-mbtouc.
3248
3249         unistr/u16-to-u8: Reject invalid input.
3250         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3251         u16_mbtouc.
3252         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3253         Remove unistr/u16-mbtouc.
3254
3255         unistr/u8-to-u32: Reject invalid input.
3256         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3257         u8_mbtouc.
3258         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3259         Remove unistr/u8-mbtouc.
3260
3261         unistr/u8-to-u16: Reject invalid input.
3262         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3263         u8_mbtouc.
3264         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3265         Remove unistr/u8-mbtouc.
3266
3267 2010-01-09  Bruno Haible  <bruno@clisp.org>
3268
3269         Tests for module 'getlogin'.
3270         * modules/getlogin-tests: New file.
3271         * tests/test-getlogin.c: New file.
3272
3273         New module 'getlogin'.
3274         * lib/unistd.in.h (getlogin): New declaration.
3275         * lib/getlogin.c: New file.
3276         * m4/getlogin.m4: New file.
3277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3278         HAVE_GETLOGIN.
3279         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3280         HAVE_GETLOGIN.
3281         * modules/getlogin: New file.
3282         * doc/posix-functions/getlogin.texi: Mention the new module.
3283         Reported by John W. Eaton <jwe@gnu.org>.
3284
3285 2010-01-09  Bruno Haible  <bruno@clisp.org>
3286
3287         getlogin_r: Support for native Windows.
3288         * lib/getlogin_r.c: Include <windows.h>
3289         (getlogin_r): Implement for native Windows.
3290         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3291         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3292         via John W. Eaton <jwe@gnu.org>.
3293
3294 2010-01-09  Bruno Haible  <bruno@clisp.org>
3295
3296         getlogin_r: Small fixes.
3297         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3298         succeeds.
3299         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3300         before testing whether getlogin_r is declared. No need to set
3301         HAVE_DECL_GETLOGIN_R to 1.
3302         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3303
3304 2010-01-09  Bruno Haible  <bruno@clisp.org>
3305
3306         * lib/unistd.in.h (getlogin_r): Add comment.
3307
3308 2010-01-09  Bruno Haible  <bruno@clisp.org>
3309
3310         Tests for module 'getlogin_r'.
3311         * modules/getlogin_r-tests: New file.
3312         * tests/test-getlogin_r.c: New file.
3313
3314 2010-01-09  Jim Meyering  <meyering@redhat.com>
3315
3316         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3317         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3318         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3319
3320 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3321
3322         * lib/dup2.c (rpl_dup2): Improve comment.
3323
3324 2010-01-08  Eric Blake  <ebb9@byu.net>
3325
3326         maint.mk: allow packages to add makefile @@ exceptions
3327         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3328         (sc_makefile_check): Rename...
3329         (sc_makefile_at_at_check): ...to this, and use hook.
3330
3331         dup2: work around mingw bug
3332         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3333         Reported by Simon Josefsson.
3334
3335 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3336
3337         glob: Fix C++ compilation.
3338         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3339         C++.
3340
3341 2010-01-07  Bruno Haible  <bruno@clisp.org>
3342
3343         Fix indentation of wctype.in.h, broken since 2007-01-06.
3344         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3345
3346 2010-01-07  Bruno Haible  <bruno@clisp.org>
3347
3348         mbslen: Avoid collision with system function.
3349         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3350         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3351         * m4/mbslen.m4: New file.
3352         * modules/mbslen (Files): Add it.
3353         (configure.ac): Invoke gl_MBSLEN.
3354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3355         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3356         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3357         via Ian Beckwith <ianb@erislabs.net>.
3358
3359 2010-01-07  Bruno Haible  <bruno@clisp.org>
3360
3361         dirent: Document the last fix.
3362         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3363
3364 2010-01-07  Bruno Haible  <bruno@clisp.org>
3365
3366         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3367         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3368         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3369         va_list are defined.
3370         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3371         Reported by Eric Blake.
3372
3373 2010-01-07  Bruno Haible  <bruno@clisp.org>
3374
3375         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3376         * modules/xlist (Depends-on): Add 'list',
3377         * modules/xoset (Depends-on): Add 'oset'.
3378         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3379
3380 2010-01-07  Bruno Haible  <bruno@clisp.org>
3381
3382         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3383         * doc/posix-functions/strncasecmp.texi: Likewise.
3384
3385 2010-01-07  Bruno Haible  <bruno@clisp.org>
3386
3387         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3388
3389 2010-01-07  John W. Eaton  <jwe@octave.org>
3390
3391         wctype: allow C++ use
3392         * lib/wctype.in.h: Add extern "C" block for C++.
3393
3394 2010-01-06  Eric Blake  <ebb9@byu.net>
3395
3396         maint.mk: detect incorrect GFDL usage
3397         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3398
3399 2010-01-06  Jim Meyering  <meyering@redhat.com>
3400         and Eric Blake  <ebb9@byu.net>
3401
3402         maint.mk: ignore multi-line copyright in NEWS
3403         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3404
3405 2010-01-06  Eric Blake  <ebb9@byu.net>
3406
3407         select: add missing dependency
3408         * modules/select-tests (Depends-on): Move sockets dependency...
3409         * modules/select (Depends-on): ...here.
3410         Reported by Ian Beckwith.
3411
3412         doc: regenerate INSTALL
3413         * doc/INSTALL: Reflect recent autoconf update.
3414         * doc/INSTALL.ISO: Likewise.
3415         * doc/INSTALL.UTF-8: Likewise.
3416
3417         pread: fix compilation on glibc
3418         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3419         Reported by Ralf Wildenhues.
3420
3421         dirent: fix test failure
3422         * lib/dirent.in.h (includes): Guarantee ino_t.
3423         Reported by Ralf Wildenhues.
3424
3425 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3426
3427         linkat, renameat: avoid bad free
3428         * lib/at-func2.c (at_func2): Fix typo.
3429         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3430
3431 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3432
3433         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3434         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3435         to avoid failure of symlink test later.
3436
3437 2010-01-06  Eric Blake  <ebb9@byu.net>
3438
3439         stdio, unistd: guarantee ssize_t
3440         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3441         2008 are exposed when needed.
3442         * lib/stdio.in.h (includes): Likewise.
3443         Reported by Ralf Wildenhues.
3444
3445 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3446
3447         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3448         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3449         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3450
3451 2010-01-06  Jim Meyering  <meyering@redhat.com>
3452
3453         readtokens: this module *does* require xalloc.h
3454         It uses only functions that were omitted by the old syntax-check rule.
3455         * lib/readtokens.c: Include "xalloc.h" once again.
3456         * modules/readtokens (Depends-on): Add xalloc.
3457         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3458
3459 2010-01-05  Eric Blake  <ebb9@byu.net>
3460
3461         maint: support 'make announcement' from a VPATH build
3462         * top/maint.mk (announcement): Look for correct NEWS file.
3463
3464 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3465
3466         utimens (fdutimens): ignore a negative FD, per contract
3467         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3468         when we have a valid file descriptor.  Otherwise, using a brand
3469         new glibc (with just-patched futimens that now fails with EBADF)
3470         would cause this function to fail with ENOSYS.
3471         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3472         See also http://bugzilla.redhat.com/552320.
3473
3474 2010-01-05  Eric Blake  <ebb9@byu.net>
3475
3476         strcase: document what it provides
3477         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3478         gnulib module.
3479         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3480         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3481
3482 2010-01-05  Jim Meyering  <meyering@redhat.com>
3483
3484         maint: remove useless inclusions of "xalloc.h"
3485         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3486         * lib/readtokens.c: Likewise.
3487         * lib/same.c: Likewise.
3488         * modules/getloadavg (Depends-on): Remove xalloc.
3489         * modules/readtokens: Likewise.
3490         * modules/same: Likewise.
3491
3492         maint.mk: include 4 more function names in alloca.h-checking regexp
3493         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3494         regexp.  Before, we would give a false-positive (saying alloca.h
3495         is included unnecessarily) when the only uses involved omitted symbols.
3496
3497         xalloc.h: use consistent formatting
3498         * lib/xalloc.h: Move declarations to start in the first column.
3499
3500 2010-01-05  Eric Blake  <ebb9@byu.net>
3501
3502         mkdir: avoid xalloc
3503         * lib/mkdir.c (includes): Drop unused header.
3504         Reported by John W. Eaton.
3505
3506 2010-01-04  Jim Meyering  <meyering@redhat.com>
3507
3508         nl_langinfo: avoid configure-time syntax error
3509         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3510         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3511         the empty string.  Don't let that provoke a shell syntax error.
3512
3513         regcomp, regexec, fnmatch: avoid array bounds read error
3514         * lib/regcomp.c (build_equiv_class): From glibc:
3515         Use only the low 24 bits of a findidx return value as an index
3516         into the weights array.  Patch by Ulrich Drepper:
3517         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3518         * lib/regexec.c (check_node_accept_bytes): Likewise.
3519         * lib/fnmatch_loop.c (FCT): Likewise.
3520
3521         regcomp: skip collseq lookup when there are no rules
3522         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3523         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3524
3525         regcomp: recognize ill-formed { } expressions
3526         * lib/regcomp.c (parse_dup_op): From glibc:
3527         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3528
3529         regcomp: fix typo in comment
3530         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3531         s/satisfy/satisfies/.
3532
3533         regcomp: sync from glibc: remove dead store
3534         * lib/regcomp.c (duplicate_node_closure): Remove useless
3535         search_duplicated_node call and dead store.
3536
3537         regcomp: sync from glibc; always use nl_langinfo
3538         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3539         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3540         * modules/regex (Depends-on): Add nl_langinfo.
3541
3542 2010-01-04  Eric Blake  <ebb9@byu.net>
3543
3544         fdopendir: fix configure test
3545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3546
3547 2010-01-01  Bruno Haible  <bruno@clisp.org>
3548
3549         wchar: Remove unused configure check.
3550         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3551
3552 2010-01-01  Eric Blake  <ebb9@byu.net>
3553
3554         headers: make check of system header explicit
3555         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3556         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3557         ourselves.
3558         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3559         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3560         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3561         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3562         internals.
3563         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3564         missing.
3565         Suggested by Bruno Haible.
3566
3567 2010-01-01  Jim Meyering  <meyering@redhat.com>
3568
3569         ChangeLog: tweak to eliminate unnecessary copyright line
3570         * ChangeLog: Remove a copyright line that was mistakenly updated
3571         by today's update-copyright run.  Reported by Eric Blake.
3572
3573         test-update-copyright: don't let envvar setting cause test failure
3574         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3575
3576 2010-01-01  Bruno Haible  <bruno@clisp.org>
3577
3578         localename: Avoid gcc warning.
3579         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3580         function if it is not used.
3581
3582 2010-01-01  Jim Meyering  <meyering@redhat.com>
3583
3584         update nearly all FSF copyright year lists to include 2010
3585         Use the same procedure as for 2009, outlined in
3586         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3587
3588         version-etc: set COPYRIGHT_YEAR to 2010
3589         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3590
3591 2009-12-31  Eric Blake  <ebb9@byu.net>
3592
3593         doc: correct availability of cygwin 1.5.x getopt
3594         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3595         variables.
3596         * doc/posix-functions/opterr.texi (opterr): Likewise.
3597         * doc/posix-functions/optind.texi (optind): Likewise.
3598         * doc/posix-functions/optopt.texi (optopt): Likewise.
3599         * doc/posix-functions/tzname.texi (tzname): Likewise.
3600
3601         openat: update maintainer
3602         * modules/openat (Maintainer): Add myself.
3603
3604         utimens: avoid shadowing warning
3605         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3606         buffers into one, to avoid shadowing, as well as avoiding a
3607         redundant stat.
3608         Reported by Jim Meyering.
3609
3610         test-dup2: avoid compiler warning
3611         * tests/test-dup2.c (is_inheritable): Only define if used.
3612
3613 2010-01-01  Bruno Haible  <bruno@clisp.org>
3614
3615         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3616         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3617         defined, use wctomb instead of wcrtomb.
3618
3619 2010-01-01  Bruno Haible  <bruno@clisp.org>
3620
3621         iconv: Reject native Solaris iconv.
3622         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3623         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3624
3625 2009-12-31  Bruno Haible  <bruno@clisp.org>
3626
3627         * tests/test-signal.c (main): Remove test of 'SIG'.
3628
3629 2009-12-31  Bruno Haible  <bruno@clisp.org>
3630
3631         spawn: Fix incomplete fix.
3632         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3633         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3634         warnings for GNULIB_POSIXCHECK again.
3635         Reported by Eric Blake.
3636
3637 2009-12-31  Bruno Haible  <bruno@clisp.org>
3638
3639         Avoid namespace pollution on glibc systems.
3640         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
3641         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
3642         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
3643         glibc systems.
3644
3645 2009-12-31  Bruno Haible  <bruno@clisp.org>
3646
3647         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
3648         (gl_REPLACE_WCHAR_H): Turn into a no-op.
3649         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
3650         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3651         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3652         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3653         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3654
3655 2009-12-31  Bruno Haible  <bruno@clisp.org>
3656
3657         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3658         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3659         afterwards.
3660
3661 2009-12-31  Bruno Haible  <bruno@clisp.org>
3662
3663         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3664         SYS_UTSNAME_H.
3665
3666 2009-12-31  Bruno Haible  <bruno@clisp.org>
3667
3668         spawn: Fix misapplied patch.
3669         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3670         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3671         warnings for GNULIB_POSIXCHECK.
3672
3673 2009-12-31  Bruno Haible  <bruno@clisp.org>
3674
3675         times: Update after sys_times changed.
3676         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3677         * modules/times (Files): Add it.
3678         (configure.ac): Invoke gl_FUNC_TIMES.
3679
3680 2009-12-31  Bruno Haible  <bruno@clisp.org>
3681
3682         Use AC_C_INLINE where necessary.
3683         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3685         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3686         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3687         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3688         * m4/mbiter.m4 (gl_MBITER): Likewise.
3689         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3690         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3691         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3692         * modules/u64 (configure.ac): Likewise.
3693
3694 2009-12-31  Bruno Haible  <bruno@clisp.org>
3695
3696         Use AC_C_INLINE instead of module 'inline' where possible.
3697         * modules/inline (Description): Clarify purpose.
3698         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3699         * modules/count-one-bits (Depends-on): Remove inline.
3700         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3701         * modules/openat (Depends-on): Remove inline.
3702         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3703         instead of depending on module 'inline'.
3704         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3705         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3706         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3707         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3708         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3709         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3710         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3711         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3712         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3713         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3714         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3715         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3716         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3717         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3718         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3719         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3720         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3721         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3722         Likewise.
3723         * modules/unictype/property-ascii-hex-digit (Depends-on,
3724         configure.ac): Likewise.
3725         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3726         configure.ac): Likewise.
3727         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3728         configure.ac): Likewise.
3729         * modules/unictype/property-bidi-block-separator (Depends-on,
3730         configure.ac): Likewise.
3731         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3732         configure.ac): Likewise.
3733         * modules/unictype/property-bidi-common-separator (Depends-on,
3734         configure.ac): Likewise.
3735         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3736         Likewise.
3737         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3738         configure.ac): Likewise.
3739         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3740         configure.ac): Likewise.
3741         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3742         configure.ac): Likewise.
3743         * modules/unictype/property-bidi-european-digit (Depends-on,
3744         configure.ac): Likewise.
3745         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3746         configure.ac): Likewise.
3747         * modules/unictype/property-bidi-left-to-right (Depends-on,
3748         configure.ac): Likewise.
3749         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3750         configure.ac): Likewise.
3751         * modules/unictype/property-bidi-other-neutral (Depends-on,
3752         configure.ac): Likewise.
3753         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3754         Likewise.
3755         * modules/unictype/property-bidi-segment-separator (Depends-on,
3756         configure.ac): Likewise.
3757         * modules/unictype/property-bidi-whitespace (Depends-on,
3758         configure.ac): Likewise.
3759         * modules/unictype/property-combining (Depends-on, configure.ac):
3760         Likewise.
3761         * modules/unictype/property-composite (Depends-on, configure.ac):
3762         Likewise.
3763         * modules/unictype/property-currency-symbol (Depends-on,
3764         configure.ac): Likewise.
3765         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3766         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3767         Likewise.
3768         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3769         configure.ac): Likewise.
3770         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3771         Likewise.
3772         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3773         Likewise.
3774         * modules/unictype/property-extender (Depends-on, configure.ac):
3775         Likewise.
3776         * modules/unictype/property-format-control (Depends-on, configure.ac):
3777         Likewise.
3778         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3779         Likewise.
3780         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3781         Likewise.
3782         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3783         Likewise.
3784         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3785         Likewise.
3786         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3787         Likewise.
3788         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3789         Likewise.
3790         * modules/unictype/property-id-start (Depends-on, configure.ac):
3791         Likewise.
3792         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3793         Likewise.
3794         * modules/unictype/property-ids-binary-operator (Depends-on,
3795         configure.ac): Likewise.
3796         * modules/unictype/property-ids-trinary-operator (Depends-on,
3797         configure.ac): Likewise.
3798         * modules/unictype/property-ignorable-control (Depends-on,
3799         configure.ac): Likewise.
3800         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3801         Likewise.
3802         * modules/unictype/property-join-control (Depends-on, configure.ac):
3803         Likewise.
3804         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3805         Likewise.
3806         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3807         Likewise.
3808         * modules/unictype/property-logical-order-exception (Depends-on,
3809         configure.ac): Likewise.
3810         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3811         Likewise.
3812         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3813         * modules/unictype/property-non-break (Depends-on, configure.ac):
3814         Likewise.
3815         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3816         Likewise.
3817         * modules/unictype/property-numeric (Depends-on, configure.ac):
3818         Likewise.
3819         * modules/unictype/property-other-alphabetic (Depends-on,
3820         configure.ac): Likewise.
3821         * modules/unictype/property-other-default-ignorable-code-point
3822         (Depends-on, configure.ac): Likewise.
3823         * modules/unictype/property-other-grapheme-extend (Depends-on,
3824         configure.ac): Likewise.
3825         * modules/unictype/property-other-id-continue (Depends-on,
3826         configure.ac): Likewise.
3827         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3828         Likewise.
3829         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3830         Likewise.
3831         * modules/unictype/property-other-math (Depends-on, configure.ac):
3832         Likewise.
3833         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3834         Likewise.
3835         * modules/unictype/property-paired-punctuation (Depends-on,
3836         configure.ac): Likewise.
3837         * modules/unictype/property-paragraph-separator (Depends-on,
3838         configure.ac): Likewise.
3839         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3840         Likewise.
3841         * modules/unictype/property-pattern-white-space (Depends-on,
3842         configure.ac): Likewise.
3843         * modules/unictype/property-private-use (Depends-on, configure.ac):
3844         Likewise.
3845         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3846         Likewise.
3847         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3848         Likewise.
3849         * modules/unictype/property-radical (Depends-on, configure.ac):
3850         Likewise.
3851         * modules/unictype/property-sentence-terminal (Depends-on,
3852         configure.ac): Likewise.
3853         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3854         Likewise.
3855         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3856         * modules/unictype/property-terminal-punctuation (Depends-on,
3857         configure.ac): Likewise.
3858         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3859         Likewise.
3860         * modules/unictype/property-unassigned-code-value (Depends-on,
3861         configure.ac): Likewise.
3862         * modules/unictype/property-unified-ideograph (Depends-on,
3863         configure.ac): Likewise.
3864         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3865         Likewise.
3866         * modules/unictype/property-variation-selector (Depends-on,
3867         configure.ac): Likewise.
3868         * modules/unictype/property-white-space (Depends-on, configure.ac):
3869         Likewise.
3870         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3871         Likewise.
3872         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3873         Likewise.
3874         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3875         Likewise.
3876         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3877         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3878         Likewise.
3879
3880 2009-12-31  Bruno Haible  <bruno@clisp.org>
3881
3882         Remove unnecessary AC_C_INLINE invocation.
3883         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3884         since 2009-08-21.
3885
3886 2009-12-31  Jim Meyering  <meyering@redhat.com>
3887
3888         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3889         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3890         With this change, we can all remove the gpg_key_ID = ... definition
3891         from our respective cfg.mk files.
3892
3893         maint.mk: create announcement template in ~/, not in /tmp
3894         * top/maint.mk (emit_upload_commands): Adjust.
3895         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3896         Remove temporary file, .ci-msg.
3897
3898 2009-12-31  Eric Blake  <ebb9@byu.net>
3899
3900         link-warning: always build headers with link warnings
3901         * modules/arpa_inet (Makefile.am): Always build replacement
3902         header.
3903         * modules/ctype (Makefile.am): Likewise.
3904         * modules/dirent (Makefile.am): Likewise.
3905         * modules/inttypes (Makefile.am): Likewise.
3906         * modules/langinfo (Makefile.am): Likewise.
3907         * modules/locale (Makefile.am): Likewise.
3908         * modules/spawn (Makefile.am): Likewise.
3909         * modules/sys_file (Makefile.am): Likewise.
3910         * modules/sys_ioctl (Makefile.am): Likewise.
3911         * modules/sys_select (Makefile.am): Likewise.
3912         * modules/sys_socket (Makefile.am): Likewise.
3913         * modules/sys_times (Makefile.am): Likewise.
3914         * modules/sys_utsname (Makefile.am): Likewise.
3915         * modules/sys_wait (Makefile.am): Likewise.
3916         * modules/wchar (Makefile.am): Likewise.
3917         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3918         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3919         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3920         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3921         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3922         Likewise.
3923         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3924         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3925         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3926         Likewise.
3927         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3928         Likewise.
3929         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3930         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3931         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3933         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3934         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3935         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3936         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3937         (gl_WCHAR_H_DEFAULTS): Likewise.
3938
3939 2009-12-31  Eric Blake  <ebb9@byu.net>
3940
3941         signal, spawn: use link warnings
3942         * lib/signal.in.h (sigset_t): Make unconditional.
3943         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3944         (sigpending, sigprocmask, sigaction): Add link warnings.
3945         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3946         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3947         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3948         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3949         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3950         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3951         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3952         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3953         (posix_spawn_file_actions_destroy)
3954         (posix_spawn_file_actions_addopen)
3955         (posix_spawn_file_actions_addclose)
3956         (posix_spawn_file_actions_adddup2): Likewise.
3957         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3958         * tests/test-signal.c (main): Enhance test.
3959
3960         spawn: improve wrapper support
3961         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3962         (gl_SPAWN_H_DEFAULTS): New defaults.
3963         * modules/spawn (Makefile.am): Substitute them.
3964         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3965         Only declare if missing or broken.
3966
3967         sys_times, sys_utsname: use include_next
3968         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3969         header.
3970         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3971         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3972         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3973         * modules/sys_times (Depends-on): Add include_next.
3974         (Makefile.am): Substitute additional values.
3975         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3976         * lib/sys_times.in.h (includes): Include native header, if
3977         available.
3978         * lib/sys_utsname.in.h (includes): Likewise.
3979         * tests/test-sys_times.c (main): Enhance test.
3980
3981         fdutimensat: revert prior patch
3982         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3983         utimens.h.
3984         Reported by Bruno Haible.
3985
3986 2009-12-30  Eric Blake  <ebb9@byu.net>
3987
3988         sys_wait: drop link-warning dependency
3989         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3990         link-warning efforts.
3991         * lib/sys_wait.in.h: Likewise.
3992
3993         fdutimensat: remove bogus dependency
3994         * modules/fdutimensat (Depends-on): Drop inline.
3995
3996         unistd: fix typo
3997         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3998
3999 2009-12-30  Bruno Haible  <bruno@clisp.org>
4000
4001         Fix compilation error with Solaris cc.
4002         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4003         * lib/unicase/u16-is-invariant.c: Likewise.
4004         * lib/unicase/u32-is-invariant.c: Likewise.
4005         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4006
4007 2009-12-30  Bruno Haible  <bruno@clisp.org>
4008
4009         Fix test crash.
4010         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4011         locales.
4012         Reported by Simon Josefsson <simon@josefsson.org>.
4013
4014 2009-12-30  Bruno Haible  <bruno@clisp.org>
4015
4016         Fix compilation error on most platforms.
4017         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4018         Reported by Simon Josefsson <simon@josefsson.org>
4019         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4020
4021 2009-12-30  Eric Blake  <ebb9@byu.net>
4022
4023         futimens, utimensat: work around ntfs-3g bug
4024         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4025         a ctime bug is present, and expand workaround to cover ntfs-3g.
4026         * lib/utimens.c (fdutimens, lutimens): Likewise.
4027         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4028         (validate_timespec): Adjust return value.
4029         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4030         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4031         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4032
4033 2009-12-29  Eric Blake  <ebb9@byu.net>
4034
4035         link-warning: make usage consistent
4036         * modules/ctype (Depends-on): Add link-warning.
4037         (Makefile.am): Update rules accordingly.
4038         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4039         * modules/locale (Depends-on, Makefile.am): Likewise.
4040         * modules/sys_file (Makefile.am): Likewise.
4041         * modules/getopt-posix (Makefile.am): Delete unused link warning
4042         efforts.
4043         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4044         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4045         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4046         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4047
4048         stdio: remove unused variables
4049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4051         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4052
4053         tests: test more substitute headers
4054         * modules/ctype-tests: New file.
4055         * modules/dirent-tests: Likewise.
4056         * modules/spawn-tests: Likewise.
4057         * modules/sys_file-tests: Likewise.
4058         * modules/sys_ioctl-tests: Likewise.
4059         * modules/sys_wait-tests: Likewise.
4060         * tests/test-ctype.c: Likewise.
4061         * tests/test-dirent.c: Likewise.
4062         * tests/test-spawn.c: Likewise.
4063         * tests/test-sys_file.c: Likewise.
4064         * tests/test-sys_ioctl.c: Likewise.
4065         * tests/test-sys_wait.c: Likewise.
4066         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4067         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4068         whether or not flock is in use.
4069
4070         tests: remove License section from module
4071         * modules/arpa_inet-tests: Remove unneeded section.
4072         * modules/byteswap-tests: Likewise.
4073         * modules/ceilf-tests: Likewise.
4074         * modules/ceill-tests: Likewise.
4075         * modules/crypto/des-tests: Likewise.
4076         * modules/crypto/gc-arcfour-tests: Likewise.
4077         * modules/crypto/gc-arctwo-tests: Likewise.
4078         * modules/crypto/gc-des-tests: Likewise.
4079         * modules/crypto/gc-hmac-md5-tests: Likewise.
4080         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4081         * modules/crypto/gc-md2-tests: Likewise.
4082         * modules/crypto/gc-md4-tests: Likewise.
4083         * modules/crypto/gc-md5-tests: Likewise.
4084         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4085         * modules/crypto/gc-rijndael-tests: Likewise.
4086         * modules/crypto/gc-sha1-tests: Likewise.
4087         * modules/crypto/gc-tests: Likewise.
4088         * modules/crypto/md2-tests: Likewise.
4089         * modules/crypto/md4-tests: Likewise.
4090         * modules/fcntl-h-tests: Likewise.
4091         * modules/floorf-tests: Likewise.
4092         * modules/floorl-tests: Likewise.
4093         * modules/frexp-nolibm-tests: Likewise.
4094         * modules/frexp-tests: Likewise.
4095         * modules/frexpl-nolibm-tests: Likewise.
4096         * modules/frexpl-tests: Likewise.
4097         * modules/getaddrinfo-tests: Likewise.
4098         * modules/inttypes-tests: Likewise.
4099         * modules/isfinite-tests: Likewise.
4100         * modules/isinf-tests: Likewise.
4101         * modules/ldexpl-tests: Likewise.
4102         * modules/locale-tests: Likewise.
4103         * modules/math-tests: Likewise.
4104         * modules/netdb-tests: Likewise.
4105         * modules/netinet_in-tests: Likewise.
4106         * modules/printf-frexp-tests: Likewise.
4107         * modules/printf-frexpl-tests: Likewise.
4108         * modules/priv-set-tests: Likewise.
4109         * modules/random_r-tests: Likewise.
4110         * modules/round-tests: Likewise.
4111         * modules/roundf-tests: Likewise.
4112         * modules/roundl-tests: Likewise.
4113         * modules/search-tests: Likewise.
4114         * modules/select-tests: Likewise.
4115         * modules/signal-tests: Likewise.
4116         * modules/stdbool-tests: Likewise.
4117         * modules/stddef-tests: Likewise.
4118         * modules/stdint-tests: Likewise.
4119         * modules/stdio-tests: Likewise.
4120         * modules/stdlib-tests: Likewise.
4121         * modules/string-tests: Likewise.
4122         * modules/strings-tests: Likewise.
4123         * modules/sys_select-tests: Likewise.
4124         * modules/sys_socket-tests: Likewise.
4125         * modules/sys_stat-tests: Likewise.
4126         * modules/sys_time-tests: Likewise.
4127         * modules/sys_utsname-tests: Likewise.
4128         * modules/sysexits-tests: Likewise.
4129         * modules/time-tests: Likewise.
4130         * modules/trunc-tests: Likewise.
4131         * modules/truncf-tests: Likewise.
4132         * modules/truncl-tests: Likewise.
4133         * modules/tsearch-tests: Likewise.
4134         * modules/unistd-tests: Likewise.
4135         * modules/wchar-tests: Likewise.
4136         * modules/wctype-tests: Likewise.
4137
4138         tests: fix license on several tests
4139         * tests/test-des.c: Update to GPLv3+.
4140         * tests/test-flock.c: Likewise.
4141         * tests/test-fsync.c: Likewise.
4142         * tests/test-futimens.h: Likewise.
4143         * tests/test-gc-arcfour.c: Likewise.
4144         * tests/test-gc-arctwo.c: Likewise.
4145         * tests/test-gc-des.c: Likewise.
4146         * tests/test-gc-hmac-md5.c: Likewise.
4147         * tests/test-gc-hmac-sha1.c: Likewise.
4148         * tests/test-gc-md2.c: Likewise.
4149         * tests/test-gc-md4.c: Likewise.
4150         * tests/test-gc-md5.c: Likewise.
4151         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4152         * tests/test-gc-rijndael.c: Likewise.
4153         * tests/test-gc-sha1.c: Likewise.
4154         * tests/test-gc.c: Likewise.
4155         * tests/test-getcwd.c: Likewise.
4156         * tests/test-link.c: Likewise.
4157         * tests/test-link.h: Likewise.
4158         * tests/test-lutimens.h: Likewise.
4159         * tests/test-md2.c: Likewise.
4160         * tests/test-md4.c: Likewise.
4161         * tests/test-mkdir.h: Likewise.
4162         * tests/test-rename.c: Likewise.
4163         * tests/test-rename.h: Likewise.
4164         * tests/test-safe-alloc.c: Likewise.
4165         * tests/test-utimens-common.h: Likewise.
4166         * tests/test-utimens.h: Likewise.
4167
4168         maint: sync license texts
4169         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4170         * doc/gpl-3.0.texi: Revert copyright year update.
4171         * doc/lgpl-3.0.texi: Likewise.
4172
4173 2009-12-29  Jim Meyering  <meyering@redhat.com>
4174
4175         update nearly all FSF copyright year lists to include 2009
4176         The files named by the following are exempted:
4177             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4178               test -f "$dst" && { echo "$dst"; continue; }
4179               test -d "$dst" || continue
4180               echo "$dst"/$(basename "$src")
4181             done > exempt
4182             git ls-files tests/unictype >> exempt
4183         In the remaining files, convert to all-interval notation if
4184         - there is already at least one year interval like 2000-2003
4185         - the file is maintained by me
4186         - the file is in lib/uni*/, where that style already prevails
4187         Otherwise, use update-copyright's default.
4188
4189 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4190         and Eric Blake  <ebb9@byu.net>
4191
4192         tests: don't require debug system() to pass
4193         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4194         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4195         * tests/test-unlink.h (test_unlink_func): Likewise.
4196         * tests/test-fstatat.c (main): ...into callers.
4197         * tests/test-lstat.c (main): Likewise.
4198         * tests/test-rmdir.c (main): Likewise.
4199         * tests/test-unlink.c (main): Likewise.
4200         * tests/test-unlinkat.c (main): Likewise.
4201         * tests/test-areadlink-with-size.c (main): Don't require a
4202         debug-only system call to pass, aiding cross-testing to mingw.
4203         * tests/test-areadlink.c (main): Likewise.
4204         * tests/test-areadlinkat-with-size.c (main): Likewise.
4205         * tests/test-areadlinkat.c (main): Likewise.
4206         * tests/test-canonicalize-lgpl.c (main): Likewise.
4207         * tests/test-canonicalize.c (main): Likewise.
4208         * tests/test-chown.c (main): Likewise.
4209         * tests/test-fchownat.c (main): Likewise.
4210         * tests/test-lchown.c (main): Likewise.
4211         * tests/test-fdutimensat.c (main): Likewise.
4212         * tests/test-futimens.c (main): Likewise.
4213         * tests/test-link.c (main): Likewise.
4214         * tests/test-linkat.c (main): Likewise.
4215         * tests/test-mkdir.c (main): Likewise.
4216         * tests/test-mkdirat.c (main): Likewise.
4217         * tests/test-mkfifo.c (main): Likewise.
4218         * tests/test-mkfifoat.c (main): Likewise.
4219         * tests/test-mknod.c (main): Likewise.
4220         * tests/test-readlink.c (main): Likewise.
4221         * tests/test-remove.c (main): Likewise.
4222         * tests/test-rename.c (main): Likewise.
4223         * tests/test-renameat.c (main): Likewise.
4224         * tests/test-symlink.c (main): Likewise.
4225         * tests/test-symlinkat.c (main): Likewise.
4226         * tests/test-utimens.c (main): Likewise.
4227         * tests/test-utimensat.c (main): Likewise.
4228
4229 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4230
4231         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4232         on $(UNUSED_PARAMETER_H) to avoid build failure.
4233
4234 2009-12-28  Jim Meyering  <meyering@redhat.com>
4235
4236         update-copyright: you may specify a max. line length other than 72
4237         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4238
4239         maint: use consistent FSF copyright line syntax
4240         * lib/posixtm.c: Add missing comma in FSF copyright line.
4241         * lib/posixtm.h: Likewise.
4242         * lib/getugroups.c: Add missing ", Inc.".
4243
4244         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4245         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4246         FSF copyright line.  Remove trailing blanks.
4247
4248 2009-12-28  Eric Blake  <ebb9@byu.net>
4249
4250         test-dup2: reduce dependencies
4251         * modules/cloexec (Configure.ac): Set witness.
4252         * modules/dup2-tests (Depends-on): Drop cloexec.
4253         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4254         not present.
4255         Suggested by Bruno Haible.
4256
4257 2009-12-26  Bruno Haible  <bruno@clisp.org>
4258
4259         Remove an unneeded dependency.
4260         * modules/fseterr (Depends-on): Remove dup2.
4261
4262 2009-12-26  Eric Blake  <ebb9@byu.net>
4263
4264         tests: use macros.h in more places
4265         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4266         (ASSERT_STREAM): Provide default of stderr.
4267         * tests/test-dirent-safer.c: Include macros.h, using alternate
4268         stream for assertions.
4269         * tests/test-dup-safer.c: Likewise.
4270         * tests/test-freopen-safer.c: Likewise.
4271         * tests/test-getopt.c: Likewise.
4272         * tests/test-openat-safer.c: Likewise.
4273         * tests/test-pipe.c: Likewise.
4274         * tests/test-popen-safer.c: Likewise.
4275         * modules/dirent-safer-tests (Files): Include macros.h.
4276         * modules/unistd-safer-tests (Files): Likewise.
4277         * modules/freopen-safer-tests (Files): Likewise.
4278         * modules/getopt-posix-tests (Files): Likewise.
4279         * modules/openat-safer-tests (Files): Likewise.
4280         * modules/pipe-tests (Files): Likewise.
4281
4282 2009-12-26  Bruno Haible  <bruno@clisp.org>
4283
4284         javacomp: Portability fix.
4285         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4286         that it also works on Solaris.
4287
4288 2009-12-26  Bruno Haible  <bruno@clisp.org>
4289
4290         localename: Fix storage allocation of gl_locale_name_thread's result.
4291         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4292         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4293         all platforms that have 'uselocale'.
4294         (gl_locale_name_thread_unsafe): New function, extracted from
4295         gl_locale_name_thread.
4296         (gl_locale_name_thread): Call struniq on all platforms that have
4297         'uselocale'.
4298         * tests/test-localename.c (test_locale_name_thread): Check that the
4299         resulting strings are permanently allocated.
4300         * modules/localename-tests (Depends-on): Add strdup.
4301
4302 2009-12-26  Bruno Haible  <bruno@clisp.org>
4303
4304         * tests/test-localename.c (categories): Fill in the strings.
4305
4306 2009-12-26  Jim Meyering  <meyering@redhat.com>
4307
4308         isdir: complete the removal of m4/isdir.m4
4309         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4310
4311         isdir: clean up, since at least grep still uses it
4312         * lib/isdir.c: Include "isdir.h".
4313         (S_ISDIR): Remove now-unneeded definition.
4314         * modules/isdir (Files): Add lib/isdir.h.
4315         * lib/isdir.h: New file, with declaration.
4316         * m4/isdir.m4: Remove file -- unneeded.
4317
4318 2009-12-25  Bruno Haible  <bruno@clisp.org>
4319
4320         selinux-h: Make generated .h files standalone.
4321         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4322         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4323         * lib/se-selinux.in.h: Likewise.
4324         * modules/selinux-h (Depends-on): Add unused-parameter.
4325         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4326         selinux/selinux.h and selinux/context.h.
4327         Suggested by Eric Blake.
4328
4329 2009-12-25  Bruno Haible  <bruno@clisp.org>
4330
4331         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4332         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4333         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4334         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4335         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4336
4337 2009-12-24  Bruno Haible  <bruno@clisp.org>
4338
4339         openat: Fix warning.
4340         * lib/openat-proc.c: Include <unistd.h>.
4341
4342 2009-12-24  Bruno Haible  <bruno@clisp.org>
4343
4344         New module 'unused-parameter'.
4345         * build-aux/unused-parameter.h: New file, extracted from earlier
4346         gnulib-common.m4.
4347         * modules/unused-parameter: New file.
4348         * lib/unistr.h: Include unused-parameter.h.
4349         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4350         _GL_UNUSED.
4351         * modules/unistr/base (Depends-on): Add unused-parameter.
4352
4353 2009-12-24  Bruno Haible  <bruno@clisp.org>
4354
4355         Add missing dependencies to 'extensions' module.
4356         * m4/extensions.m4: Add comment.
4357         * modules/accept4 (Depends-on): Add extensions.
4358         * modules/dup3 (Depends-on): Likewise.
4359         * modules/fcntl (Depends-on): Likewise.
4360         * modules/futimens (Depends-on): Likewise.
4361         * modules/mknod (Depends-on): Likewise.
4362         * modules/pipe2 (Depends-on): Likewise.
4363         * modules/stat-time (Depends-on): Likewise.
4364         * modules/strcasestr-simple (Depends-on): Likewise.
4365         * modules/strsignal (Depends-on): Likewise.
4366         * modules/utimensat (Depends-on): Likewise.
4367         * modules/localcharset (Depends-on): Likewise. Needed because of
4368         gl_FCNTL_O_FLAGS.
4369         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4370         AC_TYPE_MBSTATE_T.
4371         * modules/wcsnrtombs (Depends-on): Likewise.
4372         * modules/wcsrtombs (Depends-on): Likewise.
4373
4374 2009-12-24  Bruno Haible  <bruno@clisp.org>
4375
4376         binary-io: Avoid gcc warning due to SET_BINARY.
4377         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4378         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4379
4380 2009-12-24  Bruno Haible  <bruno@clisp.org>
4381
4382         Avoid future namespace pollution on glibc systems.
4383         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4384         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4385         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4386         glibc systems.
4387
4388 2009-12-24  Bruno Haible  <bruno@clisp.org>
4389
4390         Refactor common macros used in tests.
4391         * tests/macros.h: New file.
4392         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4393         and/or <stdlib.h>, if appropriate.
4394         (ASSERT, SIZEOF): Remove macros.
4395         * tests/test-areadlink-with-size.c: Likewise.
4396         * tests/test-areadlinkat.c: Likewise.
4397         * tests/test-areadlinkat-with-size.c: Likewise.
4398         * tests/test-argmatch.c: Likewise.
4399         * tests/test-argv-iter.c: Likewise.
4400         * tests/test-array-mergesort.c: Likewise.
4401         * tests/test-array_list.c: Likewise.
4402         * tests/test-array_oset.c: Likewise.
4403         * tests/test-avltree_list.c: Likewise.
4404         * tests/test-avltree_oset.c: Likewise.
4405         * tests/test-avltreehash_list.c: Likewise.
4406         * tests/test-base64.c: Likewise.
4407         * tests/test-binary-io.c: Likewise.
4408         * tests/test-bitrotate.c: Likewise.
4409         * tests/test-btowc.c: Likewise.
4410         * tests/test-byteswap.c: Likewise.
4411         * tests/test-c-ctype.c: Likewise.
4412         * tests/test-c-stack.c: Likewise.
4413         * tests/test-c-strcasecmp.c: Likewise.
4414         * tests/test-c-strcasestr.c: Likewise.
4415         * tests/test-c-strncasecmp.c: Likewise.
4416         * tests/test-c-strstr.c: Likewise.
4417         * tests/test-canonicalize-lgpl.c: Likewise.
4418         * tests/test-canonicalize.c: Likewise.
4419         * tests/test-carray_list.c: Likewise.
4420         * tests/test-ceilf1.c: Likewise.
4421         * tests/test-ceilf2.c: Likewise.
4422         * tests/test-ceill.c: Likewise.
4423         * tests/test-chown.c: Likewise.
4424         * tests/test-cloexec.c: Likewise.
4425         * tests/test-copy-acl.c: Likewise.
4426         * tests/test-copy-file.c: Likewise.
4427         * tests/test-count-one-bits.c: Likewise.
4428         * tests/test-dprintf-posix.c: Likewise.
4429         * tests/test-dup2.c: Likewise.
4430         * tests/test-dup3.c: Likewise.
4431         * tests/test-duplocale.c: Likewise.
4432         * tests/test-fbufmode.c: Likewise.
4433         * tests/test-fchdir.c: Likewise.
4434         * tests/test-fchownat.c: Likewise.
4435         * tests/test-fcntl-safer.c: Likewise.
4436         * tests/test-fcntl.c: Likewise.
4437         * tests/test-fdopendir.c: Likewise.
4438         * tests/test-fdutimensat.c: Likewise.
4439         * tests/test-fflush2.c: Likewise.
4440         * tests/test-file-has-acl.c: Likewise.
4441         * tests/test-filevercmp.c: Likewise.
4442         * tests/test-flock.c: Likewise.
4443         * tests/test-floorf1.c: Likewise.
4444         * tests/test-floorf2.c: Likewise.
4445         * tests/test-floorl.c: Likewise.
4446         * tests/test-fnmatch.c: Likewise.
4447         * tests/test-fopen.h: Likewise.
4448         * tests/test-fpending.c: Likewise.
4449         * tests/test-fprintf-posix.c: Likewise.
4450         * tests/test-fpurge.c: Likewise.
4451         * tests/test-freadable.c: Likewise.
4452         * tests/test-freadahead.c: Likewise.
4453         * tests/test-freading.c: Likewise.
4454         * tests/test-freadptr.c: Likewise.
4455         * tests/test-freadptr2.c: Likewise.
4456         * tests/test-freadseek.c: Likewise.
4457         * tests/test-freopen.c: Likewise.
4458         * tests/test-frexp.c: Likewise.
4459         * tests/test-frexpl.c: Likewise.
4460         * tests/test-fseek.c: Likewise.
4461         * tests/test-fseeko.c: Likewise.
4462         * tests/test-fstatat.c: Likewise.
4463         * tests/test-fstrcmp.c: Likewise.
4464         * tests/test-fsync.c: Likewise.
4465         * tests/test-ftell.c: Likewise.
4466         * tests/test-ftello.c: Likewise.
4467         * tests/test-func.c: Likewise.
4468         * tests/test-futimens.c: Likewise.
4469         * tests/test-fwritable.c: Likewise.
4470         * tests/test-fwriting.c: Likewise.
4471         * tests/test-getcwd.c: Likewise.
4472         * tests/test-getdate.c: Likewise.
4473         * tests/test-getdelim.c: Likewise.
4474         * tests/test-getdtablesize.c: Likewise.
4475         * tests/test-getgroups.c: Likewise.
4476         * tests/test-getline.c: Likewise.
4477         * tests/test-getndelim2.c: Likewise.
4478         * tests/test-glob.c: Likewise.
4479         * tests/test-hash.c: Likewise.
4480         * tests/test-i-ring.c: Likewise.
4481         * tests/test-iconv-utf.c: Likewise.
4482         * tests/test-iconv.c: Likewise.
4483         * tests/test-idpriv-drop.c: Likewise.
4484         * tests/test-idpriv-droptemp.c: Likewise.
4485         * tests/test-inet_ntop.c: Likewise.
4486         * tests/test-inet_pton.c: Likewise.
4487         * tests/test-isblank.c: Likewise.
4488         * tests/test-isfinite.c: Likewise.
4489         * tests/test-isinf.c: Likewise.
4490         * tests/test-isnan.c: Likewise.
4491         * tests/test-isnand.h: Likewise.
4492         * tests/test-isnanf.h: Likewise.
4493         * tests/test-isnanl.h: Likewise.
4494         * tests/test-lchown.c: Likewise.
4495         * tests/test-ldexpl.c: Likewise.
4496         * tests/test-link.c: Likewise.
4497         * tests/test-linkat.c: Likewise.
4498         * tests/test-linked_list.c: Likewise.
4499         * tests/test-linkedhash_list.c: Likewise.
4500         * tests/test-localename.c: Likewise.
4501         * tests/test-lseek.c: Likewise.
4502         * tests/test-lstat.c: Likewise.
4503         * tests/test-mbmemcasecmp.c: Likewise.
4504         * tests/test-mbmemcasecoll.c: Likewise.
4505         * tests/test-mbrtowc.c: Likewise.
4506         * tests/test-mbscasecmp.c: Likewise.
4507         * tests/test-mbscasestr1.c: Likewise.
4508         * tests/test-mbscasestr2.c: Likewise.
4509         * tests/test-mbscasestr3.c: Likewise.
4510         * tests/test-mbscasestr4.c: Likewise.
4511         * tests/test-mbschr.c: Likewise.
4512         * tests/test-mbscspn.c: Likewise.
4513         * tests/test-mbsinit.c: Likewise.
4514         * tests/test-mbsncasecmp.c: Likewise.
4515         * tests/test-mbsnrtowcs.c: Likewise.
4516         * tests/test-mbspbrk.c: Likewise.
4517         * tests/test-mbspcasecmp.c: Likewise.
4518         * tests/test-mbsrchr.c: Likewise.
4519         * tests/test-mbsrtowcs.c: Likewise.
4520         * tests/test-mbsspn.c: Likewise.
4521         * tests/test-mbsstr1.c: Likewise.
4522         * tests/test-mbsstr2.c: Likewise.
4523         * tests/test-mbsstr3.c: Likewise.
4524         * tests/test-memchr.c: Likewise.
4525         * tests/test-memchr2.c: Likewise.
4526         * tests/test-memcmp.c: Likewise.
4527         * tests/test-memmem.c: Likewise.
4528         * tests/test-memrchr.c: Likewise.
4529         * tests/test-mkdir.c: Likewise.
4530         * tests/test-mkdirat.c: Likewise.
4531         * tests/test-mkfifo.c: Likewise.
4532         * tests/test-mkfifoat.c: Likewise.
4533         * tests/test-mknod.c: Likewise.
4534         * tests/test-nanosleep.c: Likewise.
4535         * tests/test-nl_langinfo.c: Likewise.
4536         * tests/test-obstack-printf.c: Likewise.
4537         * tests/test-open.c: Likewise.
4538         * tests/test-openat.c: Likewise.
4539         * tests/test-pipe-filter-gi1.c: Likewise.
4540         * tests/test-pipe-filter-gi2-main.c: Likewise.
4541         * tests/test-pipe-filter-ii1.c: Likewise.
4542         * tests/test-pipe-filter-ii2-main.c: Likewise.
4543         * tests/test-pipe2.c: Likewise.
4544         * tests/test-popen.h: Likewise.
4545         * tests/test-posixtm.c: Likewise.
4546         * tests/test-pread.c: Likewise.
4547         * tests/test-printf-frexp.c: Likewise.
4548         * tests/test-printf-frexpl.c: Likewise.
4549         * tests/test-printf-posix.c: Likewise.
4550         * tests/test-priv-set.c: Likewise.
4551         * tests/test-quotearg.c: Likewise.
4552         * tests/test-random_r.c: Likewise.
4553         * tests/test-rawmemchr.c: Likewise.
4554         * tests/test-rbtree_list.c: Likewise.
4555         * tests/test-rbtree_oset.c: Likewise.
4556         * tests/test-rbtreehash_list.c: Likewise.
4557         * tests/test-readlink.c: Likewise.
4558         * tests/test-remove.c: Likewise.
4559         * tests/test-rename.c: Likewise.
4560         * tests/test-renameat.c: Likewise.
4561         * tests/test-rmdir.c: Likewise.
4562         * tests/test-round1.c: Likewise.
4563         * tests/test-roundf1.c: Likewise.
4564         * tests/test-roundl.c: Likewise.
4565         * tests/test-safe-alloc.c: Likewise.
4566         * tests/test-sameacls.c: Likewise.
4567         * tests/test-set-mode-acl.c: Likewise.
4568         * tests/test-setenv.c: Likewise.
4569         * tests/test-sigaction.c: Likewise.
4570         * tests/test-signbit.c: Likewise.
4571         * tests/test-sleep.c: Likewise.
4572         * tests/test-snprintf-posix.c: Likewise.
4573         * tests/test-snprintf.c: Likewise.
4574         * tests/test-sprintf-posix.c: Likewise.
4575         * tests/test-stat-time.c: Likewise.
4576         * tests/test-stat.c: Likewise.
4577         * tests/test-strcasestr.c: Likewise.
4578         * tests/test-strchrnul.c: Likewise.
4579         * tests/test-strerror.c: Likewise.
4580         * tests/test-striconv.c: Likewise.
4581         * tests/test-striconveh.c: Likewise.
4582         * tests/test-striconveha.c: Likewise.
4583         * tests/test-strsignal.c: Likewise.
4584         * tests/test-strstr.c: Likewise.
4585         * tests/test-strtod.c: Likewise.
4586         * tests/test-strverscmp.c: Likewise.
4587         * tests/test-symlink.c: Likewise.
4588         * tests/test-symlinkat.c: Likewise.
4589         * tests/test-trunc1.c: Likewise.
4590         * tests/test-trunc2.c: Likewise.
4591         * tests/test-truncf1.c: Likewise.
4592         * tests/test-truncf2.c: Likewise.
4593         * tests/test-truncl.c: Likewise.
4594         * tests/test-uname.c: Likewise.
4595         * tests/test-unlink.c: Likewise.
4596         * tests/test-unlinkat.c: Likewise.
4597         * tests/test-unsetenv.c: Likewise.
4598         * tests/test-usleep.c: Likewise.
4599         * tests/test-utimens.c: Likewise.
4600         * tests/test-utimensat.c: Likewise.
4601         * tests/test-vasnprintf-posix.c: Likewise.
4602         * tests/test-vasnprintf-posix2.c: Likewise.
4603         * tests/test-vasnprintf.c: Likewise.
4604         * tests/test-vasprintf-posix.c: Likewise.
4605         * tests/test-vasprintf.c: Likewise.
4606         * tests/test-vdprintf-posix.c: Likewise.
4607         * tests/test-vfprintf-posix.c: Likewise.
4608         * tests/test-vprintf-posix.c: Likewise.
4609         * tests/test-vsnprintf-posix.c: Likewise.
4610         * tests/test-vsnprintf.c: Likewise.
4611         * tests/test-vsprintf-posix.c: Likewise.
4612         * tests/test-wcrtomb.c: Likewise.
4613         * tests/test-wcsnrtombs.c: Likewise.
4614         * tests/test-wcsrtombs.c: Likewise.
4615         * tests/test-wctype.c: Likewise.
4616         * tests/test-wcwidth.c: Likewise.
4617         * tests/test-xfprintf-posix.c: Likewise.
4618         * tests/test-xmemdup0.c: Likewise.
4619         * tests/test-xprintf-posix.c: Likewise.
4620         * tests/test-xvasprintf.c: Likewise.
4621         * tests/unicase/test-locale-language.c: Likewise.
4622         * tests/unicase/test-mapping-part1.h: Likewise.
4623         * tests/unicase/test-predicate-part1.h: Likewise.
4624         * tests/unicase/test-u8-casecmp.c: Likewise.
4625         * tests/unicase/test-u8-casecoll.c: Likewise.
4626         * tests/unicase/test-u8-casefold.c: Likewise.
4627         * tests/unicase/test-u8-is-cased.c: Likewise.
4628         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4629         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4630         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4631         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4632         * tests/unicase/test-u8-tolower.c: Likewise.
4633         * tests/unicase/test-u8-totitle.c: Likewise.
4634         * tests/unicase/test-u8-toupper.c: Likewise.
4635         * tests/unicase/test-u16-casecmp.c: Likewise.
4636         * tests/unicase/test-u16-casecoll.c: Likewise.
4637         * tests/unicase/test-u16-casefold.c: Likewise.
4638         * tests/unicase/test-u16-is-cased.c: Likewise.
4639         * tests/unicase/test-u16-is-casefolded.c: Likewise.
4640         * tests/unicase/test-u16-is-lowercase.c: Likewise.
4641         * tests/unicase/test-u16-is-titlecase.c: Likewise.
4642         * tests/unicase/test-u16-is-uppercase.c: Likewise.
4643         * tests/unicase/test-u16-tolower.c: Likewise.
4644         * tests/unicase/test-u16-totitle.c: Likewise.
4645         * tests/unicase/test-u16-toupper.c: Likewise.
4646         * tests/unicase/test-u32-casecmp.c: Likewise.
4647         * tests/unicase/test-u32-casecoll.c: Likewise.
4648         * tests/unicase/test-u32-casefold.c: Likewise.
4649         * tests/unicase/test-u32-is-cased.c: Likewise.
4650         * tests/unicase/test-u32-is-casefolded.c: Likewise.
4651         * tests/unicase/test-u32-is-lowercase.c: Likewise.
4652         * tests/unicase/test-u32-is-titlecase.c: Likewise.
4653         * tests/unicase/test-u32-is-uppercase.c: Likewise.
4654         * tests/unicase/test-u32-tolower.c: Likewise.
4655         * tests/unicase/test-u32-totitle.c: Likewise.
4656         * tests/unicase/test-u32-toupper.c: Likewise.
4657         * tests/unicase/test-ulc-casecmp.c: Likewise.
4658         * tests/unicase/test-ulc-casecoll.c: Likewise.
4659         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4660         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4661         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4662         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4663         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4664         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4665         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4666         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4667         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4668         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4669         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4670         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4671         * tests/unictype/test-bidi_byname.c: Likewise.
4672         * tests/unictype/test-bidi_name.c: Likewise.
4673         * tests/unictype/test-bidi_of.c: Likewise.
4674         * tests/unictype/test-bidi_test.c: Likewise.
4675         * tests/unictype/test-block_list.c: Likewise.
4676         * tests/unictype/test-block_of.c: Likewise.
4677         * tests/unictype/test-block_test.c: Likewise.
4678         * tests/unictype/test-categ_and.c: Likewise.
4679         * tests/unictype/test-categ_and_not.c: Likewise.
4680         * tests/unictype/test-categ_byname.c: Likewise.
4681         * tests/unictype/test-categ_name.c: Likewise.
4682         * tests/unictype/test-categ_none.c: Likewise.
4683         * tests/unictype/test-categ_of.c: Likewise.
4684         * tests/unictype/test-categ_or.c: Likewise.
4685         * tests/unictype/test-categ_test_withtable.c: Likewise.
4686         * tests/unictype/test-combining.c: Likewise.
4687         * tests/unictype/test-decdigit.c: Likewise.
4688         * tests/unictype/test-digit.c: Likewise.
4689         * tests/unictype/test-mirror.c: Likewise.
4690         * tests/unictype/test-numeric.c: Likewise.
4691         * tests/unictype/test-pr_byname.c: Likewise.
4692         * tests/unictype/test-pr_test.c: Likewise.
4693         * tests/unictype/test-predicate-part1.h: Likewise.
4694         * tests/unictype/test-scripts.c: Likewise.
4695         * tests/unictype/test-sy_c_ident.c: Likewise.
4696         * tests/unictype/test-sy_java_ident.c: Likewise.
4697         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4698         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4699         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4700         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4701         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4702         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4703         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4704         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4705         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4706         * tests/uninorm/test-compat-decomposition.c: Likewise.
4707         * tests/uninorm/test-composition.c: Likewise.
4708         * tests/uninorm/test-decomposing-form.c: Likewise.
4709         * tests/uninorm/test-decomposition.c: Likewise.
4710         * tests/uninorm/test-u8-nfc.c: Likewise.
4711         * tests/uninorm/test-u8-nfd.c: Likewise.
4712         * tests/uninorm/test-u8-nfkc.c: Likewise.
4713         * tests/uninorm/test-u8-nfkd.c: Likewise.
4714         * tests/uninorm/test-u8-normcmp.c: Likewise.
4715         * tests/uninorm/test-u8-normcoll.c: Likewise.
4716         * tests/uninorm/test-u16-nfc.c: Likewise.
4717         * tests/uninorm/test-u16-nfd.c: Likewise.
4718         * tests/uninorm/test-u16-nfkc.c: Likewise.
4719         * tests/uninorm/test-u16-nfkd.c: Likewise.
4720         * tests/uninorm/test-u16-normcmp.c: Likewise.
4721         * tests/uninorm/test-u16-normcoll.c: Likewise.
4722         * tests/uninorm/test-u32-nfc.c: Likewise.
4723         * tests/uninorm/test-u32-nfd.c: Likewise.
4724         * tests/uninorm/test-u32-nfkc.c: Likewise.
4725         * tests/uninorm/test-u32-nfkd.c: Likewise.
4726         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4727         * tests/uninorm/test-u32-normcmp.c: Likewise.
4728         * tests/uninorm/test-u32-normcoll.c: Likewise.
4729         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4730         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4731         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4732         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4733         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4734         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4735         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4736         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4737         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4738         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4739         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4740         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4741         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4742         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4743         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4744         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4745         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4746         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4747         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4748         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4749         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4750         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4751         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4752         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4753         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4754         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4755         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4756         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4757         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4758         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4759         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4760         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4761         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4762         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4763         * tests/uniwidth/test-u8-width.c: Likewise.
4764         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4765         * tests/uniwidth/test-u16-width.c: Likewise.
4766         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4767         * tests/uniwidth/test-u32-width.c: Likewise.
4768         * tests/uniwidth/test-uc_width.c: Likewise.
4769         * tests/uniwidth/test-uc_width2.c: Likewise.
4770         * modules/acl-tests (Files): Add tests/macros.h.
4771         * modules/areadlink-tests (Files): Likewise.
4772         * modules/areadlink-with-size-tests (Files): Likewise.
4773         * modules/areadlinkat-tests (Files): Likewise.
4774         * modules/areadlinkat-with-size-tests (Files): Likewise.
4775         * modules/argmatch-tests (Files): Likewise.
4776         * modules/argv-iter-tests (Files): Likewise.
4777         * modules/array-list-tests (Files): Likewise.
4778         * modules/array-mergesort-tests (Files): Likewise.
4779         * modules/array-oset-tests (Files): Likewise.
4780         * modules/avltree-list-tests (Files): Likewise.
4781         * modules/avltree-oset-tests (Files): Likewise.
4782         * modules/avltreehash-list-tests (Files): Likewise.
4783         * modules/base64-tests (Files): Likewise.
4784         * modules/binary-io-tests (Files): Likewise.
4785         * modules/bitrotate-tests (Files): Likewise.
4786         * modules/btowc-tests (Files): Likewise.
4787         * modules/byteswap-tests (Files): Likewise.
4788         * modules/c-ctype-tests (Files): Likewise.
4789         * modules/c-stack-tests (Files): Likewise.
4790         * modules/c-strcase-tests (Files): Likewise.
4791         * modules/c-strcasestr-tests (Files): Likewise.
4792         * modules/c-strstr-tests (Files): Likewise.
4793         * modules/canonicalize-lgpl-tests (Files): Likewise.
4794         * modules/canonicalize-tests (Files): Likewise.
4795         * modules/carray-list-tests (Files): Likewise.
4796         * modules/ceilf-tests (Files): Likewise.
4797         * modules/ceill-tests (Files): Likewise.
4798         * modules/chown-tests (Files): Likewise.
4799         * modules/cloexec-tests (Files): Likewise.
4800         * modules/copy-file-tests (Files): Likewise.
4801         * modules/count-one-bits-tests (Files): Likewise.
4802         * modules/dprintf-posix-tests (Files): Likewise.
4803         * modules/dup2-tests (Files): Likewise.
4804         * modules/dup3-tests (Files): Likewise.
4805         * modules/duplocale-tests (Files): Likewise.
4806         * modules/fbufmode-tests (Files): Likewise.
4807         * modules/fchdir-tests (Files): Likewise.
4808         * modules/fcntl-safer-tests (Files): Likewise.
4809         * modules/fcntl-tests (Files): Likewise.
4810         * modules/fdopendir-tests (Files): Likewise.
4811         * modules/fdutimensat-tests (Files): Likewise.
4812         * modules/fflush-tests (Files): Likewise.
4813         * modules/filevercmp-tests (Files): Likewise.
4814         * modules/flock-tests (Files): Likewise.
4815         * modules/floorf-tests (Files): Likewise.
4816         * modules/floorl-tests (Files): Likewise.
4817         * modules/fnmatch-tests (Files): Likewise.
4818         * modules/fopen-safer-tests (Files): Likewise.
4819         * modules/fopen-tests (Files): Likewise.
4820         * modules/fpending-tests (Files): Likewise.
4821         * modules/fprintf-posix-tests (Files): Likewise.
4822         * modules/fpurge-tests (Files): Likewise.
4823         * modules/freadable-tests (Files): Likewise.
4824         * modules/freadahead-tests (Files): Likewise.
4825         * modules/freading-tests (Files): Likewise.
4826         * modules/freadptr-tests (Files): Likewise.
4827         * modules/freadseek-tests (Files): Likewise.
4828         * modules/freopen-tests (Files): Likewise.
4829         * modules/frexp-nolibm-tests (Files): Likewise.
4830         * modules/frexp-tests (Files): Likewise.
4831         * modules/frexpl-nolibm-tests (Files): Likewise.
4832         * modules/frexpl-tests (Files): Likewise.
4833         * modules/fseek-tests (Files): Likewise.
4834         * modules/fseeko-tests (Files): Likewise.
4835         * modules/fstrcmp-tests (Files): Likewise.
4836         * modules/fsync-tests (Files): Likewise.
4837         * modules/ftell-tests (Files): Likewise.
4838         * modules/ftello-tests (Files): Likewise.
4839         * modules/func-tests (Files): Likewise.
4840         * modules/futimens-tests (Files): Likewise.
4841         * modules/fwritable-tests (Files): Likewise.
4842         * modules/fwriting-tests (Files): Likewise.
4843         * modules/getcwd-tests (Files): Likewise.
4844         * modules/getdate-tests (Files): Likewise.
4845         * modules/getdelim-tests (Files): Likewise.
4846         * modules/getdtablesize-tests (Files): Likewise.
4847         * modules/getgroups-tests (Files): Likewise.
4848         * modules/getline-tests (Files): Likewise.
4849         * modules/getndelim2-tests (Files): Likewise.
4850         * modules/glob-tests (Files): Likewise.
4851         * modules/hash-tests (Files): Likewise.
4852         * modules/i-ring-tests (Files): Likewise.
4853         * modules/iconv-tests (Files): Likewise.
4854         * modules/iconv_open-utf-tests (Files): Likewise.
4855         * modules/idpriv-drop-tests (Files): Likewise.
4856         * modules/idpriv-droptemp-tests (Files): Likewise.
4857         * modules/inet_ntop-tests (Files): Likewise.
4858         * modules/inet_pton-tests (Files): Likewise.
4859         * modules/isblank-tests (Files): Likewise.
4860         * modules/isfinite-tests (Files): Likewise.
4861         * modules/isinf-tests (Files): Likewise.
4862         * modules/isnan-tests (Files): Likewise.
4863         * modules/isnand-nolibm-tests (Files): Likewise.
4864         * modules/isnand-tests (Files): Likewise.
4865         * modules/isnanf-nolibm-tests (Files): Likewise.
4866         * modules/isnanf-tests (Files): Likewise.
4867         * modules/isnanl-nolibm-tests (Files): Likewise.
4868         * modules/isnanl-tests (Files): Likewise.
4869         * modules/lchown-tests (Files): Likewise.
4870         * modules/ldexpl-tests (Files): Likewise.
4871         * modules/link-tests (Files): Likewise.
4872         * modules/linkat-tests (Files): Likewise.
4873         * modules/linked-list-tests (Files): Likewise.
4874         * modules/linkedhash-list-tests (Files): Likewise.
4875         * modules/localename-tests (Files): Likewise.
4876         * modules/lseek-tests (Files): Likewise.
4877         * modules/lstat-tests (Files): Likewise.
4878         * modules/mbmemcasecmp-tests (Files): Likewise.
4879         * modules/mbmemcasecoll-tests (Files): Likewise.
4880         * modules/mbrtowc-tests (Files): Likewise.
4881         * modules/mbscasecmp-tests (Files): Likewise.
4882         * modules/mbscasestr-tests (Files): Likewise.
4883         * modules/mbschr-tests (Files): Likewise.
4884         * modules/mbscspn-tests (Files): Likewise.
4885         * modules/mbsinit-tests (Files): Likewise.
4886         * modules/mbsncasecmp-tests (Files): Likewise.
4887         * modules/mbsnrtowcs-tests (Files): Likewise.
4888         * modules/mbspbrk-tests (Files): Likewise.
4889         * modules/mbspcasecmp-tests (Files): Likewise.
4890         * modules/mbsrchr-tests (Files): Likewise.
4891         * modules/mbsrtowcs-tests (Files): Likewise.
4892         * modules/mbsspn-tests (Files): Likewise.
4893         * modules/mbsstr-tests (Files): Likewise.
4894         * modules/memchr-tests (Files): Likewise.
4895         * modules/memchr2-tests (Files): Likewise.
4896         * modules/memcmp-tests (Files): Likewise.
4897         * modules/memmem-tests (Files): Likewise.
4898         * modules/memrchr-tests (Files): Likewise.
4899         * modules/mkdir-tests (Files): Likewise.
4900         * modules/mkfifo-tests (Files): Likewise.
4901         * modules/mkfifoat-tests (Files): Likewise.
4902         * modules/mknod-tests (Files): Likewise.
4903         * modules/nanosleep-tests (Files): Likewise.
4904         * modules/nl_langinfo-tests (Files): Likewise.
4905         * modules/obstack-printf-tests (Files): Likewise.
4906         * modules/open-tests (Files): Likewise.
4907         * modules/openat-tests (Files): Likewise.
4908         * modules/pipe-filter-gi-tests (Files): Likewise.
4909         * modules/pipe-filter-ii-tests (Files): Likewise.
4910         * modules/pipe2-tests (Files): Likewise.
4911         * modules/popen-safer-tests (Files): Likewise.
4912         * modules/popen-tests (Files): Likewise.
4913         * modules/posixtm-tests (Files): Likewise.
4914         * modules/pread-tests (Files): Likewise.
4915         * modules/printf-frexp-tests (Files): Likewise.
4916         * modules/printf-frexpl-tests (Files): Likewise.
4917         * modules/printf-posix-tests (Files): Likewise.
4918         * modules/priv-set-tests (Files): Likewise.
4919         * modules/quotearg-tests (Files): Likewise.
4920         * modules/random_r-tests (Files): Likewise.
4921         * modules/rawmemchr-tests (Files): Likewise.
4922         * modules/rbtree-list-tests (Files): Likewise.
4923         * modules/rbtree-oset-tests (Files): Likewise.
4924         * modules/rbtreehash-list-tests (Files): Likewise.
4925         * modules/readlink-tests (Files): Likewise.
4926         * modules/remove-tests (Files): Likewise.
4927         * modules/rename-tests (Files): Likewise.
4928         * modules/renameat-tests (Files): Likewise.
4929         * modules/rmdir-tests (Files): Likewise.
4930         * modules/round-tests (Files): Likewise.
4931         * modules/roundf-tests (Files): Likewise.
4932         * modules/roundl-tests (Files): Likewise.
4933         * modules/safe-alloc-tests (Files): Likewise.
4934         * modules/setenv-tests (Files): Likewise.
4935         * modules/sigaction-tests (Files): Likewise.
4936         * modules/signbit-tests (Files): Likewise.
4937         * modules/sleep-tests (Files): Likewise.
4938         * modules/snprintf-posix-tests (Files): Likewise.
4939         * modules/snprintf-tests (Files): Likewise.
4940         * modules/sprintf-posix-tests (Files): Likewise.
4941         * modules/stat-tests (Files): Likewise.
4942         * modules/stat-time-tests (Files): Likewise.
4943         * modules/strcasestr-tests (Files): Likewise.
4944         * modules/strchrnul-tests (Files): Likewise.
4945         * modules/strerror-tests (Files): Likewise.
4946         * modules/striconv-tests (Files): Likewise.
4947         * modules/striconveh-tests (Files): Likewise.
4948         * modules/striconveha-tests (Files): Likewise.
4949         * modules/strsignal-tests (Files): Likewise.
4950         * modules/strstr-tests (Files): Likewise.
4951         * modules/strtod-tests (Files): Likewise.
4952         * modules/strverscmp-tests (Files): Likewise.
4953         * modules/symlink-tests (Files): Likewise.
4954         * modules/symlinkat-tests (Files): Likewise.
4955         * modules/trunc-tests (Files): Likewise.
4956         * modules/truncf-tests (Files): Likewise.
4957         * modules/truncl-tests (Files): Likewise.
4958         * modules/uname-tests (Files): Likewise.
4959         * modules/unicase/cased-tests (Files): Likewise.
4960         * modules/unicase/ignorable-tests (Files): Likewise.
4961         * modules/unicase/locale-language-tests (Files): Likewise.
4962         * modules/unicase/tolower-tests (Files): Likewise.
4963         * modules/unicase/totitle-tests (Files): Likewise.
4964         * modules/unicase/toupper-tests (Files): Likewise.
4965         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4966         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4967         * modules/unicase/u8-casefold-tests (Files): Likewise.
4968         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4969         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4970         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4971         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4972         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4973         * modules/unicase/u8-tolower-tests (Files): Likewise.
4974         * modules/unicase/u8-totitle-tests (Files): Likewise.
4975         * modules/unicase/u8-toupper-tests (Files): Likewise.
4976         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4977         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4978         * modules/unicase/u16-casefold-tests (Files): Likewise.
4979         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4980         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4981         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4982         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4983         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4984         * modules/unicase/u16-tolower-tests (Files): Likewise.
4985         * modules/unicase/u16-totitle-tests (Files): Likewise.
4986         * modules/unicase/u16-toupper-tests (Files): Likewise.
4987         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4988         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4989         * modules/unicase/u32-casefold-tests (Files): Likewise.
4990         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4991         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4992         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4993         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4994         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4995         * modules/unicase/u32-tolower-tests (Files): Likewise.
4996         * modules/unicase/u32-totitle-tests (Files): Likewise.
4997         * modules/unicase/u32-toupper-tests (Files): Likewise.
4998         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4999         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5000         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5001         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5002         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5003         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5004         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5005         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5006         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5007         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5008         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5009         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5010         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5011         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5012         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5013         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5014         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5015         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5016         * modules/unictype/block-list-tests (Files): Likewise.
5017         * modules/unictype/block-of-tests (Files): Likewise.
5018         * modules/unictype/block-test-tests (Files): Likewise.
5019         * modules/unictype/category-C-tests (Files): Likewise.
5020         * modules/unictype/category-Cc-tests (Files): Likewise.
5021         * modules/unictype/category-Cf-tests (Files): Likewise.
5022         * modules/unictype/category-Cn-tests (Files): Likewise.
5023         * modules/unictype/category-Co-tests (Files): Likewise.
5024         * modules/unictype/category-Cs-tests (Files): Likewise.
5025         * modules/unictype/category-L-tests (Files): Likewise.
5026         * modules/unictype/category-Ll-tests (Files): Likewise.
5027         * modules/unictype/category-Lm-tests (Files): Likewise.
5028         * modules/unictype/category-Lo-tests (Files): Likewise.
5029         * modules/unictype/category-Lt-tests (Files): Likewise.
5030         * modules/unictype/category-Lu-tests (Files): Likewise.
5031         * modules/unictype/category-M-tests (Files): Likewise.
5032         * modules/unictype/category-Mc-tests (Files): Likewise.
5033         * modules/unictype/category-Me-tests (Files): Likewise.
5034         * modules/unictype/category-Mn-tests (Files): Likewise.
5035         * modules/unictype/category-N-tests (Files): Likewise.
5036         * modules/unictype/category-Nd-tests (Files): Likewise.
5037         * modules/unictype/category-Nl-tests (Files): Likewise.
5038         * modules/unictype/category-No-tests (Files): Likewise.
5039         * modules/unictype/category-P-tests (Files): Likewise.
5040         * modules/unictype/category-Pc-tests (Files): Likewise.
5041         * modules/unictype/category-Pd-tests (Files): Likewise.
5042         * modules/unictype/category-Pe-tests (Files): Likewise.
5043         * modules/unictype/category-Pf-tests (Files): Likewise.
5044         * modules/unictype/category-Pi-tests (Files): Likewise.
5045         * modules/unictype/category-Po-tests (Files): Likewise.
5046         * modules/unictype/category-Ps-tests (Files): Likewise.
5047         * modules/unictype/category-S-tests (Files): Likewise.
5048         * modules/unictype/category-Sc-tests (Files): Likewise.
5049         * modules/unictype/category-Sk-tests (Files): Likewise.
5050         * modules/unictype/category-Sm-tests (Files): Likewise.
5051         * modules/unictype/category-So-tests (Files): Likewise.
5052         * modules/unictype/category-Z-tests (Files): Likewise.
5053         * modules/unictype/category-Zl-tests (Files): Likewise.
5054         * modules/unictype/category-Zp-tests (Files): Likewise.
5055         * modules/unictype/category-Zs-tests (Files): Likewise.
5056         * modules/unictype/category-and-not-tests (Files): Likewise.
5057         * modules/unictype/category-and-tests (Files): Likewise.
5058         * modules/unictype/category-byname-tests (Files): Likewise.
5059         * modules/unictype/category-name-tests (Files): Likewise.
5060         * modules/unictype/category-none-tests (Files): Likewise.
5061         * modules/unictype/category-of-tests (Files): Likewise.
5062         * modules/unictype/category-or-tests (Files): Likewise.
5063         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5064         * modules/unictype/combining-class-tests (Files): Likewise.
5065         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5066         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5067         * modules/unictype/ctype-blank-tests (Files): Likewise.
5068         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5069         * modules/unictype/ctype-digit-tests (Files): Likewise.
5070         * modules/unictype/ctype-graph-tests (Files): Likewise.
5071         * modules/unictype/ctype-lower-tests (Files): Likewise.
5072         * modules/unictype/ctype-print-tests (Files): Likewise.
5073         * modules/unictype/ctype-punct-tests (Files): Likewise.
5074         * modules/unictype/ctype-space-tests (Files): Likewise.
5075         * modules/unictype/ctype-upper-tests (Files): Likewise.
5076         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5077         * modules/unictype/decimal-digit-tests (Files): Likewise.
5078         * modules/unictype/digit-tests (Files): Likewise.
5079         * modules/unictype/mirror-tests (Files): Likewise.
5080         * modules/unictype/numeric-tests (Files): Likewise.
5081         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5082         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5083         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5084         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5085         Likewise.
5086         * modules/unictype/property-bidi-block-separator-tests (Files):
5087         Likewise.
5088         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5089         Likewise.
5090         * modules/unictype/property-bidi-common-separator-tests (Files):
5091         Likewise.
5092         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5093         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5094         Likewise.
5095         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5096         Likewise.
5097         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5098         Likewise.
5099         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5100         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5101         Likewise.
5102         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5103         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5104         Likewise.
5105         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5106         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5107         * modules/unictype/property-bidi-segment-separator-tests (Files):
5108         Likewise.
5109         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5110         * modules/unictype/property-byname-tests (Files): Likewise.
5111         * modules/unictype/property-combining-tests (Files): Likewise.
5112         * modules/unictype/property-composite-tests (Files): Likewise.
5113         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5114         * modules/unictype/property-dash-tests (Files): Likewise.
5115         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5116         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5117         Likewise.
5118         * modules/unictype/property-deprecated-tests (Files): Likewise.
5119         * modules/unictype/property-diacritic-tests (Files): Likewise.
5120         * modules/unictype/property-extender-tests (Files): Likewise.
5121         * modules/unictype/property-format-control-tests (Files): Likewise.
5122         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5123         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5124         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5125         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5126         * modules/unictype/property-hyphen-tests (Files): Likewise.
5127         * modules/unictype/property-id-continue-tests (Files): Likewise.
5128         * modules/unictype/property-id-start-tests (Files): Likewise.
5129         * modules/unictype/property-ideographic-tests (Files): Likewise.
5130         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5131         * modules/unictype/property-ids-trinary-operator-tests (Files):
5132         Likewise.
5133         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5134         * modules/unictype/property-iso-control-tests (Files): Likewise.
5135         * modules/unictype/property-join-control-tests (Files): Likewise.
5136         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5137         * modules/unictype/property-line-separator-tests (Files): Likewise.
5138         * modules/unictype/property-logical-order-exception-tests (Files):
5139         Likewise.
5140         * modules/unictype/property-lowercase-tests (Files): Likewise.
5141         * modules/unictype/property-math-tests (Files): Likewise.
5142         * modules/unictype/property-non-break-tests (Files): Likewise.
5143         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5144         * modules/unictype/property-numeric-tests (Files): Likewise.
5145         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5146         * modules/unictype/property-other-default-ignorable-code-point-tests
5147         (Files): Likewise.
5148         * modules/unictype/property-other-grapheme-extend-tests (Files):
5149         Likewise.
5150         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5151         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5152         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5153         * modules/unictype/property-other-math-tests (Files): Likewise.
5154         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5155         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5156         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5157         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5158         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5159         * modules/unictype/property-private-use-tests (Files): Likewise.
5160         * modules/unictype/property-punctuation-tests (Files): Likewise.
5161         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5162         * modules/unictype/property-radical-tests (Files): Likewise.
5163         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5164         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5165         * modules/unictype/property-space-tests (Files): Likewise.
5166         * modules/unictype/property-terminal-punctuation-tests (Files):
5167         Likewise.
5168         * modules/unictype/property-test-tests (Files): Likewise.
5169         * modules/unictype/property-titlecase-tests (Files): Likewise.
5170         * modules/unictype/property-unassigned-code-value-tests (Files):
5171         Likewise.
5172         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5173         * modules/unictype/property-uppercase-tests (Files): Likewise.
5174         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5175         * modules/unictype/property-white-space-tests (Files): Likewise.
5176         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5177         * modules/unictype/property-xid-start-tests (Files): Likewise.
5178         * modules/unictype/property-zero-width-tests (Files): Likewise.
5179         * modules/unictype/scripts-tests (Files): Likewise.
5180         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5181         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5182         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5183         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5184         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5185         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5186         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5187         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5188         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5189         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5190         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5191         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5192         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5193         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5194         * modules/uninorm/composition-tests (Files): Likewise.
5195         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5196         * modules/uninorm/decomposition-tests (Files): Likewise.
5197         * modules/uninorm/filter-tests (Files): Likewise.
5198         * modules/uninorm/nfc-tests (Files): Likewise.
5199         * modules/uninorm/nfd-tests (Files): Likewise.
5200         * modules/uninorm/nfkc-tests (Files): Likewise.
5201         * modules/uninorm/nfkd-tests (Files): Likewise.
5202         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5203         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5204         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5205         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5206         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5207         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5208         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5209         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5210         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5211         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5212         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5213         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5214         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5215         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5216         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5217         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5218         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5219         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5220         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5221         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5222         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5223         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5224         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5225         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5226         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5227         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5228         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5229         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5230         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5231         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5232         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5233         * modules/uniwidth/u8-width-tests (Files): Likewise.
5234         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5235         * modules/uniwidth/u16-width-tests (Files): Likewise.
5236         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5237         * modules/uniwidth/u32-width-tests (Files): Likewise.
5238         * modules/uniwidth/width-tests (Files): Likewise.
5239         * modules/unlink-tests (Files): Likewise.
5240         * modules/unsetenv-tests (Files): Likewise.
5241         * modules/usleep-tests (Files): Likewise.
5242         * modules/utimens-tests (Files): Likewise.
5243         * modules/utimensat-tests (Files): Likewise.
5244         * modules/vasnprintf-posix-tests (Files): Likewise.
5245         * modules/vasnprintf-tests (Files): Likewise.
5246         * modules/vasprintf-posix-tests (Files): Likewise.
5247         * modules/vasprintf-tests (Files): Likewise.
5248         * modules/vdprintf-posix-tests (Files): Likewise.
5249         * modules/vfprintf-posix-tests (Files): Likewise.
5250         * modules/vprintf-posix-tests (Files): Likewise.
5251         * modules/vsnprintf-posix-tests (Files): Likewise.
5252         * modules/vsnprintf-tests (Files): Likewise.
5253         * modules/vsprintf-posix-tests (Files): Likewise.
5254         * modules/wcrtomb-tests (Files): Likewise.
5255         * modules/wcsnrtombs-tests (Files): Likewise.
5256         * modules/wcsrtombs-tests (Files): Likewise.
5257         * modules/wctype-tests (Files): Likewise.
5258         * modules/wcwidth-tests (Files): Likewise.
5259         * modules/xmemdup0-tests (Files): Likewise.
5260         * modules/xprintf-posix-tests (Files): Likewise.
5261         * modules/xvasprintf-tests (Files): Likewise.
5262
5263 2009-12-24  Eric Blake  <ebb9@byu.net>
5264
5265         test-nanosleep: fix typo
5266         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5267         patch.
5268         Reported by Bruno Haible.
5269
5270 2009-12-24  Bruno Haible  <bruno@clisp.org>
5271
5272         Reduce namespace pollution on glibc systems.
5273         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5274         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5275         systems.
5276         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5277         <getopt.h> on glibc systems.
5278         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5279         systems.
5280         * lib/fcntl.c: Include <unistd.h> here instead.
5281
5282 2009-12-24  Bruno Haible  <bruno@clisp.org>
5283
5284         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5285
5286 2009-12-24  Eric Blake  <ebb9@byu.net>
5287
5288         tests: add signature checks
5289         * tests/signature.h (SIGNATURE_CHECK): New file.
5290         * modules/atexit-tests (Files): Use it.
5291         * modules/btowc-tests (Files): Likewise.
5292         * modules/canonicalize-lgpl-tests (Files): Likewise.
5293         * modules/ceilf-tests (Files): Likewise.
5294         * modules/ceill-tests (Files): Likewise.
5295         * modules/chown-tests (Files): Likewise.
5296         * modules/dprintf-posix-tests (Files): Likewise.
5297         * modules/dup2-tests (Files): Likewise.
5298         * modules/dup3-tests (Files): Likewise.
5299         * modules/duplocale-tests (Files): Likewise.
5300         * modules/fchdir-tests (Files): Likewise.
5301         * modules/fcntl-tests (Files): Likewise.
5302         * modules/fdopendir-tests (Files): Likewise.
5303         * modules/fflush-tests (Files): Likewise.
5304         * modules/flock-tests (Files): Likewise.
5305         * modules/floorf-tests (Files): Likewise.
5306         * modules/floorl-tests (Files): Likewise.
5307         * modules/fnmatch-tests (Files): Likewise.
5308         * modules/fopen-tests (Files): Likewise.
5309         * modules/fprintf-posix-tests (Files): Likewise.
5310         * modules/freopen-tests (Files): Likewise.
5311         * modules/frexp-nolibm-tests (Files): Likewise.
5312         * modules/frexp-tests (Files): Likewise.
5313         * modules/frexpl-nolibm-tests (Files): Likewise.
5314         * modules/frexpl-tests (Files): Likewise.
5315         * modules/fseek-tests (Files): Likewise.
5316         * modules/fseeko-tests (Files): Likewise.
5317         * modules/fsync-tests (Files): Likewise.
5318         * modules/ftell-tests (Files): Likewise.
5319         * modules/ftello-tests (Files): Likewise.
5320         * modules/futimens-tests (Files): Likewise.
5321         * modules/getaddrinfo-tests (Files): Likewise.
5322         * modules/getcwd-tests (Files): Likewise.
5323         * modules/getdelim-tests (Files): Likewise.
5324         * modules/getdtablesize-tests (Files): Likewise.
5325         * modules/getgroups-tests (Files): Likewise.
5326         * modules/gethostname-tests (Files): Likewise.
5327         * modules/getline-tests (Files): Likewise.
5328         * modules/getopt-posix-tests (Files): Likewise.
5329         * modules/gettimeofday-tests (Files): Likewise.
5330         * modules/glob-tests (Files): Likewise.
5331         * modules/iconv-tests (Files): Likewise.
5332         * modules/inet_ntop-tests (Files): Likewise.
5333         * modules/inet_pton-tests (Files): Likewise.
5334         * modules/isblank-tests (Files): Likewise.
5335         * modules/lchown-tests (Files): Likewise.
5336         * modules/ldexpl-tests (Files): Likewise.
5337         * modules/link-tests (Files): Likewise.
5338         * modules/linkat-tests (Files): Likewise.
5339         * modules/lseek-tests (Files): Likewise.
5340         * modules/lstat-tests (Files): Likewise.
5341         * modules/mbrtowc-tests (Files): Likewise.
5342         * modules/mbsinit-tests (Files): Likewise.
5343         * modules/mbsnrtowcs-tests (Files): Likewise.
5344         * modules/mbsrtowcs-tests (Files): Likewise.
5345         * modules/memchr-tests (Files): Likewise.
5346         * modules/memcmp-tests (Files): Likewise.
5347         * modules/memmem-tests (Files): Likewise.
5348         * modules/memrchr-tests (Files): Likewise.
5349         * modules/mkdir-tests (Files): Likewise.
5350         * modules/mkfifo-tests (Files): Likewise.
5351         * modules/mkfifoat-tests (Files): Likewise.
5352         * modules/mknod-tests (Files): Likewise.
5353         * modules/nanosleep-tests (Files): Likewise.
5354         * modules/nl_langinfo-tests (Files): Likewise.
5355         * modules/obstack-printf-tests (Files): Likewise.
5356         * modules/open-tests (Files): Likewise.
5357         * modules/openat-tests (Files): Likewise.
5358         * modules/perror-tests (Files): Likewise.
5359         * modules/pipe2-tests (Files): Likewise.
5360         * modules/poll-tests (Files): Likewise.
5361         * modules/popen-tests (Files): Likewise.
5362         * modules/posix_spawn-tests (Files): Likewise.
5363         * modules/posix_spawnp-tests (Files): Likewise.
5364         * modules/pread-tests (Files): Likewise.
5365         * modules/printf-posix-tests (Files): Likewise.
5366         * modules/pty-tests (Files): Likewise.
5367         * modules/random_r-tests (Files): Likewise.
5368         * modules/rawmemchr-tests (Files): Likewise.
5369         * modules/readlink-tests (Files): Likewise.
5370         * modules/remove-tests (Files): Likewise.
5371         * modules/rename-tests (Files): Likewise.
5372         * modules/renameat-tests (Files): Likewise.
5373         * modules/rmdir-tests (Files): Likewise.
5374         * modules/round-tests (Files): Likewise.
5375         * modules/roundf-tests (Files): Likewise.
5376         * modules/roundl-tests (Files): Likewise.
5377         * modules/select-tests (Files): Likewise.
5378         * modules/setenv-tests (Files): Likewise.
5379         * modules/sigaction-tests (Files): Likewise.
5380         * modules/sleep-tests (Files): Likewise.
5381         * modules/snprintf-posix-tests (Files): Likewise.
5382         * modules/snprintf-tests (Files): Likewise.
5383         * modules/sprintf-posix-tests (Files): Likewise.
5384         * modules/stat-tests (Files): Likewise.
5385         * modules/strcasestr-tests (Files): Likewise.
5386         * modules/strchrnul-tests (Files): Likewise.
5387         * modules/strerror-tests (Files): Likewise.
5388         * modules/strsignal-tests (Files): Likewise.
5389         * modules/strstr-tests (Files): Likewise.
5390         * modules/strtod-tests (Files): Likewise.
5391         * modules/strverscmp-tests (Files): Likewise.
5392         * modules/symlink-tests (Files): Likewise.
5393         * modules/symlinkat-tests (Files): Likewise.
5394         * modules/times-tests (Files): Likewise.
5395         * modules/trunc-tests (Files): Likewise.
5396         * modules/truncf-tests (Files): Likewise.
5397         * modules/truncl-tests (Files): Likewise.
5398         * modules/tsearch-tests (Files): Likewise.
5399         * modules/uname-tests (Files): Likewise.
5400         * modules/unlink-tests (Files): Likewise.
5401         * modules/unsetenv-tests (Files): Likewise.
5402         * modules/usleep-tests (Files): Likewise.
5403         * modules/utimensat-tests (Files): Likewise.
5404         * modules/vasprintf-tests (Files): Likewise.
5405         * modules/vdprintf-posix-tests (Files): Likewise.
5406         * modules/vfprintf-posix-tests (Files): Likewise.
5407         * modules/vprintf-posix-tests (Files): Likewise.
5408         * modules/vsnprintf-posix-tests (Files): Likewise.
5409         * modules/vsnprintf-tests (Files): Likewise.
5410         * modules/vsprintf-posix-tests (Files): Likewise.
5411         * modules/wcrtomb-tests (Files): Likewise.
5412         * modules/wcsnrtombs-tests (Files): Likewise.
5413         * modules/wcsrtombs-tests (Files): Likewise.
5414         * modules/wcwidth-tests (Files): Likewise.
5415         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5416         * tests/test-isinf.c (isinf): Likewise.
5417         * tests/test-isnan.c (isnan): Likewise.
5418         * tests/test-signbit.c (signbit): Likewise.
5419         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5420         declaration, either as macro or with correct signature.
5421         (select): Ensure function under test is declared with correct
5422         signature in correct header.
5423         * tests/test-atexit.c (atexit): Likewise.
5424         * tests/test-btowc.c (btowc): Likewise.
5425         * tests/test-canonicalize-lgpl.c (realpath)
5426         (canonicalize_file_name): Likewise.
5427         * tests/test-ceilf1.c (ceilf): Likewise.
5428         * tests/test-ceill.c (ceill): Likewise.
5429         * tests/test-chown.c (chown): Likewise.
5430         * tests/test-dprintf-posix.c (dprintf): Likewise.
5431         * tests/test-dup2.c (dup2): Likewise.
5432         * tests/test-dup3.c (dup3): Likewise.
5433         * tests/test-duplocale.c (duplocale): Likewise.
5434         * tests/test-fchdir.c (fchdir): Likewise.
5435         * tests/test-fchownat.c (fchownat): Likewise.
5436         * tests/test-fcntl.c (fcntl): Likewise.
5437         * tests/test-fdopendir.c (fdopendir): Likewise.
5438         * tests/test-fflush.c (fflush): Likewise.
5439         * tests/test-flock.c (flock): Likewise.
5440         * tests/test-floorf1.c (floorf): Likewise.
5441         * tests/test-floorl.c (floorl): Likewise.
5442         * tests/test-fnmatch.c (fnmatch): Likewise.
5443         * tests/test-fopen.c (fopen): Likewise.
5444         * tests/test-fprintf-posix.c (fprintf): Likewise.
5445         * tests/test-freopen.c (freopen): Likewise.
5446         * tests/test-frexp.c (frexp): Likewise.
5447         * tests/test-frexpl.c (frexpl): Likewise.
5448         * tests/test-fseek.c (fseek): Likewise.
5449         * tests/test-fseeko.c (fseeko): Likewise.
5450         * tests/test-fstatat.c (fstatat): Likewise.
5451         * tests/test-fsync.c (fsync): Likewise.
5452         * tests/test-ftell.c (ftell): Likewise.
5453         * tests/test-ftello.c (ftello): Likewise.
5454         * tests/test-futimens.c (futimens): Likewise.
5455         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5456         (gai_strerror): Likewise.
5457         * tests/test-getcwd.c (getcwd): Likewise.
5458         * tests/test-getdelim.c (getdelim): Likewise.
5459         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5460         * tests/test-getgroups.c (getgroups): Likewise.
5461         * tests/test-gethostname.c (gethostname): Likewise.
5462         * tests/test-getline.c (getline): Likewise.
5463         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5464         Likewise.
5465         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5466         * tests/test-glob.c (glob, globfree): Likewise.
5467         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5468         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5469         * tests/test-inet_pton.c (inet_pton): Likewise.
5470         * tests/test-isblank.c (isblank): Likewise.
5471         * tests/test-lchown.c (lchown): Likewise.
5472         * tests/test-ldexpl.c (ldexpl): Likewise.
5473         * tests/test-link.c (link): Likewise.
5474         * tests/test-linkat.c (linkat): Likewise.
5475         * tests/test-lseek.c (lseek): Likewise.
5476         * tests/test-lstat.c (lstat): Likewise.
5477         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5478         * tests/test-mbsinit.c (mbsinit): Likewise.
5479         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5480         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5481         * tests/test-memchr.c (memchr): Likewise.
5482         * tests/test-memcmp.c (memcmp): Likewise.
5483         * tests/test-memmem.c (memmem): Likewise.
5484         * tests/test-memrchr.c (memrchr): Likewise.
5485         * tests/test-mkdir.c (mkdir): Likewise.
5486         * tests/test-mkdirat.c (mkdirat): Likewise.
5487         * tests/test-mkfifo.c (mkfifo): Likewise.
5488         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5489         * tests/test-mknod.c (mknod): Likewise.
5490         * tests/test-nanosleep.c (nanosleep): Likewise.
5491         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5492         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5493         Likewise.
5494         * tests/test-open.c (open): Likewise.
5495         * tests/test-openat.c (openat): Likewise.
5496         * tests/test-perror.c (perror): Likewise.
5497         * tests/test-pipe2.c (pipe2): Likewise.
5498         * tests/test-poll.c (poll): Likewise.
5499         * tests/test-popen.c (popen, pclose): Likewise.
5500         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5501         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5502         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5503         (posix_spawn_file_actions_destroy)
5504         (posix_spawn_file_actions_addclose)
5505         (posix_spawn_file_actions_addopen)
5506         (posix_spawn_file_actions_adddup2): Likewise.
5507         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5508         * tests/test-pread.c (pread): Likewise.
5509         * tests/test-printf-posix.c (printf): Likewise.
5510         * tests/test-pty.c (openpty, forkpty): Likewise.
5511         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5512         (random_r): Likewise.
5513         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5514         * tests/test-readlink.c (readlink): Likewise.
5515         * tests/test-remove.c (remove): Likewise.
5516         * tests/test-rename.c (rename): Likewise.
5517         * tests/test-renameat.c (renameat): Likewise.
5518         * tests/test-rmdir.c (rmdir): Likewise.
5519         * tests/test-round1.c (round): Likewise.
5520         * tests/test-roundf1.c (roundf): Likewise.
5521         * tests/test-roundl.c (roundl): Likewise.
5522         * tests/test-setenv.c (setenv): Likewise.
5523         * tests/test-sigaction.c (sigaction): Likewise.
5524         * tests/test-sleep.c (sleep): Likewise.
5525         * tests/test-snprintf.c (snprintf): Likewise.
5526         * tests/test-sprintf-posix.c (sprintf): Likewise.
5527         * tests/test-stat.c (stat): Likewise.
5528         * tests/test-stpncpy.c (stpncpy): Likewise.
5529         * tests/test-strcasestr.c (strcasestr): Likewise.
5530         * tests/test-strchrnul.c (strchrnul): Likewise.
5531         * tests/test-strerror.c (strerror): Likewise.
5532         * tests/test-strsignal.c (strsignal): Likewise.
5533         * tests/test-strstr.c (strstr): Likewise.
5534         * tests/test-strtod.c (strtod): Likewise.
5535         * tests/test-strverscmp.c (strverscmp): Likewise.
5536         * tests/test-symlink.c (symlink): Likewise.
5537         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5538         * tests/test-times.c (times): Likewise.
5539         * tests/test-trunc1.c (trunc): Likewise.
5540         * tests/test-truncf1.c (truncf): Likewise.
5541         * tests/test-truncl.c (truncl): Likewise.
5542         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5543         Likewise.
5544         * tests/test-uname.c (uname): Likewise.
5545         * tests/test-unlink.c (unlink): Likewise.
5546         * tests/test-unlinkat.c (unlinkat): Likewise.
5547         * tests/test-unsetenv.c (unsetenv): Likewise.
5548         * tests/test-usleep.c (usleep): Likewise.
5549         * tests/test-utimensat.c (utimensat): Likewise.
5550         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5551         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5552         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5553         * tests/test-vprintf-posix.c (vprintf): Likewise.
5554         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5555         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5556         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5557         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5558         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5559         * tests/test-wcwidth.c (wcwidth): Likewise.
5560
5561         build: pull in conditional headers during GNULIB_POSIXCHECK
5562         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5563         definitions from any conditionally-included headers.
5564         * lib/stdlib.in.h (includes): Likewise.
5565         * lib/unistd.in.h (includes): Likewise.
5566
5567 2009-12-24  Bruno Haible  <bruno@clisp.org>
5568
5569         * tests/test-argv-iter.c: Include header file being tested immediately
5570         after config.h.
5571         * tests/test-base64.c: Likewise.
5572         * tests/test-flock.c: Likewise.
5573         * tests/test-fsync.c: Likewise.
5574         * tests/test-getdate.c: Likewise.
5575         * tests/test-getndelim2.c: Likewise.
5576         * tests/test-isfinite.c: Likewise.
5577         * tests/test-isinf.c: Likewise.
5578         * tests/test-strerror.c: Likewise.
5579         * tests/test-strsignal.c: Likewise.
5580
5581 2009-12-23  Eric Blake  <ebb9@byu.net>
5582
5583         unistd: work around cygwin bug
5584         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5585         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5586         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5587
5588 2009-12-23  Bruno Haible  <bruno@clisp.org>
5589
5590         localename: More tests.
5591         * tests/test-localename.c (SIZEOF): New macro.
5592         (categories): New variable.
5593         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5594         test_locale_name_default): Add test w.r.t. thread locale.
5595         (test_locale_name_thread): New function.
5596         (main): Invoke it.
5597
5598         localename: Make aware of thread locale.
5599         * lib/localename.h (gl_locale_name_thread): New declaration.
5600         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5601         behaviour with respect to thread locale.
5602         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5603         <langinfo.h>, glthread/lock.h.
5604         (SIZE_BITS): New macro.
5605         (string_hash): New function.
5606         (struct hash_node): New type.
5607         (HASH_TABLE_SIZE): New macro.
5608         (struniq_hash_table, struniq_lock): New variables.
5609         (struniq): New function.
5610         (gl_locale_name_thread): New function.
5611         (gl_locale_name): Invoke it.
5612         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5613         * modules/localename (Depends-on): Add lock.
5614         Reported by Mike Gran <spk121@yahoo.com>.
5615
5616 2009-12-23  Eric Blake  <ebb9@byu.net>
5617
5618         va-args: new module
5619         * modules/va-args: New file.
5620         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5621         * MODULES.html.sh (Core language properties): Mention it.
5622
5623         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5624         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5625         named alias for __attribute__((__unused__)).
5626         * lib/chown.c: Update client.
5627         * lib/fchmodat.c: Likewise.
5628         * lib/fts.c: Likewise.
5629         * lib/getdate.y: Likewise.
5630         * lib/getgroups.c: Likewise.
5631         * lib/getopt.c: Likewise.
5632         * lib/getugroups.c: Likewise.
5633         * lib/mkdir.c: Likewise.
5634         * lib/mkfifo.c: Likewise.
5635         * lib/mkfifoat.c: Likewise.
5636         * lib/mknod.c: Likewise.
5637         * lib/mknodat.c: Likewise.
5638         * lib/readlink.c: Likewise.
5639         * lib/se-context.in.h: Likewise.
5640         * lib/se-selinux.in.h: Likewise.
5641         * lib/sockets.c: Likewise.
5642         * lib/symlink.c: Likewise.
5643         * lib/symlinkat.c: Likewise.
5644         * lib/unicodeio.c: Likewise.
5645         * lib/unistr.h: Likewise.
5646         * tests/test-areadlink.c: Likewise.
5647         * tests/test-areadlinkat.c: Likewise.
5648         * tests/test-filenamecat.c: Likewise.
5649         * tests/test-fseeko.c: Likewise.
5650         * tests/test-ftello.c: Likewise.
5651         * tests/test-getdate.c: Likewise.
5652         * tests/test-getgroups.c: Likewise.
5653         * tests/test-gethostname.c: Likewise.
5654         * tests/test-quotearg.c: Likewise.
5655         * tests/test-version-etc.c: Likewise.
5656         * tests/test-xalloc-die.c: Likewise.
5657         * tests/test-xfprintf-posix.c: Likewise.
5658         * tests/test-xprintf-posix.c: Likewise.
5659         * tests/test-xvasprintf.c: Likewise.
5660
5661         tests: avoid compiler warnings
5662         * tests/test-fcntl.c (main): Delete unused parameters.
5663         * tests/test-freopen-safer.c (main): Likewise.
5664         * tests/test-xalloc-die.c (main): Mark unused parameters.
5665         * tests/test-fseeko.c (main): Likewise.
5666         * tests/test-ftello.c (main): Likewise.
5667         * tests/test-nanosleep.c (main): Avoid declaration warning.
5668         * tests/test-sleep.c (main): Likewise.
5669         * tests/test-unsetenv.c (main): Silence warning about string
5670         literal.
5671         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5672
5673 2009-12-23  Bruno Haible  <bruno@clisp.org>
5674
5675         * tests/test-localename.c (test_locale_name): New function, extracted
5676         from main. Also test mixed situations.
5677         (test_locale_name_posix, test_locale_name_environ,
5678         test_locale_name_default): New functions.
5679         (main): Invoke them all.
5680         * modules/localename-tests (configure.ac): Test for newlocale.
5681
5682 2009-12-23  Bruno Haible  <bruno@clisp.org>
5683
5684         unistd: Ensure getcwd gets declared before being overridden.
5685         * lib/unistd.in.h: Conditionally include <io.h>.
5686
5687 2009-12-22  Bruno Haible  <bruno@clisp.org>
5688
5689         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5690         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5691         (gl_WCHAR_H): Invoke it.
5692         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5693         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5694         Reported by Karl Berry <karl@freefriends.org>.
5695
5696 2009-12-22  Eric Blake  <ebb9@byu.net>
5697
5698         math, unistd: avoid redundant includes
5699         * lib/math.in.h (isnan): No need to re-include <math.h>.
5700         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5701
5702         getsubopt: work around cygwin bug
5703         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5704         avoid conflicting with system getsubopt.
5705         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5706         bug.
5707
5708         getopt: synchronize from glibc
5709         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5710         parameter order.  Adjust all callers.
5711         (_getopt_internal_r, main): Adjust quoting in error messages.
5712         Drop considerations for outdated POSIX 1003.2 error message.
5713         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5714         callers.
5715         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5716
5717         test-getopt: test stderr behavior
5718         * modules/getopt-posix-tests (Depends-on): Add dup2.
5719         * tests/test-getopt.c (ASSERT): Avoid stderr.
5720         (main): Move stderr to a temporary file.
5721         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5722         Instead, add parameter to inform caller if output occurred.
5723         (test_getopt): Adjust all existing tests to expect silence, and
5724         add new tests of leading ":".
5725         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5726         glibc shortcomings with leading "-:" or "+:" in optstring.
5727         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5728         Likewise.
5729         * doc/posix-functions/getopt.texi (getopt): Likewise.
5730
5731         test-getopt: enhance test
5732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5733         supports optind=0.
5734         * tests/test-getopt.c (OPTIND_MIN): Move...
5735         * tests/test-getopt.h (OPTIND_MIN): ...here.
5736         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5737         Require that optind=0 works, since modern BSD supports it in
5738         addition to optreset, and since coreutils expects it.
5739         (test_getopt_long_only): New test.
5740         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5741         glibc shortcomings with 'W;', and enforcement of optind=0.
5742         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5743         Likewise.
5744
5745 2009-12-21  Bruno Haible  <bruno@clisp.org>
5746
5747         localename: Improvements for MacOS X and Cygwin.
5748         * lib/localename.h (gl_locale_name_environ): New declaration.
5749         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5750         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5751         (gl_locale_name_posix): Invoke it.
5752         (gl_locale_name_default): Add comments. Use Windows native API also on
5753         Cygwin.
5754
5755 2009-12-21  Bruno Haible  <bruno@clisp.org>
5756
5757         Update list of Win32 locale ids.
5758         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5759         (LANG_SAMI): Renamed from LANG_SAAMI.
5760         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5761         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5762         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5763         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5764         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5765         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5766         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5767         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5768         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5769         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5770         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5771         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5772         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5773         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5774         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5775         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5776         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5777         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5778         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5779         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5780         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5781         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5782         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5783         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5784         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5785         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5786         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5787         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5788         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5789         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5790         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5791         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5792         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5793         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5794         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5795         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5796         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5797         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5798         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5799         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5800         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5801         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5802         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5803         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5804         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5805         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5806         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5807         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5808         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5809         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5810         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5811         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5812         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5813         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5814         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5815         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5816         Add more languages and countries for Sami, Sorbian. Add more countries
5817         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5818         for Pashto. Change country for Syriac, Tswana.
5819
5820 2009-12-21  Eric Blake  <ebb9@byu.net>
5821
5822         test-utimens: avoid spurious failure
5823         * tests/test-chown.h (nap): Factor...
5824         * tests/nap.h: ...into new file.
5825         * tests/test-lchown.h (nap): Avoid duplication.
5826         * tests/test-utimens-common.h (nap): Use shared implementation,
5827         necessary on file systems with 1-second resolution.
5828         * modules/chown-tests (Files): Include new file.
5829         * modules/fdutimensat-tests (Files): Likewise.
5830         * modules/futimens-tests (Files): Likewise.
5831         * modules/lchown-tests (Files): Likewise.
5832         * modules/openat-tests (Files): Likewise.
5833         * modules/utimens-tests (Files): Likewise.
5834         * modules/utimensat-tests (Files): Likewise.
5835
5836 2009-12-19  Eric Blake  <ebb9@byu.net>
5837
5838         futimens, utimensat: work around Linux bug
5839         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5840         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5841         * lib/utimensat.c (rpl_utimensat): Work around it.
5842         * lib/futimens.c (rpl_futimens): Adjust comment.
5843
5844         utimens: work around Linux ctime bug
5845         * lib/utimens.c (detect_ctime_bug): New helper function.
5846         (update_timespec): Differentiate between workaround needed for
5847         this bug vs. what is needed for systems that lack utimensat.
5848         (fdutimens, lutimens): Work around bug.
5849
5850         utimens: check for ctime update
5851         * tests/test-utimens-common.h (check_ctime): Define.
5852         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5853         * tests/test-futimens.h (test_futimens): Likewise.
5854         * tests/test-lutimens.h (test_lutimens): Likewise.
5855         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5856         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5857
5858 2009-12-19  Bruno Haible  <bruno@clisp.org>
5859
5860         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5861         * tests/test-dprintf-posix2.sh: New file.
5862         * tests/test-dprintf-posix2.c: New file.
5863         * modules/dprintf-posix-tests (Files): Add them.
5864         (configure.ac): Check for getrlimit and setrlimit.
5865         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5866
5867 2009-12-19  Bruno Haible  <bruno@clisp.org>
5868
5869         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5870         * tests/test-fprintf-posix3.sh: New file.
5871         * tests/test-fprintf-posix3.c: New file.
5872         * modules/fprintf-posix-tests (Files): Add them.
5873         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5874
5875 2009-12-19  Eric Blake  <ebb9@byu.net>
5876
5877         dirfd: fix prototype
5878         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5879         * lib/dirfd.c (dirfd): Likewise.
5880
5881         canonicalize: reduce memory usage
5882         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5883         allocation to size.
5884         Reported by Solar Designer <solar@openwall.com>.
5885
5886 2009-12-19  Bruno Haible  <bruno@clisp.org>
5887
5888         New module attribute 'Applicability'.
5889         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5890         * gnulib-tool: New option --extract-applicability.
5891         (func_usage): Document it.
5892         (sed_extract_prog): Recognize it.
5893         (func_get_applicability): New function.
5894         (func_import): Generalize handling of 'link-warning' module.
5895         * modules/link-warning (Applicability): New section.
5896         * modules/arg-nonnull (Applicability): New section.
5897         Repoted by Simon Josefsson <simon@josefsson.org>.
5898
5899 2009-12-19  Bruno Haible  <bruno@clisp.org>
5900
5901         fflush: tweak
5902         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5903         * lib/fseeko.c (rpl_fseeko): Likewise.
5904
5905 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5906
5907         * lib/gl_list.h: Fix typo in comment.
5908
5909 2009-12-16  Eric Blake  <ebb9@byu.net>
5910
5911         fcntl: use to simplify other modules
5912         * modules/cloexec (Depends-on): Add fcntl.
5913         * modules/fchdir (Depends-on): Likewise.
5914         * modules/fd-safer-flag (Depends-on): Likewise.
5915         * modules/unistd-safer (Depends-on): Likewise.
5916         * modules/dup3 (configure.ac): Set module indicator.
5917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5918         missing.
5919         * lib/fchdir.c (_gl_register_dup): Fix comment.
5920         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5921         * lib/dup-safer.c (dup_safer): Likewise.
5922         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5923         * lib/dup3.c (dup3): Likewise.
5924         * tests/test-fchdir.c (main): Enhance test.
5925         Fixes a dup_cloexec bug reported by Ondřej Vašík.
5926
5927         fcntl: port portions of fcntl to mingw
5928         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5929         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5930         replacement for mingw.
5931         * modules/fcntl (Description): Update.
5932         (Depends-on): Add dup2.
5933         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5934         * modules/fcntl-h (Makefile.am): Substitute it.
5935         * lib/fcntl.in.h (fcntl): Update declaration.
5936         (F_DUPFD, F_GETFD): New macros, when needed.
5937         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5938         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5939         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5940         we now guarantee.
5941
5942         fcntl: work around cygwin bug in F_DUPFD
5943         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5944         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5945         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5946         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5947         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5948
5949         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5950         * modules/fcntl (Files): List new files.
5951         (configure.ac): Run a test.
5952         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5953         * lib/fcntl.c (rpl_fcntl): Likewise.
5954         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5955         (gl_FCNTL_H): Always replace fcntl.h.
5956         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5957         * lib/fcntl.in.h (fcntl): Declare replacement.
5958         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5959         needed, plus a witness.
5960         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5961         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5962         * tests/test-fcntl.c: New file.
5963         * modules/fcntl-tests: Likewise.
5964
5965         binary-io: avoid potential compilation warning
5966         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5967         directives.
5968
5969         fflush: avoid compilation error on NetBSD
5970         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5971         between off_t and fpos_t, since the latter is sometimes a struct.
5972         * lib/fseeko.c (rpl_fseeko): Likewise.
5973         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5974
5975 2009-12-15  Eric Blake  <ebb9@byu.net>
5976
5977         fcntl-h, stdio, sys_ioctl: fix declarations
5978         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5979         function must not take arguments.
5980         * lib/sys_ioctl.in.h (ioctl): Likewise.
5981         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5982         (open): Add a link warning.
5983
5984 2009-12-15  Jim Meyering  <meyering@redhat.com>
5985
5986         areadlink, areadlink-with-size: relax license to LGPLv2+
5987         * modules/areadlink (License): Relax to LGPLv2+.
5988         * modules/areadlink-with-size (License): Likewise.
5989
5990 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5991             Bruno Haible  <bruno@clisp.org>
5992
5993         *printf: Fix memory leak.
5994         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5995         * lib/vfprintf.c (vfprintf): Likewise.
5996         * lib/dprintf.c (dprintf): Likewise.
5997         * lib/vdprintf.c (vdprintf): Likewise.
5998
5999 2009-12-14  Eric Blake  <ebb9@byu.net>
6000
6001         accept4: adjust module dependencies
6002         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6003
6004         utimens: one more try at avoiding compiler warning
6005         * lib/utimens.c (lutimens): Lower scope of result.
6006
6007 2009-12-13  Bruno Haible  <bruno@clisp.org>
6008
6009         Move the malloc checking from module 'list' to new module 'xlist'.
6010         * modules/xlist: New file.
6011         * lib/gl_xlist.h: New file.
6012         * lib/gl_xlist.c: New file.
6013         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6014         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6015         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6016         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6017         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6018         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6019         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6020         gl_sortedlist_nx_add): New declarations.
6021         (struct gl_list_implementation): Rename and change methods accordingly.
6022         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6023         (gl_list_nx_create): Renamed from gl_list_create.
6024         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6025         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6026         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6027         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6028         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6029         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6030         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6031         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6032         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6033         gl_list_create_empty.
6034         (gl_list_nx_create): Renamed from gl_list_create.
6035         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6036         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6037         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6038         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6039         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6040         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6041         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6042         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6043         * lib/gl_array_list.c: Don't include xalloc.h.
6044         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6045         NULL upon out-of-memory.
6046         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6047         out-of-memory.
6048         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6049         Change return type to 'int'.
6050         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6051         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6052         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6053         upon out-of-memory.
6054         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6055         upon out-of-memory.
6056         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6057         upon out-of-memory.
6058         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6059         upon out-of-memory.
6060         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6061         out-of-memory.
6062         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6063         Update.
6064         (gl_array_list_implementation): Update.
6065         * lib/gl_carray_list.c: Don't include xalloc.h.
6066         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6067         Return NULL upon out-of-memory.
6068         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6069         out-of-memory.
6070         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6071         Change return type to 'int'.
6072         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6073         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6074         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6075         upon out-of-memory.
6076         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6077         upon out-of-memory.
6078         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6079         out-of-memory.
6080         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6081         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6082         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6083         Update.
6084         (gl_carray_list_implementation): Update.
6085         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6086         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6087         gl_linked_create_empty. Return NULL upon out-of-memory.
6088         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6089         out-of-memory.
6090         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6091         Change return type to 'int'. Return -1 upon out-of-memory.
6092         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6093         out-of-memory.
6094         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6095         upon out-of-memory.
6096         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6097         upon out-of-memory.
6098         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6099         NULL upon out-of-memory.
6100         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6101         upon out-of-memory.
6102         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6103         out-of-memory.
6104         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6105         Update.
6106         * lib/gl_linked_list.c: Don't include xalloc.h.
6107         (gl_linked_list_implementation): Update.
6108         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6109         (add_to_bucket): Change return type to 'int'.
6110         (gl_linkedhash_list_implementation): Update.
6111         * lib/gl_anytree_list1.h (free_subtree): New function.
6112         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6113         gl_tree_create_empty. Return NULL upon out-of-memory.
6114         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6115         Change return type to 'int'. Return -1 upon out-of-memory.
6116         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6117         out-of-memory.
6118         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6119         (gl_tree_remove_node): New function, moved here from
6120         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6121         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6122         Update.
6123         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6124         malloc, not xmalloc. Return NULL upon out-of-memory.
6125         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6126         out-of-memory.
6127         (gl_tree_remove_node_from_tree): New function, extracted from
6128         gl_tree_remove_node.
6129         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6130         upon out-of-memory.
6131         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6132         out-of-memory.
6133         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6134         upon out-of-memory.
6135         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6136         upon out-of-memory.
6137         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6138         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6139         not xmalloc. Return NULL upon out-of-memory.
6140         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6141         out-of-memory.
6142         (gl_tree_remove_node_from_tree): New function, extracted from
6143         gl_tree_remove_node.
6144         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6145         upon out-of-memory.
6146         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6147         out-of-memory.
6148         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6149         upon out-of-memory.
6150         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6151         upon out-of-memory.
6152         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6153         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6154         gl_anytree_list1.h before gl_anyavltree_list2.h.
6155         (gl_avltree_list_implementation): Update.
6156         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6157         gl_anytree_list1.h before gl_anyavltree_list2.h.
6158         (gl_rbtree_list_implementation): Update.
6159         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6160         Change return type to 'int'. Return -1 upon out-of-memory. Use
6161         __builtin_expect.
6162         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6163         (gl_avltreehash_list_implementation): Update.
6164         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6165         (gl_rbtreehash_list_implementation): Update.
6166         * modules/array-list (Depends-on): Remove xalloc.
6167         * modules/carray-list (Depends-on): Likewise.
6168         * modules/linked-list (Depends-on): Likewise.
6169         * modules/linkedhash-list (Depends-on): Likewise.
6170         * modules/avltree-list (Depends-on): Likewise.
6171         * modules/rbtree-list (Depends-on): Likewise.
6172         * modules/avltreehash-list (Depends-on): Likewise.
6173         * modules/rbtreehash-list (Depends-on): Likewise.
6174
6175         * modules/xsublist: New file.
6176         * lib/gl_xsublist.h: New file.
6177         * lib/gl_xsublist.c: New file.
6178         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6179         (gl_sublist_nx_create): New declaration.
6180         * lib/gl_sublist.c: Don't include xalloc.h.
6181         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6182         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6183         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6184         Change return type to 'int'. Return -1 upon out-of-memory.
6185         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6186         upon out-of-memory.
6187         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6188         NULL upon out-of-memory.
6189         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6190         upon out-of-memory.
6191         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6192         NULL upon out-of-memory.
6193         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6194         NULL upon out-of-memory.
6195         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6196         upon out-of-memory.
6197         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6198         (gl_sublist_list_implementation): Update.
6199         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6200         upon out-of-memory.
6201         * modules/sublist (Depends-on): Remove xalloc.
6202
6203         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6204         * tests/test-carray_list.c: Likewise.
6205         * tests/test-linked_list.c: Likewise.
6206         * tests/test-linkedhash_list.c: Likewise.
6207         * tests/test-avltree_list.c: Likewise.
6208         * tests/test-rbtree_list.c: Likewise.
6209         * tests/test-avltreehash_list.c: Likewise.
6210         * tests/test-rbtreehash_list.c: Likewise.
6211         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6212         * modules/carray-list-tests (Makefile.am): Likewise.
6213         * modules/linked-list-tests (Makefile.am): Likewise.
6214         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6215         * modules/avltree-list-tests (Makefile.am): Likewise.
6216         * modules/rbtree-list-tests (Makefile.am): Likewise.
6217         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6218         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6219
6220         * NEWS: Mention the changes.
6221
6222         * lib/clean-temp.c: Include gl_xlist.h.
6223         * modules/clean-temp (Depends-on): Add xlist.
6224
6225         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6226         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6227
6228         * tests/test-array_oset.c: Include gl_xlist.h.
6229         * modules/array-oset-tests (Depends-on): Add xlist.
6230
6231         Reported by José E. Marchesi <jemarch@gnu.org>.
6232
6233 2009-12-13  Bruno Haible  <bruno@clisp.org>
6234
6235         Move the malloc checking from module 'oset' to new module 'xoset'.
6236         * modules/xoset: New file.
6237         * lib/gl_xoset.h: New file.
6238         * lib/gl_xoset.c: New file.
6239         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6240         declarations.
6241         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6242         (struct gl_oset_implementation): Rename and change methods accordingly.
6243         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6244         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6245         'int'. Mark as __warn_unused_result__.
6246         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6247         gl_oset_create_empty.
6248         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6249         'int'.
6250         * lib/gl_array_oset.c: Don't include xalloc.h.
6251         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6252         malloc, not xmalloc.
6253         (grow): Change return type to 'int'. Don't call xalloc_die.
6254         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6255         to 'int'.
6256         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6257         'int'.
6258         (gl_array_oset_implementation): Update.
6259         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6260         gl_tree_create_empty.
6261         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6262         'int'.
6263         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6264         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6265         xmalloc.
6266         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6267         not xmalloc.
6268         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6269         xmalloc.
6270         (gl_avltree_oset_implementation): Update.
6271         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6272         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6273         xmalloc.
6274         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6275         not xmalloc.
6276         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6277         xmalloc.
6278         (gl_rbtree_oset_implementation): Update.
6279         * modules/array-oset (Depends-on): Remove xalloc.
6280         * modules/avltree-oset (Depends-on): Likewise.
6281         * modules/rbtree-oset (Depends-on): Likewise.
6282         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6283         * tests/test-avltree_oset.c: Likewise.
6284         * tests/test-rbtree_oset.c: Likewise.
6285         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6286         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6287         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6288         * NEWS: Mention the change.
6289
6290 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6291
6292         maint.mk: allow a project to override release-prep commands
6293         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6294         commands into a new rule.
6295         (release-prep): New rule.
6296         (release-prep-hook): New overridable variable.
6297
6298 2009-12-13  Bruno Haible  <bruno@clisp.org>
6299
6300         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6301
6302 2009-12-13  Jim Meyering  <meyering@redhat.com>
6303
6304         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6305         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6306
6307 2009-12-12  Bruno Haible  <bruno@clisp.org>
6308
6309         duplocale: Tweak.
6310         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6311
6312 2009-12-12  Karl Berry  <karl@gnu.org>
6313
6314         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6315
6316 2009-12-12  Bruno Haible  <bruno@clisp.org>
6317
6318         * m4/po.m4: Undo incorrect untabification.
6319
6320 2009-12-12  Bruno Haible  <bruno@clisp.org>
6321
6322         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6323         * modules/c-strtod (Depends-on): Add locale.
6324         * modules/c-strtold (Depends-on): Likewise.
6325
6326 2009-12-12  Bruno Haible  <bruno@clisp.org>
6327
6328         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6329
6330 2009-12-11  Eric Blake  <ebb9@byu.net>
6331
6332         setenv: relax requirement in light of POSIX ruling
6333         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6334         not NULL.
6335         * tests/test-setenv.c (main): Relax test.
6336         * tests/test-unsetenv.c (main): Likewise.
6337         * doc/posix-functions/setenv.texi (setenv): Document this.
6338         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6339
6340 2009-12-11  Bruno Haible  <bruno@clisp.org>
6341
6342         New module 'fd-safer-flag'.
6343         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6344         * lib/dup-safer.c (dup_safer_flag): Remove function.
6345         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6346         * lib/fd-safer.c (fd_safer_flag): Remove function.
6347         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6348         * modules/cloexec (configure.ac): Drop indicator macro.
6349         * modules/fd-safer-flag: New file.
6350         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6351         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6352         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6353
6354 2009-12-11  Bruno Haible  <bruno@clisp.org>
6355
6356         Tests for module 'nl_langinfo'.
6357         * modules/nl_langinfo-tests: New file.
6358         * tests/test-nl_langinfo.sh: New file.
6359         * tests/test-nl_langinfo.c: New file.
6360
6361         New module 'nl_langinfo'.
6362         * lib/nl_langinfo.c: New file.
6363         * m4/nl_langinfo.m4: New file.
6364         * modules/nl_langinfo: New file.
6365         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6366
6367 2009-12-11  Bruno Haible  <bruno@clisp.org>
6368
6369         Tests for module 'langinfo'.
6370         * modules/langinfo-tests: New file.
6371         * tests/test-langinfo.c: New file.
6372
6373         New module 'langinfo'.
6374         * lib/langinfo.in.h: New file.
6375         * m4/langinfo_h.m4: New file.
6376         * modules/langinfo: New file.
6377         * doc/posix-headers/langinfo.texi: Mention the new module.
6378
6379 2009-12-11  Bruno Haible  <bruno@clisp.org>
6380
6381         * lib/config.charset: Untabify.
6382
6383 2009-12-11  Bruno Haible  <bruno@clisp.org>
6384
6385         * modules/unistd-safer (configure.ac): Drop indicator macro.
6386
6387 2009-12-11  Bruno Haible  <bruno@clisp.org>
6388
6389         Move pipe2-safer code to its own file.
6390         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6391         * lib/pipe-safer.c (pipe2_safer): Remove function.
6392         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6393         (Makefile.am): Add it to lib_SOURCES.
6394
6395 2009-12-10  Bruno Haible  <bruno@clisp.org>
6396
6397         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6398
6399 2009-12-10  Bruno Haible  <bruno@clisp.org>
6400
6401         Declare which arguments expect non-NULL values, for GCC and clang.
6402         * build-aux/arg-nonnull.h: New file.
6403         * modules/arg-nonnull: New file.
6404         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6405         (inet_ntop, inet_pton): Use it.
6406         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6407         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6408         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6409         (open, openat): Use it.
6410         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6411         (fnmatch): Use it.
6412         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6413         (getopt, getopt_long, getopt_long_only): Use it.
6414         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6415         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6416         Use it.
6417         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6418         (iconv_open): Use it.
6419         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6420         (strtoimax, strtoumax): Use it.
6421         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6422         (duplocale): Use it.
6423         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6424         (frexp, frexpl): Use it.
6425         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6426         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6427         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6428         (tsearch, tfind, tdelete, twalk): Use it.
6429         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6430         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6431         sigpending): Use it.
6432         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6433         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6434         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6435         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6436         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6437         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6438         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6439         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6440         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6441         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6442         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6443         Use it.
6444         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6445         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6446         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6447         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6448         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6449         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6450         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6451         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6452         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6453         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6454         strtoull, unsetenv): Use it.
6455         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6456         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6457         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6458         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6459         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6460         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6461         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6462         (strcasecmp, strncasecmp): Use it.
6463         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6464         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6465         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6466         rpl_setsockopt): Use it.
6467         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6468         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6469         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6470         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6471         (gettimeofday): Use it.
6472         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6473         (times): Use it.
6474         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6475         (uname): Use it.
6476         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6477         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6478         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6479         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6480         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6481         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6482         unlinkat, write): Use it.
6483         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6484         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6485         * lib/argv-iter.h: Include arg-nonnull.h.
6486         (_ATTRIBUTE_NONNULL_): Remove macro.
6487         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6488         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6489         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6490         optimization.
6491         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6492         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6493         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6494         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6495         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6496         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6497         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6498         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6499         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6500         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6501         * modules/dirent (Depends-on): Add arg-nonnull.
6502         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6503         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6504         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6505         * modules/fnmatch (Depends-on): Add arg-nonnull.
6506         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6507         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6508         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6509         * modules/glob (Depends-on): Add arg-nonnull.
6510         (Makefile.am): Insert arg-nonnull.h into glob.h.
6511         * modules/iconv_open (Depends-on): Add arg-nonnull.
6512         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6513         * modules/inttypes (Depends-on): Add arg-nonnull.
6514         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6515         * modules/locale (Depends-on): Add arg-nonnull.
6516         (Makefile.am): Insert arg-nonnull.h into locale.h.
6517         * modules/math (Depends-on): Add arg-nonnull.
6518         (Makefile.am): Insert arg-nonnull.h into math.h.
6519         * modules/netdb (Depends-on): Add arg-nonnull.
6520         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6521         * modules/search (Depends-on): Add arg-nonnull.
6522         (Makefile.am): Insert arg-nonnull.h into search.h.
6523         * modules/signal (Depends-on): Add arg-nonnull.
6524         (Makefile.am): Insert arg-nonnull.h into signal.h.
6525         * modules/spawn (Depends-on): Add arg-nonnull.
6526         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6527         * modules/stdio (Depends-on): Add arg-nonnull.
6528         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6529         * modules/stdlib (Depends-on): Add arg-nonnull.
6530         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6531         * modules/string (Depends-on): Add arg-nonnull.
6532         (Makefile.am): Insert arg-nonnull.h into string.h.
6533         * modules/strings (Depends-on): Add arg-nonnull.
6534         (Makefile.am): Insert arg-nonnull.h into strings.h.
6535         * modules/sys_socket (Depends-on): Add arg-nonnull.
6536         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6537         * modules/sys_stat (Depends-on): Add arg-nonnull.
6538         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6539         * modules/sys_time (Depends-on): Add arg-nonnull.
6540         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6541         * modules/sys_times (Depends-on): Add arg-nonnull.
6542         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6543         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6544         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6545         * modules/time (Depends-on): Add arg-nonnull.
6546         (Makefile.am): Insert arg-nonnull.h into time.h.
6547         * modules/unistd (Depends-on): Add arg-nonnull.
6548         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6549         * modules/wchar (Depends-on): Add arg-nonnull.
6550         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6551         * modules/argv-iter (Depends-on): Add arg-nonnull.
6552         * tests/test-canonicalize.c (null_ptr): New function.
6553         (main): Use it.
6554         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6555         (main): Use it.
6556         * tests/test-memmem.c (null_ptr): New function.
6557         (main): Use it.
6558         Reported by Jim Meyering.
6559
6560 2009-12-10  Bruno Haible  <bruno@clisp.org>
6561
6562         Use spaces for indentation, not tabs.
6563         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6564         * m4/*.m4: Untabify.
6565         * build-aux/*.h: Untabify.
6566         * tests/**/*.[hc]: Untabify.
6567         * README: New section "Indent with spaces, not TABs", based on
6568         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6569         * NEWS: Mention the change.
6570
6571 2009-12-10  Bruno Haible  <bruno@clisp.org>
6572
6573         pty test: Fix link error.
6574         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6575         test_pty_LDADD.
6576
6577 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6578
6579         * modules/pty: New file.
6580         * modules/pty-tests: New file.
6581         * m4/pty.m4: New file.
6582         * tests/test-pty.c: New file.
6583         * doc/glibc-headers/pty.texi: Modified.
6584         * doc/glibc-functions/forkpty.texi: Modified.
6585         * doc/glibc-functions/openpty.texi: Modified.
6586
6587 2009-12-10  Bruno Haible  <bruno@clisp.org>
6588
6589         Avoid syntax error in C++ mode.
6590         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6591
6592 2009-12-10  Bruno Haible  <bruno@clisp.org>
6593
6594         Use sed with option -e.
6595         * gnulib-tool (func_version, func_emit_copyright_notice,
6596         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6597         option -e to sed.
6598         * modules/link-warning (Makefile.am): Likewise.
6599
6600 2009-12-10  Jim Meyering  <meyering@redhat.com>
6601
6602         mgetgroups: do not write bytes beyond end of malloc'd buffer
6603         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6604         username, we call getgroups with a one-element-shorter buffer,
6605         but still told it the length was original, max_n_groups.
6606
6607 2009-12-09  Eric Blake  <ebb9@byu.net>
6608
6609         cloexec: relax license
6610         * modules/cloexec (Maintainer): Add myself.
6611         (License): Use LGPL, not GPL.
6612
6613         link-warning: optimize generation
6614         * modules/link-warning (Makefile.am): Reduce process usage.
6615
6616 2009-12-09  Bruno Haible  <bruno@clisp.org>
6617
6618         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6619         workaround was added on 2009-11-17.
6620
6621 2009-12-09  Jim Meyering  <meyering@redhat.com>
6622             Bruno Haible  <bruno@clisp.org>
6623
6624         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6625         * modules/link-warning (Makefile.am): Make the comment-removing sed
6626         command more robust in the face of bootstrap-prepended comment lines.
6627
6628 2009-12-09  Bruno Haible  <bruno@clisp.org>
6629
6630         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6631         most one group.
6632
6633 2009-12-09  Simon Josefsson <simon@josefsson.org>
6634             Bruno Haible  <bruno@clisp.org>
6635
6636         * build-aux/link-warning.h: Add copyright notice.
6637         * modules/link-warning (Makefile.am): Generate link-warning.h from
6638         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
6639         * NEWS: Mention change in link-warning module.
6640         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
6641         * modules/dirent (Makefile.am): Add dependency to dirent.h.
6642         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
6643         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
6644         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
6645         * modules/math (Makefile.am): Add dependency to math.h.
6646         * modules/search (Makefile.am): Add dependency to search.h.
6647         * modules/signal (Makefile.am): Add dependency to signal.h.
6648         * modules/spawn (Makefile.am): Add dependency to spawn.h.
6649         * modules/stdio (Makefile.am): Add dependency to stdio.h.
6650         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
6651         * modules/string (Makefile.am): Add dependency to string.h.
6652         * modules/strings (Makefile.am): Add dependency to strings.h.
6653         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
6654         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
6655         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
6656         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6657         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6658         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6659         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6660         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6661         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6662
6663 2009-12-09  Bruno Haible  <bruno@clisp.org>
6664
6665         fchdir: Optimize away rpl_fstat when possible.
6666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6667         REPLACE_OPEN_DIRECTORY.
6668         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6669
6670 2009-12-09  Bruno Haible  <bruno@clisp.org>
6671
6672         * lib/fchdir.c: Update comment.
6673
6674 2009-12-09  Bruno Haible  <bruno@clisp.org>
6675
6676         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6677
6678 2009-12-08  Eric Blake  <ebb9@byu.net>
6679
6680         fchdir: avoid memory leak on re-registration.
6681         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6682
6683 2009-12-08  Jim Meyering  <meyering@redhat.com>
6684
6685         init.sh: avoid Solaris 10 /bin/sh portability problem
6686         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6687         sourced script:
6688           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6689           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6690           bar
6691         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6692         and two tests used that idiom.
6693         * tests/init.sh: Update suggested usage comments.
6694         (path_prepend_): New function, to be used in place
6695         of the --src-path=DIR option.
6696         (setup_): Move PATH-prepending code into path_prepend_.
6697         * tests/test-pread.sh: Adapt to new usage.
6698         * tests/test-xalloc-die.sh: Likewise.
6699
6700 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6701
6702         * doc/gnulib.texi (Glibc pty.h): Add.
6703         * doc/glibc-functions/forkpty.texi: Add.
6704         * doc/glibc-functions/openpty.texi: Add.
6705         Suggested by Bruno Haible.
6706
6707 2009-12-08  Eric Blake  <ebb9@byu.net>
6708
6709         fchdir: fix logic bugs
6710         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6711         * tests/test-fchdir.c (main): Enhance test.
6712         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6713         is in use.
6714
6715         dup2: fix logic bugs
6716         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6717         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6718         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6719         exists.
6720         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6721
6722 2009-12-07  Eric Blake  <ebb9@byu.net>
6723
6724         unlink: fix m4 detection
6725         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6726
6727         unistd-safer: add unit test
6728         * modules/unistd-safer-tests: New file.
6729         * tests/test-dup-safer.c: Likewise.
6730         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6731         * tests/test-dup2.c (setmode): Likewise.
6732         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6733
6734         cloexec: preserve text vs. binary across dup_cloexec
6735         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6736         mode.
6737         * modules/dup2-tests (Depends-on): Add binary-io.
6738         * modules/cloexec-tests (Depends-on): Likewise.
6739         * tests/test-dup2.c (setmode, is_mode): New helpers.
6740         (main): Add tests that translation mode is preserved.
6741         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6742         Reported by Bruno Haible.
6743
6744         mgetgroups: reduce duplicate listings
6745         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6746         resulting array.
6747         * tests/test-chown.h (test_chown): Simplify client.
6748         * tests/test-lchown.h (test_lchown): Likewise.
6749
6750 2009-12-06  Bruno Haible  <bruno@clisp.org>
6751
6752         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6753         value.
6754
6755 2009-12-06  Bruno Haible  <bruno@clisp.org>
6756
6757         * lib/progname.c: Include stdio.h, stdlib.h.
6758         (set_program_name): Reject a NULL argument.
6759
6760 2009-12-05  Eric Blake  <ebb9@byu.net>
6761
6762         pipe2-safer: new module
6763         * modules/pipe2-safer: New file.
6764         * lib/unistd-safer.h (pipe2_safer): New prototype.
6765         * lib/unistd--.h (pipe2): New wrapper.
6766         * lib/pipe-safer.c (pipe2_safer): New function.
6767         * modules/pipe (Depends-on): Add pipe2-safer.
6768         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6769
6770         stdlib-safer: preserve cloexec flag for mkostemp[s]
6771         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6772         fd_safer_flag.
6773
6774         unistd-safer: allow preservation of cloexec status via flag
6775         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6776         prototypes.
6777         * lib/dup-safer.c (dup_safer_flag): New function.
6778         * lib/fd-safer.c (fd_safer_flag): Likewise.
6779         * modules/cloexec (configure.ac): Set witness.
6780
6781         test-dup2: enhance test
6782         * modules/dup2-tests (Depends-on): Add cloexec.
6783         * tests/test-dup2.c (main): Enhance test.
6784
6785         cloexec: add dup_cloexec
6786         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6787         header and comments.
6788         * lib/cloexec.c (set_cloexec_flag): Add comments.
6789         (dup_cloexec): New function, with mingw implementation borrowed
6790         from...
6791         * lib/w32spawn.h (dup_noinherit): ...here.
6792         * modules/execute (Depends-on): Add cloexec.
6793         * modules/pipe (Depends-on): Likewise.
6794         * modules/cloexec (Depends-on): Add dup2.
6795         * modules/cloexec-tests (Files): New file.
6796         * tests/test-cloexec.c: Likewise.
6797
6798         test-xalloc-die: fix test for mingw
6799         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6800         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6801         directory and .exe suffix off argv[0] output.
6802
6803         test-fseeko: fix test for mingw
6804         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6805         than undefining fseek, so test will pass on mingw.
6806
6807 2009-12-05  Bruno Haible  <bruno@clisp.org>
6808
6809         * lib/progname.h (set_program_name): Clarify specification.
6810         * lib/progname.c (set_program_name): Likewise.
6811         Reported by Jim Meyering.
6812
6813 2009-12-05  Jim Meyering  <meyering@redhat.com>
6814
6815         maint.mk: backslash-escape parens in default regexp
6816         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6817         backslash-escape the literal parentheses.
6818
6819         maint.mk: news-date-check: use grep -E
6820         * top/maint.mk (today): Define a Make variable, not a...
6821         (news-date-check): ...shell variable.
6822         (news-date-regexp): Use the Make variable.
6823         Use grep's -E option.  Change the failing diagnostic to mention
6824         the variable, $(news-date-regexp).
6825
6826 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6827
6828         maintainer-makefile: allow customization of NEWS entry format
6829         * top/maint.mk (news-date-regexp): New overridable variable.
6830         (news-date-check): Use it.
6831
6832 2009-12-04  Eric Blake  <ebb9@byu.net>
6833
6834         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6835         * lib/mgetgroups.h (xgetgroups): New prototype.
6836         * lib/mgetgroups.c (xgetgroups): New wrapper.
6837         (mgetgroups): Handle ENOSYS.
6838         * modules/mgetgroups (Depends-on): Add realloc.
6839         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6840
6841         mgetgroups: avoid argument promotion issues with -1
6842         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6843         for invalid gid_t.
6844         * tests/test-chown.h (getegid, test_chown): Likewise.
6845         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6846
6847 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6848
6849         exclude: Fix header file problems.
6850         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6851
6852 2009-12-01  Jim Meyering  <meyering@redhat.com>
6853
6854         fts: fts_open: do not let an empty string cause immediate failure
6855         This is required in support of GNU rm, for which the command
6856         "rm A '' B" must process and remove both A and B, in spite of
6857         the empty string argument.
6858         * lib/fts.c (fts_open): Do not let the presence of an empty string
6859         cause fts_open to fail immediately.  Most fts-using tools must be
6860         able to process all arguments, in order, and can be expected to
6861         diagnose such arguments themselves.
6862
6863 2009-11-30  Eric Blake  <ebb9@byu.net>
6864
6865         utimens: fix compilation error
6866         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6867         Declare variable at right scope.
6868
6869 2009-11-29  Jim Meyering  <meyering@redhat.com>
6870
6871         bootstrap: handle perl-5.11's changed --version output
6872         * build-aux/bootstrap (get_version): Handle perl separately,
6873         since perl-5.11's --version output is different.
6874
6875 2009-11-28  Jim Meyering  <meyering@redhat.com>
6876
6877         userspec: depend on the inttostr module, too
6878         * modules/userspec (Depends-on): Add inttostr.
6879
6880         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6881         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6882         number of MAXUID when it evaluates to (uid_t) -1.
6883         Likewise for group ID.  Reported by Matt McCutchen in
6884         <http://savannah.gnu.org/bugs/?28113>
6885
6886         userspec: reformat to use spaces, not TABs
6887         * lib/userspec.c: Expand TABs to spaces.
6888         Add Emacs' "indent-tabs-mode: nil" hint.
6889
6890 2009-11-27  Eric Blake  <ebb9@byu.net>
6891
6892         getopt-gnu: flush out another BSD bug
6893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6894         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6895         flush out BSD bug.
6896         * tests/test-getopt.h (test_getopt): End lists with NULL.
6897         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6898         (test_getopt_long_posix): Enhance test.
6899         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6900         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6901         getopt-gnu.
6902         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6903         Likewise.
6904
6905 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6906
6907         * modules/idpriv-droptemp-tests (Notice): Fix text.
6908
6909 2009-11-27  Jim Meyering  <meyering@redhat.com>
6910
6911         test-xalloc-die: avoid spurious failure due to libtool argv difference
6912         In a libtool-enabled project, this test would fail due to a difference
6913         in the emitted program name, e.g.,
6914         -test-xalloc-die: memory exhausted
6915         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6916         Use program to avoid that.
6917         * modules/xalloc-die-tests (Depends-on): Add progname.
6918         * tests/test-xalloc-die.c: Include progname.h".
6919         (program_name): Remove decl.
6920         (main): Call set_program_name.
6921         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6922
6923 2009-11-26  Richard Jones  <rjones@redhat.com>
6924
6925         w32sock: leave win32 error in place.
6926         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6927
6928 2009-11-26  Eric Blake  <ebb9@byu.net>
6929
6930         init.sh: suggest to use skip_ and fail_ functions in comments
6931         * tests/init.sh: Add a sentence.
6932
6933 2009-11-25  Bruno Haible  <bruno@clisp.org>
6934
6935         init.sh: add documentation in comments
6936         * tests/init.sh: Add some developer and user documentation.
6937
6938 2009-11-26  Jim Meyering  <meyering@redhat.com>
6939
6940         init.sh: accommodate even those who specify bogus srcdir manually
6941         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6942         configure-time tests to be sanitized, so that there is no need to
6943         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6944         (with no double quotes) suffices.  However, since tests may be
6945         invoked manually, and since you may explicitly set srcdir to the
6946         name of a directory containing spaces, do quote its uses here.
6947         * tests/test-pread.sh: Likewise.
6948         Suggested by Bruno Haible.
6949
6950         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6951         * tests/test-pread.sh: Write no data into the pipe, because
6952         test-pread actually reads none.  This avoids a diagnostic,
6953         "bash: echo: write error: Broken pipe", that arises in the unusual
6954         event something is ignoring SIGPIPE, and might be interpreted
6955         as some sort of failure.  Reported by Bruno Haible.
6956
6957 2009-11-25  Jim Meyering  <meyering@redhat.com>
6958
6959         test-pread: cover failure with ESPIPE and EINVAL
6960         * tests/test-pread.c (main): Test for failure, too.
6961         * tests/test-pread.sh: Invoke with stdin on a pipe.
6962         Suggested by Eric Blake.
6963
6964         pread: improvement and fix
6965         * modules/pread (Depends-on): Depend on lseek, for portability to
6966         e.g., mingw.  Suggested by Eric Blake.
6967         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6968
6969         unistd.in.h: correct declaration of pread
6970         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6971         Reported by Richard W.M. Jones.
6972
6973         test-pread.sh: distribute the test script
6974         * modules/pread-tests (Files): Include test-pread.sh.
6975
6976         test-pread.sh: clean up
6977         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6978         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6979         That is unnecessary, since it's always ".".
6980         Suggestion from Eric Blake.
6981
6982         test-pread.sh: make executable
6983         * tests/test-pread.sh: Set executable bit.
6984         Reported by Eric Blake.
6985
6986         correct typo in test-pread.sh
6987         * tests/test-pread.sh: Add #! line.
6988
6989         test pread
6990         * tests/test-pread.c: New file.
6991         * tests/test-pread.sh: Likewise.
6992         * modules/pread-tests: Likewise.
6993
6994         pread: new module
6995         * modules/pread: New file.
6996         * lib/unistd.in.h (pread): Define/declare.
6997         * lib/pread.c (pread): New file.
6998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6999         * modules/unistd (Makefile.am): Substitute witnesses.
7000         * doc/posix-functions/pread.texi (pread): Update.
7001         * MODULES.html.sh: Add pread.
7002
7003 2009-11-25  Jim Meyering  <meyering@redhat.com>
7004
7005         tests/init.sh: new file to be used via most *.sh tests
7006         * tests/init.sh: New file.
7007
7008 2009-11-25  Eric Blake  <ebb9@byu.net>
7009
7010         utimens: work around older Linux failure with symlinks
7011         * lib/utimens.c (lutimensat_works_really): New variable.
7012         (fdutimens, lutimens): Use it to manage kernels that support
7013         nanosecond times on files, but not on symlinks.
7014         Reported by Ondřej Vašík.
7015
7016         utimes: fix configure grammar
7017         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7018
7019 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7020
7021         regex: Fix fastmap for multibyte character ranges.
7022         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7023         characters when a multibyte character range is included.
7024
7025 2009-11-22  Andy Wingo  <wingo@pobox.com>
7026
7027         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7028         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7029
7030 2009-11-24  Bruno Haible  <bruno@clisp.org>
7031
7032         doc: Most *_l functions exist in MacOS X 10.5.
7033         * doc/posix-functions/duplocale.texi: Update platforms list.
7034         * doc/posix-functions/freelocale.texi: Likewise.
7035         * doc/posix-functions/newlocale.texi: Likewise.
7036         * doc/posix-functions/uselocale.texi: Likewise.
7037         * doc/posix-functions/isalnum_l.texi: Likewise.
7038         * doc/posix-functions/isalpha_l.texi: Likewise.
7039         * doc/posix-functions/isblank_l.texi: Likewise.
7040         * doc/posix-functions/iscntrl_l.texi: Likewise.
7041         * doc/posix-functions/isdigit_l.texi: Likewise.
7042         * doc/posix-functions/isgraph_l.texi: Likewise.
7043         * doc/posix-functions/islower_l.texi: Likewise.
7044         * doc/posix-functions/isprint_l.texi: Likewise.
7045         * doc/posix-functions/ispunct_l.texi: Likewise.
7046         * doc/posix-functions/isspace_l.texi: Likewise.
7047         * doc/posix-functions/isupper_l.texi: Likewise.
7048         * doc/posix-functions/iswalnum_l.texi: Likewise.
7049         * doc/posix-functions/iswalpha_l.texi: Likewise.
7050         * doc/posix-functions/iswblank_l.texi: Likewise.
7051         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7052         * doc/posix-functions/iswctype_l.texi: Likewise.
7053         * doc/posix-functions/iswdigit_l.texi: Likewise.
7054         * doc/posix-functions/iswgraph_l.texi: Likewise.
7055         * doc/posix-functions/iswlower_l.texi: Likewise.
7056         * doc/posix-functions/iswprint_l.texi: Likewise.
7057         * doc/posix-functions/iswpunct_l.texi: Likewise.
7058         * doc/posix-functions/iswspace_l.texi: Likewise.
7059         * doc/posix-functions/iswupper_l.texi: Likewise.
7060         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7061         * doc/posix-functions/isxdigit_l.texi: Likewise.
7062         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7063         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7064         * doc/posix-functions/strcoll_l.texi: Likewise.
7065         * doc/posix-functions/strfmon_l.texi: Likewise.
7066         * doc/posix-functions/strftime_l.texi: Likewise.
7067         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7068         * doc/posix-functions/strxfrm_l.texi: Likewise.
7069         * doc/posix-functions/tolower_l.texi: Likewise.
7070         * doc/posix-functions/toupper_l.texi: Likewise.
7071         * doc/posix-functions/towctrans_l.texi: Likewise.
7072         * doc/posix-functions/towlower_l.texi: Likewise.
7073         * doc/posix-functions/towupper_l.texi: Likewise.
7074         * doc/posix-functions/wcscoll_l.texi: Likewise.
7075         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7076         * doc/posix-functions/wctrans_l.texi: Likewise.
7077         * doc/posix-functions/wctype_l.texi: Likewise.
7078         * doc/glibc-functions/strptime_l.texi: Likewise.
7079         * doc/glibc-functions/strtod_l.texi: Likewise.
7080         * doc/glibc-functions/strtof_l.texi: Likewise.
7081         * doc/glibc-functions/strtol_l.texi: Likewise.
7082         * doc/glibc-functions/strtold_l.texi: Likewise.
7083         * doc/glibc-functions/strtoll_l.texi: Likewise.
7084         * doc/glibc-functions/strtoul_l.texi: Likewise.
7085         * doc/glibc-functions/strtoull_l.texi: Likewise.
7086         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7087         * doc/glibc-functions/wcstod_l.texi: Likewise.
7088         * doc/glibc-functions/wcstof_l.texi: Likewise.
7089         * doc/glibc-functions/wcstol_l.texi: Likewise.
7090         * doc/glibc-functions/wcstold_l.texi: Likewise.
7091         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7092         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7093         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7094
7095 2009-11-24  Bruno Haible  <bruno@clisp.org>
7096
7097         duplocale: Fix logic bug.
7098         * lib/duplocale.c: Don't include <langinfo.h>.
7099         (_NL_LOCALE_NAME): Remove macro.
7100         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7101         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7102
7103 2009-11-23  Jim Meyering  <meyering@redhat.com>
7104
7105         test-update-copyright: don't hard-code /usr/bin/perl
7106         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7107         perl to print the current year.  Gilles Espinasse reported that
7108         the replaced use of perl was hard-coded as /usr/bin/perl.
7109
7110 2009-11-23  Bruno Haible  <bruno@clisp.org>
7111
7112         duplocale: Add support for glibc 2.3.x.
7113         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7114
7115 2009-11-22  Bruno Haible  <bruno@clisp.org>
7116
7117         vasnprintf: Tiny optimization.
7118         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7119         MacOS X.
7120
7121 2009-11-22  Bruno Haible  <bruno@clisp.org>
7122
7123         Tests for module 'duplocale'.
7124         * modules/duplocale-tests: New file.
7125         * tests/test-duplocale.c: New file.
7126
7127         New module 'duplocale'.
7128         * m4/duplocale.m4: New file.
7129         * lib/locale.in.h (duplocale): New declaration.
7130         * lib/duplocale.c: New file.
7131         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7132         gl_LOCALE_H_DEFAULTS): New macros.
7133         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7134         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7135         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7136         REPLACE_DUPLOCALE.
7137         * modules/duplocale: New file.
7138         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7139
7140 2009-11-22  Bruno Haible  <bruno@clisp.org>
7141
7142         * modules/locale-tests (configure.ac): Test for newlocale function.
7143         * tests/test-locale.c: When the system has extended locale functions,
7144         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7145
7146         locale: Make locale_t available when possible.
7147         * lib/locale.in.h: Include <xlocale.h> when it exists.
7148         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7149         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7150         * modules/locale (Depends-on): Add extensions.
7151         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7152         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7153
7154 2009-11-22  Bruno Haible  <bruno@clisp.org>
7155
7156         Add comments.
7157         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7158         invocation.
7159         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7160         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7161         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7162
7163 2009-11-22  Bruno Haible  <bruno@clisp.org>
7164
7165         error: account for the possibility of freopen (stdout).
7166         * lib/error.c: Include <unistd.h>.
7167         (flush_stdout): New function, extracted from error and error_at_line.
7168         Determine stdout's fd dynamically.
7169         (error, error_at_line): Invoke flush_stdout.
7170         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7171         * modules/error (Depends-on): Add unistd.
7172
7173 2009-11-22  Bruno Haible  <bruno@clisp.org>
7174
7175         diffseq: Add comment.
7176         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7177
7178 2009-11-22  Jim Meyering  <meyering@redhat.com>
7179
7180         c-stack: avoid defining an unused static function
7181         * lib/c-stack.c (find_stack_direction): Do not define this function
7182         when it will not be used.
7183
7184         diffseq: avoid spurious gcc warnings
7185         * lib/diffseq.h (IF_LINT2): Define.
7186         (compareseq): Use it to initialize two members of "part".
7187         This avoids two used-uninitialized warnings.
7188
7189 2009-11-21  Jim Meyering  <meyering@redhat.com>
7190
7191         c-stack: avoid "ignoring return value of `write'" warning
7192         * lib/c-stack.c: Include "ignore-value.h".
7193         (die): Explicitly ignore each write return value.
7194         * modules/c-stack (Depends-on): Add ignore-value.
7195
7196 2009-11-21  Bruno Haible  <bruno@clisp.org>
7197
7198         diffseq: reduce scope of variable 'best'.
7199         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7200         variable, earlier used for two different purposes.
7201
7202 2009-11-21  Jim Meyering  <meyering@redhat.com>
7203
7204         diffseq: remove useless assignment to "best"
7205         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7206         assignment.  At that point "best" is already guaranteed to be zero.
7207
7208 2009-11-20  Eric Blake  <ebb9@byu.net>
7209
7210         build: mention ftp redirector in release announcements
7211         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7212         values that used to come from cfg.mk; mention FTP redirect URL.
7213         * build-aux/announce-gen: Mention the mirror list.
7214         Suggested by Karl Berry.
7215
7216         nanosleep: improve port to mingw
7217         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7219         LIB_NANOSLEEP, but only when needed.
7220         * modules/select (Link): Document LIBSOCKET.
7221         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7222         enough.
7223
7224         nanosleep: work around cygwin bug
7225         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7226         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7227         bug.
7228         (getnow): Delete, not needed.
7229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7230         LIB_CLOCK_GETTIME.
7231         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7232         clock-time, gettime.
7233         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7234         bug.
7235         * modules/nanosleep-tests: New test.
7236         * tests/test-nanosleep.c: New file.
7237
7238         sleep: work around cygwin bug
7239         * lib/sleep.c (rpl_sleep): Work around the bug.
7240         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7241         (gl_PREREQ_SLEEP): Delete unused macro.
7242         * modules/sleep (Depends-on): Add verify.
7243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7244         * modules/unistd (Makefile.am): Substitute witness.
7245         * lib/unistd.in.h (sleep): Update prototype.
7246         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7247         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7248         * modules/sleep-tests (Depends-on): Check for alarm.
7249
7250 2009-11-20  Jim Meyering  <meyering@redhat.com>
7251
7252         maint.mk: improve sc_prohibit_magic_number_exit
7253         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7254         so it does not match uses like System.exit(1).
7255         Add comments showing how to correct all offenders.
7256
7257 2009-11-19  Eric Blake  <ebb9@byu.net>
7258
7259         xalloc-die-tests: add missing library
7260         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7261
7262         test-xvasprintf: silence compiler warnings
7263         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7264         empty string from gcc.
7265
7266 2009-11-19  Jim Meyering  <meyering@redhat.com>
7267
7268         xfreopen: new module, from coreutils
7269         * modules/xfreopen: New module.
7270         * lib/xfreopen.c: New file.
7271         * lib/xfreopen.h: New file.
7272         * MODULES.html.sh (File stream based Input/Output"): Add it.
7273
7274 2009-11-19  Eric Blake  <ebb9@byu.net>
7275
7276         manywarnings: depend on warnings
7277         * modules/manywarnings (Depends-on): Add warnings.
7278
7279         build: avoid compiler warnings
7280         * lib/select.c (rpl_select): Delete unused variable.
7281         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7282
7283 2009-11-18  Eric Blake  <ebb9@byu.net>
7284
7285         tests: avoid false negative with --with-packager
7286         * tests/test-version-etc.sh: Discard packager information.
7287         * tests/test-argp-version-etc-1.sh: Likewise.
7288         Reported by Mike Frysinger.
7289
7290         utimens: fix regression on Solaris
7291         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7292         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7293         can only change fd timestamps via futimesat.  Instead, use an
7294         additional witness macro to avoid BSD bug.
7295         Reported by Jim Meyering.
7296
7297 2009-11-17  Eric Blake  <ebb9@byu.net>
7298
7299         usleep: use it to simplify tests
7300         * modules/stat-time-tests (Depends-on): Add usleep.
7301         (configure.ac): Drop usleep check.
7302         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7303         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7304         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7305         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7306         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7307         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7308         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7309         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7310         Likewise.
7311         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7312         * tests/test-lchown.h (nap): Likewise.
7313         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7314         * tests/test-stat-time.c (nap): Likewise.
7315         * tests/test-utimens-common.h (nap): Update comments.
7316
7317         usleep: new module
7318         * modules/usleep: New file.
7319         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7320         * lib/usleep.c (usleep): Likewise.
7321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7322         * modules/unistd (Makefile.am): Substitute witnesses.
7323         * lib/unistd.in.h (usleep): Add declaration.
7324         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7325         * MODULES.html.sh (Date and time): Likewise.
7326         * modules/usleep-tests (Depends-on): New test.
7327         * tests/test-usleep.c: New file.
7328
7329         chown: work around OpenBSD bug
7330         * lib/chown.c (rpl_chown): Work around the bug.
7331         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7332         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7333         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7334         * modules/chown (Depends-on): Add stdbool.
7335         * modules/lchown (Depends-on): Likewise.
7336         * doc/posix-functions/chown.texi (chown): Document the bug.
7337         * doc/posix-functions/lchown.texi (lchown): Likewise.
7338         * tests/test-lchown.h (test_chown): Relax test.
7339
7340         mkstemp: avoid conflict with C++ keyword template
7341         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7342         * lib/mkostemp.c (mkostemp): Likewise.
7343         * lib/mkostemps.c (mkostemps): Likewise.
7344         * lib/mkstemp.c (mkstemp): Likewise.
7345         * lib/mkstemps.c (mkstemps): Likewise.
7346
7347         xalloc-die-tests: optimize
7348         * tests/test-xalloc-die.sh: Reduce number of processes.
7349
7350 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7351
7352         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7353         patch from ludo@gnu.org (Ludovic Courtès).
7354
7355 2009-11-17  Jim Meyering  <meyering@redhat.com>
7356
7357         version-etc: use proper license string
7358         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7359         * modules/version-etc-fsf: Likewise.
7360
7361 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7362
7363         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7364         printed to stdout.  Deal with EOL differences.
7365
7366 2009-11-17  Eric Blake  <ebb9@byu.net>
7367
7368         unsetenv: work around Solaris bug
7369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7370         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7371         Reported by Jim Meyering.
7372
7373         vasnprintf: avoid compiler warnings
7374         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7375         variables.
7376         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7377
7378 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7379
7380         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7381         settings since xalloc-die is no longer the self test,
7382         xalloc-die.sh is.
7383
7384 2009-11-17  Jim Meyering  <meyering@redhat.com>
7385
7386         test-xalloc-die.sh: make the code agree with the commit log
7387         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7388         at the end, just in case you happen to have a test-xalloc-die
7389         program in some other PATH directory.
7390
7391         test-xalloc-die.sh: fix a portability bug
7392         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7393         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7394         Otherwise, argv[0] (as often seen in diagnostics) would be too
7395         system-dependent, sometimes with, and sometimes without the leading "./".
7396
7397         version-etc-fsf: relax license to LGPLv3+
7398         * modules/version-etc-fsf (License): Relax license.
7399
7400 2009-11-16  Eric Blake  <ebb9@byu.net>
7401
7402         xalloc-die-tests: avoid printing null pointer
7403         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7404         shell script.
7405         * tests/test-xalloc-die.c (program_name): Declare.
7406         * tests/test-xalloc-die.sh (tmpfiles): New file.
7407
7408         setenv, unsetenv: work around various bugs
7409         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7410         (setenv) [HAVE_SETENV]: Work around bugs.
7411         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7413         for bugs.
7414         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7415         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7417         * modules/stdlib (Makefile.am): Update substitutions.
7418         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7419         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7420         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7421         * modules/setenv-tests: New test.
7422         * modules/unsetenv-tests: Likewise.
7423         * tests/test-setenv.c: New file.
7424         * tests/test-unsetenv.c: Likewise.
7425
7426 2009-11-16  Jim Meyering  <meyering@redhat.com>
7427
7428         version-etc: relax license to LGPLv3+
7429         * modules/version-etc (License): Relax license.
7430
7431         better AC_REQUIRE expanded-before-required-warning avoidance
7432         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7433         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7434         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7435         which is no longer needed.
7436
7437 2009-11-16  Eric Blake  <ebb9@byu.net>
7438
7439         test-freading: clean up temporary file
7440         * tests/test-freading.c (main): Remove file on success, and use
7441         ASSERT more liberally.
7442         Reported by Jim Meyering.
7443
7444 2009-11-16  Jim Meyering  <meyering@redhat.com>
7445
7446         avoid new AC_REQUIRE expanded-before-required warnings
7447         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7448         merely using it.
7449         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7450         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7451
7452 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7453
7454         * tests/test-xalloc-die.c: New file.
7455         * modules/xalloc-die-tests: New file.
7456         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7457         XFAIL_TESTS so it can be appended by modules.
7458
7459 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7460
7461         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7462         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7463
7464 2009-11-14  Eric Blake  <ebb9@byu.net>
7465
7466         fnmatch: avoid compiler warning
7467         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7468         to silence compiler warning about mismatch signedness in ?:.
7469         Reported by Robert Millan.
7470
7471         intprops: add double-inclusion guard
7472         * lib/intprops.h: Allow idempotent includes.
7473         Suggested by Bruce Korb.
7474
7475         openat: detect Solaris fchownat bug
7476         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7477         penalizing glibc chownat when only lchownat is broken.
7478         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7479         trailing slash bugs.
7480         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7481         * modules/openat-tests (Files): Include more files.
7482         (Depends-on): Add mgetgroups, sleep, stat-time.
7483         (configure.ac): Add additional checks.
7484         (Makefile.am): Build new test.
7485         * tests/test-fchownat.c: New file.
7486
7487         lchown: detect Solaris and FreeBSD bug
7488         * lib/lchown.c (rpl_lchown): Work around bug.
7489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7491         * modules/unistd (Makefile.am): Populate it.
7492         * lib/unistd.in.h (lchown): Update declaration.
7493         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7494         * modules/lchown-tests: New file.
7495         * tests/test-lchown.h (test_lchown): Likewise.
7496         * tests/test-lchown.c (main): Likewise.
7497
7498         chown: detect Solaris and FreeBSD bug
7499         * lib/chown.c (rpl_chown): Work around bug.
7500         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7501         (gl_PREREQ_CHOWN): Delete.
7502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7503         * modules/unistd (Makefile.am): Populate it.
7504         * lib/unistd.in.h (chown): Update declaration.
7505         * lib/lchown.c (chown): Update client.
7506         * modules/lchown (Depends-on): Add lstat.
7507         * doc/posix-functions/chown.texi (chown): Document the bug.
7508         * doc/posix-functions/getgroups.texi (getgroups): Document
7509         getgroups pitfall.
7510         * modules/chown-tests: New file.
7511         * tests/test-chown.h (test_chown): Likewise.
7512         * tests/test-chown.c (main): Likewise.
7513
7514 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7515
7516         gnulib-tool: correctly detect absence of m4 directories
7517         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7518
7519 2009-11-14  Jim Meyering  <meyering@redhat.com>
7520
7521         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7522         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7523
7524 2009-11-14  John W. Eaton  <jwe@gnu.org>
7525
7526         strftime.h: wrap funtion declaration in extern "C" block
7527         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7528
7529 2009-11-13  Eric Blake  <ebb9@byu.net>
7530
7531         getgroups: avoid compiler warning
7532         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7533
7534         getgroups: work around FreeBSD bug
7535         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7536         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7537         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7538         * tests/test-getgroups.c (main): Fix buffer overrun.
7539
7540         getgroups: avoid compilation failure
7541         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7542         * modules/getgroups (Depends-on): Add stdint.
7543
7544 2009-11-13  Jim Meyering  <meyering@redhat.com>
7545
7546         test-getgroups: avoid compilation failure
7547         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7548
7549 2009-11-13  Eric Blake  <ebb9@byu.net>
7550
7551         mgetgroups: new module, taken from coreutils
7552         * modules/mgetgroups: New file.
7553         * lib/mgetgroups.h: Likewise.
7554         * lib/mgetgroups.c (mgetgroups): Likewise.
7555         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7556         * MODULES.html.sh (Users and groups): Mention it.
7557
7558         getgroups: don't expose GETGROUPS_T to user
7559         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7560         an element at a time if GETGROUPS_T is wrong size.
7561         * lib/getugroups.h (getugroups): Change signature.
7562         * lib/unistd.in.h (getgroups): Likewise.
7563         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7564         signature needs fixing.
7565         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7566         AC_TYPE_GETGROUPS.
7567         * modules/group-member (Depends-on): Add getgroups.
7568         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7569         (group_member): Rely on getgroups replacement.
7570         * lib/getugroups.c (getugroups): Use gid_t.
7571         * tests/test-getgroups.c (main): Likewise.
7572         * NEWS: Mention the signature change.
7573         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7574         problem with signature.
7575         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7576         GETGROUPS_T is still useful for setgroups.
7577
7578         getgroups, getugroups: provide stubs for mingw
7579         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7580         * lib/getugroups.c (getugroups): Likewise.
7581         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7582         function.  Modernize replacement scheme.
7583         (gl_PREREQ_GETGROUPS): Delete.
7584         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7585         * modules/getgroups (configure.ac): Declare witness.
7586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7587         * modules/unistd (Depends-on): Substitute witness.
7588         * lib/unistd.in.h (getgroups): Declare replacement.
7589
7590         getgroups: avoid calling exit
7591         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7592         drop xalloc.
7593         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7594         dependencies.
7595         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7596         exiting, in the rare case of malloc failure.
7597
7598         getgroups: fix logic error
7599         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7600         has more than 20 groups.
7601         * modules/getgroups-tests: New test.
7602         * tests/test-getgroups.c: New file.
7603
7604 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7605
7606         * tests/test-base64.c: Improve.
7607
7608 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7609
7610         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7611         Blake <ebb9@byu.net>.
7612
7613 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7614
7615         * tests/test-xvasprintf.c: Add %s%s related checks.
7616
7617 2009-11-12  Eric Blake  <ebb9@byu.net>
7618
7619         version-etc: match standards.texi style
7620         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7621         and use <> only for URLs.
7622
7623 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7624
7625         fts: do not fail on a submount during traversal
7626         * lib/fts.c (fts_build): Read the stat info again after opening
7627         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7628         Original report at http://bugzilla.redhat.com/501848.
7629
7630 2009-11-12  Jim Meyering  <meyering@redhat.com>
7631
7632         bootstrap: sync from coreutils
7633         * build-aux/bootstrap (bootstrap_epilogue): New function.
7634         Use git_modules_config in one more place.  This make bootstrap's
7635         --gnulib-srcdir option more useful for testing.
7636
7637         bootstrap: generalize autoheader check
7638         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
7639         AC_CONFIG_HEADERS.
7640
7641 2009-11-11  Eric Blake  <ebb9@byu.net>
7642
7643         mkfifoat: use new modules for Solaris and BSD bugs
7644         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
7645         * lib/mkfifoat.c (mknodat): Split...
7646         * lib/mknodat.c (mknodat): ...into new file.
7647         * modules/mkfifoat (Files): Ship new file.
7648         (Depends-on): Add mkfifo, mknod.
7649         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
7650         (Depends-on): Add symlink.
7651         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
7652         redundant with test_mkfifo.h.
7653         (do_mkfifoat, do_mknodat): New helpers.
7654
7655         mknod: new module
7656         * modules/mknod: New file.
7657         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7658         * lib/mknod.c (mknod): Likewise.
7659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7660         defaults.
7661         * modules/sys_stat (Makefile.am): Substitute them.
7662         * lib/sys_stat.in.h (mknod): Declare replacement.
7663         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7664         Document it.
7665         * doc/posix-functions/mknod.texi (mknod): Likewise.
7666         * modules/mknod-tests: New test.
7667         * tests/test-mknod.c: Likewise.
7668
7669         mkfifo: new module
7670         * modules/mkfifo: New file.
7671         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7672         * lib/mkfifo.c (mkfifo): Likewise.
7673         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7674         defaults.
7675         * modules/sys_stat (Makefile.am): Substitute them.
7676         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7677         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7678         Document it.
7679         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7680         * modules/mkfifo-tests: New test.
7681         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7682         from test-mkfifoat.c.
7683         * tests/test-mkfifo.c: New file.
7684
7685         readlink: detect FreeBSD bug
7686         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7687         slash on symlink.
7688         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7689         * tests/test-readlink.h (test_readlink): Enhance test.
7690
7691         symlink: detect FreeBSD bug
7692         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7693         slash on symlink.
7694         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7695         * tests/test-symlink.h (test_symlink): Enhance test.
7696
7697 2009-11-10  Eric Blake  <ebb9@byu.net>
7698
7699         link: detect FreeBSD bug
7700         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7701         symlink.
7702         * doc/posix-functions/link.texi (link): Document the bug.
7703         * tests/test-link.h (test_link): Enhance test.
7704         * tests/test-linkat.c (main): Update caller.
7705
7706         unlink, remove: detect FreeBSD bug
7707         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7708         slash on symlink.
7709         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7710         * doc/posix-functions/remove.texi (remove): Likewise.
7711         * tests/test-unlink.h (test_unlink): Enhance test.
7712         * tests/test-remove.c (main): Likewise.
7713
7714 2009-11-09  Eric Blake  <ebb9@byu.net>
7715
7716         rename: detect FreeBSD bug
7717         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7718         slash on symlink.
7719         * modules/renameat-tests (Depends-on): Add filenamecat.
7720         * tests/test-rename.h (test_rename): Allow one more errno.
7721         * tests/test-renameat.c (main): Likewise.
7722         * doc/posix-functions/rename.texi (rename): Document the bug.
7723
7724         open: detect FreeBSD bug
7725         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7726         symlink.
7727         * doc/posix-functions/open.texi (open): Document the bug.
7728         * doc/posix-functions/utimes.texi (utimes): Likewise.
7729         * tests/test-open.h (test_open): Add parameters, and test symlink
7730         handling.
7731         * tests/test-open.c (main): Adjust caller.
7732         * tests/test-fcntl-safer.c (main): Likewise.
7733         * modules/open-tests (Depends-on): Add stdbool, symlink.
7734         * modules/fcntl-safer-tests (Depends-on): Likewise.
7735         * tests/test-openat.c (main): Add test-open tests.
7736
7737         stat: detect FreeBSD bug
7738         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7739         symlink.
7740         * doc/posix-functions/stat.texi (stat): Document the bug.
7741         * tests/test-stat.h (test_stat_func): Add argument.
7742         * tests/test-stat.c (main): Adjust caller.
7743         * tests/test-fstatat.c (main): Likewise.
7744         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7745         Reported by Jim Meyering.
7746
7747 2009-11-09  James Youngman  <jay@gnu.org>
7748
7749         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7750         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7751
7752 2009-11-08  Jim Meyering  <meyering@redhat.com>
7753
7754         utimens: remove invalid futimesat call
7755         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7756         It used the file descriptor of the target file as the DIR_FD
7757         parameter and NULL as the file name.  That caused failure with
7758         errno == EFAULT on FreeBSD-8.0-rc2
7759
7760 2009-11-07  Eric Blake  <ebb9@byu.net>
7761
7762         fflush, freadseek: use fseeko, not fseek
7763         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7764         (clear_ungetc_buffer): Avoid potential problems on large files.
7765         * lib/freadseek.c (freadseek): Likewise.
7766         * modules/freadseek (Depends-on): Add fseeko.
7767         * modules/fseek (configure.ac): Set a witness.
7768         * tests/test-fflush.c (main): Use fseeko.
7769         * tests/test-fpurge.c (fseek): Disable link warning.
7770         * tests/test-freadable.c (fseek): Likewise.
7771         * tests/test-freading.c (fseek): Likewise.
7772         * tests/test-fseeko.c (fseek): Likewise.
7773         * tests/test-ftell.c (fseek): Likewise.
7774         * tests/test-ftello.c (fseek): Likewise.
7775         * tests/test-fwritable.c (fseek): Likewise.
7776         * tests/test-fwriting.c (fseek): Likewise.
7777
7778 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7779
7780         * modules/memchr (Depends-on): Drop getpagesize dependency.
7781
7782 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7783
7784         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7785         Reported by Ludovic Courtès.
7786         * build-aux/pmccabe2html: Improve example usage.
7787         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7788
7789 2009-11-06  Jim Meyering  <meyering@redhat.com>
7790
7791         do-release-commit-and-tag: New module.
7792         Automate the release-commit and tag process.
7793         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7794         * modules/do-release-commit-and-tag: New file.
7795         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7796
7797 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7798
7799         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7800         because test-select.c uses inet_pton.
7801
7802 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7803
7804         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7805         GETADDRINFO_LIB.  Bump serial number.
7806         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7807         Suggested by Eric Blake <ebb9@byu.net>.
7808
7809 2009-11-05  Eric Blake  <ebb9@byu.net>
7810
7811         strtod: detect darwin bug
7812         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7813         Reported by Leo Davis.
7814
7815         freopen-safer: new module
7816         * modules/freopen-safer: New module.
7817         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7818         * lib/freopen-safer.c (freopen_safer): New file.
7819         * lib/stdio-safer.h (freopen_safer): New declaration.
7820         * lib/stdio--.h (freopen): New override.
7821         * MODULES.html.sh (File stream based Input/Output): Mention it.
7822         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7823         freopen-safer module.
7824         * doc/posix-functions/stderr.texi (stderr): Likewise.
7825         * doc/posix-functions/stdin.texi (stdin): Likewise.
7826         * doc/posix-functions/stdout.texi (stdout): Likewise.
7827         * modules/freopen-safer-tests: New test.
7828         * tests/test-reopen-safer.c: New file.
7829
7830 2009-11-05  Jim Meyering  <meyering@redhat.com>
7831
7832         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7833         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7834
7835 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7836
7837         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7838
7839 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7840
7841         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7842
7843 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7844
7845         Fix link error.
7846         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7847         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7848
7849 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7850
7851         * tests/test-func.c: Also test value of __func__.
7852
7853 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7854
7855         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7856         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7857
7858 2009-11-05  Bruno Haible  <bruno@clisp.org>
7859
7860         Fix link error.
7861         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7862         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7863         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7864
7865 2009-11-05  Bruno Haible  <bruno@clisp.org>
7866
7867         Tests for module 'inet_pton'.
7868         * modules/inet_pton-tests: New file.
7869         * tests/test-inet_pton.c: New file.
7870
7871 2009-11-05  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'inet_ntop'.
7874         * modules/inet_ntop-tests: New file.
7875         * tests/test-inet_ntop.c: New file.
7876
7877 2009-11-04  Eric Blake  <ebb9@byu.net>
7878
7879         stdlib-safer: wrap all mkstemp variants
7880         * modules/mkostemp (configure.ac): Set witness.
7881         * modules/mkostemps (configure.ac): Likewise.
7882         * modules/mkstemps (configure.ac): Likewise.
7883         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7884         (mkstemps_safer): Wrap more functions.
7885         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7886         wrapping.
7887         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7888         (mkstemps_safer): Implement the wrappers.
7889
7890         mkstemps, mkostemps: new modules
7891         * modules/mkostemps: New module.
7892         * modules/mkstemps: Likewise.
7893         * lib/mkostemps.c (mkostemps): New file.
7894         * lib/mkstemps.c (mkstemps): Likewise.
7895         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7896         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7898         * modules/stdlib (Makefile.am): Substitute them.
7899         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7900         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7901         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7902         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7903         * MODULES.html.sh (File system functions): Mention them.
7904
7905         tempname: resync from glibc
7906         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7907         same values for __GT_FILE as glibc.  Abort even when assertions
7908         are disabled.
7909         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7910         match its value otherwise.  Allow idempotent inclusion.
7911         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7912         * lib/mkostemp.c (mkostemp): Likewise.
7913         * lib/mkstemp.c (mkstemp): Likewise.
7914         * lib/tmpfile.c (tmpfile): Likewise.
7915         * NEWS: Document this.
7916
7917         utimens: fix use of futimens on older Linux
7918         * lib/utimens.c (fdutimens): Use updated, rather than original,
7919         timespec to avoid bug in older Linux kernel.
7920         Reported by Simon Josefsson.
7921
7922 2009-11-04  Bruno Haible  <bruno@clisp.org>
7923
7924         Make num_processors more flexible and consistent.
7925         * lib/nproc.h (enum nproc_query): New type.
7926         (num_processors): Add a 'query' argument.
7927         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7928         (num_processors): Add a 'query' argument. Test the value of the
7929         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7930         mingw, count the number of CPUs available for the current process.
7931         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7932         Check for sched_getaffinity and sched_getaffinity_np.
7933         * modules/nproc (Depends-on): Add c-ctype, extensions.
7934         * NEWS: Mention the change.
7935
7936 2009-11-03  Bruno Haible  <bruno@clisp.org>
7937
7938         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7939
7940 2009-11-03  Jim Meyering  <meyering@redhat.com>
7941
7942         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7943         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7944         if it is defined.
7945
7946 2009-11-02  Eric Blake  <ebb9@byu.net>
7947
7948         mktime, timegm: share common declaration
7949         * lib/mktime-internal.h: New file.
7950         * lib/mktime.c: Use it rather than open-coding a declaration.
7951         * lib/timegm.c: Likewise.
7952         * modules/mktime (Files): Ship it.
7953         * modules/timegm (Files): Likewise.
7954         Suggested by Bruno Haible.
7955
7956         test-update-copyright: update test to match script changes
7957         * tests/test-update-copyright.sh: Avoid hard-coding perl
7958         location.  Don't update *.bak created by earlier runs.
7959
7960 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7961             Simon Josefsson  <simon@josefsson.org>
7962             Bruno Haible  <bruno@clisp.org>
7963
7964         Fix link error on Solaris 8.
7965         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7966         also in libnsl. Define also INET_PTON_LIB.
7967         * modules/inet_pton (Link): New section.
7968
7969 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7970             Bruno Haible  <bruno@clisp.org>
7971
7972         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7973         * modules/inet_ntop (Link): New section.
7974         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7975
7976 2009-11-02  Eric Blake  <ebb9@byu.net>
7977
7978         maint: avoid compiler warnings in m4 macros
7979         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7980         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7981
7982 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7983
7984         * m4/pmccabe2html.m4: Remove file.
7985         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7986         function.  Change maintainer.
7987         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7988         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7989         Courtès).
7990
7991 2009-10-31  Eric Blake  <ebb9@byu.net>
7992
7993         fseeko: fix m4 regression
7994         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7995         regression from 2009-10-27.
7996         Reported by Ralf Wildenhues.
7997
7998 2009-10-31  Jim Meyering  <meyering@redhat.com>
7999
8000         inttostr: aesthetics and improved (compile-time) safety
8001         Define inttype_is_signed rather than inttype_is_unsigned,
8002         since the sole use is via "#if inttype_is_signed".
8003         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8004         inttype_is_unsigned.
8005         * lib/offtostr.c (inttype_is_signed): Likewise.
8006         * lib/uinttostr.c (inttype_is_signed): Likewise.
8007         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8008         * lib/inttostr.c (inttostr): Use verify to cross-check the
8009         inttype_is_signed value and the signedness of the actual type.
8010         * modules/inttostr (Depends-on): Add verify.
8011
8012 2009-10-30  Eric Blake  <ebb9@byu.net>
8013
8014         build: avoid compiler warnings
8015         * lib/fchmodat.c (lchmod): Mark unused variables.
8016         * lib/getopt.c (_getopt_initialize): Likewise.
8017         * lib/mktime.c (__mktime_internal): Provide prototype.
8018         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8019         older gcc that do not understand #pragma GCC diagnostic.
8020         * lib/uinttostr.c (inttype_is_unsigned): Define.
8021         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8022
8023 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8024
8025         stat: fix compilation on AIX
8026         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8027         only see struct stat64.
8028
8029 2009-10-30  Eric Blake  <ebb9@byu.net>
8030
8031         exclude: make more robust
8032         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8033         rather than masking a coding bug.
8034         Suggested by Bruno Haible.
8035
8036 2009-10-30  Jim Meyering  <meyering@redhat.com>
8037
8038         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8039         Rather than putting #!/usr/bin/perl on the first line,
8040         start with a variant of what's recommended by "man perlrun" that
8041         invokes the first "perl" program from your shell's search path.
8042         * build-aux/gitlog-to-changelog: Replace #!... as above.
8043         Add a "Local Variables" perl mode setting.
8044         Prompted by a patch from Ludovic Courtès.
8045         Improved by Eric Blake.
8046         * build-aux/useless-if-before-free: Likewise.
8047         * build-aux/announce-gen: Likewise.
8048         * build-aux/update-copyright: Likewise.
8049
8050 2009-10-29  Eric Blake  <ebb9@byu.net>
8051
8052         filenamecat-lgpl: adjust clients
8053         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8054         filenamecat.
8055         * modules/renameat (Depends-on): Likewise.
8056
8057         filenamecat: split into filenamecat-lgpl
8058         * modules/filenamecat-lgpl: New module.
8059         * modules/filenamecat (Files): Move library-safe files into
8060         filenamecat-lgpl.
8061         (Depends-on): Add filenamecat-lgpl.
8062         (configure.ac): Declare witness.
8063         * lib/filenamecat.h (file_name_concat): Only declare when using
8064         GPL module.
8065         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8066         Move...
8067         * lib/filenamecat-lgpl.c: ...into new file.
8068         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8069         (gl_FILE_NAME_CONCAT): Use it.
8070         * MODULES.html.sh (File system functions): Mention new module.
8071
8072         argp: avoid memory leak
8073         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8074         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8075         base_name, since the latter malloc()s and can call exit().
8076         Leak introduced 2006-07-03.
8077
8078         dirname-lgpl: adjust clients that don't need full dirname
8079         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8080         * modules/filenamecat (Depends-on): Likewise.
8081         * modules/linkat (Depends-on): Likewise.
8082         * modules/mkancesdirs (Depends-on): Likewise.
8083         * modules/mkdir (Depends-on): Likewise.
8084         * modules/openat (Depends-on): Likewise.
8085         * modules/savewd (Depends-on): Likewise.
8086         * modules/rename (Depends-on): Likewise.
8087         (License): Relax license.
8088         * modules/mkdir-tests (Depends-on): Drop progname.
8089         (Makefile.am): Delete unneeded LDADD.
8090         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8091
8092         dirname: split into dirname-lgpl
8093         * modules/dirname-lgpl: New module.
8094         * modules/dirname (Files): Move library-safe files into
8095         dirname-lgpl.
8096         (Depends-on): Add dirname-lgpl.
8097         (configure.ac): Declare witness.
8098         * modules/double-slash-root (License): Relax license.
8099         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8100         module.
8101         * lib/dirname.c (dir_len, mdir_name): Move...
8102         * lib/dirname-lgpl.c: ...into new file.
8103         * lib/basename.c (last_component, base_len): Move...
8104         * lib/basename-lgpl.c: ...into new file.
8105         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8106         (gl_DIRNAME): Use it.
8107         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8108         Mention new module.
8109         * modules/dirname-tests (Depends-on): Add progname.
8110         * tests/test-dirname.c (program_name): Delete.
8111
8112         mkdir: make safe for libraries
8113         * modules/mkdir (Depends-on): Drop xalloc.
8114         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8115         exit.
8116
8117         tests: avoid some compiler warnings
8118         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8119         literals.
8120         * tests/test-memchr.c (main): Avoid type mismatch.
8121         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8122         * tests/test-base64.c (main): Likewise.
8123         * tests/test-getdelim.c (main): Likewise.
8124         * tests/test-gethostname.c (main): Likewise.
8125         * tests/test-getline.c (main): Likewise.
8126         * tests/test-netinet_in.c (main): Likewise.
8127         * tests/test-select.c (open_server_socket, main): Likewise.
8128         * tests/test-select-stdin.c (main): Likewise.
8129         * tests/test-sockets.c (main): Likewise.
8130         * tests/test-strsignal.c (main): Likewise.
8131         * tests/test-sys_select.c (main): Likewise.
8132         * tests/test-sys_socket.c (main): Likewise.
8133         * tests/test-u64.c (main): Likewise.
8134         * tests/test-xfprintf-posix.c (main): Likewise.
8135         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8136
8137         sockets: avoid compiler warning
8138         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8139
8140         maint: detect usage(1) and other suspicious exits
8141         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8142
8143 2009-10-29  Jim Meyering  <meyering@redhat.com>
8144
8145         timespec: long-to-int truncation could make timespec_cmp malfunction
8146         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8147         a multiple of 2^32 nanoseconds as no difference.
8148
8149 2009-10-28  Jim Meyering  <meyering@redhat.com>
8150
8151         fprintftime: wrap macro code argument in "do {...} while(0)"
8152         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8153         cpy macro must be a statement that can be followed by a semicolon.
8154         Now that the else clause contains a comment and is hence longer
8155         than one line, I require curly braces.  That in turn requires
8156         that we wrap this code block in the standard do...while(0).
8157
8158         fprintftime: remove stray semicolon from previous change
8159         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8160
8161         fprintftime: avoid a warning about ignored fwrite return value
8162         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8163         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8164         that is unsafe.
8165         * modules/fprintftime (Depends-on): Add ignore-value.
8166
8167         exclude: avoid an unwarranted warning
8168         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8169
8170 2009-10-27  Eric Blake  <ebb9@byu.net>
8171
8172         fseek: avoid compilation failure when fflush is replaced
8173         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8174         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8175         module is in use.
8176         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8177         module is not in use; since REPLACE_FSEEK worked otherwise.
8178         (GNULIB_FTELLO): Likewise for ftell.
8179         Reported by Ian Beckwith and others.
8180
8181 2009-10-27  Bruno Haible  <bruno@clisp.org>
8182
8183         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8184         Reported by Jim Meyering.
8185
8186 2009-10-27  Jim Meyering  <jim@meyering.net>
8187             Bruno Haible  <bruno@clisp.org>
8188
8189         Avoid warning despite dropping the return value of fwrite.
8190         * lib/unicodeio.c: Include ignore-value.h.
8191         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8192         * modules/unicodeio (Depends-on): Add ignore-value.
8193
8194 2009-10-26  Eric Blake  <ebb9@byu.net>
8195
8196         areadlinkat: fix fallback path
8197         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8198         pointer and zero.
8199
8200 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8201
8202         Use a better IO block size for modern systems
8203         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8204         * lib/md2.c: Likewise.
8205         * lib/md4.c: Likewise.
8206         * lib/md5.c: Likewise.
8207         * lib/sha1.c: Likewise.
8208         * lib/sha256.c: Likewise.
8209         * lib/sha512.c: Likewise.
8210
8211 2009-10-22  Eric Blake  <ebb9@byu.net>
8212
8213         tests: avoid several compiler warnings
8214         * tests/test-getcwd.c (main): Avoid buffer underflow.
8215         * tests/test-getdate.c (main): String literals are not safe with
8216         putenv, so use setenv.  Declare unused argument.
8217         * modules/getdate-tests (Depends-on): Add setenv.
8218         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8219         problems with string literals in char *.
8220         * tests/test-hash.c (main): Avoid shadowing declaration.
8221         (insert_new): Treat string literals as char const *.
8222         * tests/test-getopt.h (test_getopt): Likewise.
8223         (getopt_loop): Alter types to minimize casting elsewhere.
8224         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8225         (test_getopt_long_posix): Likewise.
8226         (do_getopt_long): Add wrapper to minimize casting.
8227         * tests/test-atexit.c (clear_temp_file): Use void.
8228         * tests/test-areadlink-with-size.c (main): Declare unused
8229         arguments.
8230         * tests/test-areadlink.c (main): Likewise.
8231         * tests/test-areadlinkat-with-size.c (main): Likewise.
8232         * tests/test-areadlinkat.c (main): Likewise.
8233         * tests/test-canonicalize-lgpl.c (main): Likewise.
8234         * tests/test-canonicalize.c (main): Likewise.
8235         * tests/test-dirent-safer.c (main): Likewise.
8236         * tests/test-dirname.c (main): Likewise.
8237         * tests/test-dup2.c (main): Likewise.
8238         * tests/test-fchdir.c (main): Likewise.
8239         * tests/test-fcntl-h.c (main): Likewise.
8240         * tests/test-fcntl-safer.c (main): Likewise.
8241         * tests/test-fdopendir.c (main): Likewise.
8242         * tests/test-fdutimensat.c (main): Likewise.
8243         * tests/test-fflush.c (main): Likewise.
8244         * tests/test-filenamecat.c (main): Likewise.
8245         * tests/test-filevercmp.c (main): Likewise.
8246         * tests/test-fopen-safer.c (main): Likewise.
8247         * tests/test-fopen.c (main): Likewise.
8248         * tests/test-fpending.c (main): Likewise.
8249         * tests/test-fpurge.c (main): Likewise.
8250         * tests/test-freading.c (main): Likewise.
8251         * tests/test-fstatat.c (main): Likewise.
8252         * tests/test-fsync.c (main): Likewise.
8253         * tests/test-futimens.c (main): Likewise.
8254         * tests/test-getndelim2.c (main): Likewise.
8255         * tests/test-gettimeofday.c (main): Likewise.
8256         * tests/test-getopt.c (main): Likewise.
8257         * tests/test-i-ring.c (main): Likewise.
8258         * tests/test-inttypes.c (main): Likewise.
8259         * tests/test-link.c (main): Likewise.
8260         * tests/test-lstat.c (main): Likewise.
8261         * tests/test-math.c (main): Likewise.
8262         * tests/test-md5.c (main): Likewise.
8263         * tests/test-memchr2.c (main): Likewise.
8264         * tests/test-memrchr.c (main): Likewise.
8265         * tests/test-mkdir.c (main): Likewise.
8266         * tests/test-mkdirat.c (main): Likewise.
8267         * tests/test-mkfifoat.c (main): Likewise.
8268         * tests/test-open.c (main): Likewise.
8269         * tests/test-openat-safer.c (main): Likewise.
8270         * tests/test-openat.c (main): Likewise.
8271         * tests/test-quotearg.c (main): Likewise.
8272         * tests/test-rawmemchr.c (main): Likewise.
8273         * tests/test-readlink.c (main): Likewise.
8274         * tests/test-remove.c (main): Likewise.
8275         * tests/test-rename.c (main): Likewise.
8276         * tests/test-renameat.c (main): Likewise.
8277         * tests/test-rmdir.c (main): Likewise.
8278         * tests/test-sha1.c (main): Likewise.
8279         * tests/test-signal.c (main): Likewise.
8280         * tests/test-sigaction.c (main): Likewise.
8281         * tests/test-stat.c (main): Likewise.
8282         * tests/test-stat-time.c (main): Likewise.
8283         * tests/test-stddef.c (main): Likewise.
8284         * tests/test-stdint.c (main): Likewise.
8285         * tests/test-stdio.c (main): Likewise.
8286         * tests/test-stdlib.c (main): Likewise.
8287         * tests/test-strchrnul.c (main): Likewise.
8288         * tests/test-strerror.c (main): Likewise.
8289         * tests/test-string.c (main): Likewise.
8290         * tests/test-strtod.c (main): Likewise.
8291         * tests/test-strverscmp.c (main): Likewise.
8292         * tests/test-symlink.c (main): Likewise.
8293         * tests/test-symlinkat.c (main): Likewise.
8294         * tests/test-sys_stat.c (main): Likewise.
8295         * tests/test-sys_time.c (main): Likewise.
8296         * tests/test-time.c (main): Likewise.
8297         * tests/test-unistd.c (main): Likewise.
8298         * tests/test-unlink.c (main): Likewise.
8299         * tests/test-unlinkat.c (main): Likewise.
8300         * tests/test-utimens.c (main): Likewise.
8301         * tests/test-utimensat.c (main): Likewise.
8302         * tests/test-version-etc.c (main): Likewise.
8303         * tests/test-wchar.c (main): Likewise.
8304         * tests/test-wctype.c (main): Likewise.
8305         * tests/test-xprintf-posix.c (main): Likewise.
8306         * tests/test-posixtm.c (main): Likewise.
8307         (STREQ): Delete unused macro.
8308         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8309         shadowed variables.
8310         * tests/test-memchr.c (main): Likewise.
8311
8312 2009-10-21  Eric Blake  <ebb9@byu.net>
8313
8314         areadlinkat: avoid failure on older glibc
8315         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8316         rather than mis-comparing 0 against FUNC_RESULT of char*.
8317
8318 2009-10-21  Bruno Haible  <bruno@clisp.org>
8319
8320         * modules/stpncpy (License): Relicense under LGPLv2+.
8321         Reported by David Lutterkort <lutter@redhat.com>.
8322
8323 2009-10-20  Eric Blake  <ebb9@byu.net>
8324
8325         utimensat: work around Solaris 9 bug
8326         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8327         has trailing slash bugs.
8328         * tests/test-lutimens.h (test_lutimens): Enhance test.
8329         * tests/test-utimens.h (test_utimens): Likewise.
8330         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8331         * doc/posix-functions/utimes.texi (utimes): Likewise.
8332         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8333         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8334         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8335         * doc/posix-functions/futimens.texi (futimens): Likewise.
8336
8337         fdutimensat: new module
8338         * modules/fdutimensat: New file.
8339         * lib/fdutimensat.c (fdutimensat): Likewise.
8340         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8341         * MODULES.html.sh (File system functions): Mention module.
8342         * modules/fdutimensat-tests: New test.
8343         * tests/test-fdutimensat.c: Likewise.
8344
8345         doc: regenerate INSTALL
8346         * doc/INSTALL: Reflect recent autoconf update.
8347         * doc/INSTALL.ISO: Likewise.
8348         * doc/INSTALL.UTF-8: Likewise.
8349
8350 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8351
8352         acl: warn if ACL support is not detected
8353         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8354
8355 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8356
8357         * lib/nproc.h: Add extern "C" block for C++.
8358
8359 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8360             Bruno Haible  <bruno@clisp.org>
8361
8362         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8363         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8364         * doc/posix-functions/isalpha.texi: Likewise.
8365         * doc/posix-functions/isblank.texi: Likewise.
8366         * doc/posix-functions/iscntrl.texi: Likewise.
8367         * doc/posix-functions/isdigit.texi: Likewise.
8368         * doc/posix-functions/isgraph.texi: Likewise.
8369         * doc/posix-functions/islower.texi: Likewise.
8370         * doc/posix-functions/isprint.texi: Likewise.
8371         * doc/posix-functions/ispunct.texi: Likewise.
8372         * doc/posix-functions/isspace.texi: Likewise.
8373         * doc/posix-functions/isupper.texi: Likewise.
8374         * doc/posix-functions/isxdigit.texi: Likewise.
8375
8376 2009-10-18  Bruno Haible  <bruno@clisp.org>
8377
8378         Tests for module 'isblank'.
8379         * modules/isblank-tests: New file.
8380         * tests/test-isblank.c: New file.
8381
8382         New module 'isblank'.
8383         * lib/isblank.c: New file.
8384         * m4/isblank.m4: New file.
8385         * modules/isblank: New file.
8386         * doc/posix-functions/isblank.texi: Mention the new module.
8387
8388 2009-10-18  Bruno Haible  <bruno@clisp.org>
8389
8390         New module 'ctype'.
8391         * lib/ctype.in.h: New file.
8392         * m4/ctype.m4: New file.
8393         * modules/ctype: New file.
8394         * doc/posix-headers/ctype.texi: Mention the new module.
8395
8396 2009-10-18  Jim Meyering  <meyering@redhat.com>
8397
8398         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8399         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8400         right after its initialization, rather than farther down.
8401         Keeping these in close proximity makes it easier to ensure
8402         that each such variable is initialized.  E.g.,
8403
8404             LIB_CLOCK_GETTIME=
8405             AC_SUBST([LIB_CLOCK_GETTIME])
8406
8407         This change also increments these serial numbers.
8408         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8409         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8411
8412 2009-10-18  Bruno Haible  <bruno@clisp.org>
8413
8414         Don't let environment variables perturb build.
8415         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8416         (gl_PREREQ_GETHRXTIME): ... not here.
8417
8418 2009-10-18  Bruno Haible  <bruno@clisp.org>
8419
8420         Avoid symlink attack in localcharset module.
8421         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8422         (O_NOFOLLOW): Define fallback.
8423         (get_charset_aliases): Don't open the file if it is a symbolic link.
8424         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8425         gl_FCNTL_H.
8426         (gl_FCNTL_H): Require it.
8427         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8428         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8429         Reported by Fergal Glynn <fglynn@veracode.com>.
8430
8431 2009-10-18  Bruno Haible  <bruno@clisp.org>
8432
8433         Implement nproc for mingw.
8434         * lib/nproc.c: Include <windows.h>
8435         (num_processors): On native Windows platforms, try GetSystemInfo.
8436
8437 2009-10-18  Bruno Haible  <bruno@clisp.org>
8438
8439         Implement nproc for IRIX.
8440         * lib/nproc.c: Include <sys/sysmp.h>.
8441         (num_processors): On IRIX systems, try sysmp.
8442         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8443
8444 2009-10-18  Bruno Haible  <bruno@clisp.org>
8445
8446         Implement nproc for HP-UX.
8447         * lib/nproc.c: Include <sys/pstat.h>
8448         (num_processors): On HP-UX systems, try pstat_getdynamic.
8449         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8450         pstat_getdynamic.
8451
8452 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8453             Bruno Haible  <bruno@clisp.org>
8454
8455         Implement nproc for NetBSD, OpenBSD.
8456         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8457         (ARRAY_SIZE): New macro.
8458         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8459         * m4/nproc.m4: New file.
8460         * modules/nproc (Files): Add m4/nproc.m4.
8461         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8462         (Makefile.am): Instead, augment lib_SOURCES.
8463
8464 2009-10-18  Bruno Haible  <bruno@clisp.org>
8465
8466         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8467         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8468         sys/param.h.
8469
8470 2009-10-16  Eric Blake  <ebb9@byu.net>
8471
8472         utimensat: new module
8473         * modules/utimensat: New file.
8474         * lib/utimensat.c (utimensat): Likewise.
8475         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8476         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8477         so we can work around Linux bugs.
8478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8479         * modules/sys_stat (Makefile.am): Substitute them.
8480         * lib/sys_stat.in.h (utimensat): Declare it.
8481         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8482         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8483         * modules/utimensat-tests: New test.
8484         * tests/test-utimensat.c: Likewise.
8485
8486         utimens: let lutimens work on non-symlinks
8487         * lib/utimens.c (lutimens): Fall back to utimens rather than
8488         failing with ENOSYS, when file is not a symlink.
8489         (utimens): Reduce redirection.
8490         * tests/test-lutimens.h (test_lutimens): Update test to cover
8491         non-symlinks.
8492         * tests/test-utimens.h (test_utimens): Update test to cover
8493         symlinks.
8494         * tests/test-utimens.c (main): Update caller.
8495
8496         utimens: cache whether utimensat syscall works
8497         * lib/utimens.c (utimensat_works_really): New cache variable.
8498         (fdutimens, lutimens): Use it to avoid failing syscall.
8499
8500         test-stat-time, test-utimens: improve portability
8501         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8502         ext4 on alpha, and for cygwin.
8503         * tests/test-utimens-common.h: New file.
8504         (nap): Factor delays into single function.
8505         * tests/test-lutimens.h (test_lutimens): Use new header.
8506         * tests/test-futimens.h (test_futimens): Likewise.
8507         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8508         timestamps to occur from same machine, as was done previously for
8509         test_utimens.
8510         * modules/utimens-tests (Files): Ship new file.
8511         * modules/futimens-tests (Files): Likewise.
8512         Reported in part by Jim Meyering.
8513
8514         sys_stat: sort replacement declarations
8515         * lib/sys_stat.in.h: Sort declarations.
8516         * lib/futimens.c (futimens): Fix typo.
8517
8518 2009-10-15  Jim Meyering  <meyering@redhat.com>
8519
8520         don't let environment settings perturb build
8521         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8522         could cause a configure-time and/or build-time malfunction.
8523         Typically, a configure-time function-in-library test is performed
8524         via code like this:
8525
8526           LIB_VAR=
8527           AC_SUBST([LIB_VAR])
8528           prefix_saved_LIBS=$LIBS
8529             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8530                        [test "$ac_cv_search_FUNC" = "none required" ||
8531                         LIB_VAR=$ac_cv_search_FUNC])
8532           LIBS=$prefix_saved_LIBS
8533
8534         However, in each of the files affected by this change, the LIB_VAR=
8535         initialization was omitted.  Thus, when set in the environment, its
8536         value would propagate into generated Makefiles when FUNC is not found
8537         in LIB_NAME.
8538         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8539         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8541
8542 2009-10-14  Eric Blake  <ebb9@byu.net>
8543
8544         fchdir: avoid infinite recursion in mingw
8545         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8546         recursing.
8547
8548         test-stat-time: port to mingw
8549         * tests/test-stat-time.c (force_unlink): Return a value.
8550         (test_ctime) [W32]: Fix compilation error.
8551         (nap): Don't call usleep with too large an argument.  Use
8552         force_unlink.
8553         * doc/pastposix-functions/usleep.texi (usleep): Document the
8554         portability issue.
8555
8556 2009-10-13  Jim Meyering  <meyering@redhat.com>
8557
8558         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8559         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8560         * modules/pipe-filter-ii: Likewise.
8561         * modules/sys_socket-tests: Likewise.
8562         * modules/tsearch-tests: Likewise.
8563         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8564         (check): Depend on it.
8565
8566 2009-10-12  Eric Blake  <ebb9@byu.net>
8567
8568         utimens-tests: port to NFS file systems
8569         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8570         comparisons to avoid spurious failures from timestamp drift
8571         between NFS machines.
8572
8573 2009-10-12  Eric Blake  <ebb9@byu.net>
8574
8575         stat-time-tests: minor cleanups
8576         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8577         * tests/test-stat-time.c (nap): Separate assignment from call.
8578         Suggested by Paolo Bonzini and Bruno Haible.
8579
8580         sys_stat: guarantee struct timespec
8581         * lib/sys_stat.in.h (includes): Always include <time.h>
8582         * modules/sys_stat (Depends-on): Add time.
8583         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8584         mode_t permission values.
8585         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8586         get at subsecond timestamps.
8587
8588 2009-10-10  Eric Blake  <ebb9@byu.net>
8589
8590         futimens: new module
8591         * modules/futimens: New file.
8592         * lib/futimens.c (futimens): Likewise.
8593         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8594         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8595         we can work around Linux bugs.
8596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8597         * modules/sys_stat (Makefile.am): Substitute them.
8598         * lib/sys_stat.in.h (futimens): Declare it.
8599         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8600         * doc/posix-functions/futimens.texi (futimens): Likewise.
8601         * modules/futimens-tests: New test.
8602         * tests/test-futimens.c: Likewise.
8603
8604         utimens: introduce fdutimens
8605         * lib/utimens.h (fdutimens): New prototype.
8606         * lib/utimens.c (gl_futimens): Move guts...
8607         (fdutimens): ...to new interface.
8608         * tests/test-utimens.c (do_fdutimens): Use it.
8609
8610         utimens: add UTIME_NOW and UTIME_OMIT support
8611         * lib/utimens.c (validate_timespec, update_timespec): New helper
8612         functions.
8613         (gl_futimens, lutimens): Use them.
8614         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8615         stdbool, sys_stat.
8616         (Link): Mention resulting library dependency.
8617         * modules/utimecmp (Link): Likewise.
8618         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8619         (Makefile.am): Pick up library dependency.
8620         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8621         definition.
8622         * tests/test-sys_stat.c: Test the definitions.
8623         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8624         * NEWS: Document library dependency.
8625
8626         utimecmp: support symlink timestamps
8627         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8628         hashing when possible.  Use pathconf when available.
8629         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8630         * modules/utimecmp (Depends-on): Add lstat.
8631
8632         utimens: add lutimens interface
8633         * lib/utimens.c (lutimens): New function.
8634         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8635         * lib/utimens.h (lutimens): Declare new interface.
8636         * tests/test-utimens.c (main): Enhance test.
8637         * tests/test-lutimens.h (test_lutimens): New file.
8638         * modules/utimens-tests (Files): Distribute it.
8639         (Depends-on): Add symlink.
8640         (configure.ac): Check for usleep.
8641
8642         utimens: validate futimens usage
8643         * lib/utimens.c (gl_futimens): Require valid fd up front, using
8644         fewer syscalls on failure later on.  Avoid compiler warning on
8645         mingw.
8646         * modules/utimens (Depends-on): Add dup2.
8647
8648         utimens: add test
8649         * modules/utimens-tests: New test.
8650         * tests/test-utimens.h: New file.
8651         * tests/test-futimens.h: Likewise.
8652         * tests/test-utimens.c: Likewise.
8653
8654         doc: mention timestamp portability issues
8655         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
8656         instead.
8657         * doc/posix-functions/utime.texi (utime): Likewise.
8658         * doc/posix-functions/utimes.texi (utimes): Likewise.
8659         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8660         instead.
8661         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8662         module.
8663         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8664         Mention weakness with symlink timestamps.
8665         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8666         to utimensat/futimens instead.
8667         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8668
8669         test-dup2: enhance test
8670         * tests/test-dup2.c (main): Also check AT_FDCWD.
8671
8672         test-stat-time: avoid more spurious failures
8673         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8674         xfs; and avoid race if the two timestamps cross quantization edge.
8675
8676         relocatable: prefer 'file system' over 'filesystem'
8677         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8678         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8679         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8680         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8681         * lib/relocatable.c (compute_curr_prefix): Likewise.
8682
8683 2009-10-10  Jim Meyering  <meyering@redhat.com>
8684
8685         stat-time-tests: check for the usleep function
8686         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8687
8688 2009-10-10  Bruno Haible  <bruno@clisp.org>
8689
8690         * modules/xnanosleep: Put the Link section after the Include section.
8691
8692 2009-10-09  Eric Blake  <ebb9@byu.net>
8693
8694         dup2: work around FreeBSD 6.1 bug
8695         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8696         * doc/posix-functions/dup2.texi (dup2): Document it.
8697         Reported by Nelson H. F. Beebe and Jim Meyering.
8698
8699         test-stat-time: port to buggy NFS clients
8700         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8701         (test_ctime): Also skip test if mtime and ctime are skewed.
8702
8703         maint: prefer 'file system' over 'filesystem'
8704         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8705         * doc/posix-functions/lstat.texi (lstat): Likewise.
8706         * lib/file-has-acl.c (file_has_acl): Likewise.
8707         * lib/fwriteerror.c [TEST]: Likewise.
8708         * tests/test-areadlink.h (test_areadlink): Likewise.
8709         * tests/test-areadlinkat-with-size.c (main): Likewise.
8710         * tests/test-areadlinkat.c (main): Likewise.
8711         * tests/test-canonicalize-lgpl.c (main): Likewise.
8712         * tests/test-canonicalize.c (main): Likewise.
8713         * tests/test-fstatat.c (main): Likewise.
8714         * tests/test-linkat.c (main): Likewise.
8715         * tests/test-lstat.h (test_lstat_func): Likewise.
8716         * tests/test-mkdir.h (test_mkdir): Likewise.
8717         * tests/test-readlink.h (test_readlink): Likewise.
8718         * tests/test-remove.c (main): Likewise.
8719         * tests/test-rename.h (test_rename): Likewise.
8720         * tests/test-renameat.c (main): Likewise.
8721         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8722         * tests/test-symlink.h (test_symlink): Likewise.
8723         * tests/test-symlinkat.c (main): Likewise.
8724         * tests/test-unlink.h (test_unlink_func): Likewise.
8725         * tests/test-unlinkat.c (main): Likewise.
8726
8727         maint: make realtime library usage explicit
8728         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8729         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8730         * modules/settime (Link): Likewise.
8731         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8732
8733         test-stat-time: speed up execution
8734         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8735         warning on mingw.
8736         (nap): New helper function.
8737         (prepare_test): Use it to reduce sleep time.
8738         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8739         execution.
8740         * modules/stat-time-tests (configure.ac): Check for usleep.
8741
8742 2009-10-09  Jim Meyering  <meyering@redhat.com>
8743
8744         selinux-h: always use getfilecon wrappers
8745         * lib/getfilecon.c: New file.
8746         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8747         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8748         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8749         (fgetfilecon): Provide a stub.
8750         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8751         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8752         file unconditionally.
8753         When <selinux/selinux.h> is found, arrange to use wrappers.
8754         * modules/selinux-h (Files): Add getfilecon.c.
8755         (Makefile.am): Substitute include-next-related bits
8756         into the now-always-generated selinux/selinux.h file.
8757         * doc/glibc-functions/lgetfilecon.texi: New file.
8758         * doc/glibc-functions/fgetfilecon.texi: New file.
8759         * doc/glibc-functions/getfilecon.texi: New file.
8760         * doc/glibc-functions/getfilecon-desc.texi: New file.
8761         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8762         which to pull in the new files.
8763         * MODULES.html.sh (Misc): Add selinux-h.
8764
8765 2009-10-08  Jim Meyering  <meyering@redhat.com>
8766
8767         unistd: fix comment typo
8768         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8769
8770 2009-10-08  Eric Blake  <ebb9@byu.net>
8771
8772         areadlink: use SIZE_MAX consistently
8773         * modules/areadlink (Depends-on): Add stdint.
8774         * modules/areadlink-with-size (Depends-on): Likewise.
8775         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8776         gives NULL; drop sys/types, since unistd gives size_t; and add
8777         stdint for SIZE_MAX.
8778         (SIZE_MAX): Rely on headers.
8779         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8780         and add stdint.
8781         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8782         (SIZE_MAX): Likewise.
8783         (INITIAL_BUF_SIZE): Turn into enum.
8784         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8785
8786 2009-10-08  Jim Meyering  <meyering@redhat.com>
8787
8788         areadlinkat: avoid compilation failure
8789         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8790         Fix typo in comment.
8791
8792 2009-10-07  Eric Blake  <ebb9@byu.net>
8793
8794         areadlinkat-with-size: new module
8795         * modules/areadlinkat-with-size: New module.
8796         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8797         * lib/areadlink.h (areadlinkat): Declare it.
8798         * MODULES.html.sh (File system functions): Mention it.
8799         * modules/areadlinkat-with-size-tests: New test.
8800         * tests/test-areadlinkat-with-size.c: New file.
8801
8802         xreadlinkat: new module
8803         * modules/xreadlinkat: New module.
8804         * lib/xreadlinkat.c (xreadlinkat): New file.
8805         * lib/xreadlink.h (xreadlinkat): Declare it.
8806         * MODULES.html.sh (File system functions): Mention it.
8807
8808         areadlinkat: new module
8809         * lib/at-func.c (FUNC_FAIL): New define.
8810         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8811         * modules/areadlinkat: New module.
8812         * lib/linkat.c (areadlinkat): Move...
8813         * lib/areadlinkat.c (areadlinkat): ...to new file.
8814         * lib/areadlink.h (areadlinkat): Declare it.
8815         * modules/linkat (Depends-on): Add areadlinkat.
8816         * MODULES.html.sh (File system functions): Mention it.
8817         * modules/areadlinkat-tests: New test.
8818         * tests/test-areadlinkat.c: New file.
8819
8820         areadlink, areadlink-with-size: add tests
8821         * modules/areadlink-tests: New test.
8822         * modules/areadlink-with-size-tests: Likewise.
8823         * tests/test-areadlink.h: New file.
8824         * tests/test-areadlink.c: Likewise.
8825         * tests/test-areadlink-with-size.c: Likewise.
8826
8827         maint: minor cleanups
8828         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8829         _UNUSED_PARAMETER_ instead.
8830         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8831         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8832         * modules/linkat-tests (Files): Distribute test-link.h.
8833
8834         openat, utimens: whitespace cleanup
8835         * lib/openat.c: Prefer space throughout, rather than mix of 8
8836         spaces vs. tabs.
8837         * lib/at-func.c: Likewise.
8838         * lib/utimens.c: Likewise.
8839
8840         openat: avoid using wrong fd
8841         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8842         working directory chooses same fd.
8843         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8844
8845         mkdir, mkdirat: fix cygwin 1.5.x bug
8846         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8847         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8848         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8849         bug.
8850         (gl_PREREQ_MKDIR): Delete unused macro.
8851         * modules/mkdir (Files): Track file rename.
8852         (configure.ac): Update macro name.
8853         * modules/openat (Depends-on): Add mkdir.
8854         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8855
8856         mkdir, mkdirat: add tests
8857         * modules/mkdir-tests: New test.
8858         * tests/test-mkdir.h: New file.
8859         * tests/test-mkdir.c: Likewise.
8860         * tests/test-mkdirat.c: Likewise.
8861         * modules/openat-tests (Files): Add new files.
8862         (Makefile.am): Run new test.
8863
8864 2009-10-06  Eric Blake  <ebb9@byu.net>
8865
8866         doc: tweak *at function documentation
8867         * doc/posix-functions/faccessat.texi (faccessat): Mention
8868         known issue with replacement.
8869         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8870         * doc/posix-functions/linkat.texi (linkat): Likewise.
8871         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8872         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8873         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8874         * doc/posix-functions/renameat.texi (renameat): Likewise.
8875         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8876
8877         openat: fix GNU/Hurd bug in unlinkat
8878         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8879         broken.
8880         * doc/posix-functions/unlink.texi (unlink): Document this.
8881         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8882
8883         fdopendir: fix GNU/Hurd bug
8884         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8885         allowing non-directory fds.
8886         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8887         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8888         * modules/dirent (Makefile.am): Substitute it.
8889         * lib/dirent.in.h (fdopendir): Declare replacement.
8890         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8891         * tests/test-fdopendir.c (main): Test something other than
8892         /dev/null, since on Hurd that behaves like a directory.
8893
8894         test-symlink: port to GNU/Hurd
8895         * tests/test-symlink.h (test_symlink): Relax expected errno.
8896
8897         doc: tweak more cygwin information
8898         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8899         now compatible with glibc.
8900         * doc/posix-functions/getopt.texi (getopt): Likewise.
8901
8902         getopt-gnu: add another test
8903         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8904         guarantee behavior relied on by m4.
8905         * tests/test-getopt.c (main): Use it.
8906         * modules/getopt-posix-tests (Depends-on): Add setenv.
8907         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8908
8909         getopt: fix compilation on darwin
8910         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8911         include.
8912         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8913         Reported by Ludovic Courtès.
8914
8915 2009-10-06  Bruno Haible  <bruno@clisp.org>
8916
8917         * modules/size_max (Description): Discourage its use.
8918         Reported by Simon Josefsson.
8919
8920 2009-10-06  Jim Meyering  <meyering@redhat.com>
8921
8922         linkat: avoid compilation failure
8923         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8924
8925 2009-10-05  Eric Blake  <ebb9@byu.net>
8926
8927         linkat: support Linux 2.6.17
8928         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8929         linkat on Linux, but allow cache variable override.
8930         * lib/linkat.c (rpl_linkat): Define override.
8931         * modules/linkat (Depends-on): Add symlinkat.
8932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8933         * modules/unistd (Makefile.am): Substitute it.
8934         * lib/unistd.in.h (linkat): Declare replacement.
8935         Reported by Pádraig Brady.
8936
8937         quotearg: port test to systems with C.UTF-8 locale
8938         * tests/test-quotearg.c (struct result_strings): Add another
8939         member, differentiating between C.ASCII and C.UTF-8 handling.
8940         (compare_strings): Add parameter.
8941         (main): Adjust all callers.
8942
8943         getopt: avoid clash with FreeBSD _getopt_internal
8944         * lib/getopt.in.h (_getopt_internal): Override the name.
8945         * lib/getopt_int.h (includes): Pick up any overrides.
8946         Reported by Reuben Thomas.
8947
8948         hash: allow C89 compilation
8949         * lib/hash.c (check_tuning): Move declaration before statement.
8950         Reported by Reuben Thomas.
8951
8952 2009-10-05  Karl Berry  <karl@gnu.org>
8953
8954         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8955
8956 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8957             Bruno Haible  <bruno@clisp.org>
8958
8959         * lib/uname.c (uname): Use a table-driven algorithm to compute
8960         Windows NT versions.
8961
8962 2009-10-04  Bruno Haible  <bruno@clisp.org>
8963
8964         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8965         program_invocation_short_name.
8966         * modules/progname (configure.ac): Test for presence of
8967         program_invocation_short_name.
8968         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8969
8970 2009-10-04  Bruno Haible  <bruno@clisp.org>
8971
8972         * lib/progname.c (set_program_name): Fix comment.
8973         Reported by Jim Meyering.
8974
8975 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8976             Bruno Haible  <bruno@clisp.org>
8977
8978         * lib/uname.c: Include <string.h>.
8979         (uname): Do only one call to GetVersionEx in the common case.
8980
8981 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8982             Bruno Haible  <bruno@clisp.org>
8983
8984         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8985         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8986         (uname): Add support for Windows CE and various non-x86 CPU types.
8987
8988 2009-10-03  Bruno Haible  <bruno@clisp.org>
8989
8990         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8991         invocation to tests/configure.ac.
8992         Reported by Ian Beckwith <ianb@erislabs.net>.
8993
8994 2009-10-02  Eric Blake  <ebb9@byu.net>
8995
8996         fchdir: avoid compiler warning
8997         * lib/fchdir.c (canonicalize_file_name)
8998         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8999
9000         test-open: support mingw errno values
9001         * tests/test-open.h (test_open): Relax test.
9002         * tests/test-fopen.h (test_fopen): Likewise.
9003         * tests/test-openat-safer.c (main): Likewise.
9004
9005         open: fix opening directory on mingw
9006         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9007
9008         test-open: on GNU/Hurd, /dev/null is a directory
9009         * tests/test-fopen.h (main): Rename...
9010         (test_fopen): ...to this.  Use a guaranteed non-directory when
9011         confirming open behavior on trailing slash.
9012         * tests/test-openat-safer.c (main): Likewise.
9013         * tests/test-open.h (main): Likewise....
9014         (test_open): ...to this.
9015         * tests/test-fopen.c (main): Adjust caller.
9016         * tests/test-fopen-safer.c (main): Likewise.
9017         * tests/test-open.c (main): Likewise.
9018         * tests/test-fcntl-safer.c (main): Likewise.
9019         Reported by Samuel Thibault.
9020
9021         rename, fchdir: don't ignore chdir failure
9022         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9023         * lib/rename.c (rpl_rename) [W32]: Likewise.
9024         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9025         an empty destination directory if source cannot be renamed,
9026         although there is still possibility for failure.
9027         * doc/posix-functions/rename.texi (rename): Document the race.
9028         Reported by Jim Meyering.
9029
9030         maint: cleanup whitespace in recent commits
9031         * lib/rename.c (rpl_rename): Remove tabs.
9032         * tests/test-link.h (test_link): Likewise.
9033         * lib/fchdir.c (get_name): Likewise.
9034         Reported by Jim Meyering.
9035
9036 2009-10-02  Ben Pfaff  <blp@gnu.org>
9037
9038         relocatable-prog-wrapper: Add missing dependency on
9039         double-slash-root.
9040         * modules/relocatable-prog-wrapper: Add dependency.
9041         Reported by Ian Beckwith <ianb@erislabs.net>.
9042
9043 2009-10-02  Eric Blake  <ebb9@byu.net>
9044
9045         renameat: fix Solaris bugs
9046         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9047         needed fixing.
9048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9049         * modules/stdio (Makefile.am): Substitute it.
9050         * lib/stdio.in.h (renameat): Declare replacement.
9051         * lib/renameat.c (rpl_renameat): Implement fix.
9052
9053         renameat: new module
9054         * modules/renameat: New file.
9055         * lib/renameat.c (renameat): Likewise.
9056         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9058         * modules/stdio (Makefile.am): Substitute them.
9059         * lib/stdio.in.h (renameat): Declare it.
9060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9061         * doc/posix-functions/renameat.texi (renameat): Likewise.
9062         * modules/renameat-tests: New test.
9063         * tests/test-renameat.c: Likewise.
9064
9065         rename: fix mingw bugs
9066         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9067         directory overwrite bugs.
9068
9069         rename: fix another cygwin 1.5 bug
9070         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9071         checks.
9072         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9073         unnecessary cygwin workarounds.  Also work around bug with moving
9074         full directory onto an empty one.
9075         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9076
9077         rename-dest-slash: merge into rename module
9078         * modules/rename-dest-slash (Status): Mark obsolete.
9079         (Depends-on): Add rename.
9080         (Files): Let rename do it all.
9081         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9082         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9083         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9084         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9085         * lib/rename.c (rpl_rename): Update comments.
9086
9087         rename: fix cygwin 1.5.x bugs
9088         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9089         * lib/rename.c (rpl_rename): Work around them.
9090         * modules/rename (Depends-on): Add same-inode.
9091
9092         rename: fix Solaris 10 bug
9093         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9094         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9095         was the only bug.
9096
9097         rename: fix Solaris 9 bug
9098         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9099         on non-directory.  Avoid calling exit.
9100         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9101         strdup.
9102         * modules/rename-tests (Depends-on): Drop lstat.
9103         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9104         (gl_PREREQ_RENAME): Delete unused macro.
9105
9106         rename-dest-slash: fix NetBSD bug
9107         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9108         links.
9109         * modules/rename-dest-slash (Depends-on): Add same-inode.
9110
9111         rename-tests: new test, exposes several platform bugs
9112         * modules/rename-tests: New file.
9113         * tests/test-rename.h: Likewise.
9114         * tests/test-rename.c: Likewise.
9115         * doc/posix-functions/rename.texi (rename): Improve documentation,
9116         including bugs that will eventually be fixed in gnulib.
9117
9118 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9119
9120         * lib/uname.c: Include <stdlib.h>
9121         (uname): Assume version info is available.
9122
9123 2009-10-02  Jim Meyering  <meyering@redhat.com>
9124
9125         gnu-web-doc-update: correct --help output
9126         * build-aux/gnu-web-doc-update: Make --help output relevant.
9127
9128         gnu-web-doc-update: add standard options
9129         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9130
9131         gnu-web-doc-update: New module.
9132         Use this script to automatically update the on-line web documentation
9133         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9134         * modules/gnu-web-doc-update: New file, from coreutils.
9135         * build-aux/gnu-web-doc-update: New script.
9136
9137 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9138
9139         link: LoadLibrary is not needed.
9140         * lib/link.c: Use GetModuleHandle.
9141
9142 2009-10-01  Eric Blake  <ebb9@byu.net>
9143
9144         getopt: bump serial number
9145         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9146         change.
9147
9148         tests: tighten link, rmdir, and remove tests
9149         * tests/test-link.h (includes): No need to use <config.h> here.
9150         Clean up if directory hard link was created, otherwise test for
9151         trailing '.'.
9152         * tests/test-linkat.c (main): Simplify.
9153         * tests/test-remove.c (main): Enhance test for trailing '.'.
9154         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9155
9156 2009-10-01  Jim Meyering  <meyering@redhat.com>
9157
9158         maint.mk: requiring "make major" was annoying, for a "minor" release.
9159         What is intended is "stable", to contrast with alpha and beta,
9160         so require "make stable", not "make major".
9161         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9162         (get_tool_versions): Likewise.
9163         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9164
9165 2009-09-30  Ben Pfaff  <blp@gnu.org>
9166
9167         Fix broken build of replacement for Windows tmpfile().
9168         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9169         flags argument added along with the 'mkostemp' module.
9170
9171 2009-09-28  Bruno Haible  <bruno@clisp.org>
9172
9173         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9174         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9175         to 'remove_elt'.
9176         (gl_list_remove): Update.
9177         * lib/gl_list.c (gl_list_remove): Update.
9178         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9179         to 'remove_elt'.
9180         (gl_oset_remove): Update.
9181         * lib/gl_list.c (gl_oset_remove): Update.
9182         Reported by Eric Blake.
9183
9184 2009-09-28  Eric Blake  <ebb9@byu.net>
9185
9186         doc: mention yet more cygwin 1.7 status
9187         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9188         cygwin.
9189         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9190         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9191
9192         argp: fix test failure
9193         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9194         that are not upper-case.  Pass correct range to tolower.
9195
9196 2009-09-27  Jim Meyering  <meyering@redhat.com>
9197
9198         test-yesno: work around sparc-dash here-document infelicity
9199         Without this change, the literal \177 byte in a here document
9200         would make dash 0.5.5.1-3 access uninitialized memory.
9201         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9202         Instead, use a marker, "@", and filter through tr to create the desired
9203         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9204
9205 2009-09-27  Bruno Haible  <bruno@clisp.org>
9206
9207         Disable untested support for new flavours of ACLs on AIX.
9208         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9209         progress.
9210         * lib/set-mode-acl.c (qset_acl): Likewise.
9211
9212 2008-12-07  Bruno Haible  <bruno@clisp.org>
9213
9214         Add support for new flavours of ACLs on AIX. (Untested.)
9215         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9216         (file_has_acl): Add support for newer AIX.
9217         * lib/set-mode-acl.c (qset_acl): Likewise.
9218         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9219         Rainer Tammer <tammer@tammer.net>.
9220
9221 2009-09-26  Eric Blake  <ebb9@byu.net>
9222
9223         argp: fix compilation of getopt
9224         * lib/getopt.in.h (includes): Use different guard than glibc.
9225         Reported by Sergey Poznyakoff.
9226
9227         doc: mention more cygwin 1.7 status
9228         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9229         bug.
9230         * doc/posix-functions/execl.texi (execl): Likewise.
9231         * doc/posix-functions/execle.texi (execle): Likewise.
9232         * doc/posix-functions/execlp.texi (execlp): Likewise.
9233         * doc/posix-functions/execv.texi (execv): Likewise.
9234         * doc/posix-functions/execve.texi (execve): Likewise.
9235         * doc/posix-functions/execvp.texi (execvp): Likewise.
9236         * doc/glibc-functions/canonicalize_file_name.texi
9237         (canonicalize_file_name): Cygwin 1.7 now provides this.
9238         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9239         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9240         on AT_SYMLINK_NOFOLLOW.
9241
9242 2009-09-24  Eric Blake  <ebb9@byu.net>
9243
9244         test-linkat: make test more robust
9245         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9246
9247         getopt: fix inclusion guards for cygwin
9248         * modules/getopt-posix (Depends-on): Add include-next.
9249         (Makefile.am): Substitute more items in replacement header.
9250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9251         <getopt.h>.
9252         * lib/getopt.in.h (includes): Use split inclusion guard, and
9253         prefer <getopt.h> over include <unistd.h> when one is present.
9254         (option): Also override name of 'struct option'.
9255
9256         same-inode: revert prior change; it is not yet ready
9257         * NEWS: Undo mention of this change.
9258         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9259         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9260         * lib/cycle-check.c (cycle_check): Likewise.
9261         * lib/same.c (same_name): Likewise.
9262         * lib/at-func2.c (at_func2): Likewise.
9263
9264 2009-09-23  Eric Blake  <ebb9@byu.net>
9265
9266         linkat: new module
9267         * modules/linkat: New file.
9268         * lib/at-func2.c (at_func2): Likewise.
9269         * lib/linkat.c (linkat): Likewise.
9270         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9271         * lib/openat-priv.h (at_func2): Add declaration.
9272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9273         * modules/unistd (Makefile.am): Substitute them.
9274         * lib/unistd.in.h (linkat): Declare it.
9275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9276         * doc/posix-functions/linkat.texi (linkat): Likewise.
9277         * doc/posix-functions/link.texi (link): Tweak wording.
9278         * tests/test-link.c (main): Move guts...
9279         * tests/test-link.h (test_link): ...into new file.
9280         * modules/linkat-tests: New test.
9281         * tests/test-linkat.c: Likewise.
9282         * modules/link-tests (Files): Ship new file.
9283         (Depends-on): Add stdbool.
9284
9285         dirname: add library-safe mdir_name
9286         * lib/dirname.h (mdir_name): New prototype.
9287         * lib/dirname.c (dir_name): Move guts...
9288         (mdir_name): ...to new function that avoids xalloc_die.
9289
9290         fchdir: another mingw fix
9291         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9292         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9293         on mingw (where it has not yet been ported), and make it optional
9294         elsewhere.
9295         (_gl_register_fd): Use it.
9296
9297         same-inode: make SAME_INODE tri-state, to port to mingw
9298         * NEWS: Mention this change.
9299         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9300         st_ino always being 0.
9301         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9302         * lib/cycle-check.c (cycle_check): Likewise.
9303         * lib/same.c (same_name): Likewise.
9304
9305         lstat: avoid mingw compilation error
9306         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9307         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9308         lstat ourselves.
9309         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9310         was adequate.
9311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9312         the checks for lstat.
9313         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9314
9315         link: fix test failure on Solaris 9
9316         * lib/link.c (rpl_link): Don't assume link will catch bogus
9317         trailing slash on source.
9318
9319         test-symlinkat: enhance test
9320         * tests/test-readlink.c (main): Move guts...
9321         * tests/test-readlink.h (test_readlink): ...into new file.
9322         * tests/test-symlink.c (main): Move guts...
9323         * tests/test-symlink.h (test_symlink): ...into new file.
9324         * tests/test-symlinkat.c (main): Use new files for further
9325         coverage.
9326         (do_symlink, do_readlink): New helper functions.
9327         * modules/symlink-tests (Files): Ship new file.
9328         (Depends-on): Add stdbool.
9329         * modules/readlink-tests (Files): Ship new file.
9330         (Depends-on): Add stdbool.
9331         * modules/symlinkat-tests (Files): Use new files.
9332
9333 2009-09-23  Eric Blake  <ebb9@byu.net>
9334
9335         readlink: document portability issue with symlink length
9336         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9337         systems have bogus st_size on symlinks, and mention the
9338         areadlink-with-size module.
9339         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9340         * doc/posix-functions/readlink.texi (readlink): Mention the
9341         areadlink module, and ERANGE failure.
9342         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9343         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9344
9345         readlink: fix Solaris 9 bug with trailing slash
9346         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9347         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9348         * doc/posix-functions/readlink.texi (readlink): Document this.
9349         * modules/readlink-tests: New test.
9350         * tests/test-readlink.c: Likewise.
9351
9352         readlink: fix cygwin 1.5.x bug with return type
9353         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9354         * lib/unistd.in.h (readlink): Use ssize_t.
9355         * lib/readlink.c (readlink): Likewise.
9356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9357         * modules/unistd (Makefile.am): Substitute it.
9358         * lib/unistd.in.h (readlink): Declare replacement.
9359         * doc/posix-functions/readlink.texi (readlink): Document this.
9360
9361         symlink: use throughout gnulib
9362         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9363         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9364         symlink is not used.
9365         * modules/symlinkat (Depends-on): Add symlink.
9366         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9367         * modules/canonicalize-tests (Depends-on): Likewise.
9368         * modules/lstat-tests (Depends-on): Likewise.
9369         * modules/openat-tests (Depends-on): Likewise.
9370         * modules/remove-tests (Depends-on): Likewise.
9371         * modules/rmdir-tests (Depends-on): Likewise.
9372         * modules/unlink-tests (Depends-on): Likewise.
9373         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9374         * tests/test-canonicalize.c (symlink): Likewise.
9375         * tests/test-fstatat.c (symlink): Likewise.
9376         * tests/test-lstat.c (symlink): Likewise.
9377         * tests/test-remove.c (symlink): Likewise.
9378         * tests/test-rmdir.c (symlink): Likewise.
9379         * tests/test-unlink.c (symlink): Likewise.
9380         * tests/test-unlinkat.c (symlink): Likewise.
9381
9382         symlink: new module, for Solaris 9 bug
9383         * modules/symlink: New file.
9384         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9385         * lib/symlink.c: Likewise.
9386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9387         * modules/unistd (Makefile.am): Substitute them.
9388         * lib/unistd.in.h (symlink): Declare replacement.
9389         * MODULES.html.sh (File system functions): Mention it.
9390         * doc/posix-functions/symlink.texi (symlink): Likewise.
9391         * modules/symlink-tests: New test.
9392         * tests/test-symlink.c: Likewise.
9393
9394 2009-09-23  Bruno Haible  <bruno@clisp.org>
9395
9396         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9397         when needed.
9398         Test case: gnulib-tool --import --with-tests atexit inttypes.
9399         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9400
9401 2009-09-23  Bruno Haible  <bruno@clisp.org>
9402
9403         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9404         subcommand, not in a subshell.
9405
9406 2009-09-22  Eric Blake  <ebb9@byu.net>
9407
9408         unistd: sort replacement declarations
9409         * lib/unistd.in.h: Sort declarations.
9410
9411         open, openat: minor optimization
9412         * lib/open.c (open): If open succeeded, len is non-zero.
9413         * lib/openat.c (rpl_openat): Likewise.
9414
9415         link-follow: ensure correct result
9416         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9417         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9418         distinguish between possible failures.
9419
9420 2009-09-21  Eric Blake  <ebb9@byu.net>
9421
9422         fts: avoid compiler warning
9423         * lib/fts.c (dirent_inode_sort_may_be_useful)
9424         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9425
9426 2009-09-19  Bruno Haible  <bruno@clisp.org>
9427
9428         * lib/progreloc.c (canonicalize_file_name): New declaration.
9429
9430 2009-09-19  Eric Blake  <ebb9@byu.net>
9431
9432         link: fix quoting
9433         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9434
9435         openat: fix openat bugs on Solaris 9
9436         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9437         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9438         * modules/openat (Depends-on): Add open.
9439         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9440         * modules/fcntl-h (Makefile.am): Substitute it.
9441         * lib/fcntl.in.h (openat): Declare replacement.
9442         * doc/posix-functions/openat.texi (openat): Document this.
9443
9444         openat: move fstatat and unlinkat into correct files
9445         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9446         compiled.
9447         * lib/openat.c (fstatat, unlinkat): Move...
9448         * lib/fstatat.c (fstatat): ...into correct files.
9449         * lib/unlinkat.c (unlinkat): Likewise.
9450
9451         openat: fix unlinkat bugs on Solaris 9
9452         * lib/unlinkat.c (unlinkat): New file.
9453         * modules/openat (Depends-on): Add unlink.
9454         (Files): Distribute it.
9455         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9456         trailing slash behavior is broken.
9457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9458         * modules/unistd (Makefile.am): Substitute it.
9459         * lib/unistd.in.h (unlinkat): Declare replacement.
9460         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9461
9462         openat: fix fstatat bugs on Solaris 9
9463         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9464         stat.
9465         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9466
9467         test-unlinkat: enhance test, to expose Solaris 9 bug
9468         * tests/test-unlink.c (main): Factor guts...
9469         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9470         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9471         * tests/test-rmdir.c (main): Adjust caller.
9472         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9473         (unlinker): New helper function.
9474         (rmdirat): Enhance check.
9475         * modules/rmdir-tests (Depends-on): Add stdbool.
9476         * modules/unlink-tests (Depends-on): Likewise.
9477         (Files): Add test-unlink.h.
9478         * modules/openat-tests (Files): Likewise.
9479         (Depends-on): Add unlinkdir.
9480
9481         test-fstatat: new test, to expose Solaris 9 bugs
9482         * tests/test-stat.c (main): Factor guts...
9483         * tests/test-stat.h (test_stat_func): ...into new file.
9484         * tests/test-lstat.c (main): Factor guts...
9485         * tests/test-lstat.h (test_lstat_func): ...into new file.
9486         * tests/test-fstatat.c: New file.
9487         * modules/stat-tests (Files): Add test-stat.h.
9488         * modules/lstat-tests (Files): Add test-lstat.h.
9489         (Depends-on): Add stdbool.
9490         * modules/openat-tests (Depends-on): Add pathmax.
9491         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9492         (Makefile.am): Run new test.
9493
9494         remove: new module, for mingw and Solaris 9 bugs
9495         * modules/remove: New file.
9496         * lib/remove.c: Likewise.
9497         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9499         * modules/stdio (Makefile.am): Use them.
9500         * lib/stdio.in.h (remove): Declare replacement.
9501         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9502         * doc/posix-functions/remove.texi (remove): Likewise.
9503         * modules/remove-tests: New test.
9504         * tests/test-remove.c: Likewise.
9505
9506         unlink: new module, for Solaris 9 bug
9507         * modules/unlink: New file.
9508         * lib/unlink.c: Likewise.
9509         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9511         * modules/unistd (Makefile.am): Use them.
9512         * lib/unistd.in.h (stat): Declare replacement.
9513         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9514         * doc/posix-functions/unlink.texi (unlink): Likewise.
9515         * modules/unlink-tests: New test.
9516         * tests/test-unlink.c: Likewise.
9517
9518         lstat: fix Solaris 9 bug
9519         * lib/lstat.c (lstat): Also check for trailing slash on
9520         non-symlink, non-directories.  Use stat module to simplify logic.
9521         * doc/posix-functions/lstat.texi (lstat): Document it.
9522         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9523         (configure.ac): Check for symlink.
9524         * tests/test-lstat.c (main): Add more tests.
9525
9526         stat: add as dependency to other modules
9527         * modules/chown (Depends-on): Add stat.
9528         * modules/euidaccess (Depends-on): Likewise.
9529         * modules/fchdir (Depends-on): Likewise.
9530         * modules/isdir (Depends-on): Likewise.
9531         * modules/link (Depends-on): Likewise.
9532         * modules/lstat (Depends-on): Likewise.
9533         * modules/mkdir-p (Depends-on): Likewise.
9534         * modules/modechange (Depends-on): Likewise.
9535         * modules/open (Depends-on): Likewise.
9536         * modules/readlink (Depends-on): Likewise.
9537         * modules/same (Depends-on): Likewise.
9538
9539         stat: fix Solaris 9 bug
9540         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9541         slash.
9542         * lib/stat.c (rpl_stat): Work around it.
9543         * doc/posix-functions/stat.texi (stat): Update documentation.
9544
9545         stat: new module, for mingw bug
9546         * modules/stat: New file.
9547         * lib/stat.c: Likewise.
9548         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9550         * modules/sys_stat (Makefile.am): Use them.
9551         * lib/sys_stat.in.h (stat): Declare replacement.
9552         * lib/openat.c (fstatat): Deal with lstat and stat being function
9553         macros.
9554         * modules/openat (Depends-on): Add inline.
9555         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9556         * doc/posix-functions/stat.texi (stat): Likewise.
9557         * modules/stat-tests: New test.
9558         * tests/test-stat.c: Likewise.
9559
9560 2009-09-19  Jim Meyering  <meyering@redhat.com>
9561
9562         syntax-check: detect unnecessary inclusion of canonicalize.h
9563         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9564
9565 2009-09-19  Eric Blake  <ebb9@byu.net>
9566
9567         canonicalize-lgpl: adjust clients to use correct header
9568         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9569         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9570         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9571         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9572         * lib/progreloc.c (includes): Likewise.
9573
9574 2009-09-19  Jim Meyering  <meyering@redhat.com>
9575
9576         test-posixtm.c: correct a comment
9577         * tests/test-posixtm.c: Correct first-line comment.
9578         Spotted by Eric Blake.
9579
9580 2009-09-16  Jim Meyering  <meyering@redhat.com>
9581
9582         posixtm-tests: make T const-correct; add a test case
9583         * tests/test-posixtm.c (T): Declare const.
9584         Add a test for -(2^31+1).
9585         Remove useless can-succeed-only-in-2002 test.
9586
9587         posixtm-tests: adjust the sole failing test
9588         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9589         expected output matches what mktime now produces.  Cross-checked via
9590         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9591
9592         posixtm: move #ifdef'd tests into a new module
9593         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9594         * tests/test-posixtm.c: ... this new file.
9595         * modules/posixtm-tests: New module.
9596
9597 2009-09-19  Eric Blake  <ebb9@byu.net>
9598
9599         openat: simplify use of at-func.c
9600         * lib/at-func.c (includes): Include prerequisites here, to
9601         simplify requirements on client files.
9602         * lib/openat-priv.h: Add double-inclusion guard.
9603         * lib/faccessat.c (includes): Simplify.
9604         * lib/fchmodat.c (includes): Likewise.
9605         * lib/fchownat.c (includes): Likewise.
9606         * lib/mkdirat.c (includes): Likewise.
9607         * lib/mkfifoat.c (includes): Likewise.
9608         * lib/symlinkat.c (includes): Likewise.
9609
9610         openat: allow return of fd 0
9611         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9612         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9613         unistd-safer.
9614         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9615         <fcntl.h>; this module does not leak fds.
9616         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9617         must be allowed to return 0, leaving openat_safer to add the
9618         safety.
9619         (openat_permissive): Avoid writing to just-opened fd 2 if
9620         restoring the current directory fails.
9621         * lib/openat-die.c (openat_restore_fail): Add comment.
9622         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9623         (save_cwd): Guarantee safe fd, but without use of open_safer.
9624         * tests/test-openat.c: New test.
9625         * modules/openat-tests (Files, Makefile.am): Distribute and build
9626         new file.
9627
9628         relocatable-prog-wrapper: fix build
9629         * modules/relocatable-prog-wrapper (Files): Update name of
9630         canonicalize m4 file, broken on 2009-09-17.
9631         Reported by emad hajjar <aleppos@hotmail.com>.
9632
9633 2009-09-19  Bruno Haible  <bruno@clisp.org>
9634
9635         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9636         * lib/safe-alloc.c: Likewise.
9637         Reported by Ian Beckwith <ianb@erislabs.net>.
9638
9639 2009-09-18  Bruno Haible  <bruno@clisp.org>
9640
9641         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
9642         Reported by <erobles@sensacd.com.mx>.
9643
9644 2009-09-17  Eric Blake  <ebb9@byu.net>
9645
9646         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
9647         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
9648         slashes when checking if last component is missing.
9649         * tests/test-canonicalize.c (main): Test this.
9650
9651         canonicalize, canonicalize-lgpl: honor // if distinct from /
9652         * modules/canonicalize (Files): Add double-slash-root.m4.
9653         * modules/canonicalize-lgpl (Files): Likewise.
9654         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9655         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
9656         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9657         fallback definition.
9658         (canonicalize_filename_mode): Use it to protect //.
9659         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9660         (__realpath): Likewise.
9661         * tests/test-canonicalize.c (main): Test this.
9662         * tests/test-canonicalize-lgpl.c (main): Likewise.
9663         * modules/canonicalize-tests (Depends-on): Add same-inode.
9664         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9665
9666         canonicalize-lgpl: fix glibc bug with trailing slash
9667         * m4/canonicalize-lgpl.m4: Move contents...
9668         * m4/canonicalize.m4: ...here.
9669         (gl_CANONICALIZE_LGPL): Factor realpath check...
9670         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9671         glibc 2.3.5 bug, fixed 2005-04-27.
9672         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9673         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9674         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9675         * modules/canonicalize-lgpl (Files): Manage file rename.
9676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9677         * modules/stdlib (Makefile.am): Substitute witness.
9678         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9679         is needed.
9680         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9681         replacement is required.
9682         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9683         * doc/glibc-functions/canonicalize_file_name.texi
9684         (canonicalize_file_name): Document this.
9685         * doc/posix-functions/realpath.texi (realpath): Likewise.
9686
9687         canonicalize-lgpl: reject non-directory with trailing slash
9688         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9689         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9690         catches failures in glibc 2.3.5.
9691         * tests/test-canonicalize.c (main): Likewise.
9692
9693         canonicalize-lgpl: use native realpath if it works
9694         * lib/canonicalize-lgpl.c (realpath): Guard with
9695         FUNC_REALPATH_WORKS.
9696         * lib/stdlib.in.h (realpath): Make declaration optional based on
9697         HAVE_REALPATH.
9698         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9699         native realpath works.
9700         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9701         * modules/stdlib (Makefile.am): Substitute witness.
9702
9703         canonicalize, canonicalize-lgpl: use <stdlib.h>
9704         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9705         (Include): Mention <stdlib.h>.
9706         (configure.ac): Mention functions we provide.
9707         * modules/canonicalize (configure.ac): Likewise.
9708         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9709         realpath if canonicalize_file_name is missing.
9710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9711         * modules/stdlib (Makefile.am): Substitute witnesses.
9712         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9713         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9714         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9715         * NEWS: Document this.
9716         * doc/glibc-functions/canonicalize_file_name.texi
9717         (canonicalize_file_name): Likewise.
9718         * doc/posix-functions/realpath.texi (realpath): Likewise.
9719         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9720
9721         test-canonicalize: consolidate into single C program
9722         * tests/test-canonicalize.sh: Delete; move setup into...
9723         * tests/test-canonicalize.c (main): ...the program, making it
9724         easier to run in debugger.  Add some tests.
9725         * modules/canonicalize-tests (Files): Remove unused file.
9726         (Depends-on): Add progname.
9727         (configure.ac, Makefile.am): Simplify.
9728
9729         test-canonicalize-lgpl: consolidate into single C program
9730         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9731         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9732         easier to run in debugger.  Add some tests.
9733         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9734         (configure.ac, Makefile.am): Simplify.
9735
9736         canonicalize: avoid resolvepath
9737         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9738         unnecessary checks.
9739         * lib/canonicalize.c (includes): Simplify.
9740         (canonicalize_file_name): Drop resolvepath implementation.
9741         * modules/canonicalize (Depends-on): Drop filenamecat.
9742
9743         canonicalize: don't lose errno
9744         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9745         over calls to free.
9746
9747         canonicalize: simplify errno handling
9748         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9749         assignment.
9750
9751         canonicalize, canonicalize-lgpl: update module dependencies
9752         * modules/canonicalize (Depends-on): Add extensions, lstat,
9753         pathmax, stdlib.
9754         (Files): Drop pathmax.h.
9755         (configure.ac): Adjust macro name.
9756         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9757         lstat, stdlib, sys_stat.
9758         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9759         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9760         extensions.
9761         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9762         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9763         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9764         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9765         declaration, if available.
9766         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9767         we can rely on the readlink module.
9768         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9769         (includes): Use <unistd.h> unconditionally.
9770
9771 2009-09-17  Eric Blake  <ebb9@byu.net>
9772
9773         maint: make Include sections of modules consistent
9774         * modules/alloca: Use only header name; no need to list #include.
9775         * modules/alloca-opt: Likewise.
9776         * modules/arpa_inet: Likewise.
9777         * modules/canon-host: Likewise.
9778         * modules/configmake: Likewise.
9779         * modules/dirent: Likewise.
9780         * modules/eealloc: Likewise.
9781         * modules/environ: Likewise.
9782         * modules/fchdir: Likewise.
9783         * modules/fcntl: Likewise.
9784         * modules/fcntl-h: Likewise.
9785         * modules/gethrxtime: Likewise.
9786         * modules/gettime: Likewise.
9787         * modules/ignore-value: Likewise.
9788         * modules/inet_ntop: Likewise.
9789         * modules/inet_pton: Likewise.
9790         * modules/inttypes: Likewise.
9791         * modules/isnand-nolibm: Likewise.
9792         * modules/isnanf-nolibm: Likewise.
9793         * modules/mbchar: Likewise.
9794         * modules/mbfile: Likewise.
9795         * modules/mbiter: Likewise.
9796         * modules/mbuiter: Likewise.
9797         * modules/netdb: Likewise.
9798         * modules/netinet_in: Likewise.
9799         * modules/nproc: Likewise.
9800         * modules/pagealign_alloc: Likewise.
9801         * modules/poll: Likewise.
9802         * modules/printf-frexp: Likewise.
9803         * modules/pthread: Likewise.
9804         * modules/putenv: Likewise.
9805         * modules/random_r: Likewise.
9806         * modules/relocatable-prog: Likewise.
9807         * modules/search: Likewise.
9808         * modules/select: Likewise.
9809         * modules/selinux-h: Likewise.
9810         * modules/settime: Likewise.
9811         * modules/signal: Likewise.
9812         * modules/size_max: Likewise.
9813         * modules/socklen: Likewise.
9814         * modules/ssize_t: Likewise.
9815         * modules/stdarg: Likewise.
9816         * modules/stdbool: Likewise.
9817         * modules/stddef: Likewise.
9818         * modules/stdint: Likewise.
9819         * modules/stdio: Likewise.
9820         * modules/stdlib: Likewise.
9821         * modules/string: Likewise.
9822         * modules/strings: Likewise.
9823         * modules/sys_file: Likewise.
9824         * modules/sys_ioctl: Likewise.
9825         * modules/sys_select: Likewise.
9826         * modules/sys_socket: Likewise.
9827         * modules/sys_stat: Likewise.
9828         * modules/sys_time: Likewise.
9829         * modules/sys_times: Likewise.
9830         * modules/sys_utsname: Likewise.
9831         * modules/sys_wait: Likewise.
9832         * modules/sysexits: Likewise.
9833         * modules/time: Likewise.
9834         * modules/times: Likewise.
9835         * modules/tmpfile: Likewise.
9836         * modules/trim: Likewise.
9837         * modules/unistd: Likewise.
9838         * modules/wchar: Likewise.
9839         * modules/wctype: Likewise.
9840
9841 2009-09-17  Bruno Haible  <bruno@clisp.org>
9842
9843         Make getdate.y compile on QNX and NetBSD 5 / i386.
9844         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9845         TIME_T_FITS_IN_LONG_INT.
9846         * lib/getdate.y (long_time_t): New type.
9847         (relative_time): Change type of 'seconds' field to long_time_t.
9848         (get_date): Update types of local variables. Check against overflow
9849         during conversion from long_time_t to time_t.
9850         Reported by Matt Kraai <kraai@ftbfs.org>
9851         and Hasso Tepper <hasso@netbsd.org>.
9852
9853 2009-09-17  Bruno Haible  <bruno@clisp.org>
9854
9855         * modules/COPYING: Update copyright years.
9856         * modules/README: Likeiwse.
9857         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9858         Reported by Ian Beckwith <ianb@erislabs.net>.
9859
9860 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9861
9862         * users.txt: Update references for gnuit package.
9863
9864 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9865
9866         * m4/getdelim.m4: Fix typo in copyright line.
9867
9868 2009-09-17  Bruno Haible  <bruno@clisp.org>
9869
9870         * lib/atoll.c: Use the standard header with GPL copyright.
9871         * lib/argz.in.h: Likewise.
9872         * lib/glob.c: Likewise.
9873         * lib/glob-libc.h: Likewise.
9874         * lib/random_r.c: Likewise.
9875         * lib/siglist.h: Likewise.
9876         * lib/strsignal.c: Likewise.
9877         Reported by Ian Beckwith <ianb@erislabs.net>.
9878
9879 2009-09-17  Eric Blake  <ebb9@byu.net>
9880
9881         rmdir: ensure correct dependency order
9882         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9883
9884 2009-09-17  Bruno Haible  <bruno@clisp.org>
9885
9886         Disable assertion that fails on NetBSD 5 / i386.
9887         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9888         Reported by Sam Steingold <sds@gnu.org>
9889         and Hasso Tepper <hasso@netbsd.org>.
9890
9891 2009-09-16  Eric Blake  <ebb9@byu.net>
9892
9893         unlinkdir: port to mingw
9894         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9895         on which no one can unlink a directory.
9896
9897         stdlib: sort witness names
9898         * modules/stdlib (Makefile.am): Sort replacements.
9899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9900         * lib/stdlib.in.h: Likewise.
9901
9902         parse-duration-tests: avoid link failure
9903         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9904         LIBINTL.
9905         Reported by Tom G. Christensen.
9906
9907         openat-tests: ensure unlinkat behaves like rmdir
9908         * tests/test-rmdir.c (main): Factor guts...
9909         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9910         * modules/rmdir-tests (Files): Ship new file.
9911         * modules/openat-tests: New test.
9912         * tests/test-unlinkat.c: Likewise.
9913
9914         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9915         * modules/rmdir-errno (Status, Notice): Now obsolete.
9916
9917         rmdir: work around cygwin 1.5.x and mingw bugs
9918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9919         * lib/rmdir.c (rmdir): Work around it.
9920         * modules/rmdir (Status, Notice): No longer obsolete.
9921         (Files): Add dos.m4.
9922         (Depends-on): Add unistd.
9923         (configure.ac): Set witnesses.
9924         (License): Relax to LGPLv2+.
9925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9926         * modules/unistd (Makefile.am): Substitute witnesses.
9927         * lib/unistd.in.h (rmdir): Declare replacement.
9928         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9929         * modules/rmdir-tests: New tests.
9930         * tests/test-rmdir.c: Likewise.
9931
9932 2009-09-15  Eric Blake  <ebb9@byu.net>
9933
9934         fchdir: improve use of replacement functions
9935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9937         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9938         REPLACE_CLOSEDIR.
9939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9940         * modules/sys_stat (Makefile.am): Substitute correct witness.
9941         * modules/dirent (Makefile.am): Likewise.
9942         * modules/unistd (Makefile.am): Likewise.
9943         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9944         * lib/unistd.in.h (dup): Likewise.
9945         * lib/sys_stat.in.h (fstat): Likewise.
9946
9947         maint: ignore gnulib-tool temp files
9948         * .gitignore: Ignore files created during gnulib-tool --test.
9949
9950 2009-09-13  Jim Meyering  <meyering@redhat.com>
9951
9952         posixtm: don't reject a time that specify "60" as the number of seconds
9953         * lib/posixtm.c (posixtime): The code to reject invalid dates
9954         would also reject a time specified with the .60 suffix.
9955         But POSIX allows that, in order to accommodate leap seconds.
9956         So don't reject it.
9957         (main): Adjust tests accordingly.
9958         * modules/posixtm (Depends-on): Add stpcpy.
9959
9960 2009-09-11  Jim Meyering  <meyering@redhat.com>
9961
9962         announce-gen: include [$release_type] in emitted Subject:
9963         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9964         e.g., [stable] in the emitted Subject: line.
9965
9966 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9967
9968         Remove obsolete macros from several modules.
9969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9970         obsolete Autoconf macros with their modern counterparts.
9971         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9972         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9974         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9975         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9976         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9978         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9979         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9980         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9981         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9983         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9984         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9985         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9986         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9987         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9988         * m4/time_r.m4 (gl_TIME_R): Likewise.
9989         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9990         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9991         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9992
9993         Fix copyright header in build-aux scripts.
9994         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9995         recommendation.
9996         * build-aux/ncftpput-ftp: Likewise.
9997         * build-aux/update-copyright: Likewise.
9998
9999 2009-09-09  Eric Blake  <ebb9@byu.net>
10000
10001         test-link: allow Linux choice of errno
10002         * tests/test-link.c (main): Relax test for alternate error.
10003
10004         strndup: fix improper m4 caching
10005         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10006         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10007         (gl_PREREQ_STRNDUP): Delete.
10008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10009         * modules/string (Makefile.am): Substitute it.
10010         * lib/string.in.h (strndup): Modernize prototype.
10011
10012         getcwd: port to mingw
10013         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10014         different from the POSIX assumptions made throughout the getcwd
10015         module; fortunately, the mingw getcwd does not need replacement.
10016         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10017         * modules/getcwd-tests: New test.
10018         * tests/test-getcwd.c: Likewise.
10019
10020         link: fix platform bugs
10021         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10022         * lib/link.c (link): Work around them.  Fix related mingw bug.
10023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10024         * modules/unistd (Makefile.am): Substitute it.
10025         * lib/unistd.in.h (link): Declare replacement.
10026         * doc/posix-functions/link.texi (link): Document this.
10027         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10028
10029         test-link: consolidate into single C program, test more cases
10030         * tests/test-link.sh: Delete.
10031         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10032         at least Cygwin and Solaris.
10033         * modules/link-tests (Files): Remove unused file.
10034         (Depends-on): Add errno, sys_stat.
10035         (Makefile.am): Simplify.
10036
10037 2009-09-08  Bruno Haible  <bruno@clisp.org>
10038
10039         Work around towlower, towupper bug on mingw.
10040         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10041         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10042         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10043         * doc/posix-functions/towupper.texi: Likewise.
10044         Reported by Eric Blake.
10045
10046 2009-09-08  Jim Meyering  <meyering@redhat.com>
10047
10048         build: don't try to run autoheader if we don't use it
10049         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10050         is not used in configure.ac.
10051
10052 2009-09-08  Eric Blake  <ebb9@byu.net>
10053
10054         euidaccess: fix compilation error
10055         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10056
10057         rawmemchr: relax license
10058         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10059         okay.
10060         Reported by Jim Meyering.
10061
10062         mkfifoat: new module
10063         * modules/mkfifoat: New file.
10064         * lib/mkfifoat.c: Likewise.
10065         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10067         * modules/sys_stat (Makefile.am): Use them.
10068         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10069         * MODULES.html.sh (File system functions): Mention module.
10070         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10071         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10072         * modules/mkfifoat-tests: New test.
10073         * tests/test-mkfifoat.c: Likewise.
10074
10075         strchrnul: relax license
10076         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10077         okay.
10078         Reported by Jim Meyering.
10079
10080 2009-09-08  Eric Blake  <ebb9@byu.net>
10081
10082         fstatat: fix compilation on Solaris
10083         * lib/fstatat.c (includes): Add fcntl.h.
10084         Reported by Pádraig Brady.
10085
10086 2009-09-07  Eric Blake  <ebb9@byu.net>
10087
10088         rename: modernize replacement
10089         * modules/rename (Depends-on): Add stdio.
10090         (configure.ac): Declare witness.
10091         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10092         stdio take care of replacement.
10093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10094         * modules/stdio (Makefile.am): Substitute them.
10095         * lib/stdio.in.h (rename): Declare replacement.
10096         * lib/rename.c (includes): Allow cross-compilation to non-windows
10097         machines.
10098         * doc/posix-functions/rename.texi (rename): Improve
10099         documentation.
10100
10101         stdio: sort witness names
10102         * modules/stdio (Makefile.am): Sort replacements.
10103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10104         * lib/stdio.in.h: Likewise.
10105
10106         getcwd: minor cleanups
10107         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10108         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10109
10110         openat: provide more convenience names
10111         * modules/faccessat (configure.ac): Add C witness.
10112         * lib/unistd.in.h (readlinkat): Fix typo.
10113         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10114         convenience wrappers.
10115         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10116         wrappers in syntax checks.
10117
10118 2009-09-06  Eric Blake  <ebb9@byu.net>
10119
10120         doc: fix comments in recent patches
10121         * lib/faccessat.c: Mention correct function.
10122         * lib/fchmodat.c: Likewise.
10123         * lib/fchownat.c: Likewise.
10124         * lib/symlinkat.c: Likewise.
10125         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10126         constants.
10127
10128         faccessat, symlinkat: continue cleanup of previous patch
10129         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10130         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10131         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10133         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10134         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10135         set.
10136
10137 2009-09-06  Bruno Haible  <bruno@clisp.org>
10138
10139         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10140         (fstatat): Declare if GNULIB_FSTATAT is set.
10141         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10142         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10143         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10144         * modules/fcntl-h (Files): Remove m4/openat.m4.
10145         * modules/sys_stat (Files): Remove m4/openat.m4.
10146         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10147         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10148         * modules/unistd (Files): Remove m4/openat.m4.
10149         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10150         GNULIB_OPENAT.
10151         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10152         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10154         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10155         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10156         gl_OPENAT_DEFAULTS.
10157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10158         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10159         Don't require gl_OPENAT_DEFAULTS.
10160         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10161         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10162         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10163         (gl_OPENAT_DEFAULTS): Remove macro.
10164
10165 2009-09-06  Bruno Haible  <bruno@clisp.org>
10166
10167         * modules/openat (configure.ac): Remove unneeded witness.
10168
10169 2009-09-06  Bruno Haible  <bruno@clisp.org>
10170
10171         Set errno to ENOSYS when a function is entirely unsupported.
10172         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10173         EOPNOTSUPP.
10174         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10175         * modules/chown (Depends-on): Remove errno.
10176
10177 2009-09-06  Bruno Haible  <bruno@clisp.org>
10178
10179         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10180
10181 2009-09-06  Bruno Haible  <bruno@clisp.org>
10182
10183         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10184
10185 2009-09-06  Ben Pfaff  <blp@gnu.org>
10186             Bruno Haible  <bruno@clisp.org>
10187
10188         Work around a glibc bug in strtok_r.
10189         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10190         Undefine if UNDEFINE_STRTOK_R is set.
10191         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10193         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10194         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10195         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10196         UNDEFINE_STRTOK_R.
10197         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10198
10199 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10200
10201         exclude: minor fix
10202         * lib/exclude.c: Include wctype.h
10203
10204 2009-09-06  Akim Demaille  <demaille@gostai.com>
10205
10206         bootstrap: improve error message
10207         * build-aux/bootstrap (find_tool): Upon failure, report the list
10208         of candidates.
10209         Honor the initial value of the envvar.
10210
10211 2009-09-05  Eric Blake  <ebb9@byu.net>
10212
10213         symlinkat: new module
10214         * modules/symlinkat: New file.
10215         * lib/symlinkat.c: Likewise.
10216         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10218         * modules/unistd (Makefile.am): Use them.
10219         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10220         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10221         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10222         * MODULES.html.sh (File system functions): Mention module.
10223         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10224         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10225         * modules/symlinkat-tests: New test.
10226         * tests/test-symlinkat.c: Likewise.
10227
10228         test-openat-safer: add more checks
10229         * tests/test-openat-safer.c (main): Check more code paths.
10230
10231 2009-09-05  Jim Meyering  <meyering@redhat.com>
10232
10233         syntax-check: detect unnecessary inclusion of openat.h
10234         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10235
10236 2009-09-05  Bruno Haible  <bruno@clisp.org>
10237
10238         Support towlower, towupper.
10239         * doc/posix-functions/towlower.texi: Mention module wctype.
10240         * doc/posix-functions/towupper.texi: Likewise.
10241         * lib/wctype.in.h (towlower, towupper): New functions.
10242         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10243         (ASSERT): New macro.
10244         (e): New variable.
10245         (main): Test also towlower, towupper. Test WEOF argument.
10246         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10247
10248 2009-09-05  Bruno Haible  <bruno@clisp.org>
10249
10250         Fix conversion behaviour when the input is invalid.
10251         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10252         mark occurring in first pass of indirect conversion.
10253         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10254         input.
10255         Found by clang's static analyzer.
10256
10257 2009-09-05  Bruno Haible  <bruno@clisp.org>
10258
10259         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10260         where direct conversion is possible.
10261
10262 2009-09-04  Eric Blake  <ebb9@byu.net>
10263
10264         openat: fail with ENOENT on empty name
10265         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10266         buffer.
10267
10268         link-follow: fix logic bug in prior patch
10269         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10270         reversed sense of yes and no in prior patch.  Avoid confusing
10271         compilation failure with desired semantics.
10272
10273         link-follow: accomodate mingw and cross-compilation
10274         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10275         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10276         cross-compilation results to -1, to make linkat easier to
10277         implement when cross-compiling.  Trivially support mingw.
10278         * modules/link-follow (configure.ac): Call new name.
10279         * NEWS: Mention this.
10280
10281 2009-09-03  Eric Blake  <ebb9@byu.net>
10282
10283         faccessat: compile replacement
10284         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10285         needed.
10286
10287         fts: fix compilation error
10288         * lib/fts.c (includes): Re-add "openat.h", for
10289         openat_needs_fchdir.
10290
10291         faccessat: new module
10292         * modules/faccessat: New file.
10293         * lib/faccessat.c: Likewise.
10294         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10296         * modules/unistd (Makefile.am): Use it.
10297         * lib/unistd.in.h (faccessat): Declare it.
10298         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10299         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10300         * MODULES.html.sh (File system functions): Mention it.
10301         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10302         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10303
10304         euidaccess: prefer POSIX over non-standard implementation
10305         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10306         * lib/euidaccess.c (euidaccess): Use it if available.
10307
10308         openat: make template easier to use
10309         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10310         AT_FUNC_F2 to be undefined.
10311         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10312         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10313         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10314         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10315         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10316         Likewise.
10317         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10318         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10319         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10320         Likewise.
10321
10322         openat: declare in POSIX headers
10323         * NEWS: Mention this.
10324         * modules/openat (configure.ac): Declare witnesses.
10325         (Depends-on): Add fcntl-h, sys_stat, unistd.
10326         (Include): Mention correct headers.
10327         * modules/fcntl-h (Depends-on): Add link-warning.
10328         (Files): Add openat.m4.
10329         (Makefile.am): Substitute witnesses.
10330         * modules/sys_stat (Files, Makefile.am): Likewise.
10331         * modules/unistd (Files, Makefile.am): Likewise.
10332         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10333         (gl_OPENAT_DEFAULTS): New macro.
10334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10336         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10337         (SYS_STAT_H): Remove unused variable.
10338         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10339         * lib/fcntl--.h (includes): Remove unneeded header.
10340         * lib/openat-safer.c (includes): Likewise.
10341         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10342         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10343         appropriate headers.
10344         (__OPENAT_PREFIX): Delete.
10345         * lib/fcntl.in.h (openat): Provide declaration.
10346         (AT_FDCWD): Fix Solaris bug.
10347         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10348         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10349         * lib/fchmodat.c (includes):  Adjust to find declaration.
10350         * lib/fchownat.c (includes): Likewise.
10351         * lib/mkdirat.c (includes): Likewise.
10352         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10353         still visible.
10354
10355 2009-09-02  Eric Blake  <ebb9@byu.net>
10356
10357         errno: use consistently
10358         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10359         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10360         * lib/canonicalize.c (ELOOP): Likewise.
10361         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10362         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10363         * lib/lchown.c (EOPNOTSUPP): Likewise.
10364         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10365         * lib/savewd.c (ESTALE): Likewise.
10366         * lib/settime.c (ENOSYS): Likewise.
10367         * lib/utimens.c (ENOSYS): Likewise.
10368         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10369         * lib/chdir-safer.c (ELOOP): Likewise.
10370         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10371         * modules/c-stack (Depends-on): Add errno.
10372         * modules/canonicalize (Depends-on): Likewise.
10373         * modules/chdir-safer (Depends-on): Likewise.
10374         * modules/fdopendir (Depends-on): Likewise.
10375         * modules/inet_ntop (Depends-on): Likewise.
10376         * modules/inet_pton (Depends-on): Likewise.
10377         * modules/lchown (Depends-on): Likewise.
10378         * modules/openat (Depends-on): Likewise.
10379         * modules/savewd (Depends-on): Likewise.
10380         * modules/settime (Depends-on): Likewise.
10381         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10382
10383         fts: avoid leaking fds
10384         * modules/fts (Depends-on): Add cloexec.
10385         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10386         flag.
10387
10388         fts: make directory fds more robust
10389         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10390         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10391
10392         backupfile, chdir-long, fts, savedir: make safer
10393         * lib/backupfile.c (includes): Use "dirent--.h", since
10394         numbered_backup can write to stderr during readdir.
10395         * lib/savedir.c (includes): Likewise.
10396         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10397         emulation can write to stderr on failure.
10398         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10399         * lib/getcwd.c: Document why opendir_safer is unused.
10400         * lib/glob.c: Likewise.
10401         * lib/scandir.c: Likewise.
10402         * lib/openat-proc.c: Likewise, for open_safer.
10403         * modules/backupfile (Depends-on): Add dirent-safer.
10404         * modules/savedir (Depends-on): Likewise.
10405         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10406         * modules/chdir-long (Depends-on): Add openat-safer.
10407
10408         openat-safer: new module
10409         * modules/openat-safer: New file.
10410         * lib/openat-safer.c: Likewise.
10411         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10412         * lib/fcntl-safer.h (openat_safer): Declare.
10413         * lib/fcntl--.h (openat): Override.
10414         * MODULES.html.sh (File descriptor based I/O): Mention it.
10415         * lib/openat.h: Add double-inclusion guards.
10416         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10417         "fcntl--.h", so we can implement openat.
10418         * modules/openat-safer-tests: New test.
10419         * tests/test-openat-safer.c: New file.
10420
10421         dirent-safer: new module
10422         * modules/dirent-safer: New file.
10423         * lib/dirent--.h: Likewise.
10424         * lib/dirent-safer.h: Likewise.
10425         * lib/opendir-safer.c: Likewise.
10426         * m4/dirent-safer.m4: Likewise.
10427         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10428         * modules/dirent-safer-tests: New test.
10429         * tests/test-dirent-safer.c: New file.
10430         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10431
10432         fdopendir: optimize on mingw
10433         * lib/unistd.in.h (_gl_directory_name): New prototype.
10434         * lib/fchdir.c (_gl_directory_name): Implement it.
10435         (fchdir): Use it to simplify implementation.
10436         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10437         fchdir, when available, to avoid calling [f]chdir().
10438
10439         fdopendir: split into its own module
10440         * lib/openat.c (fdopendir): Move...
10441         * lib/fdopendir.c: ...into new file.
10442         * modules/fdopendir: New module.
10443         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10444         * modules/openat (Depends-on): Add fdopendir.
10445         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10446         fdopendir here.
10447         * modules/savedir (Depends-on): Only need fdopendir, not full
10448         openat.
10449         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10450         * lib/openat.h (fdopendir): Drop prototype.
10451         * lib/dirent.in.h (fdopendir): Provide prototype.
10452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10453         * modules/dirent (Makefile.am): Substitute them.
10454         * MODULES.html.sh (File system functions): Mention it.
10455         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10456         * modules/fdopendir-tests: New file.
10457         * tests/test-fdopendir.c: Likewise.
10458
10459         fchdir: use more consistent macro convention
10460         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10461         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10462         REPLACE_FCHDIR, rather than relying on config.h macros.
10463         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10464         inside a single make-time REPLACE_FCHDIR block, rather than using
10465         the config.h FCHDIR_REPLACEMENT.
10466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10467         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10468         Manage fstat replacement.
10469         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10470         REPLACE_FCHDIR.
10471         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10472         (Makefile.am): Substitute REPLACE_FCHDIR.
10473         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10474         FCHDIR_REPLACEMENT.
10475         * lib/dup-safer.c (dup_safer): Likewise.
10476         * lib/dup2.c (rpl_dup2): Likewise.
10477         * lib/dup3.c (rpl_dup3): Likewise.
10478         * lib/open.c (rpl_open): Likewise.
10479
10480         fchdir: simplify error handling, and support dup3
10481         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10482         stdbool, malloc-posix, realloc-posix.
10483         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10484         (ensure_dirs_slot): Return false on allocation failure.
10485         (rpl_dup2): Delete.
10486         (_gl_register_dup): New function.
10487         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10488         (_gl_register_fd): Close fd on allocation failure.
10489         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10490         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10491         prototype.
10492         (rpl_dup2_fchdir): Delete prototype.
10493         * lib/open.c (open): Update caller.
10494         * lib/dup2.c (dup2): Track fchdir metadata.
10495         * lib/dup3.c (dup3): Likewise.
10496         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10498
10499 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10500
10501         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10502         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10503         don't pass arguments to AC_OUTPUT.
10504
10505 2009-09-02  Bruno Haible  <bruno@clisp.org>
10506
10507         * modules/mkdtemp (License): Relicense under LGPLv2+.
10508         Reported by Paolo Bonzini.
10509
10510 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10511
10512         Replace uses of obsolete autoconf macros in Jim's modules.
10513         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10514         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10515         can evoke a warning from autoconf when run with -Wobsolete
10516         enabled.  They were declared obsolete for good reasons (see
10517         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10518         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10519         should not continue using the deprecated macros.
10520         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10521         obsolete Autoconf macros with modern counterparts.
10522         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10523         * m4/dos.m4 (gl_AC_DOS): Likewise.
10524         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10525         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10526         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10527         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10528         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10529         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10530         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10531         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10532         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10533         Likewise.
10534         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10535         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10536         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10537         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10538         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10539         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10540
10541 2009-09-01  Eric Blake  <ebb9@byu.net>
10542
10543         fchdir: fix off-by-one bug in previous patch
10544         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10545         (_gl_unregister_fd): Delete useless if.
10546
10547 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10548
10549         maint.mk: sort the list of syntax-check rules
10550         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10551         easier to get a sense of progress when the rules are run sequentially
10552         and take a long time.
10553
10554 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10555
10556         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10557         * modules/netinet_in: Likewise.
10558         * modules/sys_file: Likewise.
10559         * modules/sys_ioctl: Likewise.
10560         * modules/sys_select: Likewise.
10561         * modules/sys_socket: Likewise.
10562         * modules/sys_stat: Likewise.
10563         * modules/sys_time: Likewise.
10564         * modules/sys_times: Likewise.
10565         * modules/sys_utsname: Likewise.
10566         * modules/sys_wait: Likewise.
10567
10568 2009-09-01  Jim Meyering  <meyering@redhat.com>
10569
10570         fts: help ensure that return values are not ignored
10571         * lib/fts_.h (__GNUC_PREREQ): Define.
10572         (__attribute_warn_unused_result__): Define.
10573         (fts_children, fts_close, fts_open, fts_read): Declare with
10574         __attribute_warn_unused_result__.
10575
10576         fts: fts_close now fails also when closing a dir file descriptor fails
10577         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10578         and propagate to caller, along with errno.
10579
10580         announce-gen: correct formatting in --help output
10581         * build-aux/announce-gen (usage): Move the one-line description in
10582         --help output "up", to where it belongs, just after Usage:.
10583
10584 2009-08-31  Eric Blake  <ebb9@byu.net>
10585
10586         fchdir: port to mingw
10587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10588         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10589         opened, then use a substitute.
10590         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10591         replacement.
10592         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10593         (_gl_register_fd): No need to check stat if open already filters
10594         all directories.
10595         (fchdir): Fix error condition to match POSIX.
10596         * modules/fchdir (Depends-on): Add sys_stat.
10597         * doc/posix-functions/open.texi (open): Document the limitation.
10598         * modules/fchdir-tests: New file.
10599         * tests/test-fchdir.c: Likewise.
10600
10601         canonicalize: allow cross-testing from cygwin to mingw
10602         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10603         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10604         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10605         Likewise.
10606         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10607         target does not support symlinks.
10608         * tests/test-canonicalize-lgpl.sh: Likewise.
10609
10610         chown: avoid compilation warning on mingw
10611         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10612         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10613         mingw.
10614         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10615         * modules/chown (Depends-on): Add errno.
10616
10617 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10618
10619         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10620         command.
10621
10622 2009-08-31  Jim Meyering  <meyering@redhat.com>
10623
10624         canonicalize: remove useless initialization
10625         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10626         initialization of local, "end".
10627
10628 2009-08-30  Bruno Haible  <bruno@clisp.org>
10629
10630         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10631         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10632         ENOSYS.
10633
10634 2009-08-30  Bruno Haible  <bruno@clisp.org>
10635
10636         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10637         /usr/xpg4/bin/tr when it exists.
10638         * tests/test-pipe-filter-gi1.sh: Likewise.
10639
10640 2009-08-30  Bruno Haible  <bruno@clisp.org>
10641
10642         Work around deficient /usr/bin/id program on Solaris.
10643         * tests/test-file-has-acl.sh (ID): New variable.
10644         * tests/test-set-mode-acl.sh (ID): Likewise.
10645         * tests/test-copy-acl.sh (ID): Likewise.
10646         * tests/test-copy-file.sh (ID): Likewise.
10647
10648 2009-08-30  Bruno Haible  <bruno@clisp.org>
10649
10650         New module 'xstriconveh'.
10651         * lib/xstriconveh.h: New file.
10652         * lib/xstriconveh.c: New file.
10653         * modules/xstriconveh: New file.
10654
10655 2009-08-30  Bruno Haible  <bruno@clisp.org>
10656
10657         Make it easier to use mem_cd_iconveh.
10658         * lib/striconveh.h (iconveh_t): New type.
10659         (iconveh_open, iconveh_close): New declarations.
10660         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10661         with a single 'const iconveh_t *' argument.
10662         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10663         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10664         with a single 'const iconveh_t *' argument.
10665         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10666         * tests/test-striconveh.c (main): Update.
10667         * NEWS: Mention the change.
10668
10669 2009-08-30  Bruno Haible  <bruno@clisp.org>
10670
10671         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10672         problem.
10673
10674 2009-08-30  Bruno Haible  <bruno@clisp.org>
10675
10676         Work around iconv_open problem on Solaris.
10677         * lib/iconv_open-solaris.gperf: New file.
10678         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10679         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10680         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10681         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10682         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10683         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10684
10685 2009-08-29  Jim Meyering  <meyering@redhat.com>
10686
10687         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10688         * top/maint.mk (cvs-check): Remove target; it was just an alias
10689         to the better-named vc-diff-check.
10690         (maintainer-distcheck): Remove rule.  It was used only from
10691         the (alpha/beta/major) target, and all of its commands but one
10692         were coreutils-specific.
10693         (vc-dist): Remove rule.
10694         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10695         Run vc-diff-check, not vc-dist.
10696         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10697
10698 2009-08-27  Bruno Haible  <bruno@clisp.org>
10699
10700         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10701         of 0.
10702
10703 2009-08-27  Bruno Haible  <bruno@clisp.org>
10704
10705         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10706         compilers.
10707         * doc/func.texi: Document the SunPRO C bug.
10708
10709 2009-08-27  Bruno Haible  <bruno@clisp.org>
10710
10711         Fix link error on Solaris.
10712         * tests/test-parse-duration.c (xstrdup): Remove function.
10713
10714 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10715
10716         ignore-value: handle pointer types, too
10717         * lib/ignore-value.h (__attribute__): Remove definition.
10718         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10719         of a more concise and more-often effective "(void) i" statement.
10720         (ignore_ptr): New function to suppress warnings from functions that
10721         return pointers, and to make it explicit that one function doesn't
10722         handle all cases.
10723
10724 2009-08-25  Bruno Haible  <bruno@clisp.org>
10725
10726         dup2: work around a Linux bug.
10727         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10728         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10729         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10730         Reported by Simon Josefsson.
10731
10732 2009-08-25  Jim Meyering  <meyering@redhat.com>
10733
10734         libguestfs uses gnulib
10735         * users.txt: Add libguestfs.
10736
10737 2009-08-24  Eric Blake  <ebb9@byu.net>
10738
10739         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10740         * lib/pipe2.c (includes): Add binary-io.h.
10741         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10742
10743 2009-08-24  Bruno Haible  <bruno@clisp.org>
10744
10745         Tolerate declared but missing accept4 syscall.
10746         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10747         available.
10748         * lib/sys_socket.in.h (accept4): If the function is already present,
10749         override it.
10750         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10751         * modules/accept4 (Makefile.am): Compile accept4.c always.
10752         Reported by Paolo Bonzini and Eric Blake.
10753
10754 2009-08-23  Bruno Haible  <bruno@clisp.org>
10755
10756         New module 'accept4'.
10757         * lib/sys_socket.in.h (accept4): New declaration.
10758         * lib/accept4.c: New file.
10759         * m4/accept4.m4: New file.
10760         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10761         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10762         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10763         HAVE_ACCEPT4.
10764         * modules/accept4: New file.
10765         * doc/glibc-functions/accept4.texi: Mention the new module.
10766
10767 2009-08-24  Jim Meyering  <meyering@redhat.com>
10768
10769         progname: also set global program_invocation_name, when possible
10770         Before this change, a libtool-enabled program that calls glibc's
10771         error function would report the program name as
10772         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10773         * modules/progname (configure.ac): Check for a declaration of
10774         program_invocation_name.
10775         * lib/progname.c:  Include <errno.h>.
10776         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10777         Set program_invocation_name.
10778
10779 2009-08-23  Bruno Haible  <bruno@clisp.org>
10780
10781         * lib/dup3.c: Include <string.h>.
10782
10783 2009-08-23  Bruno Haible  <bruno@clisp.org>
10784
10785         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10786         * lib/pipe2.c (pipe2): Likewise.
10787         Suggested by Eric Blake.
10788
10789 2009-08-23  Bruno Haible  <bruno@clisp.org>
10790
10791         Tolerate declared but missing dup3 syscall.
10792         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10793         * lib/unistd.in.h (dup3): If the function is already present,
10794         override it.
10795         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10796         * modules/dup3 (Makefile.am): Compile dup3.c always.
10797         Reported by Paolo Bonzini.
10798
10799 2009-08-23  Bruno Haible  <bruno@clisp.org>
10800
10801         Tolerate declared but missing pipe2 syscall.
10802         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10803         available.
10804         * lib/unistd.in.h (pipe2): If the function is already present,
10805         override it.
10806         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10807         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10808         Reported by Paolo Bonzini.
10809
10810 2009-08-23  Bruno Haible  <bruno@clisp.org>
10811
10812         * lib/pipe2.c (pipe2): Move #ifs inside function.
10813
10814 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10815
10816         quotearg: document limitations of quote_these_too
10817         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10818         those limitations are created.
10819         * lib/quotearg.h (set_char_quoting): Document that digits and
10820         letters that are special after backslash are not permitted.
10821         (quotearg_char): Cross-reference set_char_quoting documentation.
10822
10823 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10824
10825         quotearg: implement custom_quoting_style
10826         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10827         right_quote fields.
10828         (set_custom_quoting): New public function.
10829         (quotearg_buffer_restyled): Add left_quote and right_quote
10830         arguments, handle them very much like locale quoting, and update
10831         all uses.
10832         (quotearg_n_custom): New public function.
10833         (quotearg_n_custom_mem): New public function.
10834         (quotearg_custom): New public function.
10835         (quotearg_custom_mem): New public function.
10836         * lib/quotearg.h: Prototype and document new public functions.
10837         (enum quoting_style): For escape_quoting_style and
10838         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10839         ignored even though they're otherwise like c_quoting_style.
10840         Add custom_quoting_style member and document with comparison to
10841         clocale_quoting_style.
10842         * tests/test-quotearg.c (custom_quotes): New array.
10843         (custom_results): New array.
10844         (main): Extend to test custom quoting.
10845
10846 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10847
10848         quotearg: fix right quote escaping when it's in quote_these_too
10849         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10850         quote, be sure to prepend only one backslash.
10851         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10852         (main): Test it.
10853
10854 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10855
10856         quotearg-tests: test escaping of embedded locale quotes
10857         * tests/test-quotearg.c (struct result_strings): Add member for
10858         new input.
10859         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10860         (inputs): Add new input.
10861         (results_g): Add expected results.
10862         (flag_results): Likewise.
10863         (locale_results): Likewise.
10864         (compare_strings): Check those.
10865
10866 2009-08-23  Bruno Haible  <bruno@clisp.org>
10867
10868         Tests for module 'dup3'.
10869         * modules/dup3-tests: New file.
10870         * tests/test-dup3.c: New file.
10871
10872         New module 'dup3'.
10873         * lib/unistd.in.h (dup3): New declaration.
10874         * lib/dup3.c: New file.
10875         * m4/dup3.m4: New file.
10876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10877         HAVE_DUP3.
10878         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10879         * modules/dup3: New file.
10880         * doc/glibc-functions/dup3.texi: Mention the new module.
10881
10882 2009-08-23  Bruno Haible  <bruno@clisp.org>
10883
10884         Tweak the dup2 test.
10885         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10886         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10887         the test file is still empty. Fix argument order of lseek.
10888
10889 2009-08-23  Bruno Haible  <bruno@clisp.org>
10890
10891         Avoid test link errors when the modules getopt-gnu, gettext are used.
10892         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10894
10895 2009-08-23  Bruno Haible  <bruno@clisp.org>
10896
10897         Fix getdtablesize() on mingw.
10898         * lib/getdtablesize.c (getdtablesize): Implement differently.
10899         * lib/unistd.in.h (getdtablesize): Improve comment.
10900
10901 2009-08-23  Bruno Haible  <bruno@clisp.org>
10902
10903         New module 'mkostemp'.
10904         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10905         * lib/stdlib.in.h (mksotemp): New declaration.
10906         * lib/mkostemp.c: New file, from glibc with modifications.
10907         * lib/tempname.h (GT_FILE): Remove outdated comment.
10908         (gen_tempname): Add flags argument.
10909         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10910         (__GT_FILE): Map to 1.
10911         (small_open, large_open): Remove macros.
10912         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10913         * lib/mkstemp.c (mkstemp): Update.
10914         * lib/mkdtemp.c (mkdtemp): Likewise.
10915         * m4/mkostemp.m4: New file.
10916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10917         HAVE_MKOSTEMP.
10918         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10919         HAVE_MKOSTEMP.
10920         * modules/mkostemp: New file, based on modules/mkstemp.
10921         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10922         * NEWS: Mention the change.
10923
10924 2009-08-23  Bruno Haible  <bruno@clisp.org>
10925
10926         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10927         Reported by Eric Blake.
10928
10929 2009-08-23  Bruno Haible  <bruno@clisp.org>
10930
10931         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10932         Reported by Eric Blake.
10933
10934 2009-08-23  Bruno Haible  <bruno@clisp.org>
10935
10936         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10937         * modules/pipe2 (Depends-on): Likewise.
10938
10939 2009-08-23  Eric Blake  <ebb9@byu.net>
10940
10941         fcntl-h: add O_TTY_INIT support
10942         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10943         * tests/test-fcntl-h.c (o): Test it.
10944         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10945
10946         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10947         * modules/fcntl: Move <fcntl.h> header replacement...
10948         * modules/fcntl-h: ...to new name, so as not to collide with
10949         like-named function.
10950         * tests/test-fcntl.c: Rename...
10951         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10952         * modules/fcntl-tests: Rename...
10953         * modules/fcntl-h-tests: ...to this.  Update test file name.
10954         * modules/chdir-long (Depends-on): Update clients.
10955         * modules/chdir-safer (Depends-on): Likewise.
10956         * modules/fcntl-safer (Depends-on): Likewise.
10957         * modules/fts (Depends-on): Likewise.
10958         * modules/mkancesdirs (Depends-on): Likewise.
10959         * modules/mkdir-p (Depends-on): Likewise.
10960         * modules/open (Depends-on): Likewise.
10961         * modules/savewd (Depends-on): Likewise.
10962         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10963         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10964
10965 2009-08-22  Bruno Haible  <bruno@clisp.org>
10966
10967         * modules/binary-io (License): Relicense under LGPL.
10968         * modules/pipe2 (License): Likewise.
10969
10970 2009-08-22  Bruno Haible  <bruno@clisp.org>
10971
10972         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10973         return value.
10974         * lib/pipe-filter-gi.c (filter_init): Likewise.
10975         Reported by Eric Blake.
10976
10977 2009-08-22  Bruno Haible  <bruno@clisp.org>
10978
10979         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10980         * modules/pipe (Depends-on): Add pipe2.
10981
10982 2009-08-22  Bruno Haible  <bruno@clisp.org>
10983
10984         Tests for module 'pipe2'.
10985         * modules/pipe2-tests: New file.
10986         * tests/test-pipe2.c: New file.
10987
10988         New module 'pipe2'.
10989         * lib/unistd.in.h (pipe2): New declaration.
10990         * lib/pipe2.c: New file.
10991         * m4/pipe2.m4: New file.
10992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10993         HAVE_PIPE2.
10994         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10995         * modules/pipe2: New file.
10996         * doc/glibc-functions/pipe2.texi: Mention the new module.
10997
10998 2009-08-22  Bruno Haible  <bruno@clisp.org>
10999
11000         Reference some new glibc functions.
11001         * doc/glibc-functions/accept4.texi: New file.
11002         * doc/glibc-functions/dup3.texi: New file.
11003         * doc/glibc-functions/mkostemp.texi: New file.
11004         * doc/glibc-functions/pipe2.texi: New file.
11005         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11006         (Glibc sys/socket.h): Refer to accept4.
11007         (Glibc unistd.h): Refer to dup3, pipe2.
11008         Reported by Eric Blake.
11009
11010 2009-08-22  Jim Meyering  <meyering@redhat.com>
11011             Bruno Haible  <bruno@clisp.org>
11012
11013         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11014         This makes it so packages using automake-1.11's silent-rules option
11015         can print e.g., a single "GEN    configmake.h" line, rather than
11016         the 30+ statements that perform the job.  If you want to see the
11017         actual commands, you can still run "make V=1".
11018         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11019         so that make output is abbreviated when those variables are defined
11020         appropriately.
11021         * modules/argz: Likewise.
11022         * modules/arpa_inet: Likewise.
11023         * modules/byteswap: Likewise.
11024         * modules/configmake: Likewise.
11025         * modules/dirent: Likewise.
11026         * modules/errno: Likewise.
11027         * modules/fcntl: Likewise.
11028         * modules/float: Likewise.
11029         * modules/fnmatch: Likewise.
11030         * modules/getopt-posix: Likewise.
11031         * modules/glob: Likewise.
11032         * modules/iconv_open: Likewise.
11033         * modules/inttypes: Likewise.
11034         * modules/localcharset: Likewise.
11035         * modules/locale: Likewise.
11036         * modules/math: Likewise.
11037         * modules/netdb: Likewise.
11038         * modules/netinet_in: Likewise.
11039         * modules/poll: Likewise.
11040         * modules/posix_spawnp-tests: Likewise.
11041         * modules/sched: Likewise.
11042         * modules/search: Likewise.
11043         * modules/selinux-h: Likewise.
11044         * modules/signal: Likewise.
11045         * modules/spawn: Likewise.
11046         * modules/stdarg: Likewise.
11047         * modules/stdbool: Likewise.
11048         * modules/stddef: Likewise.
11049         * modules/stdint: Likewise.
11050         * modules/stdio: Likewise.
11051         * modules/stdlib: Likewise.
11052         * modules/string: Likewise.
11053         * modules/strings: Likewise.
11054         * modules/sys_file: Likewise.
11055         * modules/sys_ioctl: Likewise.
11056         * modules/sys_select: Likewise.
11057         * modules/sys_socket: Likewise.
11058         * modules/sys_stat: Likewise.
11059         * modules/sys_time: Likewise.
11060         * modules/sys_times: Likewise.
11061         * modules/sys_utsname: Likewise.
11062         * modules/sys_wait: Likewise.
11063         * modules/sysexits: Likewise.
11064         * modules/time: Likewise.
11065         * modules/unistd: Likewise.
11066         * modules/wchar: Likewise.
11067         * modules/wctype: Likewise.
11068
11069 2009-08-22  Jim Meyering  <meyering@redhat.com>
11070
11071         announce-gen: detect write failure
11072         * build-aux/announce-gen: Add Coda at end.
11073         Remove equivalent-but-more-verbose block at top.
11074
11075 2009-08-19  Akim Demaille  <demaille@gostai.com>
11076
11077         bootstrap: --help to stdout.
11078         * bootstrap (usage): Don't send --help to stderr.
11079         Use a here doc instead of a long string.
11080
11081 2009-08-21  Eric Blake  <ebb9@byu.net>
11082
11083         test-popen-safer: split from test-popen
11084         * tests/test-popen.c (main): Move...
11085         * tests/test-popen.h: ...into new file.
11086         * tests/test-popen-safer2.c: New file.
11087         * modules/popen-tests (Files): Add test-popen.h.
11088         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11089         Suggested by Bruno Haible.
11090
11091         test-fcntl-safer: split from test-open
11092         * tests/test-open.c (main): Move...
11093         * tests/test-open.h: ...into new file.
11094         * tests/test-fcntl-safer.c: New file.
11095         * modules/open-tests (Files): Add test-open.h.
11096         * modules/fcntl-safer-tests: New file.
11097         Suggested by Bruno Haible.
11098
11099         test-fopen-safer: split from test-fopen
11100         * tests/test-fopen.c (main): Move...
11101         * tests/test-fopen.h: ...into new file.
11102         * tests/test-fopen-safer.c: New file.
11103         * modules/fopen-tests (Files): Add test-fopen.h.
11104         * modules/fopen-safer-tests: New file.
11105         Suggested by Bruno Haible.
11106
11107 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11108
11109         popen-safer: test O_CLOEXEC at run-time.
11110         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11111
11112 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11113
11114         fcntl: move more flags to the header
11115         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11116         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11117         * lib/fcntl.in.h: Do both things here.
11118
11119 2009-08-21  Jim Meyering  <meyering@redhat.com>
11120
11121         consistently remove $@-t before redirecting to it
11122         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11123         * modules/alloca-opt: Likewise.
11124         * modules/byteswap: Likewise.
11125         * modules/fnmatch: Likewise.
11126         * modules/getopt-posix: Likewise.
11127         * modules/glob: Likewise.
11128         * modules/poll: Likewise.
11129         * modules/posix_spawnp-tests: Likewise.
11130         * modules/sys_socket: Likewise.
11131         * modules/sysexits: Likewise.
11132
11133 2009-08-21  Eric Blake  <ebb9@byu.net>
11134
11135         popen: simplify access to original popen
11136         * lib/popen.c (rpl_popen): No need to worry about popen being a
11137         macro.
11138         Reported by Bruno Haible.
11139
11140 2009-08-20  Eric Blake  <ebb9@byu.net>
11141
11142         build: avoid some compiler warnings
11143         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11144         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11145         type.
11146         (new_exclude_segment, excluded_file_pattern_p)
11147         (excluded_file_name_p): Reduce scope.
11148         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11149         old-style declaration.
11150
11151 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11152
11153         * tests/test-exclude1.sh: Handle Windows EOL.
11154         * tests/test-exclude2.sh: Likewise.
11155         * tests/test-exclude3.sh: Likewise.
11156         * tests/test-exclude4.sh: Likewise.
11157         * tests/test-exclude5.sh: Likewise.
11158         * tests/test-exclude6.sh: Likewise.
11159         * tests/test-exclude7.sh: Likewise.
11160
11161 2009-08-19  Akim Demaille  <demaille@gostai.com>
11162
11163         bootstrap: find sha1sum when named gsha1sum.
11164         * bootstrap (find_tool): New.
11165         ($SHA1SUM): New.
11166         Use it.
11167
11168 2009-08-20  Jim Meyering  <meyering@redhat.com>
11169
11170         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11171         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11172         expression that converts "." in a file name to "\." in the resulting
11173         regexp.  Start with a dummy statement, so that prior shell variable
11174         definitions are expanded portably.  Reported by Simon Josefsson.
11175
11176 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11177
11178         Fix polling for writeability of a screen buffer.
11179         * lib/poll.c: Distinguish input and screen buffers for the
11180         Win32 implementation.
11181         * lib/select.c: Likewise.
11182
11183 2009-08-19  Eric Blake  <ebb9@byu.net>
11184
11185         popen-safer: prevent popen from clobbering std descriptors
11186         * modules/popen-safer: New file.
11187         * lib/popen-safer.c: Likewise.
11188         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11189         * lib/stdio--.h (popen): Provide override.
11190         * lib/stdio-safer.h (popen_safer): Provide declaration.
11191         * tests/test-popen.c (includes): Partially test this.
11192         * modules/popen-safer-tests: New file, for more tests.
11193         * tests/test-popen-safer.c: Likewise.
11194         * MODULES.html.sh (file stream based Input/Output): Mention it.
11195
11196         tests: test some of the *-safer modules
11197         * modules/fopen-safer (Depends-on): Add fopen.
11198         * modules/fcntl-safer (Depends-on): Add fcntl.
11199         * modules/stdlib-safer (Depends-on): Add stdlib.
11200         (configure.ac): Set indicator.
11201         * modules/unistd-safer (configure.ac): Likewise.
11202         * modules/tmpfile-safer (configure.ac): Likewise.
11203         (Depends-on): Add tmpfile.
11204         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11205         active.
11206         * tests/test-fopen.c (includes): Test safer versions when they are
11207         in use.
11208         * tests/test-open.c (includes): Likewise.
11209
11210         popen: fix cygwin 1.5 bug when stdin closed
11211         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11212         * modules/popen: New file.
11213         * modules/popen-tests: Likewise.
11214         * tests/test-popen.c: Likewise.
11215         * m4/popen.m4: Likewise.
11216         * lib/popen.c: Likewise.
11217         * lib/stdio.in.h (popen): New declaration.
11218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11219         * modules/stdio (Makefile.am): Likewise.
11220         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11221
11222 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11223
11224         maint.mk: give full control over update-copyright exclusions
11225         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11226         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11227         (update-copyright): Don't force inclusion of top-level
11228         ChangeLog.  Don't force exclusion of all COPYING files, but make
11229         them the default exclusion instead.
11230
11231 2009-08-16  Bruno Haible  <bruno@clisp.org>
11232
11233         Fix test failures on Solaris 10.
11234         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11235         tests when Solaris iconv() is used.
11236         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11237         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11238         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11239         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11240         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11241
11242 2009-08-16  Bruno Haible  <bruno@clisp.org>
11243
11244         Fix test failures on Solaris 10.
11245         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11246         'tr' program and pass it as first argument.
11247         * tests/test-pipe-filter-gi1.sh: Likewise.
11248         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11249         program as first argument.
11250         * tests/test-pipe-filter-gi1.c (main): Likewise.
11251
11252 2009-08-16  Eric Blake  <ebb9@byu.net>
11253
11254         fpurge: fix previous commits
11255         * modules/fpurge (Makefile.am): Make replacement conditional,
11256         partially reverting 2007-04-29 change; missed in previous
11257         attempt.
11258         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11259         is missing.
11260
11261 2009-08-16  Bruno Haible  <bruno@clisp.org>
11262
11263         Clarify fpurge's effect on the file position.
11264         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11265         * tests/test-fpurge.c (main): Make a second pass for checking the file
11266         position.
11267
11268 2009-08-16  Bruno Haible  <bruno@clisp.org>
11269
11270         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11271         declaration of fpurge is missing.
11272         * tests/test-fpurge.c (main): Check that the file has not more contents
11273         than expected. Close the file before removing it.
11274
11275 2009-08-15  Eric Blake  <ebb9@byu.net>
11276
11277         fpurge: don't wrap working cygwin implementation
11278         * lib/fpurge.c (fpurge): Fix comment typo.
11279         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11280         1.7 to avoid replacement.
11281         * tests/test-fpurge.c (main): Enhance test.
11282
11283 2009-08-15  Eric Blake  <ebb9@byu.net>
11284         and Jim Meyering  <meyering@redhat.com>
11285
11286         test-update-copyright: skip if perl is insufficient
11287         * tests/test-update-copyright.sh: Failure to run maintainer tool
11288         should not cause testsuite failure on cygwin 1.5.
11289
11290 2009-08-14  Eric Blake  <ebb9@byu.net>
11291
11292         doc: mention more functions added in cygwin 1.7.0
11293         * doc/posix-headers/limits.texi (limits.h): Update for recent
11294         cygwin additions.
11295         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11296         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11297         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11298         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11299         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11300
11301 2009-08-14  Eric Blake  <ebb9@byu.net>
11302
11303         maint.mk: simplify update-copyright rule
11304         * top/maint.mk (update-copyright-local): Delete, and document how
11305         to do it in cfg.mk instead.
11306         (update-copyright-exclude-regexp): Delete, and document how to do
11307         it in .x-update-copyright instead.
11308         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11309         exclude ChangeLog.
11310
11311 2009-08-14  Bruno Haible  <bruno@clisp.org>
11312
11313         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11314
11315 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11316
11317         maint.mk: support update-copyright-env
11318         * top/maint.mk (update-copyright-env): Define place-holder.
11319         (update-copyright): Expand $(update-copyright-env) before
11320         invoking update-copyright.
11321
11322 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11323
11324         update-copyright: implement forced reformatting
11325         * build-aux/update-copyright: Implement and document
11326         UPDATE_COPYRIGHT_FORCE.
11327         * tests/test-update-copyright.sh: Test it.
11328
11329 2009-08-14  Eric Blake  <ebb9@byu.net>
11330         and Bruno Haible  <bruno@clisp.org>
11331
11332         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11333         * tests/test-locale.c: Revert previous patch related to NULL.
11334         * tests/test-stdio.c: Likewise.
11335         * tests/test-stdlib.c: Likewise.
11336         * tests/test-string.c: Likewise.
11337         * tests/test-unistd.c: Likewise.
11338         * modules/time-tests (Depends-on): Add verify.
11339         * modules/wchar-tests (Depends-on): Likewise.
11340         * tests/test-time.c: Test for NULL compliance.
11341         * tests/test-wchar.c: Likewise.
11342         * modules/locale (Depends-on): Add stddef.
11343         * modules/stdio (Depends-on): Likewise.
11344         * modules/stdlib (Depends-on): Likewise.
11345         * modules/string (Depends-on): Likewise.
11346         * modules/time (Depends-on): Likewise.
11347         * modules/unistd (Depends-on): Likewise.
11348         * modules/wchar (Depends-on): Likewise.
11349         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11350         * lib/stdlib.in.h (includes): Likewise.
11351         * lib/string.in.h (includes): Likewise.
11352         * lib/time.in.h (includes): Likewise.
11353         * lib/unistd.in.h (includes): Likewise.
11354         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11355         replaced.
11356         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11357         * m4/stddef_h.m4: New file.
11358         * modules/stddef: Likewise.
11359         * lib/stddef.in.h: Likewise.
11360         * modules/stddef-tests: Likewise.
11361         * tests/test-stddef.c: Likewise.
11362         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11363         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11364         * doc/posix-headers/locale.texi (locale.h): Likewise.
11365         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11366         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11367         * doc/posix-headers/string.texi (string.h): Likewise.
11368         * doc/posix-headers/time.texi (time.h): Likewise.
11369         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11370         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11371
11372 2009-08-14  Eric Blake  <ebb9@byu.net>
11373
11374         doc: improve git diff of texinfo files
11375         * .gitattributes: Add rule for *.texi files, with hint on how to
11376         use it.
11377         Copied from m4, and based on a report by Bruno Haible.
11378
11379 2009-08-14  Bruno Haible  <bruno@clisp.org>
11380
11381         Disable multithread support by default on Cygwin 1.5.x for real.
11382         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11383
11384 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11385
11386         update-copyright: much ado about intervals
11387         * build-aux/update-copyright: Implement and document
11388         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11389         of copyright year intervals.
11390         Also, document UPDATE_COPYRIGHT_YEAR.
11391         * tests/test-update-copyright.sh: Test it.
11392
11393         update-copyright: convert 2-digit to 4-digit years
11394         * build-aux/update-copyright: Implement and document.
11395         * tests/test-update-copyright.sh: Update.
11396
11397 2009-08-14  Jim Meyering  <meyering@redhat.com>
11398
11399         test-exclude: avoid coreutils "make check" failure
11400         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11401         just as in test-argmatch.c.
11402
11403 2009-08-13  Eric Blake  <ebb9@byu.net>
11404
11405         test-dup2: fix bad assumption
11406         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11407         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11408
11409         test-version-etc: fix CRLF portability issue
11410         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11411         recognize \r.
11412         * tests/test-argp-version-etc-1.sh: Likewise.
11413
11414         getopt: update client modules
11415         * modules/argp (Depends-on): Use getopt-gnu.
11416         * modules/git-merge-changelog (Depends-on): Likewise.
11417         * modules/long-options (Depends-on): Likewise.
11418         * modules/xstrtol (Depends-on): Likewise.
11419
11420 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11421
11422         * tests/test-version-etc.sh: Don't fail on different
11423         project/version.  Don't fail on CRLF differences.  Rewrite to use
11424         multiple -e instead of multiple sed forks, suggested by Eric Blake
11425         <ebb9@byu.net>.
11426         * tests/test-argp-version-etc-1.sh: Likewise.
11427
11428 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11429
11430         * tests/test-version-etc.sh: Don't fail on different
11431         project/version.
11432
11433 2009-08-12  Bruno Haible  <bruno@clisp.org>
11434
11435         Tests for modules 'getopt-posix', 'getopt-gnu'.
11436         * modules/getopt-posix-tests: New file.
11437         * tests/test-getopt.c: New file.
11438         * tests/test-getopt.h: New file.
11439         * tests/test-getopt_long.h: New file.
11440
11441         New modules 'getopt-posix', 'getopt-gnu'.
11442         * modules/getopt-gnu: New file, renamed from modules/getopt.
11443         * modules/getopt-posix: New file.
11444         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11445         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11446         (gl_GETOPT): Remove macro.
11447         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11448         Disable the test against BSD systems that declare optreset. Test
11449         against mingw bug. Test against lack of support of optional arguments
11450         on many platforms.
11451         * doc/glibc-headers/getopt.texi: Update module name and list of
11452         relevant platforms.
11453         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11454         'getopt-gnu' and more portability problems.
11455         * NEWS: Mention the changes.
11456
11457 2009-08-12  Bruno Haible  <bruno@clisp.org>
11458
11459         Ensure that optarg etc. get declared by <unistd.h>.
11460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11461         AC_USE_SYSTEM_EXTENSIONS.
11462         * modules/getopt (Depends-on): Add 'extensions'.
11463
11464 2009-08-12  Bruno Haible  <bruno@clisp.org>
11465
11466         Avoid test link errors.
11467         * modules/pipe-filter-ii-tests (Makefile.am): Define
11468         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11469         * modules/pipe-filter-gi-tests (Makefile.am): Define
11470         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11472
11473 2009-08-12  Bruno Haible  <bruno@clisp.org>
11474
11475         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11476         gl_GETOPT_SUBSTITUTE before.
11477         (gl_GETOPT): Use it.
11478         * m4/argp.m4 (gl_ARGP): Update.
11479         Reported by Sergey Poznyakoff.
11480
11481         * m4/getopt.m4: Reorder macros.
11482         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11483         (gl_GETOPT_SUBSTITUTE): Remove macro.
11484
11485 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11486
11487         Minor improvement in gitlog-to-changelog
11488
11489         * build-aux/gitlog-to-changelog: New option `--format' makes
11490         output format string configurable.
11491
11492 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11493
11494         Optimize exclude: use hash tables for non-wildcard patterns.
11495
11496         * lib/exclude.c: Include hash.h and mbuiter.h
11497         (struct exclude_pattern, exclude_segment): New data types.
11498         (struct exclude): Rewrite.
11499         (fnmatch_pattern_has_wildcards): New function.
11500         (new_exclude_segment, free_exclude_segment): New functions.
11501         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11502         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11503         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11504         * modules/exclude: Depend on hash and mbuiter.
11505
11506         * modules/exclude-tests: New file.
11507         * tests/test-exclude.c: New file.
11508         * tests/test-exclude1.sh: New file.
11509         * tests/test-exclude2.sh: New file.
11510         * tests/test-exclude3.sh: New file.
11511         * tests/test-exclude4.sh: New file.
11512         * tests/test-exclude5.sh: New file.
11513         * tests/test-exclude6.sh: New file.
11514         * tests/test-exclude7.sh: New file.
11515
11516 2009-08-12  Bruno Haible  <bruno@clisp.org>
11517
11518         Ensure that getopt() gets declared by <unistd.h>.
11519         * lib/unistd.in.h: Conditionally include getopt.h.
11520         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11521         Set GNULIB_UNISTD_H_GETOPT.
11522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11523         GNULIB_UNISTD_H_GETOPT.
11524         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11525
11526 2009-08-12  Bruno Haible  <bruno@clisp.org>
11527
11528         Clarify logic.
11529         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11530         gl_replace_getopt instead of GETOPT_H.
11531
11532 2009-08-12  Bruno Haible  <bruno@clisp.org>
11533
11534         * m4/getopt.m4: Add comments.
11535
11536 2009-08-12  Bruno Haible  <bruno@clisp.org>
11537
11538         Disable multithread support by default on Cygwin 1.5.x.
11539         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11540         set gl_use_threads=no if not specified otherwise.
11541
11542 2009-08-11  Bruno Haible  <bruno@clisp.org>
11543
11544         Avoid compilation error on NetBSD 5.0.
11545         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11546         * tests/test-stdio.c: Likewise.
11547         * tests/test-stdlib.c: Likewise.
11548         * tests/test-string.c: Likewise.
11549         * tests/test-unistd.c: Likewise.
11550         Reported by Greg Troxel <gdt@ir.bbn.com>
11551         at <https://savannah.gnu.org/support/?106973>.
11552
11553 2009-08-11  Bruno Haible  <bruno@clisp.org>
11554
11555         * modules/dup2-tests (Depends-on): Remove close.
11556
11557         Undo 2009-07-19 commit.
11558         * modules/acl-tests (Depends-on): Remove close.
11559         * modules/binary-io-tests (Depends-on): Likewise.
11560         * modules/closein-tests (Depends-on): Likewise.
11561         * modules/flock-tests (Depends-on): Likewise.
11562         * modules/fsync-tests (Depends-on): Likewise.
11563         * modules/lseek-tests (Depends-on): Likewise.
11564         * modules/pipe-tests (Depends-on): Likewise.
11565         * modules/posix_spawn-tests (Depends-on): Likewise.
11566         * modules/posix_spawnp-tests (Depends-on): Likewise.
11567         * modules/stat-time-tests (Depends-on): Likewise.
11568         * modules/yesno-tests (Depends-on): Likewise.
11569
11570 2009-08-10  Bruno Haible  <bruno@clisp.org>
11571
11572         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11573
11574 2009-08-10  Bruno Haible  <bruno@clisp.org>
11575
11576         Fix a gcc warning.
11577         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11578
11579 2009-08-10  Bruno Haible  <bruno@clisp.org>
11580
11581         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11582         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11583         not only the first time.
11584         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11585         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11586         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11587         is 1, not only the the first time.
11588
11589 2009-08-10  Bruno Haible  <bruno@clisp.org>
11590
11591         Make it possible to use module 'gethostname' without module 'close'.
11592         * lib/unistd.in.h (close): Evoke a link error only if
11593         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11595         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11596         * modules/unistd (Makefile.am): Substitute
11597         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11598         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11599         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11600         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11601         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11602         * modules/sys_ioctl (Makefile.am): Substitute
11603         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11604         * modules/socket (configure.ac): On native Windows, set
11605         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11606         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11607         Reported by Sam Steingold <sds@gnu.org>.
11608
11609 2009-08-10  Bruno Haible  <bruno@clisp.org>
11610
11611         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11612         * modules/ioctl (configure.ac): Likewise.
11613
11614 2009-08-10  Bruno Haible  <bruno@clisp.org>
11615
11616         Avoid collision between gnulib wrapper and libintl wrapper.
11617         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11618         already defined in intl/printf.c.
11619         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11620         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11621
11622 2009-08-09  Bruno Haible  <bruno@clisp.org>
11623
11624         Make <sys/select.h> really self-contained, also on Solaris 10.
11625         * lib/sys_select.in.h: Include <string.h>.
11626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11627         Solaris 10 problem.
11628         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11629         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11630         Reported by Jim Meyering.
11631
11632 2009-08-09  Bruno Haible  <bruno@clisp.org>
11633
11634         Avoid warnings from 'aclocal' that are due to a use of macro name
11635         AM_XGETTEXT_OPTION that is not defined in automake.
11636         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11637         automake.
11638         * modules/error (configure.ac): Likewise.
11639         * modules/propername (configure.ac): Likewise.
11640         * modules/vasprintf (configure.ac): Likewise.
11641         * modules/verror (configure.ac): Likewise.
11642         * modules/xprintf (configure.ac): Likewise.
11643         * modules/xvasprintf (configure.ac): Likewise.
11644
11645 2009-08-08  Bruno Haible  <bruno@clisp.org>
11646
11647         Avoid compilation error in C++ mode.
11648         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
11649         Reported by Sam Steingold <sds@gnu.org>.
11650
11651 2009-08-08  Bruno Haible  <bruno@clisp.org>
11652
11653         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
11654         for the various Unix platforms.
11655         * doc/posix-headers/limits.texi: Update platforms list regarding
11656         HOST_NAME_MAX.
11657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11658
11659 2009-08-07  Jim Meyering  <meyering@redhat.com>
11660
11661         selinux-at: fix typo in a comment
11662         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11663         Spotted by Paolo Bonzini.
11664
11665         selinux-at: remove redundant m4 code, add documentation
11666         * modules/selinux-at (configure.ac): Remove redundant code.
11667         LIB_SELINUX is already set via the dependent module, selinux-h.
11668         (Include): Add quotes around selinux-at.h.
11669         * lib/selinux-at.h: Add documentation.
11670         Reported by Bruno Haible in
11671         http://marc.info/?l=gnulib-bug&m=124958988300749
11672
11673 2009-08-07  Bruno Haible  <bruno@clisp.org>
11674
11675         Avoid link error on MacOS X 10.3 and 10.4.
11676         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11677         on non-ELF systems.
11678         * lib/argp-pv.c (argp_program_version): Likewise.
11679         Reported by Simon Josefsson.
11680
11681 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11682
11683         * tests/test-version-etc.sh: Use $EXEEXT.
11684
11685 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11686
11687         update-copyright: update documentation to point to maint.mk
11688         * build-aux/update-copyright: Here.
11689
11690 2009-08-06  Jim Meyering  <meyering@redhat.com>
11691
11692         maint.mk: support update-copyright-local
11693         * top/maint.mk (update-copyright-local): Define place-holder.
11694         (update-copyright): Depend on $(update-copyright-local).
11695
11696 2009-08-06  Jim Meyering  <meyering@redhat.com>
11697
11698         selinux-at: new module
11699         Initially written for coreutils, this module will soon be
11700         used by findutils, too.
11701         * MODULES.html.sh [Misc]: Add selinux-at.
11702         * lib/selinux-at.h: New file, from coreutils.
11703         * lib/selinux-at.c: Likewise.
11704         * modules/selinux-at: Likewise.
11705         (License): Change from LGPL to GPL, since it depends
11706         on the GPL'd openat module.
11707
11708         doc: update README
11709         * README: Remove references to cogito.
11710         Remove cvs-repo-updating instructions from 2007.
11711         Don't imply that CVS is better if you have limited disk space.
11712
11713 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11714
11715         update-copyright: support C-style comments
11716         * build-aux/update-copyright: Implement and document.
11717         * tests/test-update-copyright.sh: Test.
11718
11719 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11720
11721         update-copyright: support omitted "(C)"
11722         * build-aux/update-copyright: Implement and document.  Also,
11723         allow variable whitespace before "(C)".
11724         * tests/test-update-copyright.sh: Test.
11725
11726 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11727
11728         update-copyright: don't trip on non-FSF copyright statements
11729         * build-aux/update-copyright: Fix so that the first correctly
11730         formatted FSF copyright statement is recognized no matter what
11731         appears before it.  Update documentation.
11732         * tests/test-update-copyright.sh: Test that.
11733
11734 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11735
11736         update-copyright: clean up code a little
11737         * build-aux/update-copyright: Append "_re" to the name of any
11738         variable holding a regular expression.
11739         Replace "old" and "new" with "stmt" in variable names.
11740         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11741         handled correctly.
11742         Format code more consistently.
11743
11744 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11745
11746         update-copyright-tests: improve portability
11747         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11748         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11749
11750 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11751
11752         update-copyright: support @copyright{} and &copy;
11753         * build-aux/update-copyright: Implement and document.
11754         * tests/test-update-copyright.sh: Test.
11755
11756 2009-08-04  Jim Meyering  <meyering@redhat.com>
11757
11758         update-copyright-tests: correctly test EOL=\r\n handling
11759         * tests/test-update-copyright.sh: Put \r at the end of some lines
11760         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11761
11762         maint.mk: make update-copyright exclusion list more configurable
11763         * top/maint.mk (update-copyright): Default to excluding COPYING,
11764         but allow an override, in case someone does want to update that file.
11765
11766         maint.mk: don't update copyright date in COPYING
11767         * top/maint.mk (update-copyright): Exclude COPYING.
11768
11769         maint.mk: add a copyright-updating rule
11770         * top/maint.mk (update-copyright): New rule.
11771         Derived from coreutils/Makefile.am.
11772
11773         update-copyright: rename some variables
11774         * build-aux/update-copyright: Rename a few variables for clarity.
11775         Tweak syntax.  List Joel E. Denny as coauthor.
11776
11777 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11778
11779         update-copyright: fix bug for 2-digit last year and add tests
11780         * build-aux/update-copyright: Fix bug.
11781         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11782         specified.
11783         * modules/update-copyright-tests: New
11784         * tests/test-update-copyright.sh: New.
11785
11786 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11787
11788         update-copyright: handle leading tabs in line prefix
11789         * build-aux/update-copyright: Count leading tabs as 8 spaces
11790         when computing margin.  This helps with the formatting of
11791         ChangeLogs, for example.
11792         Fix documentation a little.
11793
11794 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11795
11796         update-copyright: support EOL=\r\n
11797         * build-aux/update-copyright: Implement that.
11798
11799 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11800
11801         update-copyright: automatically format copyright statements
11802         * build-aux/update-copyright: Implement that.
11803         Also, be a little more predictable and safer by always failing
11804         when the full copyright format is not perfectly recognized as an
11805         unbroken whole.  Discussed at
11806         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11807         Rewrite documentation.
11808
11809 2009-08-03  Bruno Haible  <bruno@clisp.org>
11810
11811         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11812
11813 2009-08-02  Bruno Haible  <bruno@clisp.org>
11814
11815         Tests for module 'uname'.
11816         * modules/uname-tests: New file.
11817         * tests/test-uname.c: New file.
11818
11819         New module 'uname'.
11820         * lib/uname.c: New file.
11821         * m4/uname.m4: New file.
11822         * modules/uname: New file.
11823         * doc/posix-functions/uname.texi: Mention the new module.
11824
11825 2009-08-02  Bruno Haible  <bruno@clisp.org>
11826
11827         Tests for module 'sys_utsname'.
11828         * modules/sys_utsname-tests: New file.
11829         * tests/test-sys_utsname.c: New file.
11830
11831         New module 'sys_utsname'.
11832         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11833         * m4/sys_utsname_h.m4: New file.
11834         * modules/sys_utsname: New file.
11835         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11836
11837 2009-08-02  Bruno Haible  <bruno@clisp.org>
11838
11839         Implicitly initialize the sockets library.
11840         * lib/gethostname.c: Include sockets.h.
11841         (rpl_gethostname): Invoke gl_sockets_startup.
11842         * lib/socket.c: Include sockets.h.
11843         (rpl_socket): Invoke gl_sockets_startup.
11844         * modules/gethostname (Depends-on): Add sockets.
11845         * modules/socket (Depends-on): Likewise.
11846         * tests/test-poll.c: Don't include sockets.h.
11847         (main): Don't invoke gl_sockets_startup.
11848         * tests/test-select.c: Don't include sockets.h.
11849         (main): Don't invoke gl_sockets_startup.
11850
11851 2009-08-02  Bruno Haible  <bruno@clisp.org>
11852
11853         Allow multiple calls to gl_sockets_startup.
11854         * lib/sockets.c (initialized_sockets_version): New variable.
11855         (gl_sockets_startup): Do nothing if already called for this or a higher
11856         version.
11857         (gl_sockets_cleanup): Reset initialized_sockets_version.
11858
11859 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11860
11861         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11862         different project/version.
11863
11864 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11865             Bruno Haible  <bruno@clisp.org>
11866
11867         Tests for module 'pipe-filter-gi'.
11868         * modules/pipe-filter-gi-tests: New file.
11869         * tests/test-pipe-filter-gi1.sh: New file.
11870         * tests/test-pipe-filter-gi1.c: New file.
11871         * tests/test-pipe-filter-gi2.sh: New file.
11872         * tests/test-pipe-filter-gi2-main.c: New file.
11873         * tests/test-pipe-filter-gi2-child.c: New file.
11874
11875         New module 'pipe-filter-gi'.
11876         * lib/pipe-filter-gi.c: New file.
11877         * modules/pipe-filter-gi: New file.
11878
11879 2009-08-02  Bruno Haible  <bruno@clisp.org>
11880             Paolo Bonzini  <bonzini@gnu.org>
11881
11882         Tests for module 'pipe-filter-ii'.
11883         * modules/pipe-filter-ii-tests: New file.
11884         * tests/test-pipe-filter-ii1.sh: New file.
11885         * tests/test-pipe-filter-ii1.c: New file.
11886         * tests/test-pipe-filter-ii2.sh: New file.
11887         * tests/test-pipe-filter-ii2-main.c: New file.
11888         * tests/test-pipe-filter-ii2-child.c: New file.
11889
11890         New module 'pipe-filter-ii'.
11891         * lib/pipe-filter.h: New file.
11892         * lib/pipe-filter-ii.c: New file.
11893         * lib/pipe-filter-aux.h: New file.
11894         * modules/pipe-filter-ii: New file.
11895
11896 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11897
11898         * lib/gc-libgcrypt.c: Change copyright to FSF.
11899         * lib/gc-gnulib.c: Likewise.
11900
11901 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11902
11903         * lib/gethostname.c: Include limits.h.
11904
11905 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11906             Bruno Haible  <bruno@clisp.org>
11907
11908         Ensure HOST_NAME_MAX as part of the gethostname module.
11909         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11910         define also HOST_NAME_MAX.
11911         * tests/test-gethostname.c: Include <limits.h>.
11912         (main): Check also HOST_NAME_MAX.
11913         * doc/posix-headers/limits.texi: Document the mingw problem.
11914
11915 2009-08-02  Bruno Haible  <bruno@clisp.org>
11916
11917         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11918         Add comments.
11919
11920 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11921
11922         * lib/gethostname.c: Add Windows wrapper.
11923         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11924         * modules/gethostname: Depend on sys_socket & errno, for also
11925         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11926         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11927
11928 2009-07-31  Jim Meyering  <meyering@redhat.com>
11929
11930         getloadavg: fix symbol name in comment
11931         * lib/getloadavg.c: Correct a typo I introduced when adding
11932         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11933         Matt Kraai spotted the problem.
11934
11935 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11936
11937         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11938         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11939         code also if ! defined N_NAME_POINTER.
11940         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11941         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11942         but the n_name member is a 12-byte array.
11943
11944 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11945
11946         update-copyright: generalize comment handling
11947         * build-aux/update-copyright: Handle copyright statements
11948         within more comment styles.
11949         Document usage.
11950         Report any file with an external copyright holder or parse failure.
11951
11952 2009-07-29  Jim Meyering  <meyering@redhat.com>
11953
11954         mktime: correct setting of REPLACE_MKTIME
11955         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11956
11957         update-copyright: new module
11958         * modules/update-copyright: New file.
11959         * build-aux/update-copyright: New file.
11960         * MODULES.html.sh (maint+release support): Add update-copyright.
11961
11962 2009-07-27  Bruno Haible  <bruno@clisp.org>
11963
11964         Fix compilation error when <ctime> is used and mktime is replaced.
11965         * lib/time.in.h (mktime): New declaration.
11966         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11967         REPLACE_MKTIME instead of defining mktime in config.h.
11968         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11969         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11970         Reported by Ross McFarland <rwmcfa1@neces.com>.
11971
11972 2009-07-27  Bruno Haible  <bruno@clisp.org>
11973
11974         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11975         Reported by Matt Kraai <mkraai@beckman.com>.
11976
11977 2009-07-25  Jim Meyering  <meyering@redhat.com>
11978
11979         maint.mk: avoid warnings about missing files
11980         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11981         diagnostic when .prev-version does not exist.
11982         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11983         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11984         nonexistent cfg.mk.
11985         Suggestions from Simon Josefsson.
11986
11987 2009-07-25  Bruno Haible  <bruno@clisp.org>
11988
11989         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11990         defined as macros. Needed on QNX 6.4.1.
11991         Reported by Matt Kraai <mkraai@beckman.com>.
11992
11993 2009-07-23  Jim Meyering  <meyering@redhat.com>
11994
11995         maint.mk: invoke "make dist" with a working value of XZ_OPT
11996         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11997
11998 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11999
12000         Make fseeko.c compile on QNX.
12001         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12002
12003 2009-07-22  Peter Simons  <simons@cryp.to>
12004
12005         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12006         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12007         * lib/md4.h: Likewise.
12008         * lib/md5.h: Likewise.
12009         * lib/sha1.h: Likewise.
12010         * lib/sha256.h: Likewise.
12011         * lib/sha512.h: Likewise.
12012
12013         tests-sha1: don't assign literal string to 'char *' variable
12014         * tests/test-sha1.c (main): Declare locals with "const" to match
12015         attributes of the right hand side.
12016
12017 2009-07-21  Eric Blake  <ebb9@byu.net>
12018
12019         dup2: fix more mingw problems
12020         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12021         fd to itself.
12022         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12023         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12024         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12025         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12026         care of mingw bugs.
12027
12028 2009-07-21  Jim Meyering  <meyering@redhat.com>
12029
12030         vc-list-files: avoid failure when /bin/sh is dash
12031         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12032         On some Debian based systems, /bin/sh is a symlink to dash, and running
12033         this command would omit the "/" following each 'tests' prefix:
12034           dash -x build-aux/vc-list-files -C . tests
12035         That is because bash and dash work differently:
12036           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12037           bash ok
12038           dash odd
12039
12040 2009-07-21  Eric Blake  <ebb9@byu.net>
12041
12042         dup2-tests: test previous patch
12043         * modules/dup2-tests: New file.
12044         * tests/test-dup2.c: Likewise.
12045         * tests/test-open.c (main): Avoid unspecified behavior.
12046         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12047         test.
12048
12049         dup2: work around mingw and cygwin 1.5 bug
12050         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12052         * modules/unistd (Makefile.am): Substitute it.
12053         * lib/unistd.in.h (dup2): Declare the replacement.
12054         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12055         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12056         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12057         * modules/execute (Depends-on): Add dup2.
12058         * modules/fseterr (Depends-on): Likewise.
12059         * modules/pipe (Depends-on): Likewise.
12060         * modules/posix_spawn-internal (Depends-on): Likewise.
12061
12062 2009-07-21  Bruno Haible  <bruno@clisp.org>
12063
12064         * modules/.gitattributes: New file.
12065
12066 2009-07-20  Bruno Haible  <bruno@clisp.org>
12067
12068         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12069         (main): Use it.
12070
12071 2009-07-20  Eric Blake  <ebb9@byu.net>
12072
12073         test-pipe: make a bit more robust.
12074         * tests/test-pipe.c (myerr): Allow error messages regardless of
12075         what we do to stderr.
12076         (test_pipe): Rearrange to avoid deadlock.
12077         (child_main): Try a larger read, to ensure we avoided deadlock.
12078         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12079         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12080         if misused.
12081
12082 2009-07-19  Jim Meyering  <meyering@redhat.com>
12083
12084         fts: avoid false-positive cycle-detection
12085         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12086         for each new command line argument.
12087
12088 2009-07-19  Bruno Haible  <bruno@clisp.org>
12089
12090         Fix build error on mingw with the modules sys_select and unistd.
12091         * modules/acl-tests (Depends-on): Add close.
12092         * modules/binary-io-tests (Depends-on): Likewise.
12093         * modules/closein-tests (Depends-on): Likewise.
12094         * modules/flock-tests (Depends-on): Likewise.
12095         * modules/fsync-tests (Depends-on): Likewise.
12096         * modules/lseek-tests (Depends-on): Likewise.
12097         * modules/pipe-tests (Depends-on): Likewise.
12098         * modules/posix_spawn-tests (Depends-on): Likewise.
12099         * modules/posix_spawnp-tests (Depends-on): Likewise.
12100         * modules/stat-time-tests (Depends-on): Likewise.
12101         * modules/yesno-tests (Depends-on): Likewise.
12102
12103 2009-07-19  Bruno Haible  <bruno@clisp.org>
12104
12105         Unify conditionals.
12106         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12107         macros, not at the compiler macros.
12108         * lib/pipe.c: Likewise.
12109         * lib/execute.c: Likewise.
12110         * lib/spawni.c: Likewise.
12111
12112 2009-07-19  Bruno Haible  <bruno@clisp.org>
12113
12114         Fix handling of closed stdin/stdout/stderr on mingw.
12115         * lib/w32spawn.h: Include unistd.h.
12116         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12117         file descriptor with O_NOINHERIT flag.
12118         (fd_safer_noinherit): New function, based on fd-safer.c.
12119         (dup_safer_noinherit): New function, based on dup-safer.c.
12120         (undup_safer_noinherit): New function.
12121         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12122         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12123         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12124         instead of fd_safer.
12125         * tests/test-pipe.c: Include <windows.h>.
12126         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12127
12128         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12129         from main.
12130         (test_pipe): Pass an extra argument for disambiguation.
12131         (main): Invoke parent_main or child_main.
12132
12133         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12134         consistently.
12135
12136 2009-07-18  Eric Blake  <ebb9@byu.net>
12137
12138         test-pipe: fix mingw build
12139         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12140
12141 2009-07-18  Bruno Haible  <bruno@clisp.org>
12142
12143         * modules/pipe-tests (Makefile.am): Fix typo.
12144
12145 2009-07-18  Eric Blake  <ebb9@byu.net>
12146
12147         error: fix mingw build
12148         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12149         Reported by Bruno Haible.
12150
12151         error: avoid undefined use of stdout
12152         * lib/error.c (error, error_at_line): Check that fd 1 is open
12153         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12154         is handling faults and the close_stdout module wants to report the
12155         detection of closed stdout as an error.
12156
12157 2009-07-17  Eric Blake  <ebb9@byu.net>
12158
12159         pipe: be robust in face of closed fds
12160         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12161         should cause child to misbehave.
12162         * modules/pipe-tests: New module.
12163         * tests/test-pipe.c: New file.
12164         * tests/test-pipe.sh: New file.
12165         Reported by Akim Demaille.
12166
12167 2009-07-14  Bruno Haible  <bruno@clisp.org>
12168
12169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12170         Reported by anonymous kc.
12171
12172 2009-07-07  Jim Meyering  <meyering@redhat.com>
12173
12174         maint.mk: don't look for translatable strings in *.m4 or *.mk
12175         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12176         when searching for translatable strings.
12177
12178 2009-07-05  Jim Meyering  <meyering@redhat.com>
12179
12180         remove superfluous parentheses in STREQ definition
12181         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12182         * lib/getugroups.c (STREQ): Likewise.
12183         * lib/fnmatch.c (STREQ): Likewise.
12184         Spotted by Bruno Haible.
12185
12186 2009-07-04  Jim Meyering  <meyering@redhat.com>
12187
12188         argv-iter: new module
12189         * MODULES.html.sh: Add argv-iter.
12190         * lib/argv-iter.c, lib/argv-iter.h: New files.
12191         * modules/argv-iter: New file.
12192         * modules/argv-iter-tests: New file.
12193         * tests/test-argv-iter.c: Test it.
12194
12195 2009-07-04  Bruno Haible  <bruno@clisp.org>
12196
12197         Fix assertion.
12198         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12199         contains more exact copies of a given entry than file2, leave the extra
12200         copies unpaired rather than aborting.
12201         Reported by Eric Blake.
12202
12203 2009-07-02  Bruno Haible  <bruno@clisp.org>
12204
12205         Speedup git-merge-changelog for git cherry-pick.
12206         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12207         (entries_mapping_get): New function, extracted from compute_mapping.
12208         (entries_mapping_reverse_get): New function.
12209         (compute_mapping): Add a 'full' argument. Return the result in a
12210         'struct entries_mapping'.
12211         (main): Update. Access the mappings through entries_mapping_get.
12212         Reported by Eric Blake.
12213
12214 2009-07-02  Bruno Haible  <bruno@clisp.org>
12215
12216         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12217         best_i.
12218
12219 2009-07-02  Bruno Haible  <bruno@clisp.org>
12220
12221         Speed up approximate search for matching ChangeLog entries.
12222         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12223         argument. Call fstrcmp_bounded instead of fstrcmp.
12224         (compute_mapping, try_split_merged_entry, main): Update callers.
12225
12226 2009-07-02  Bruno Haible  <bruno@clisp.org>
12227
12228         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12229
12230 2009-06-30  Bruno Haible  <bruno@clisp.org>
12231
12232         Reduce the number of uc_is_cased calls.
12233         * lib/unicase.h (casing_suffix_context_t): Add
12234         'first_char_except_ignorable' field.
12235         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12236         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12237         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12238         Update initializer.
12239         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12240         case-ignorable characters.
12241         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12242         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12243         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12244         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12245         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12246
12247 2009-06-30  Bruno Haible  <bruno@clisp.org>
12248
12249         Tests for module 'unicase/ignorable'.
12250         * modules/unicase/ignorable-tests: New file.
12251         * tests/unicase/test-ignorable.c: New file, generated by
12252         gen-uni-tables.
12253
12254         Tests for module 'unicase/cased'.
12255         * modules/unicase/cased-tests: New file.
12256         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12257         * tests/unicase/test-predicate-part1.h: New file, derived from
12258         tests/unictype/test-predicate-part1.h.
12259         * tests/unicase/test-predicate-part2.h: New file, same as
12260         tests/unictype/test-predicate-part2.h.
12261
12262         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12263         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12264         (output_casing_properties): New function.
12265         (main): Call it.
12266         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12267         * lib/unicase/cased.c: Include unictype/bitmap.h.
12268         (uc_is_cased): Define through a bitmap lookup.
12269         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12270         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12271         (uc_is_case_ignorable): Define through a bitmap lookup.
12272         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12273         lib/unictype/bitmap.h.
12274         (Depends-on): Add inline. Clean up.
12275         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12276         lib/unictype/bitmap.h.
12277         (Depends-on): Add inline. Clean up.
12278         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12279         recognition.
12280         * tests/unicase/test-u16-tolower.c (main): Likewise.
12281         * tests/unicase/test-u32-tolower.c (main): Likewise.
12282
12283 2009-06-30  Bruno Haible  <bruno@clisp.org>
12284
12285         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12286         * lib/unicase/u16-casemap.c: Likewise.
12287         * lib/unicase/u32-casemap.c: Likewise.
12288
12289 2009-06-29  Bruno Haible  <bruno@clisp.org>
12290
12291         Define u32_casefold as a wrapper around u32_ct_casefold.
12292         * lib/unicase/u32-casefold.c: Update.
12293         * modules/unicase/u32-casefold (Depends-on): Add
12294         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12295         unicase/empty-suffix-context. Clean up.
12296
12297         Define u16_casefold as a wrapper around u16_ct_casefold.
12298         * lib/unicase/u16-casefold.c: Update.
12299         * modules/unicase/u16-casefold (Depends-on): Add
12300         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12301         unicase/empty-suffix-context. Clean up.
12302
12303         Define u8_casefold as a wrapper around u8_ct_casefold.
12304         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12305         * lib/unicase/u8-casefold.c: Update.
12306         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12307         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12308
12309         Define u32_totitle as a wrapper around u32_ct_totitle.
12310         * lib/unicase/u32-totitle.c: Update.
12311         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12312         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12313
12314         Define u16_totitle as a wrapper around u16_ct_totitle.
12315         * lib/unicase/u16-totitle.c: Update.
12316         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12317         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12318
12319         Define u8_totitle as a wrapper around u8_ct_totitle.
12320         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12321         functions.
12322         (FUNC): Delegate to U_CT_TOTITLE.
12323         * lib/unicase/u8-totitle.c: Update.
12324         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12325         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12326
12327         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12328         invocation.
12329         * modules/unicase/u32-tolower (Depends-on): Add
12330         unicase/empty-prefix-context, unicase/empty-suffix-context.
12331
12332         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12333         invocation.
12334         * modules/unicase/u16-tolower (Depends-on): Add
12335         unicase/empty-prefix-context, unicase/empty-suffix-context.
12336
12337         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12338         * modules/unicase/u8-tolower (Depends-on): Add
12339         unicase/empty-prefix-context, unicase/empty-suffix-context.
12340
12341         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12342         invocation.
12343         * modules/unicase/u32-toupper (Depends-on): Add
12344         unicase/empty-prefix-context, unicase/empty-suffix-context.
12345
12346         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12347         invocation.
12348         * modules/unicase/u16-toupper (Depends-on): Add
12349         unicase/empty-prefix-context, unicase/empty-suffix-context.
12350
12351         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12352         * modules/unicase/u8-toupper (Depends-on): Add
12353         unicase/empty-prefix-context, unicase/empty-suffix-context.
12354
12355         New module 'unicase/u32-ct-casefold'.
12356         * lib/unicase/u32-ct-casefold.c: New file.
12357         * modules/unicase/u32-ct-casefold: New file.
12358
12359         New module 'unicase/u16-ct-casefold'.
12360         * lib/unicase/u16-ct-casefold.c: New file.
12361         * modules/unicase/u16-ct-casefold: New file.
12362
12363         New module 'unicase/u8-ct-casefold'.
12364         * lib/unicase/u8-ct-casefold.c: New file.
12365         * lib/unicase/u-ct-casefold.h: New file, derived from
12366         lib/unicase/u-casefold.h.
12367         * modules/unicase/u8-ct-casefold: New file.
12368
12369         New module 'unicase/u32-ct-totitle'.
12370         * lib/unicase/u32-ct-totitle.c: New file.
12371         * modules/unicase/u32-ct-totitle: New file.
12372
12373         New module 'unicase/u16-ct-totitle'.
12374         * lib/unicase/u16-ct-totitle.c: New file.
12375         * modules/unicase/u16-ct-totitle: New file.
12376
12377         New module 'unicase/u8-ct-totitle'.
12378         * lib/unicase/u8-ct-totitle.c: New file.
12379         * lib/unicase/u-ct-totitle.h: New file, derived from
12380         lib/unicase/u-totitle.h.
12381         * modules/unicase/u8-ct-totitle: New file.
12382
12383         New module 'unicase/u32-ct-tolower'.
12384         * lib/unicase/u32-ct-tolower.c: New file.
12385         * modules/unicase/u32-ct-tolower: New file.
12386
12387         New module 'unicase/u16-ct-tolower'.
12388         * lib/unicase/u16-ct-tolower.c: New file.
12389         * modules/unicase/u16-ct-tolower: New file.
12390
12391         New module 'unicase/u8-ct-tolower'.
12392         * lib/unicase/u8-ct-tolower.c: New file.
12393         * modules/unicase/u8-ct-tolower: New file.
12394
12395         New module 'unicase/u32-ct-toupper'.
12396         * lib/unicase/u32-ct-toupper.c: New file.
12397         * modules/unicase/u32-ct-toupper: New file.
12398
12399         New module 'unicase/u16-ct-toupper'.
12400         * lib/unicase/u16-ct-toupper.c: New file.
12401         * modules/unicase/u16-ct-toupper: New file.
12402
12403         New module 'unicase/u8-ct-toupper'.
12404         * lib/unicase/u8-ct-toupper.c: New file.
12405         * modules/unicase/u8-ct-toupper: New file.
12406
12407         Add context arguments to u*_casemap functions.
12408         * lib/unicase/unicasemap.h: Include unicase.h.
12409         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12410         suffix_context arguments.
12411         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12412         functions.
12413         (FUNC): Add prefix_context and suffix_context arguments. Use
12414         uc_is_cased and uc_is_case_ignorable.
12415         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12416         * lib/unicase/u16-casemap.c: Likewise.
12417         * lib/unicase/u32-casemap.c: Likewise.
12418         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12419         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12420         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12421         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12422         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12423         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12424
12425         New module 'unicase/u32-suffix-context'.
12426         * lib/unicase/u32-suffix-context.c: New file.
12427         * modules/unicase/u32-suffix-context: New file.
12428
12429         New module 'unicase/u16-suffix-context'.
12430         * lib/unicase/u16-suffix-context.c: New file.
12431         * modules/unicase/u16-suffix-context: New file.
12432
12433         New module 'unicase/u8-suffix-context'.
12434         * lib/unicase/u8-suffix-context.c: New file.
12435         * lib/unicase/u-suffix-context.h: New file.
12436         * modules/unicase/u8-suffix-context: New file.
12437
12438         New module 'unicase/empty-suffix-context'.
12439         * lib/unicase/empty-suffix-context.c: New file.
12440         * modules/unicase/empty-suffix-context: New file.
12441
12442         New module 'unicase/u32-prefix-context'.
12443         * lib/unicase/u32-prefix-context.c: New file.
12444         * modules/unicase/u32-prefix-context: New file.
12445
12446         New module 'unicase/u16-prefix-context'.
12447         * lib/unicase/u16-prefix-context.c: New file.
12448         * modules/unicase/u16-prefix-context: New file.
12449
12450         New module 'unicase/u8-prefix-context'.
12451         * lib/unicase/u8-prefix-context.c: New file.
12452         * lib/unicase/u-prefix-context.h: New file.
12453         * lib/unicase/context.h: New file.
12454         * modules/unicase/u8-prefix-context: New file.
12455
12456         New module 'unicase/empty-prefix-context'.
12457         * lib/unicase/empty-prefix-context.c: New file.
12458         * modules/unicase/empty-prefix-context: New file.
12459
12460         New module 'unicase/ignorable'.
12461         * lib/unicase/ignorable.c: New file.
12462         * modules/unicase/ignorable: New file.
12463
12464         New module 'unicase/cased'.
12465         * lib/unicase/caseprop.h: New file.
12466         * lib/unicase/cased.c: New file.
12467         * modules/unicase/cased: New file.
12468
12469         New functions for case mapping of substrings.
12470         * lib/unicase.h (casing_prefix_context_t): New type.
12471         (unicase_empty_prefix_context): New variable.
12472         (u8_casing_prefix_context, u16_casing_prefix_context,
12473         u32_casing_prefix_context, u8_casing_prefixes_context,
12474         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12475         declarations.
12476         (casing_suffix_context_t): New type.
12477         (unicase_empty_suffix_context): New variable.
12478         (u8_casing_suffix_context, u16_casing_suffix_context,
12479         u32_casing_suffix_context, u8_casing_suffixes_context,
12480         u16_casing_suffixes_context, u32_casing_suffixes_context,
12481         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12482         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12483         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12484         declarations.
12485
12486 2009-06-28  Jim Meyering  <meyering@redhat.com>
12487
12488         boostrap: indent only with spaces
12489         * build-aux/bootstrap: Indent only with spaces, never TABs.
12490
12491         bootstrap: split long lines
12492         * build-aux/bootstrap: Keep line length < 80.
12493
12494         bootstrap: sync from coreutils
12495         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12496         just as autoreconf does.  Verify a list of prerequisite
12497         package-name,version-number pairs if defined in bootstrap.conf.
12498         Refer to README-prereq, if prerequisites are not satisfied.
12499
12500 2009-06-27  Eric Blake  <ebb9@byu.net>
12501
12502         tests: add test for bogus NULL definition
12503         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12504         * tests/test-stdlib.c: Likewise.
12505         * tests/test-string.c: Likewise.
12506         * tests/test-locale.c: Likewise.
12507         * tests/test-unistd.c: Likewise.
12508         * modules/stdio-tests (Depends-on): Add verify.
12509         * modules/stdlib-tests (Depends-on): Likewise.
12510         * modules/string-tests (Depends-on): Likewise.
12511         * modules/locale-tests (Depends-on): Likewise.
12512         * modules/unistd-tests (Depends-on): Likewise.
12513
12514 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12515
12516         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12517         self-explaining comment.
12518         * m4/selinux-selinux-h: Update serial.
12519         (gl_LIBSELINUX): New macro, adding a warning for missing development
12520         packages to code extracted from...
12521         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12522         Add warning for missing development packages here, too.
12523
12524 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12525
12526         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12527
12528 2009-06-25  Eric Blake  <ebb9@byu.net>
12529
12530         version-etc: fix regression
12531         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12532         gcc.
12533         (version_etc): Use it, to catch bugs with trailing NULL.
12534         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12535         (version_etc_va): Fix logic bug.
12536         * modules/version-etc-tests: Add test.
12537         * tests/test-version-etc.c: New file.
12538         * tests/test-version-etc.sh: Likewise.
12539
12540 2009-06-25  Sam Steingold  <sds@gnu.org>
12541
12542         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12543         mbtowc declaration.
12544
12545 2009-06-25  Eric Blake  <ebb9@byu.net>
12546
12547         fpurge: migrate into <stdio.h>
12548         * lib/fpurge.h: Delete...
12549         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12550         * lib/fpurge.c (fpurge): Change declaring header.
12551         * modules/fpurge (Files): Drop deleted file.
12552         (Depends-on): Add stdio.
12553         (configure.ac): Set witness.
12554         * modules/stdio (Makefile.am): Support fpurge macros.
12555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12556         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12557         * lib/fflush.c: Update client.
12558         * tests/test-fpurge.c: Likewise.
12559         * NEWS: Mention the change.
12560
12561 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12562
12563         * lib/argp-version-etc.c (program_authors): Add const
12564         qualifier.
12565         * lib/version-etc.c: Fix typos in the comments.
12566         * modules/argp-version-etc: Depends on version-etc.
12567
12568 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12569
12570         argp-version-etc: new module.
12571
12572         * lib/argp-version-etc.c: New file.
12573         * lib/argp-version-etc.h: New file.
12574         * modules/argp-version-etc: New file.
12575         * modules/argp-version-etc-tests: New file.
12576         * tests/test-argp-version-etc.c: New test.
12577         * tests/test-argp-version-etc-1.sh: New test.
12578
12579 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12580
12581         Provide additional interfaces and documentation for version-etc
12582         module.
12583
12584         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12585         interfaces.
12586         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12587         prototypes.
12588
12589 2009-06-24  Bruno Haible  <bruno@clisp.org>
12590
12591         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12592         HAVE_LIB${NAME} macro.
12593         Reported by Sam Steingold <sds@gnu.org>.
12594
12595 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12596
12597         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12598         needed.
12599
12600 2009-06-21  Bruno Haible  <bruno@clisp.org>
12601
12602         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12603         work.
12604         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12605         together with LIB${NAME}, LTLIB${NAME}.
12606         Reported by Sam Steingold <sds@gnu.org>.
12607
12608 2009-06-20  Jim Meyering  <meyering@redhat.com>
12609
12610         tests: make sc_require_test_exit_idiom more generic
12611         * top/maint.mk (Exit_witness_file): New overridable variable.
12612         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12613         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12614
12615 2009-06-19  Jim Meyering  <meyering@redhat.com>
12616
12617         hash: reverse order of src/dst parameters in an internal interface
12618         * lib/hash.c (transfer_entries): Reverse order of parameters to
12619         put DST before SRC.  Adjust callers.
12620
12621         tests: test-hash: avoid wholesale duplication
12622         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12623         Instead, use a loop and add a single conditional.
12624
12625         tests: test-hash: allow seed selection via a command line argument
12626         * tests/test-hash.c (get_seed): New function.
12627         (main): Use it.
12628
12629 2009-06-19  Eric Blake  <ebb9@byu.net>
12630
12631         hash: avoid memory leak on allocation failure
12632         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12633         failure.  Factor repeated algorithm...
12634         (transfer_entries): ...into new helper routine.
12635         (hash_delete): React to hash_rehash return value.
12636
12637         hash: reduce memory pressure in hash_rehash no-op case
12638         * lib/hash.c (next_prime): Avoid overflow.
12639         (hash_initialize): Factor bucket size computation...
12640         (compute_bucket_size): ...into new helper function.
12641         (hash_rehash): Use new function and open coding to reduce memory
12642         pressure, and avoid a memory leak in USE_OBSTACK code.
12643         Reported by Jim Meyering.
12644
12645 2009-06-18  Eric Blake  <ebb9@byu.net>
12646
12647         hash: make rotation more obvious
12648         * modules/hash (Depends-on): Add bitrotate and stdint.
12649         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
12650         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
12651         (SIZE_MAX): Rely on headers for definition.
12652         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
12653         (raw_hasher): Use rotr_sz.
12654         Suggested by Jim Meyering.
12655
12656         hash: fix memory leak in last patch
12657         * lib/hash.c (hash_rehash): Avoid memory leak.
12658
12659         hash: avoid no-op rehashing
12660         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12661
12662         hash: provide default callback functions
12663         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12664         (hash_initialize): Use them as defaults.
12665         * tests/test-hash.c (main): Test this.
12666
12667         hash: minor optimization
12668         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12669         when possible.
12670         (hash_initialize): Document this promise.
12671         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12672         * tests/test-hash.c (hash_compare_strings): Test this.
12673
12674 2009-06-18  Bruno Haible  <bruno@clisp.org>
12675
12676         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12677         going to be replaced anyway.
12678
12679 2009-06-18  Bruno Haible  <bruno@clisp.org>
12680
12681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12682         in one place.
12683         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12684         be replaced anyway.
12685
12686 2009-06-18  Eric Blake  <ebb9@byu.net>
12687
12688         hash: check for resize before insertion
12689         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12690         threshold before insertion, so that a pathological hash_rehash
12691         that fills every bucket can still trigger another rehash.
12692
12693 2009-06-18  Jim Meyering  <meyering@redhat.com>
12694
12695         hash-tests: add a loop around the small tests
12696         * tests/test-hash.c (main): Repeat small tests with selected
12697         small initial table sizes.
12698
12699 2009-06-17  Eric Blake  <ebb9@byu.net>
12700
12701         hash: minor cleanups
12702         * lib/hash.h (hash_entry): Make opaque, by moving...
12703         * lib/hash.c (hash_entry): ...here.
12704         (hash_insert): Clarify restrictions on what can be inserted.
12705         (hash_get_next): Clarify when it is safe to remove an element
12706         during traversal.
12707         (check_tuning): Skip verification when tuning is known safe.
12708         (hash_initialize): Clarify restrictions on tuning.
12709
12710 2009-06-17  Jim Meyering  <jim@meyering.net>
12711         and Eric Blake  <ebb9@byu.net>
12712
12713         hash-tests: new module
12714         * modules/hash-tests: New file.
12715         * tests/test-hash.c: New file.
12716
12717 2009-06-17  Eric Blake  <ebb9@byu.net>
12718
12719         strstr-simple: document new module
12720         * MODULES.html.sh: Document new module.
12721
12722         strstr, strcasestr: replace on platforms with broken memchr
12723         * modules/strstr: Split into...
12724         * modules/strstr-simple: ...new module that does not care about
12725         performance, but does care about glibc bug.
12726         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12727         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12728         if platform memchr is broken, per Debian bug 521737.
12729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12730         memchr.
12731         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12732         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12733         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12734         * modules/mountlist (Depends-on): Add strstr-simple.
12735         * modules/gen-uni-tables (Depends-on): Likewise.
12736         * modules/argz (Depends-on): Add strstr.
12737
12738 2009-06-17  Bruno Haible  <bruno@clisp.org>
12739
12740         * modules/posix_spawn-internal (Depends-on): Add errno.
12741
12742 2009-06-17  Bruno Haible  <bruno@clisp.org>
12743
12744         Define missing ESTALE on Interix 3.5.
12745         * lib/errno.in.h (ESTALE): Assign a value if missing.
12746         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12748         missing.
12749         * doc/posix-headers/errno.texi: Mention the Interix bug.
12750         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12751
12752 2009-06-15  Eric Blake  <ebb9@byu.net>
12753
12754         memchr, memchr2: add valgrind exception
12755         * lib/memchr.valgrind: New file.
12756         * lib/memchr2.valgrind: New file.
12757         * modules/memchr (Files): Distribute valgrind file.
12758         * modules/memchr2 (Files): Likewise.
12759
12760         docs: memchr is no longer obsolete
12761         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12762         * lib/string.in.h (memchr): Simplify logic.
12763
12764 2009-06-14  Jim Meyering  <meyering@redhat.com>
12765
12766         link-follow: fix the "checking..." message to not mention trailing slash
12767         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12768         never considered trailing slashes.
12769
12770 2009-06-14  Bruno Haible  <bruno@clisp.org>
12771
12772         * m4/memchr.m4: Mention also the bug on IA-64.
12773         * doc/posix-functions/memchr.texi: Likewise.
12774
12775 2009-06-12  Eric Blake  <ebb9@byu.net>
12776
12777         memchr: detect broken x86_64 and alpha implementations
12778         * modules/memchr-tests (Depends-on): Move mmap detection...
12779         * modules/memchr (Depends-on): ...here.
12780         (configure.ac): Set indicator.
12781         * lib/string.in.h (memchr): Declare replacement.
12782         * modules/string (Makefile.am): Trigger replacement.
12783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12784         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12785         bugs.
12786         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12787         * modules/getpagesize (License): Relax license.
12788
12789 2009-06-11  Bruno Haible  <bruno@clisp.org>
12790
12791         * lib/idpriv.h: Add more references.
12792
12793 2009-06-08  Bruno Haible  <bruno@clisp.org>
12794
12795         Tests for module 'idpriv-droptemp'.
12796         * modules/idpriv-droptemp-tests: New file.
12797         * tests/test-idpriv-droptemp.sh: New file.
12798         * tests/test-idpriv-droptemp.su.sh: New file.
12799         * tests/test-idpriv-droptemp.c: New file.
12800
12801         New module 'idpriv-droptemp'.
12802         * lib/idpriv-droptemp.c: New file.
12803         * modules/idpriv-droptemp: New file.
12804
12805 2009-06-08  Bruno Haible  <bruno@clisp.org>
12806
12807         Tests for module 'idpriv-drop'.
12808         * modules/idpriv-drop-tests: New file.
12809         * tests/test-idpriv-drop.sh: New file.
12810         * tests/test-idpriv-drop.su.sh: New file.
12811         * tests/test-idpriv-drop.c: New file.
12812
12813         New module 'idpriv-drop'.
12814         * lib/idpriv.h: New file.
12815         * lib-idpriv-drop.c: New file.
12816         * m4/idpriv.m4: New file.
12817         * modules/idpriv-drop: New file.
12818
12819 2009-06-08  Bruno Haible  <bruno@clisp.org>
12820
12821         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12822         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12823         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12824         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12825         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12826         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12827         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12828
12829 2009-06-08  Eric Blake  <ebb9@byu.net>
12830
12831         test-strstr: use memory fence, when possible
12832         * tests/test-strstr.c (main): Use memory fence, in order to be
12833         more likely to trigger Debian bug 521737.
12834         * modules/strstr-tests (Files): Pull in additional files.
12835
12836         memchr: no longer obsolete, for wider field testing
12837         * modules/memchr (Status, Notice): Delete, this module is no
12838         longer obsolete.
12839         * modules/vasnprintf (Depends-on): Add memchr.
12840
12841 2009-06-07  Jim Meyering  <meyering@redhat.com>
12842
12843         hash: declare some functions with the warn_unused_result attribute
12844         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12845
12846 2009-06-07  Bruno Haible  <bruno@clisp.org>
12847
12848         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12849         Reported by Eric Blake.
12850
12851 2009-06-06  Eric Blake  <ebb9@byu.net>
12852
12853         test-alignof: fix typo with long double
12854         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12855         compiler error.
12856
12857 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12858
12859         Escape non-texinfo { and }s.
12860         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12861         markup error.
12862
12863 2009-06-04  Jim Meyering  <meyering@redhat.com>
12864
12865         gitlog-to-changelog: don't infloop on an empty commit log
12866         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12867         Reported by Boris Petersen <transacid@centerim.org>.
12868
12869 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12870
12871         version-etc: extend for packagers
12872         Add three new configure options, intended for packagers:
12873           --with-packager="packager name"
12874           --with-packager-version="packager-specific version"
12875           --with-packager-bug-reports="packager bug reporting"
12876         An example with coreutils:
12877           $ ./configure \
12878             --with-packager=Gentoo \
12879             --with-packager-bug-report=http://bugs.gentoo.org/ \
12880             --with-packager-version="patchset 1.6"
12881           $ ./src/ls --version | head -n2
12882           ls (GNU coreutils) 7.1-dirty
12883           Packaged by Gentoo (patchset 1.6)
12884         Note that the bug reporting info via --help doesn't show up because
12885         coreutils uses its own custom emit_bug_reporting_address() implementation
12886         in src/system.h.  If it didn't, it'd look like:
12887           $ ./src/ls --help | tail -n4
12888           Report bugs to <bug-coreutils@gnu.org>.
12889           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12890           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12891           General help using GNU software: <http://www.gnu.org/gethelp/>.
12892         * lib/version-etc.c: Print new information, if provided.
12893         * m4/version-etc.m4: New file.
12894         * modules/version-etc (Files): Add m4/version-etc.m4.
12895         (configure.ac): Add gl_VERSION_ETC.
12896
12897 2009-05-31  Bruno Haible  <bruno@clisp.org>
12898
12899         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12900         and 'int64_t'.
12901         * modules/alignof-tests (Dependencies): Add stdint.
12902         Reported by Eric Blake.
12903
12904 2009-05-31  Bruno Haible  <bruno@clisp.org>
12905
12906         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12907         restriction due to compiler bugs.
12908         Reported by Eric Blake.
12909
12910 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12911             Bruno Haible  <bruno@clisp.org>
12912
12913         Fix test-alignof failure.
12914         * lib/alignof.h (alignof_slot): New macro.
12915         (alignof_type): New macro, with the same semantics as the previous
12916         'alignof'.
12917         (alignof): Alias to alignof_slot.
12918         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12919         check that the results are usable as constant expressions.
12920
12921 2009-05-31  Bruno Haible  <bruno@clisp.org>
12922
12923         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12924         * tests/test-memchr.c (main): Check that memchr does not read past the
12925         first occurrence of the byte.
12926         * tests/test-strstr.c (main): Update comment.
12927         Suggested by Eric Blake.
12928
12929 2009-05-30  Bruno Haible  <bruno@clisp.org>
12930
12931         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12932         detail how to use dumpbin.
12933         Reported by David Byron <dbyron@dbyron.com>.
12934
12935 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12936
12937         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12938
12939 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12940
12941         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12942
12943 2009-05-28  Bruno Haible  <bruno@clisp.org>
12944
12945         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12946         build-aux/ files.
12947
12948 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12949
12950         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12951
12952 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12953
12954         * gnulib-tool (sed_transform_main_lib_file)
12955         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12956         regexps.
12957
12958 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12959
12960         * tests/test-strstr.c: Add another self-test.
12961         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12962         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12963
12964 2009-05-23  Bruno Haible  <bruno@clisp.org>
12965
12966         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12967         change.
12968
12969 2009-05-21  Bruno Haible  <bruno@clisp.org>
12970
12971         Simplify use of mode_t varargs.
12972         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12973         uses 'mode_t' or 'int'.
12974         * lib/openat.c (openat): Likewise.
12975         * lib/open-safer.c (open_safer): Likewise.
12976         * m4/mode_t.m4: New file.
12977         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12978         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12979         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12980         * modules/open (Files): Add m4/mode_t.m4.
12981         * modules/openat (Files): Likewise.
12982         * modules/fcntl-safer (Files): Likewise.
12983         Suggested by Eric Blake.
12984
12985 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12986
12987         * doc/glibc-functions/fallocate.texi: New file.
12988         * doc/gnulib.texi: Include it.
12989
12990 2009-05-21  Eric Blake  <ebb9@byu.net>
12991             Bruno Haible  <bruno@clisp.org>
12992
12993         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12994         invocations.
12995         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12996
12997 2009-05-21  Eric Blake  <ebb9@byu.net>
12998             Bruno Haible  <bruno@clisp.org>
12999
13000         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13001         include_next. Fix of 2008-11-20 commit.
13002         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13003         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13004         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13005         NEXT_MATH_H.
13006         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13007         instead of NEXT_MATH_H.
13008
13009 2009-05-21  Bruno Haible  <bruno@clisp.org>
13010
13011         Avoid redefinition warnings for SIZE_MAX.
13012         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13013         Reported by Simon Josefsson.
13014
13015 2009-05-21  Bruno Haible  <bruno@clisp.org>
13016
13017         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13018         AC_CACHE_VAL.
13019
13020 2009-05-20  Bruno Haible  <bruno@clisp.org>
13021
13022         Make zeroptr.h work on mingw.
13023         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13024         mprotect.
13025         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13026         * modules/memchr2-tests (configure.ac): Likewise.
13027         * modules/memcmp-tests (configure.ac): Likewise.
13028         * modules/memmem-tests (configure.ac): Likewise.
13029         * modules/memrchr-tests (configure.ac): Likewise.
13030         Reported by Simon Josefsson.
13031
13032 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13033
13034         * tests/test-glob.c: Include string.h for strcmp prototype.
13035
13036 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13037
13038         * modules/getdelim (Depends-on): Add explicit stdint, although it
13039         was implicitly already pulled in via realloc-posix.
13040         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13041
13042 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13043
13044         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13045         G. Christensen" <tgc@jupiterrise.com>.
13046         * m4/sys_socket_h.m4: Check for sa_family_t.
13047         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13048         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13049         * tests/test-sys_socket.c: Check that sa_family_t works.
13050
13051 2009-05-18  Eric Blake  <ebb9@byu.net>
13052
13053         maint.mk: allow gnulib_dir in VPATH build
13054         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13055
13056 2009-05-15  Jim Meyering  <meyering@redhat.com>
13057
13058         maint.mk: Give gnulib_dir a default definition.
13059         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13060         Thus, most packages no longer need to specify this variable in cfg.mk
13061
13062 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13063
13064         rename.m4: fix typos that would make non-mingw cross-configure fail
13065         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13066
13067 2009-05-13  Eric Blake  <ebb9@byu.net>
13068
13069         mmap-anon: avoid out-of-order autoconf expansion
13070         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13071         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13072         * modules/memchr-tests (Depends-on): Add extensions.
13073         * modules/memchr2-tests (Depends-on): Add extensions.
13074         * modules/memcmp-tests (Depends-on): Add extensions.
13075         * modules/memmem-tests (Depends-on): Add extensions.
13076         * modules/memrchr-tests (Depends-on): Add extensions.
13077
13078 2009-05-13  Bruno Haible  <bruno@clisp.org>
13079
13080         Make some tests ISO C 99 compliant.
13081         * tests/zerosize-ptr.h: New file.
13082         * tests/test-memchr.c: Include zerosize-ptr.h.
13083         (main): Use a zero-size object pointer instead of NULL.
13084         * tests/test-memchr2.c: Include zerosize-ptr.h.
13085         (main): Use a zero-size object pointer instead of NULL.
13086         * tests/test-memcmp.c: Include zerosize-ptr.h.
13087         (main): Use a zero-size object pointer instead of NULL.
13088         * tests/test-memmem.c: Include zerosize-ptr.h.
13089         (main): Use a zero-size object pointer instead of NULL.
13090         * tests/test-memrchr.c: Include zerosize-ptr.h.
13091         (main): Use a zero-size object pointer instead of NULL.
13092         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13093         m4/mmap-anon.m4.
13094         (Depends-on): Add getpagesize.
13095         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13096         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13097         m4/mmap-anon.m4.
13098         (Depends-on): Add getpagesize.
13099         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13100         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13101         m4/mmap-anon.m4.
13102         (Depends-on): Add getpagesize.
13103         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13104         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13105         m4/mmap-anon.m4.
13106         (Depends-on): Add getpagesize.
13107         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13108         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13109         m4/mmap-anon.m4.
13110         (Depends-on): Add getpagesize.
13111         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13112
13113 2009-05-12  Bruno Haible  <bruno@clisp.org>
13114
13115         Tests for module 'alignof'.
13116         * modules/alignof-tests: New file.
13117         * tests/test-alignof.c: New file.
13118
13119 2009-05-12  Bruno Haible  <bruno@clisp.org>
13120
13121         Fix alignof macro.
13122         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13123         vendor compilers that are always correct.
13124
13125 2009-05-12  Bruno Haible  <bruno@clisp.org>
13126
13127         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13128         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13129         not whether its fully works.
13130
13131 2009-05-12  Bruno Haible  <bruno@clisp.org>
13132
13133         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13134
13135 2009-05-12  Jim Meyering  <meyering@redhat.com>
13136
13137         * top/maint.mk: Adjust backslash alignment.
13138
13139 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13140
13141         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13142
13143 2009-05-11  Eric Blake  <ebb9@byu.net>
13144
13145         argp: avoid undefined behavior
13146         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13147         macros.
13148
13149 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13150
13151         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13152         user.name to prevent git commit from complaining.
13153
13154 2009-05-10  Bruno Haible  <bruno@clisp.org>
13155
13156         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13157         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13158         it rewrites every file name only once.
13159         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13160
13161 2009-05-08  Bruno Haible  <bruno@clisp.org>
13162
13163         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13164         instead of 'max'.
13165
13166 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13167
13168         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13169         sockaddr_storage test.
13170
13171 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13172
13173         * modules/sys_socket (Makefile.am): Substitute
13174         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13175         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13176         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13177         * tests/test-sys_socket.c: Check sockaddr_storage.
13178
13179 2009-05-08  Bruno Haible  <bruno@clisp.org>
13180
13181         New module 'alignof'.
13182         * lib/alignof.h: New file.
13183         * modules/alignof: New file.
13184
13185 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13186             Bruno Haible  <bruno@clisp.org>
13187
13188         Fix test-file-has-acl on FreeBSD.
13189         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13190         mask is implicitly added.
13191         * tests/test-file-has-acl.c: Include <signal.h>.
13192         (main): Terminate the test after 5 seconds.
13193         * modules/acl-tests (configure.ac): Check for alarm function.
13194
13195 2009-05-04  Bruno Haible  <bruno@clisp.org>
13196
13197         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13199         * modules/errno (configure.ac): Drop AC_REQUIRE.
13200         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13201         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13202
13203 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13204
13205         * modules/glob-tests: New module.
13206         * tests/test-glob.c: Add.
13207
13208 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13209
13210         * modules/fnmatch-tests: New module.
13211         * tests/test-fnmatch.c: Add.
13212
13213 2009-05-04  Eric Blake  <ebb9@byu.net>
13214
13215         maint: make the new no-submodule-changes rule VPATH-safe
13216         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13217
13218 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13219             Bruno Haible  <bruno@clisp.org>
13220
13221         acl: Fix infinite loop on FreeBSD.
13222         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13223         of return value from acl_get_entry.
13224         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13225         Likewise.
13226
13227 2009-05-03  Bruno Haible  <bruno@clisp.org>
13228
13229         * lib/acl-internal.h (acl_entries): Clarify return value.
13230         * lib/acl_entries.c (acl_entries): Likewise.
13231
13232 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13233
13234         Bug fix in acl module.
13235         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13236
13237 2009-05-03  Bruno Haible  <bruno@clisp.org>
13238
13239         Create gperf-generated file in the source dir, not in the build dir.
13240         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13241         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13242         * modules/unicase/locale-language (unicase/locale-languages.h):
13243         Likewise.
13244         * modules/unicase/special-casing (unicase/special-casing-table.h):
13245         Likewise.
13246         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13247         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13248         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13249         Reported by Ralf Wildenhues.
13250
13251 2009-05-03  Bruno Haible  <bruno@clisp.org>
13252
13253         * modules/fnmatch (Description, configure.ac): Taken from
13254         fnmatch-posix.
13255         * modules/fnmatch-posix: Turn into a symbolic reference to the
13256         'fnmatch' module, and deprecate.
13257         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13258
13259 2009-05-03  Bruno Haible  <bruno@clisp.org>
13260
13261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13262         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13263         Reported by Ralf Wildenhues.
13264
13265 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13266
13267         * m4/fnmatch.m4: Fix fnmatch re-define.
13268
13269 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13270
13271         priv-set: new module and tests; adapt write-any-file
13272         * lib/priv-set.c: New file.
13273         * lib/priv-set.h: New file.
13274         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13275         * lib/write-any-file.c: Simplify by using priv-set module.
13276         * m4/priv-set.m4: New file.
13277         * modules/priv-set: New file.
13278         * modules/unlinkdir: Add dependency on priv-set module.
13279         * modules/write-any-file: Likewise.
13280
13281         Tests for module 'priv-set'.
13282         * modules/priv-set-tests: New file.
13283         * tests/test-priv-set.c: New file.
13284
13285 2009-05-03  Jim Meyering  <meyering@redhat.com>
13286             Bruno Haible  <bruno@clisp.org>
13287
13288         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13289         use the converted UTF-8 variant of the name instead.
13290
13291 2009-05-03  Jim Meyering  <meyering@redhat.com>
13292
13293         tests: tighten some getdate tests
13294         * tests/test-getdate.c (main): Tighten tests: require equality,
13295         not just greater than.  Set TZ envvar to UTC0.
13296
13297 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13298
13299         getdate: correctly interpret "next monday" when run on a Monday
13300         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13301         that e.g., "next tues" (when run on a tuesday) results in a date
13302         that is one week in the future, and not today's date.
13303         I.e., add a week when the wday is the same as the current one.
13304         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13305         and earlier by Martin Bernreuther and Jan Minář.
13306         * tests/test-getdate.c (main): Check that "next DAY" is always in
13307         the future and that "last DAY" is always in the past.
13308
13309 2009-05-02  Jim Meyering  <meyering@redhat.com>
13310
13311         build: ensure that a release build fails when a submodule is unclean
13312         * top/maint.mk (no-submodule-changes): New rule.
13313         (alpha beta major): Depend on it.
13314
13315 2009-05-02  Bruno Haible  <bruno@clisp.org>
13316
13317         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13318         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13319         shell variable gl_fnmatch_required to detect which variant is
13320         requested.
13321         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13322         gl_FUNC_FNMATCH_POSIX.
13323         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13324         exclude fnmatch-posix.
13325
13326 2009-05-02  Bruno Haible  <bruno@clisp.org>
13327
13328         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13329         * modules/mbsrtowcs (License): Change to LGPLv2+.
13330         * modules/strnlen1 (License): Likewise.
13331         Reported by Simon Josefsson.
13332
13333 2009-05-02  Bruno Haible  <bruno@clisp.org>
13334
13335         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13336         "cross".
13337         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13338         gnulib-tool was called with option --source-base=lib.
13339
13340 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13341
13342         Use automake *-local hooks without commands, for extensibility.
13343         * modules/localcharset (Makefile.am): Rename install-exec-local
13344         rule to install-exec-localcharset, and make it a prerequisite of
13345         install-exec-local.  Likewise, rename the uninstall-local rule to
13346         uninstall-localcharset, and make it a prerequisite of the former.
13347
13348 2009-05-01  Bruno Haible  <bruno@clisp.org>
13349
13350         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13351         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13352         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13354         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13355         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13356         m4/locale-zh.m4, m4/codeset.m4.
13357
13358         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13359         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13360         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13361         m4/locale-zh.m4.
13362
13363         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13364         REPLACE_WCRTOMB if mbstate_t must be replaced.
13365         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13366         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13367
13368 2009-05-01  Bruno Haible  <bruno@clisp.org>
13369
13370         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13371         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13372         dngettext, dcngettext, textdomain, bindtextdomain,
13373         bind_textdomain_codeset): Undefine before redefining.
13374
13375 2009-04-30  Bruno Haible  <bruno@clisp.org>
13376
13377         Fix bug introduced on 2009-04-25.
13378         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13379         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13380         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13381         is defined.
13382         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13383         is defined.
13384         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13385         is defined.
13386         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13387
13388 2009-04-28  Bruno Haible  <bruno@clisp.org>
13389
13390         Comment tweaks.
13391         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13392         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13393         * lib/unicase.h (u*_casexfrm): Likewise.
13394         Reported by Paolo Bonzini.
13395
13396 2009-04-28  Bruno Haible  <bruno@clisp.org>
13397
13398         Fix a compilation error.
13399         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13400         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13401         Reported by Jim Meyering.
13402
13403 2009-04-27  Bruno Haible  <bruno@clisp.org>
13404
13405         New module 'libunistring'.
13406         * modules/libunistring: New file.
13407         * m4/libunistring.m4: New file.
13408         * MODULES.html.sh (Unicode string functions): Add it.
13409
13410 2009-04-27  Eric Blake  <ebb9@byu.net>
13411
13412         maint.mk: allow package-specific header to provide <config.h>
13413         * top/maint.mk (sc_require_config_h): New variable.
13414         (sc_require_config_h, sc_require_config_h_first): Use it.
13415
13416 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13417
13418         * top/maint.mk (sc_avoid_if_before_free): Except
13419         useless-if-before-free script.
13420
13421 2009-04-27  Eric Blake  <ebb9@byu.net>
13422
13423         maintainer-makefile: depend on all required helper scripts
13424         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13425         useless-if-before-free.
13426         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13427         version, rather than assuming gnulib checkout is available.
13428         Reported by Simen Josefsson.
13429
13430 2009-04-26  Bruno Haible  <bruno@clisp.org>
13431
13432         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13433         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13434         "../" or "..".
13435
13436 2009-04-26  Bruno Haible  <bruno@clisp.org>
13437
13438         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13439         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13440         AC_LIB_HAVE_LINKFLAGS.
13441
13442 2009-04-26  Bruno Haible  <bruno@clisp.org>
13443
13444         Simplify calling convention of u*_conv_from_encoding.
13445         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13446         u32_conv_from_encoding): Expect a resultbuf argument and return the
13447         result directly as a pointer.
13448         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13449         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13450         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13451         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13452         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13453         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13454         Update.
13455         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13456         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13457         * lib/vasnprintf.c (VASNPRINTF): Update.
13458         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13459         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13460         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13461         * NEWS: Mention the change.
13462
13463 2009-04-26  Bruno Haible  <bruno@clisp.org>
13464
13465         Simplify calling convention of u*_conv_to_encoding.
13466         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13467         u32_conv_to_encoding): Expect a resultbuf argument and return the
13468         result directly as a pointer.
13469         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13470         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13471         freeing scaled_offsets if mem_iconveha failed.
13472         * lib/unicase/u-casexfrm.h (FUNC): Update.
13473         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13474         * lib/vasnprintf.c (VASNPRINTF): Update.
13475         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13476         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13477         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13478         * NEWS: Mention the change.
13479
13480 2009-04-26  Bruno Haible  <bruno@clisp.org>
13481
13482         Avoid test failures on AIX and OSF/1.
13483         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13484         malloc(0).
13485         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13486         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13487         Likewise.
13488         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13489         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13490         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13491         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13492         * doc/posix-functions/malloc.texi: Document the portability problem
13493         related to malloc(0).
13494
13495 2009-04-26  Bruno Haible  <bruno@clisp.org>
13496
13497         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13498         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13499         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13500
13501 2009-04-25  Bruno Haible  <bruno@clisp.org>
13502
13503         Avoid link error when creating a namespace clean library.
13504         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13505         as macro with arguments if already defined as an alias.
13506         * lib/signbitf.c (gl_signbitf): Don't undefine.
13507         * lib/signbitd.c (gl_signbitd): Don't undefine.
13508         * lib/signbitl.c (gl_signbitl): Don't undefine.
13509
13510 2009-04-25  Jim Meyering  <meyering@redhat.com>
13511
13512         vc-list-files: fix another quoting bug
13513         * build-aux/vc-list-files: Avoid sed backslash expansion
13514         of pathological directory names.
13515
13516 2009-04-25  Eric Blake  <ebb9@byu.net>
13517
13518         vc-list-files: fix shell quoting error
13519         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13520         timestamp.
13521
13522 2009-04-25  Jim Meyering  <meyering@redhat.com>
13523
13524         vc-list-files: restore lost functionality with subdir argument
13525         * build-aux/vc-list-files: When given a non-"." sub-directory
13526         argument, substitute the $dir/ prefix back onto each resulting name.
13527         Otherwise, coreutils' root_tests check would fail.
13528
13529 2009-04-24  Eric Blake  <ebb9@byu.net>
13530
13531         vc-list-files: ignore git symlinks
13532         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13533         than ls-files, to ignore git symlinks.
13534
13535         maint.mk: import improvements from m4
13536         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13537         (move_if_change): Delete unused macro.
13538         (news-date-check, vc-diff-check): Support VPATH builds.
13539         (announcement): Likewise.  Split --bootstrap-tools list...
13540         (boostrap-tools): ...into separate list, which can be overridden
13541         in cfg.mk.
13542         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13543         requiring dependency on useless-if-before-free module.
13544         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13545         Support VPATH builds.
13546
13547 2009-04-24  Jim Meyering  <meyering@redhat.com>
13548
13549         maint.mk: remove coreutils-specific rules and variables
13550         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13551         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13552         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13553
13554         maint.mk: remove obsolete rule
13555         * top/maint.mk (rel-check): Remove rule.
13556         (WGET, WGETFLAGS): Remove now-unused variables.
13557
13558 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13559
13560         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13561         consistency.
13562
13563         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13564         '$(PATH_SEPARATOR)' instead of ':'.
13565
13566 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13567
13568         * lib/getopt1.c (main): Use 'const' for static array.
13569
13570 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13571
13572         * top/maint.mk: Sync with coreutils.
13573         * NEWS: Explain incompatibilities.
13574
13575 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13576             Bruno Haible  <bruno@clisp.org>
13577
13578         Fix cross-compilation results.
13579         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13580         statement, as third argument of AC_TRY_RUN.
13581         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13582         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13583         Likewise.
13584         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13585         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13586         Likewise.
13587         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13589         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13590
13591 2009-04-20  Bruno Haible  <bruno@clisp.org>
13592
13593         Avoid test failure on mingw.
13594         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13595
13596 2009-04-20  Bruno Haible  <bruno@clisp.org>
13597
13598         Avoid compilation error on mingw.
13599         * modules/localename-tests (Depends-on): Add locale.
13600
13601 2009-04-19  Bruno Haible  <bruno@clisp.org>
13602
13603         Support for building a shared library on Windows platforms.
13604         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13605         (main): Test the presence of UNINORM_NFC here.
13606         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13607         (main): Test the presence of UNINORM_NFD here.
13608         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13609         (main): Test the presence of UNINORM_NFKC here.
13610         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13611         (main): Test the presence of UNINORM_NFKD here.
13612
13613 2009-04-19  Bruno Haible  <bruno@clisp.org>
13614
13615         Avoid a compiler warning.
13616         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13617         Change type of variable 'sequence'.
13618
13619 2009-04-19  Bruno Haible  <bruno@clisp.org>
13620
13621         * modules/configmake (Makefile.am): When the contents of configmake.h
13622         does not change, arrange to preserve its modification time.
13623
13624 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13625
13626         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13627         gettext domain.
13628
13629 2009-04-16  Jim Meyering  <meyering@redhat.com>
13630
13631         useless-if-before-free: improve conversion code
13632         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13633         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13634
13635 2009-04-14  Bruno Haible  <bruno@clisp.org>
13636
13637         * modules/fcntl (Depends-on): Add extensions.
13638         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
13639
13640 2009-04-12  Ben Pfaff  <blp@gnu.org>
13641
13642         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
13643         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
13644
13645 2009-03-20  Ben Pfaff  <blp@gnu.org>
13646
13647         Make rename replace existing destinations on Windows.
13648         * m4/rename.m4: Add test for Mingw.
13649         * lib/rename.c: Add rename replacement that uses MoveFileEx with
13650         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
13651         * doc/posix-functions/rename.texi: Document.
13652
13653 2009-04-10  Bruno Haible  <bruno@clisp.org>
13654
13655         New include file "iconveh.h".
13656         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13657         * lib/striconveh.h: Include it.
13658         (enum iconv_ilseq_handler): Remove definition.
13659         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13660         striconveh.h.
13661         * lib/striconveha.c: Include striconveh.h.
13662         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13663         * modules/striconveh (Files): Add lib/iconveh.h.
13664         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13665         lib/striconveh.h.
13666
13667 2009-04-10  Bruno Haible  <bruno@clisp.org>
13668
13669         * lib/uniconv.h: Update comment.
13670
13671 2009-04-10  Bruno Haible  <bruno@clisp.org>
13672
13673         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13674         always.
13675         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13676         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13677         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13678         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13679         "unistring-notinline.h", so that the function gets defined always.
13680         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13681         * lib/unistr/u8-uctomb.c: Likewise.
13682         * lib/unistr/u16-mbtouc.c: Likewise.
13683         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13684         * lib/unistr/u16-uctomb.c: Likewise.
13685         * lib/unistr/u32-mbtouc.c: Likewise.
13686         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13687         * lib/unistr/u32-uctomb.c: Likewise.
13688
13689 2009-04-10  Bruno Haible  <bruno@clisp.org>
13690
13691         Mark 'utime' obsolete.
13692         * modules/utime (Status, Notice): New sections.
13693         Suggested by Jim Meyering.
13694
13695         Fix cross-compile guess for utime test.
13696         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13697         autoconf.
13698         * doc/posix-functions/utime.texi: Give more precisions.
13699         Reported by Jan <ipif@ymail.com>.
13700
13701 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13702
13703         filevercmp: correct today's change
13704         * lib/filevercmp.c: Also handle coreutils' test inputs.
13705         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13706
13707         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13708         for reporting it.
13709         * lib/filevercmp.c: Special handle for "", "." and "..".
13710         * tests/test-filevercmp.c: Enlarge the set suite.
13711
13712 2009-04-07  Jim Meyering  <meyering@redhat.com>
13713
13714         useless-if-before-free: show how to remove braced useless free, too
13715         * build-aux/useless-if-before-free: still only in a comment, though.
13716
13717 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13718
13719         maint.mk: import changes to syntax-check macros from coreutils
13720         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13721         Use them in the relevant macros.
13722
13723 2009-04-06  Bruno Haible  <bruno@clisp.org>
13724
13725         Fix unportable use of bit-fields.
13726         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13727         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13728         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13729
13730 2009-04-06  Bruno Haible  <bruno@clisp.org>
13731
13732         Avoid test failures on AIX and OSF/1.
13733         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13734         that malloc(0) = NULL.
13735         * tests/unicase/test-u8-tolower.c (check): Likewise.
13736         * tests/unicase/test-u8-totitle.c (check): Likewise.
13737         * tests/unicase/test-u8-toupper.c (check): Likewise.
13738         * tests/unicase/test-u16-casefold.c (check): Likewise.
13739         * tests/unicase/test-u16-tolower.c (check): Likewise.
13740         * tests/unicase/test-u16-totitle.c (check): Likewise.
13741         * tests/unicase/test-u16-toupper.c (check): Likewise.
13742         * tests/unicase/test-u32-casefold.c (check): Likewise.
13743         * tests/unicase/test-u32-tolower.c (check): Likewise.
13744         * tests/unicase/test-u32-totitle.c (check): Likewise.
13745         * tests/unicase/test-u32-toupper.c (check): Likewise.
13746         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13747         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13748         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13749         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13750         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13751         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13752         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13753         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13754         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13755         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13756         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13757         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13758
13759 2009-04-05  Bruno Haible  <bruno@clisp.org>
13760
13761         Work around an autoconf limitation.
13762         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13763         comment line if it would be longer than 3 KB.
13764
13765 2009-04-05  Bruno Haible  <bruno@clisp.org>
13766
13767         Avoid test failure with libiconv-1.13.
13768         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13769         of the expected test results.
13770
13771 2009-04-05  Bruno Haible  <bruno@clisp.org>
13772
13773         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13774         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13775         that it should be installed.
13776
13777 2009-04-05  Bruno Haible  <bruno@clisp.org>
13778
13779         * gnulib-tool: New option --copy-file.
13780         (func_usage): Document it.
13781         (func_dest_tmpfilename): Moved out of func_import.
13782         (func_add_file, func_update_file): New functions, extracted from
13783         func_import.
13784         (func_import): Update.
13785
13786 2009-04-05  Karl Berry  <karl@gnu.org>
13787
13788         * README: prominently mention gnulib-tool.
13789         Rearrange sections so getting the code is near the top.
13790
13791 2009-04-05  Bruno Haible  <bruno@clisp.org>
13792
13793         * lib/unicase.h: Mention u*_cmp2.
13794         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13795         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13796         * lib/unicase/ulc-casecmp.c: Likewise.
13797         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13798         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13799         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13800         unistr/u8-cmp.
13801         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13802         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13803         unistr/u16-cmp.
13804         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13805         unistr/u32-cmp.
13806
13807         * lib/uninorm.h: Mention u*_cmp2.
13808         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13809         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13810         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13811         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13812         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13813         unistr/u8-cmp.
13814         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13815         unistr/u16-cmp.
13816         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13817         unistr/u32-cmp.
13818
13819         New module 'unistr/u32-cmp2'.
13820         * lib/unistr/u32-cmp2.c: New file.
13821         * modules/unistr/u32-cmp2: New file.
13822
13823         New module 'unistr/u16-cmp2'.
13824         * lib/unistr/u16-cmp2.c: New file.
13825         * modules/unistr/u16-cmp2: New file.
13826
13827         New module 'unistr/u8-cmp2'.
13828         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13829         * lib/unistr/u8-cmp2.c: New file.
13830         * lib/unistr/u-cmp2.h: New file.
13831         * modules/unistr/u8-cmp2: New file.
13832
13833 2009-04-05  Bruno Haible  <bruno@clisp.org>
13834
13835         * lib/unictype.h (uc_property_is_valid): New macro.
13836         * tests/unictype/test-pr_byname.c (main): Use it.
13837
13838         * lib/unistr.h: Doc fixes.
13839         * lib/uniconv.h: Doc fixes.
13840         * lib/unictype.h: Doc fixes.
13841
13842 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13843
13844         Port coreutils 7.2 to Solaris 8.
13845
13846         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13847         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13848         for Solaris 8.  This is a bit of a hack, as it means it's the
13849         caller's responsibility to add -lnsl if needed, but most likely it
13850         won't be needed since only getaddrinfo uses this and getaddrinfo
13851         isn't needed on Solaris 8.
13852
13853         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13854         problem to Solaris 8 encountered with coreutils 7.2, which
13855         resulted in a message "fnmatch.c:292: warning: passing argument 4
13856         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13857         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13858
13859 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13860
13861         * m4/ld-version-script.m4: Add FIXME comment.
13862
13863 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13864
13865         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13866         SOVERSION variable.
13867
13868 2009-04-02  Bruno Haible  <bruno@clisp.org>
13869
13870         * Makefile (info, html, dvi, pdf): Combine the rules.
13871         Suggested by Jim Meyering.
13872
13873 2009-04-01  Bruno Haible  <bruno@clisp.org>
13874
13875         * Makefile (info, html, dvi, pdf): New targets.
13876         Reported by Reuben Thomas <rrt@sc3d.org>.
13877
13878 2009-04-01  Bruno Haible  <bruno@clisp.org>
13879
13880         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13881         can be put into PATH.
13882         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13883
13884 2009-04-01  Bruno Haible  <bruno@clisp.org>
13885
13886         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13887
13888 2009-04-01  Bruno Haible  <bruno@clisp.org>
13889
13890         Rename module 'visibility'.
13891         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13892         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13893         * doc/gnulib.texi: Update.
13894         * MODULES.html.sh (Misc): Update.
13895         * NEWS: Mention the change.
13896
13897 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13898
13899         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13900         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13901         Eric Blake <ebb9@byu.net> for review.
13902         * MODULES.html.sh: Add lib-msvc-compat.
13903         * doc/gnulib.texi: Link to new section.
13904         * m4/ld-output-def.m4: New file.
13905         * doc/ld-output-def.texi: New file.
13906
13907 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13908
13909         Rename ld-version-script to lib-symbol-versions.  Suggested by
13910         Bruno Haible <bruno@clisp.org>.
13911         * modules/ld-version-script: Renamed to lib-symbol-versions.
13912         * doc/ld-version-script.texi: Fix module name.
13913         * MODULES.html.sh: Add lib-symbol-versions.
13914
13915 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13916
13917         * modules/u64-tests: New file.
13918         * tests/test-u64.c: New file.
13919
13920 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13921
13922         * MODULES.html.sh: Mention u64.
13923         * modules/u64: New module.
13924         * modules/crypto/sha512: Depend on u64 module instead of providing
13925         u64.h.
13926
13927 2009-03-27  Eric Blake  <ebb9@byu.net>
13928
13929         test-strerror: make debugging EAI_SYSTEM easier
13930         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13931         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13932         failure was EAI_SYSTEM.
13933
13934 2009-03-25  Bruno Haible  <bruno@clisp.org>
13935
13936         Fix a problem with --enable-relocatable on Solaris 7.
13937         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13938         since 2008-02-24.
13939
13940 2009-03-25  Eric Blake  <ebb9@byu.net>
13941
13942         test-sockets: avoid gcc warning
13943         * tests/test-sockets.c (main): Silence compiler warning.
13944
13945 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13946
13947         New modules nproc, pthread, contributed by Glen Lenker.
13948
13949         * MODULES.html.sh: Add pthread, nproc.
13950         * lib/nproc.c: New file.
13951         * lib/nproc.h: New file.
13952         * lib/pthread.in.h: New file.
13953         * m4/pthread.m4: New file.
13954         * modules/nproc: New file.
13955         * modules/pthread: New file.
13956
13957 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13958
13959         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13960         New variable.
13961
13962 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13963
13964         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13965         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13966         * tests/test-filevercmp.c: Add tests for backup suffixes.
13967
13968 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13969
13970         * modules/stdlib (Depends-on): Add stdint, needed when defining
13971         struct random_data on, for example, HP-UX 10.20.  Reported by
13972         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13973
13974 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13975
13976         * lib/readline.c (readline): Call fflush on stdout after printing
13977         prompt.
13978
13979 2009-03-20  Bruno Haible  <bruno@clisp.org>
13980
13981         Remove dependency from 'close' module to -lws2_32 on native Windows.
13982         * lib/close-hook.h: New file.
13983         * lib/close-hook.c: New file.
13984         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13985         w32sock.h.
13986         (_gl_close_fd_maybe_socket): Remove function.
13987         (rpl_close): Invoke execute_all_close_hooks instead of
13988         _gl_close_fd_maybe_socket.
13989         * lib/sockets.c: Include close-hook.h, w32sock.h.
13990         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13991         (close_sockets_hook): New variable.
13992         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13993         (gl_sockets_cleanup): Unregister it.
13994         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13995         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13996         * modules/close-hook: New file.
13997         * modules/close (Files): Remove lib/w32sock.h.
13998         (Depends-on): Add close-hook.
13999         (Link): Remove section.
14000         * modules/sockets (Files): Add lib/w32sock.h.
14001         (Depends-on): Add close-hook.
14002         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14003         invocation.
14004         * NEWS: Mention that LIB_CLOSE is gone.
14005
14006 2009-03-23  Eric Blake  <ebb9@byu.net>
14007
14008         signal-tests: test previous patch
14009         * tests/test-signal.c: New file.
14010         * modules/signal-tests: Likewise.
14011
14012         signal.h: always support 'volatile sig_atomic_t'
14013         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14014         (gl_SIGNAL_H_DEFAULTS): Add a default.
14015         * modules/signal (Makefile.am): Substitute if needed.
14016         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14017         users can blindly add volatile.
14018         * doc/posix-headers/signal.texi (signal.h): Document it.
14019         Reported by Matthew Woehlke.
14020
14021 2009-03-23  Jim Meyering  <meyering@redhat.com>
14022
14023         pathmax: PATH_MAX: use pathconf only when available
14024         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14025         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14026         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14027         This avoids a link failure in a PSP cross-compilation environment
14028         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14029
14030         * lib/vasnprintf.c (divide): Fix typo in comment.
14031
14032 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14033
14034         * gnulib-tool (func_filter_filelist): Fix comment.
14035
14036 2009-03-20  Bruno Haible  <bruno@clisp.org>
14037
14038         Make sockets.h self-contained.
14039         * lib/sockets.c: Include sockets.h first.
14040         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14041
14042 2009-03-19  Eric Blake  <ebb9@byu.net>
14043
14044         doc: mention more functions added in cygwin 1.7.0
14045         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14046         addition.
14047         * doc/posix-functions/log2f.texi: Likewise.
14048
14049 2009-03-19  Jim Meyering  <meyering@redhat.com>
14050
14051         fsusage: avoid syntax error due to statement-before-declaration
14052         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14053         after all declarations.  Reported by Matthew Woehlke in
14054         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14055
14056 2009-03-18  Eric Blake  <ebb9@byu.net>
14057
14058         build-aux/compile: sync from automake
14059         * build-aux/compile: New file, from automake.
14060         * config/srclist.txt: Mention build-aux/compile.
14061
14062 2009-03-17  Bruno Haible  <bruno@clisp.org>
14063
14064         * lib/git-merge-changelog.c: Fix typo in comment.
14065         Reported by Reuben Thomas <rrt@sc3d.org>.
14066
14067 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14068
14069         * m4/regex.m4: update and improve help for
14070         --without-included-regex.
14071
14072 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14073
14074         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14075         failure on missing include files.
14076
14077 2009-03-17  Eric Blake  <ebb9@byu.net>
14078
14079         doc: mention more functions added in cygwin 1.7.0
14080         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14081         addition.
14082         * doc/posix-functions/fwscanf.texi: Likewise.
14083         * doc/posix-functions/swprintf.texi: Likewise.
14084         * doc/posix-functions/swscanf.texi: Likewise.
14085         * doc/posix-functions/vfwprintf.texi: Likewise.
14086         * doc/posix-functions/vfwscanf.texi: Likewise.
14087         * doc/posix-functions/vswprintf.texi: Likewise.
14088         * doc/posix-functions/vswscanf.texi: Likewise.
14089         * doc/posix-functions/vwprintf.texi: Likewise.
14090         * doc/posix-functions/vwscanf.texi: Likewise.
14091         * doc/posix-functions/wcscasecmp.texi: Likewise.
14092         * doc/posix-functions/wcsdup.texi: Likewise.
14093         * doc/posix-functions/wcsftime.texi: Likewise.
14094         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14095         * doc/posix-functions/wprintf.texi: Likewise.
14096         * doc/posix-functions/wscanf.texi: Likewise.
14097         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14098
14099 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14100
14101         maint.mk: really add $(AM_MAKEFLAGS)
14102         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14103         was inadvertently omitted in the last commit.
14104         Spotted by Bruno Haible.
14105
14106         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14107         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14108         $(AM_MAKEFLAGS)' rather than plain `make'.
14109
14110         gnulib-tool: execute $MAKE not make
14111         * gnulib-tool: Default $MAKE to 'make'.
14112         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14113         than make.  Initialize $MAKE in the do-autobuild script.
14114
14115         gnulib-tool: use $MAKE not make in generated files
14116         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14117         make, in generated files.  Initialize $MAKE in the do-autobuild
14118         script.
14119
14120         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14121
14122         GNUmakefile: disable parallelism only for multiple, recursive targets
14123         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14124         additions in the Makefile.
14125         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14126         by Automake.
14127         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14128         are listed on the command line and at least one of them is
14129         listed in $(ALL_RECURSIVE_TARGETS).
14130
14131 2009-03-14  Bruno Haible  <bruno@clisp.org>
14132
14133         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14134         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14135         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14136         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14137         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14138         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14139         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14140         unistr/u8-uctomb.
14141         * modules/unistr/u8-strchr (Depends-on): Likewise.
14142         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14143         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14144         unistr/u16-uctomb.
14145         * modules/unistr/u16-strchr (Depends-on): Likewise.
14146         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14147
14148 2009-03-12  Bruno Haible  <bruno@clisp.org>
14149
14150         Work around select() bug on Interix 3.5.
14151         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14152         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14153         * m4/select.m4: New file.
14154         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14155         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14156         * modules/select (Files): Add m4/select.m4.
14157         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14158         * modules/nanosleep (Depends-on): Add select.
14159         * modules/poll (Depends-on): Likewise.
14160         * doc/posix-functions/select.texi: Mention the Interix bug.
14161         Reported by Markus Duft <mduft@gentoo.org>.
14162
14163         * lib/select.c: Renamed from lib/winsock-select.c.
14164         * modules/select (Files): Add lib/select.c, remove
14165         lib/winsock-select.c.
14166         (configure.ac): Update.
14167
14168 2009-03-12  Jim Meyering  <meyering@redhat.com>
14169
14170         avoid gcc warnings about unused macro definitions
14171         * lib/readtokens.c (STREQ): Remove unused definition.
14172         * lib/xmalloc.c (SIZE_MAX): Likewise.
14173         * lib/openat-die.c (N_): Likewise.
14174         * lib/mountlist.c (SIZE_MAX): Remove definition.
14175         Instead, include <stdint.h>.
14176         * lib/readutmp.c: Likewise.
14177         * modules/readutmp (Depends-on): Add stdint.
14178         * modules/mountlist (Depends-on): Add stdint.
14179         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14180
14181 2009-03-10  Bruno Haible  <bruno@clisp.org>
14182
14183         Tests for module 'mbmemcasecoll'.
14184         * modules/mbmemcasecoll-tests: New file.
14185         * tests/test-mbmemcasecoll1.sh: New file.
14186         * tests/test-mbmemcasecoll2.sh: New file.
14187         * tests/test-mbmemcasecoll3.sh: New file.
14188         * tests/test-mbmemcasecoll.c: New file.
14189
14190         New module 'mbmemcasecoll'.
14191         * lib/mbmemcasecoll.h: New file.
14192         * lib/mbmemcasecoll.c: New file.
14193         * modules/mbmemcasecoll: New file.
14194
14195         * tests/test-mbmemcasecmp.h: New file, extracted from
14196         tests/test-mbmemcasecmp.c.
14197         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14198         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14199         (main): Update.
14200         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14201
14202 2009-03-09  Bruno Haible  <bruno@clisp.org>
14203
14204         Tests for module 'mbmemcasecmp'.
14205         * modules/mbmemcasecmp-tests: New file.
14206         * tests/test-mbmemcasecmp1.sh: New file.
14207         * tests/test-mbmemcasecmp2.sh: New file.
14208         * tests/test-mbmemcasecmp3.sh: New file.
14209         * tests/test-mbmemcasecmp.c: New file.
14210
14211         New module 'mbmemcasecmp'.
14212         * lib/mbmemcasecmp.h: New file.
14213         * lib/mbmemcasecmp.c: New file.
14214         * modules/mbmemcasecmp: New file.
14215
14216 2009-03-09  Bruno Haible  <bruno@clisp.org>
14217
14218         Tests for module 'unicase/ulc-casecoll'.
14219         * modules/unicase/ulc-casecoll-tests: New file.
14220         * tests/unicase/test-ulc-casecoll1.sh: New file.
14221         * tests/unicase/test-ulc-casecoll2.sh: New file.
14222         * tests/unicase/test-ulc-casecoll.c: New file.
14223
14224         New module 'unicase/ulc-casecoll'.
14225         * lib/unicase.h (ulc_casecoll): New declaration.
14226         * lib/unicase/ulc-casecoll.c: New file.
14227         * modules/unicase/ulc-casecoll: New file.
14228
14229         New module 'unicase/ulc-casexfrm'.
14230         * lib/unicase.h (ulc_casexfrm): New declaration.
14231         * lib/unicase/ulc-casexfrm.c: New file.
14232         * modules/unicase/ulc-casexfrm: New file.
14233
14234 2009-03-09  Bruno Haible  <bruno@clisp.org>
14235
14236         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14237         invocations.
14238
14239         * m4/mbscasecmp.m4: Remove file.
14240         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14241         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14242
14243         * m4/mbscasestr.m4: Remove file.
14244         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14245         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14246
14247         * m4/mbschr.m4: Remove file.
14248         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14249         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14250
14251         * m4/mbscspn.m4: Remove file.
14252         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14253         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14254
14255         * m4/mbslen.m4: Remove file.
14256         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14257         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14258
14259         * m4/mbsncasecmp.m4: Remove file.
14260         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14261         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14262
14263         * m4/mbsnlen.m4: Remove file.
14264         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14265         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14266
14267         * m4/mbspbrk.m4: Remove file.
14268         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14269         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14270
14271         * m4/mbspcasecmp.m4: Remove file.
14272         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14273         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14274
14275         * m4/mbsrchr.m4: Remove file.
14276         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14277         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14278
14279         * m4/mbssep.m4: Remove file.
14280         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14281         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14282
14283         * m4/mbsspn.m4: Remove file.
14284         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14285         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14286
14287         * m4/mbsstr.m4: Remove file.
14288         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14289         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14290
14291         * m4/mbstok_r.m4: Remove file.
14292         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14293         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14294
14295         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14296
14297         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14298         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14299
14300         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14301
14302 2009-03-08  Bruno Haible  <bruno@clisp.org>
14303
14304         Tests for module 'unicase/ulc-casecmp'.
14305         * modules/unicase/ulc-casecmp-tests: New file.
14306         * tests/unicase/test-ulc-casecmp1.sh: New file.
14307         * tests/unicase/test-ulc-casecmp2.sh: New file.
14308         * tests/unicase/test-ulc-casecmp.c: New file.
14309
14310         New module 'unicase/ulc-casecmp'.
14311         * lib/unicase.h (ulc_casecmp): New declaration.
14312         * lib/unicase/ulc-casecmp.c: New file.
14313         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14314         'const SRC_UNIT *'.
14315         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14316         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14317         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14318         * modules/unicase/ulc-casecmp: New file.
14319
14320         Tests for module 'unicase/u32-is-cased'.
14321         * modules/unicase/u32-is-cased-tests: New file.
14322         * tests/unicase/test-u32-is-cased.c: New file.
14323
14324         Tests for module 'unicase/u16-is-cased'.
14325         * modules/unicase/u16-is-cased-tests: New file.
14326         * tests/unicase/test-u16-is-cased.c: New file.
14327
14328         Tests for module 'unicase/u8-is-cased'.
14329         * modules/unicase/u8-is-cased-tests: New file.
14330         * tests/unicase/test-u8-is-cased.c: New file.
14331         * tests/unicase/test-is-cased.h: New file.
14332
14333         New module 'unicase/u32-is-cased'.
14334         * lib/unicase/u32-is-cased.c: New file.
14335         * modules/unicase/u32-is-cased: New file.
14336
14337         New module 'unicase/u16-is-cased'.
14338         * lib/unicase/u16-is-cased.c: New file.
14339         * modules/unicase/u16-is-cased: New file.
14340
14341         New module 'unicase/u8-is-cased'.
14342         * lib/unicase/u8-is-cased.c: New file.
14343         * lib/unicase/u-is-cased.h: New file.
14344         * modules/unicase/u8-is-cased: New file.
14345
14346         Tests for module 'unicase/u32-is-casefolded'.
14347         * modules/unicase/u32-is-casefolded-tests: New file.
14348         * tests/unicase/test-u32-is-casefolded.c: New file.
14349
14350         Tests for module 'unicase/u16-is-casefolded'.
14351         * modules/unicase/u16-is-casefolded-tests: New file.
14352         * tests/unicase/test-u16-is-casefolded.c: New file.
14353
14354         Tests for module 'unicase/u8-is-casefolded'.
14355         * modules/unicase/u8-is-casefolded-tests: New file.
14356         * tests/unicase/test-u8-is-casefolded.c: New file.
14357         * tests/unicase/test-is-casefolded.h: New file.
14358
14359         New module 'unicase/u32-is-casefolded'.
14360         * lib/unicase/u32-is-casefolded.c: New file.
14361         * modules/unicase/u32-is-casefolded: New file.
14362
14363         New module 'unicase/u16-is-casefolded'.
14364         * lib/unicase/u16-is-casefolded.c: New file.
14365         * modules/unicase/u16-is-casefolded: New file.
14366
14367         New module 'unicase/u8-is-casefolded'.
14368         * lib/unicase/u8-is-casefolded.c: New file.
14369         * modules/unicase/u8-is-casefolded: New file.
14370
14371         Tests for module 'unicase/u32-is-titlecase'.
14372         * modules/unicase/u32-is-titlecase-tests: New file.
14373         * tests/unicase/test-u32-is-titlecase.c: New file.
14374
14375         Tests for module 'unicase/u16-is-titlecase'.
14376         * modules/unicase/u16-is-titlecase-tests: New file.
14377         * tests/unicase/test-u16-is-titlecase.c: New file.
14378
14379         Tests for module 'unicase/u8-is-titlecase'.
14380         * modules/unicase/u8-is-titlecase-tests: New file.
14381         * tests/unicase/test-u8-is-titlecase.c: New file.
14382         * tests/unicase/test-is-titlecase.h: New file.
14383
14384         New module 'unicase/u32-is-titlecase'.
14385         * lib/unicase/u32-is-titlecase.c: New file.
14386         * modules/unicase/u32-is-titlecase: New file.
14387
14388         New module 'unicase/u16-is-titlecase'.
14389         * lib/unicase/u16-is-titlecase.c: New file.
14390         * modules/unicase/u16-is-titlecase: New file.
14391
14392         New module 'unicase/u8-is-titlecase'.
14393         * lib/unicase/u8-is-titlecase.c: New file.
14394         * modules/unicase/u8-is-titlecase: New file.
14395
14396         Tests for module 'unicase/u32-is-lowercase'.
14397         * modules/unicase/u32-is-lowercase-tests: New file.
14398         * tests/unicase/test-u32-is-lowercase.c: New file.
14399
14400         Tests for module 'unicase/u16-is-lowercase'.
14401         * modules/unicase/u16-is-lowercase-tests: New file.
14402         * tests/unicase/test-u16-is-lowercase.c: New file.
14403
14404         Tests for module 'unicase/u8-is-lowercase'.
14405         * modules/unicase/u8-is-lowercase-tests: New file.
14406         * tests/unicase/test-u8-is-lowercase.c: New file.
14407         * tests/unicase/test-is-lowercase.h: New file.
14408
14409         New module 'unicase/u32-is-lowercase'.
14410         * lib/unicase/u32-is-lowercase.c: New file.
14411         * modules/unicase/u32-is-lowercase: New file.
14412
14413         New module 'unicase/u16-is-lowercase'.
14414         * lib/unicase/u16-is-lowercase.c: New file.
14415         * modules/unicase/u16-is-lowercase: New file.
14416
14417         New module 'unicase/u8-is-lowercase'.
14418         * lib/unicase/u8-is-lowercase.c: New file.
14419         * modules/unicase/u8-is-lowercase: New file.
14420
14421         Tests for module 'unicase/u32-is-uppercase'.
14422         * modules/unicase/u32-is-uppercase-tests: New file.
14423         * tests/unicase/test-u32-is-uppercase.c: New file.
14424
14425         Tests for module 'unicase/u16-is-uppercase'.
14426         * modules/unicase/u16-is-uppercase-tests: New file.
14427         * tests/unicase/test-u16-is-uppercase.c: New file.
14428
14429         Tests for module 'unicase/u8-is-uppercase'.
14430         * modules/unicase/u8-is-uppercase-tests: New file.
14431         * tests/unicase/test-u8-is-uppercase.c: New file.
14432         * tests/unicase/test-is-uppercase.h: New file.
14433
14434         New module 'unicase/u32-is-uppercase'.
14435         * lib/unicase/u32-is-uppercase.c: New file.
14436         * modules/unicase/u32-is-uppercase: New file.
14437
14438         New module 'unicase/u16-is-uppercase'.
14439         * lib/unicase/u16-is-uppercase.c: New file.
14440         * modules/unicase/u16-is-uppercase: New file.
14441
14442         New module 'unicase/u8-is-uppercase'.
14443         * lib/unicase/u8-is-uppercase.c: New file.
14444         * modules/unicase/u8-is-uppercase: New file.
14445
14446         New module 'unicase/u32-is-invariant'.
14447         * lib/unicase/u32-is-invariant.c: New file.
14448         * modules/unicase/u32-is-invariant: New file.
14449
14450         New module 'unicase/u16-is-invariant'.
14451         * lib/unicase/u16-is-invariant.c: New file.
14452         * modules/unicase/u16-is-invariant: New file.
14453
14454         New module 'unicase/u8-is-invariant'.
14455         * lib/unicase/u8-is-invariant.c: New file.
14456         * lib/unicase/invariant.h: New file.
14457         * lib/unicase/u-is-invariant.h: New file.
14458         * modules/unicase/u8-is-invariant: New file.
14459
14460         Tests for module 'unicase/u32-casecoll'.
14461         * modules/unicase/u32-casecoll-tests: New file.
14462         * tests/unicase/test-u32-casecoll.c: New file.
14463
14464         Tests for module 'unicase/u16-casecoll'.
14465         * modules/unicase/u16-casecoll-tests: New file.
14466         * tests/unicase/test-u16-casecoll.c: New file.
14467
14468         Tests for module 'unicase/u8-casecoll'.
14469         * modules/unicase/u8-casecoll-tests: New file.
14470         * tests/unicase/test-u8-casecoll.c: New file.
14471
14472         New module 'unicase/u32-casecoll'.
14473         * lib/unicase/u32-casecoll.c: New file.
14474         * modules/unicase/u32-casecoll: New file.
14475
14476         New module 'unicase/u16-casecoll'.
14477         * lib/unicase/u16-casecoll.c: New file.
14478         * modules/unicase/u16-casecoll: New file.
14479
14480         New module 'unicase/u8-casecoll'.
14481         * lib/unicase/u8-casecoll.c: New file.
14482         * lib/unicase/u-casecoll.h: New file.
14483         * modules/unicase/u8-casecoll: New file.
14484
14485         New module 'unicase/u32-casexfrm'.
14486         * lib/unicase/u32-casexfrm.c: New file.
14487         * modules/unicase/u32-casexfrm: New file.
14488
14489         New module 'unicase/u16-casexfrm'.
14490         * lib/unicase/u16-casexfrm.c: New file.
14491         * modules/unicase/u16-casexfrm: New file.
14492
14493         New module 'unicase/u8-casexfrm'.
14494         * lib/unicase/u8-casexfrm.c: New file.
14495         * lib/unicase/u-casexfrm.h: New file.
14496         * modules/unicase/u8-casexfrm: New file.
14497
14498         Tests for module 'unicase/u32-casecmp'.
14499         * modules/unicase/u32-casecmp-tests: New file.
14500         * tests/unicase/test-u32-casecmp.c: New file.
14501
14502         Tests for module 'unicase/u16-casecmp'.
14503         * modules/unicase/u16-casecmp-tests: New file.
14504         * tests/unicase/test-u16-casecmp.c: New file.
14505
14506         Tests for module 'unicase/u8-casecmp'.
14507         * modules/unicase/u8-casecmp-tests: New file.
14508         * tests/unicase/test-u8-casecmp.c: New file.
14509         * tests/unicase/test-casecmp.h: New file.
14510
14511         New module 'unicase/u32-casecmp'.
14512         * lib/unicase/u32-casecmp.c: New file.
14513         * modules/unicase/u32-casecmp: New file.
14514
14515         New module 'unicase/u16-casecmp'.
14516         * lib/unicase/u16-casecmp.c: New file.
14517         * modules/unicase/u16-casecmp: New file.
14518
14519         New module 'unicase/u8-casecmp'.
14520         * lib/unicase/u8-casecmp.c: New file.
14521         * lib/unicase/u-casecmp.h: New file.
14522         * modules/unicase/u8-casecmp: New file.
14523
14524         Tests for module 'unicase/u32-casefold'.
14525         * modules/unicase/u32-casefold-tests: New file.
14526         * tests/unicase/test-u32-casefold.c: New file.
14527
14528         Tests for module 'unicase/u16-casefold'.
14529         * modules/unicase/u16-casefold-tests: New file.
14530         * tests/unicase/test-u16-casefold.c: New file.
14531
14532         Tests for module 'unicase/u8-casefold'.
14533         * modules/unicase/u8-casefold-tests: New file.
14534         * tests/unicase/test-u8-casefold.c: New file.
14535
14536         New module 'unicase/u32-casefold'.
14537         * lib/unicase/u32-casefold.c: New file.
14538         * modules/unicase/u32-casefold: New file.
14539
14540         New module 'unicase/u16-casefold'.
14541         * lib/unicase/u16-casefold.c: New file.
14542         * modules/unicase/u16-casefold: New file.
14543
14544         New module 'unicase/u8-casefold'.
14545         * lib/unicase/u8-casefold.c: New file.
14546         * lib/unicase/u-casefold.h: New file.
14547         * modules/unicase/u8-casefold: New file.
14548
14549         New module 'unicase/tocasefold'.
14550         * lib/unicase/casefold.h: New file.
14551         * lib/unicase/tocasefold.c: New file.
14552         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14553         * modules/unicase/tocasefold: New file.
14554
14555         Tests for module 'unicase/u32-totitle'.
14556         * modules/unicase/u32-totitle-tests: New file.
14557         * tests/unicase/test-u32-totitle.c: New file.
14558
14559         Tests for module 'unicase/u16-totitle'.
14560         * modules/unicase/u16-totitle-tests: New file.
14561         * tests/unicase/test-u16-totitle.c: New file.
14562
14563         Tests for module 'unicase/u8-totitle'.
14564         * modules/unicase/u8-totitle-tests: New file.
14565         * tests/unicase/test-u8-totitle.c: New file.
14566
14567         New module 'unicase/u32-totitle'.
14568         * lib/unicase/u32-totitle.c: New file.
14569         * modules/unicase/u32-totitle: New file.
14570
14571         New module 'unicase/u16-totitle'.
14572         * lib/unicase/u16-totitle.c: New file.
14573         * modules/unicase/u16-totitle: New file.
14574
14575         New module 'unicase/u8-totitle'.
14576         * lib/unicase/u8-totitle.c: New file.
14577         * lib/unicase/u-totitle.h: New file.
14578         * modules/unicase/u8-totitle: New file.
14579
14580         Tests for module 'unicase/u32-tolower'.
14581         * modules/unicase/u32-tolower-tests: New file.
14582         * tests/unicase/test-u32-tolower.c: New file.
14583
14584         Tests for module 'unicase/u16-tolower'.
14585         * modules/unicase/u16-tolower-tests: New file.
14586         * tests/unicase/test-u16-tolower.c: New file.
14587
14588         Tests for module 'unicase/u8-tolower'.
14589         * modules/unicase/u8-tolower-tests: New file.
14590         * tests/unicase/test-u8-tolower.c: New file.
14591
14592         New module 'unicase/u32-tolower'.
14593         * lib/unicase/u32-tolower.c: New file.
14594         * modules/unicase/u32-tolower: New file.
14595
14596         New module 'unicase/u16-tolower'.
14597         * lib/unicase/u16-tolower.c: New file.
14598         * modules/unicase/u16-tolower: New file.
14599
14600         New module 'unicase/u8-tolower'.
14601         * lib/unicase/u8-tolower.c: New file.
14602         * modules/unicase/u8-tolower: New file.
14603
14604         Tests for module 'unicase/u32-toupper'.
14605         * modules/unicase/u32-toupper-tests: New file.
14606         * tests/unicase/test-u32-toupper.c: New file.
14607
14608         Tests for module 'unicase/u16-toupper'.
14609         * modules/unicase/u16-toupper-tests: New file.
14610         * tests/unicase/test-u16-toupper.c: New file.
14611
14612         Tests for module 'unicase/u8-toupper'.
14613         * modules/unicase/u8-toupper-tests: New file.
14614         * tests/unicase/test-u8-toupper.c: New file.
14615
14616         New module 'unicase/u32-toupper'.
14617         * lib/unicase/u32-toupper.c: New file.
14618         * modules/unicase/u32-toupper: New file.
14619
14620         New module 'unicase/u16-toupper'.
14621         * lib/unicase/u16-toupper.c: New file.
14622         * modules/unicase/u16-toupper: New file.
14623
14624         New module 'unicase/u8-toupper'.
14625         * lib/unicase/u8-toupper.c: New file.
14626         * modules/unicase/u8-toupper: New file.
14627
14628         New module 'unicase/u32-casemap'.
14629         * lib/unicase/u32-casemap.c: New file.
14630         * modules/unicase/u32-casemap: New file.
14631
14632         New module 'unicase/u16-casemap'.
14633         * lib/unicase/u16-casemap.c: New file.
14634         * modules/unicase/u16-casemap: New file.
14635
14636         New module 'unicase/u8-casemap'.
14637         * lib/unicase/unicasemap.h: New file.
14638         * lib/unicase/u8-casemap.c: New file.
14639         * lib/unicase/u-casemap.h: New file.
14640         * modules/unicase/u8-casemap: New file.
14641
14642         New module 'unicase/special-casing'.
14643         * lib/unicase/special-casing.h: New file.
14644         * lib/unicase/special-casing.c: New file.
14645         * lib/unicase/special-casing-table.gperf: New file, generated by
14646         gen-uni-tables.c.
14647         * modules/unicase/special-casing: New file.
14648
14649         Tests for module 'unicase/locale-language'.
14650         * modules/unicase/locale-language-tests: New file.
14651         * tests/unicase/test-locale-language.sh: New file.
14652         * tests/unicase/test-locale-language.c: New file.
14653
14654         New module 'unicase/locale-language'.
14655         * lib/unicase/locale-language.c: New file.
14656         * lib/unicase/locale-languages.gperf: New file.
14657         * modules/unicase/locale-language: New file.
14658
14659         Generate more tables for case conversion and case folding.
14660         * lib/gen-uni-tables.c (SCC_*): New enum items.
14661         (struct special_casing_rule): New type.
14662         (casing_rules, num_casing_rules, allocated_casing_rules): New
14663         variables.
14664         (add_casing_rule, fill_casing_rules): New functions.
14665         (struct casefold_rule): New type.
14666         (casefolding_rules, num_casefolding_rules,
14667         allocated_casefolding_rules): New variables.
14668         (fill_casefolding_rules): New function.
14669         (unicode_casefold): New variable.
14670         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14671         sort_casing_rules, output_casing_rules): New functions.
14672         (main): Accept to more arguments: SpecialCasing.txt and
14673         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14674         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14675         Output mapping for casefolding.
14676
14677         * lib/unicase.h: Include stdbool.h, uninorm.h.
14678         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14679         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14680         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14681         arguments.
14682         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14683         resultp arguments.
14684         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14685         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14686         resultp arguments.
14687         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14688         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14689         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14690         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14691         declarations.
14692         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14693
14694 2009-03-08  Bruno Haible  <bruno@clisp.org>
14695
14696         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14697         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14698         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14699         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14700
14701 2009-03-07  Bruno Haible  <bruno@clisp.org>
14702
14703         Adjust u*_normcmp, u*_normcoll API.
14704         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14705         u16_normcoll, u32_normcoll): Change failure conventions.
14706         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14707         errno and return -1.
14708         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14709
14710 2009-03-07  Bruno Haible  <bruno@clisp.org>
14711
14712         Tests for module 'uninorm/u32-normcoll'.
14713         * modules/uninorm/u32-normcoll-tests: New file.
14714         * tests/uninorm/test-u32-normcoll.c: New file.
14715
14716         Tests for module 'uninorm/u16-normcoll'.
14717         * modules/uninorm/u16-normcoll-tests: New file.
14718         * tests/uninorm/test-u16-normcoll.c: New file.
14719
14720         Tests for module 'uninorm/u8-normcoll'.
14721         * modules/uninorm/u8-normcoll-tests: New file.
14722         * tests/uninorm/test-u8-normcoll.c: New file.
14723
14724 2009-03-07  Bruno Haible  <bruno@clisp.org>
14725
14726         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14727         tests/uninorm/test-u32-normcmp.c.
14728         * tests/uninorm/test-u32-normcmp.c: Include it.
14729         (test_nonascii): New function, extracted from main. Add some more
14730         tests.
14731         (main): Invoke test_ascii and test_nonascii.
14732         * modules/uninorm/u32-normcmp-tests (Files): Add
14733         tests/uninorm/test-u32-normcmp.h.
14734         (Depends-on): Remove uninorm/u32-normcmp.
14735
14736         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14737         tests/uninorm/test-u16-normcmp.c.
14738         * tests/uninorm/test-u16-normcmp.c: Include it.
14739         (test_nonascii): New function, extracted from main. Add some more
14740         tests.
14741         (main): Invoke test_ascii and test_nonascii.
14742         * modules/uninorm/u16-normcmp-tests (Files): Add
14743         tests/uninorm/test-u16-normcmp.h.
14744         (Depends-on): Remove uninorm/u16-normcmp.
14745
14746         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14747         tests/uninorm/test-u8-normcmp.c.
14748         * tests/uninorm/test-u8-normcmp.c: Include it.
14749         (test_nonascii): New function, extracted from main. Add some more
14750         tests.
14751         (main): Invoke test_ascii and test_nonascii.
14752         * modules/uninorm/u8-normcmp-tests (Files): Add
14753         tests/uninorm/test-u8-normcmp.h.
14754         (Depends-on): Remove uninorm/u8-normcmp.
14755
14756 2009-03-07  Bruno Haible  <bruno@clisp.org>
14757
14758         New module 'uninorm/u32-normcoll'.
14759         * lib/uninorm/u32-normcoll.c: New file.
14760         * modules/uninorm/u32-normcoll: New file.
14761
14762         New module 'uninorm/u16-normcoll'.
14763         * lib/uninorm/u16-normcoll.c: New file.
14764         * modules/uninorm/u16-normcoll: New file.
14765
14766         New module 'uninorm/u8-normcoll'.
14767         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14768         declarations.
14769         * lib/uninorm/u8-normcoll.c: New file.
14770         * lib/uninorm/u-normcoll.h: New file.
14771         * modules/uninorm/u8-normcoll: New file.
14772
14773         New module 'uninorm/u32-normxfrm'.
14774         * lib/uninorm/u32-normxfrm.c: New file.
14775         * modules/uninorm/u32-normxfrm: New file.
14776
14777         New module 'uninorm/u16-normxfrm'.
14778         * lib/uninorm/u16-normxfrm.c: New file.
14779         * modules/uninorm/u16-normxfrm: New file.
14780
14781         New module 'uninorm/u8-normxfrm'.
14782         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14783         declarations.
14784         * lib/uninorm/u8-normxfrm.c: New file.
14785         * lib/uninorm/u-normxfrm.h: New file.
14786         * modules/uninorm/u8-normxfrm: New file.
14787
14788 2009-03-07  Bruno Haible  <bruno@clisp.org>
14789
14790         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14791         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14792         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14793
14794 2009-03-07  Bruno Haible  <bruno@clisp.org>
14795
14796         New module 'memxfrm'.
14797         * lib/memxfrm.h: New file.
14798         * lib/memxfrm.c: New file.
14799         * modules/memxfrm: New file.
14800
14801 2009-03-07  Bruno Haible  <bruno@clisp.org>
14802
14803         New module 'memcmp2'.
14804         * lib/memcmp2.h: New file.
14805         * lib/memcmp2.c: New file.
14806         * modules/memcmp2: New file.
14807
14808 2009-03-07  Bruno Haible  <bruno@clisp.org>
14809
14810         Tests for module 'uninorm/decomposing-form'.
14811         * modules/uninorm/decomposing-form-tests: New file.
14812         * tests/uninorm/test-decomposing-form.c: New file.
14813
14814         New module 'uninorm/decomposing-form'.
14815         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14816         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14817         Add 'decomposing_variant' field.
14818         * lib/uninorm/decomposing-form.c: New file.
14819         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14820         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14821         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14822         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14823         * modules/uninorm/decomposing-form: New file.
14824         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14825         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14826
14827 2009-03-07  Bruno Haible  <bruno@clisp.org>
14828
14829         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14830         strings.
14831
14832 2009-03-06  Bruno Haible  <bruno@clisp.org>
14833
14834         Tests for module 'uninorm/u32-normcmp'.
14835         * tests/uninorm/test-u32-normcmp.c: New file.
14836         * modules/uninorm/u32-normcmp-tests: New file.
14837
14838         Tests for module 'uninorm/u16-normcmp'.
14839         * tests/uninorm/test-u16-normcmp.c: New file.
14840         * modules/uninorm/u16-normcmp-tests: New file.
14841
14842         Tests for module 'uninorm/u8-normcmp'.
14843         * tests/uninorm/test-u8-normcmp.c: New file.
14844         * modules/uninorm/u8-normcmp-tests: New file.
14845
14846         New module 'uninorm/u32-normcmp'.
14847         * lib/uninorm/u32-normcmp.c: New file.
14848         * modules/uninorm/u32-normcmp: New file.
14849
14850         New module 'uninorm/u16-normcmp'.
14851         * lib/uninorm/u16-normcmp.c: New file.
14852         * modules/uninorm/u16-normcmp: New file.
14853
14854         New module 'uninorm/u8-normcmp'.
14855         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14856         declarations.
14857         * lib/uninorm/u8-normcmp.c: New file.
14858         * lib/uninorm/u-normcmp.h: New file.
14859         * modules/uninorm/u8-normcmp: New file.
14860
14861 2009-03-06  Bruno Haible  <bruno@clisp.org>
14862
14863         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14864         Reported by Eric Blake.
14865
14866 2009-03-06  Eric Blake  <ebb9@byu.net>
14867             Bruno Haible  <bruno@clisp.org>
14868
14869         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14870         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14871         condition.
14872         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14873         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14874         condition.
14875         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14876
14877 2009-03-06  Eric Blake  <ebb9@byu.net>
14878
14879         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14880         to avoid compiler warnings.
14881         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14882
14883 2009-03-05  Bruno Haible  <bruno@clisp.org>
14884
14885         * tests/test-ftell.c (main): Disable test beyond end of file on
14886         FreeMiNT.
14887         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14888
14889 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14890
14891         * lib/filevercmp.c: Move hidden files up in ordering.
14892         * tests/test-filevercmp.c: Add tests for hidden files.
14893
14894 2009-03-04  Bruno Haible  <bruno@clisp.org>
14895
14896         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14897         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14898         AM_CFLAGS.
14899         Reported by Simon Josefsson.
14900
14901 2009-03-03  Bruno Haible  <bruno@clisp.org>
14902
14903         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14904         Reported by Simon Josefsson.
14905
14906         * doc/ld-version-script.texi: Update node reference.
14907
14908 2009-03-03  Bruno Haible  <bruno@clisp.org>
14909
14910         * modules/visibility (License): Change to 'unlimited'.
14911         Suggested by Simon Josefsson.
14912
14913 2009-03-03  Jim Meyering  <meyering@redhat.com>
14914
14915         unlinkdir: cannot_unlink_dir may modify process state
14916         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14917         it's neither thread-safe nor appropriate for use in a library.
14918
14919 2009-03-03  Eric Blake  <ebb9@byu.net>
14920
14921         test-closein: silence test under Darwin
14922         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14923         care if it dies from EPIPE or EBADF.
14924
14925 2009-03-03  Bruno Haible  <bruno@clisp.org>
14926
14927         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14928         earlier.
14929         * doc/visibility.texi: Fix @node and @section.
14930
14931 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14932
14933         * doc/gnulib.texi: Link to sections for ld version script and
14934         visibility.
14935         * doc/visibility.texi: Add @node and @section.
14936         * modules/ld-version-script: New module.
14937         * m4/ld-version-script.m4: New file.
14938         * doc/ld-version-script.texi: New file.
14939
14940 2009-03-02  David Lutterkort  <lutter@redhat.com>
14941
14942         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14944
14945 2009-03-02  Bruno Haible  <bruno@clisp.org>
14946
14947         * doc/visibility.texi: Mention libtool's -export-symbols option.
14948
14949 2009-03-02  Jim Meyering  <meyering@redhat.com>
14950
14951         announce-gen: new option: --no-print-checksums
14952         * build-aux/announce-gen (usage): Describe it.
14953         (print_checksums): Print a newline here, not in the [*] footnote.
14954         (main): Honor it.
14955
14956 2009-03-01  Bruno Haible  <bruno@clisp.org>
14957
14958         Use socklen_t in the native Windows replacements prototypes.
14959         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14960         instead of 'int'.
14961         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14962         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14963         * modules/getsockopt (Depends-on): Add socklen.
14964         * modules/setsockopt (Depends-on): Add socklen.
14965
14966 2009-03-01  Bruno Haible  <bruno@clisp.org>
14967
14968         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14969         least 4.2.
14970
14971 2009-03-01  Eric Blake  <ebb9@byu.net>
14972             Bruno Haible  <bruno@clisp.org>
14973
14974         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14975         error messages.
14976         * lib/wait-process.c (wait_subprocess): Omit error message about
14977         deadly signal sent to the child of termsigp != NULL.
14978
14979 2009-03-01  Eric Blake  <ebb9@byu.net>
14980
14981         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14982
14983 2009-03-01  Bruno Haible  <bruno@clisp.org>
14984
14985         Avoid a gcc warning.
14986         * tests/test-sched.c (b): Make global.
14987         Reported by Eric Blake.
14988
14989 2009-01-19  Martin Lambers  <marlam@marlam.de>
14990
14991         Provide POSIX semantics for socket timeout options on W32.
14992         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14993         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14994         * modules/setsockopt: Depend on sys_time module for struct timeval.
14995         * modules/getsockopt: Depend on sys_time module for struct timeval.
14996
14997 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14998
14999         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15000         __USE_GNU, for consistency with netdb.in.h.
15001         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15002
15003 2009-03-01  Bruno Haible  <bruno@clisp.org>
15004
15005         More support for FreeMiNT.
15006         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15007         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15008
15009 2009-03-01  Bruno Haible  <bruno@clisp.org>
15010
15011         More support for FreeMiNT.
15012         * lib/fpurge.c (fpurge): Correct last commit.
15013         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15014
15015 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15016
15017         Fix unportable awk script in vc-list-files.
15018         * build-aux/vc-list-files: In the replacement awk script, use
15019         substr with a second argument of 1, not zero.
15020         Report by Simon Josefsson.
15021
15022 2009-02-28  Bruno Haible  <bruno@clisp.org>
15023
15024         More support for FreeMiNT.
15025         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15026         to FreeMiNT today.
15027         * lib/fwriting.c (fwriting): Likewise.
15028         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15029
15030 2009-02-28  Bruno Haible  <bruno@clisp.org>
15031
15032         * tests/test-freadseek.c (main): Disable test beyond end of file on
15033         FreeMiNT.
15034         * tests/test-ftello.c (main): Likewise.
15035         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15036
15037 2009-02-28  Bruno Haible  <bruno@clisp.org>
15038
15039         Add tentative support for FreeMiNT.
15040         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15041         * lib/fpurge.c (fpurge): Likewise.
15042         * lib/freadable.c (freadable): Likewise.
15043         * lib/freading.c (freading): Likewise.
15044         * lib/freadptr.c (freadptr): Likewise.
15045         * lib/freadseek.c (freadptrinc): Likewise.
15046         * lib/fseeko.c (rpl_fseeko): Likewise.
15047         * lib/fseterr.c (fseterr): Likewise.
15048         * lib/fwritable.c (fwritable): Likewise.
15049         * lib/fwriting.c (fwriting): Likewise.
15050         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15051         Hourihane.
15052         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15053
15054 2009-02-28  Bruno Haible  <bruno@clisp.org>
15055
15056         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15057         SIGCHLD.
15058         Reported by Jim Meyering.
15059
15060 2009-02-28  Bruno Haible  <bruno@clisp.org>
15061
15062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15063         Mention the results of these tests on various platforms.
15064         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15065         order.
15066         * doc/posix-functions/printf.texi: Likewise.
15067         * doc/posix-functions/snprintf.texi: Likewise.
15068         * doc/posix-functions/sprintf.texi: Likewise.
15069         * doc/posix-functions/vfprintf.texi: Likewise.
15070         * doc/posix-functions/vprintf.texi: Likewise.
15071         * doc/posix-functions/vsnprintf.texi: Likewise.
15072         * doc/posix-functions/vsprintf.texi: Likewise.
15073         * doc/glibc-functions/obstack_printf.texi: Likewise.
15074         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15075
15076 2009-02-28  Bruno Haible  <bruno@clisp.org>
15077
15078         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15079         Reported by Loïc Minier <lool@dooz.org>.
15080
15081 2009-02-27  Bruno Haible  <bruno@clisp.org>
15082
15083         * gnulib-tool (func_import): Make the sed expression used to create the
15084         sed script for updating the .gitignore file POSIX compliant.
15085         Reported by Eric Blake.
15086
15087 2009-02-27  Bruno Haible  <bruno@clisp.org>
15088
15089         * gnulib-tool (sed): Don't alias as "sed --posix".
15090         Reported by Eric Blake.
15091
15092 2009-02-27  Bruno Haible  <bruno@clisp.org>
15093
15094         Avoid test link errors.
15095         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15096         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15097         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15098         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15100
15101 2009-02-27  Bruno Haible  <bruno@clisp.org>
15102
15103         Avoid spurious "(cached)" in configure output.
15104         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15105         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15106         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15107         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15108         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15109         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15110         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15111         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15112         Reported by Eric Blake.
15113
15114 2009-02-27  Eric Blake  <ebb9@byu.net>
15115
15116         printf: fix regression in previous patch
15117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15118
15119 2009-02-27  Bruno Haible  <bruno@clisp.org>
15120
15121         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15122         value.
15123         * lib/stdint.in.h: Likewise.
15124         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15125
15126 2009-02-27  Eric Blake  <ebb9@byu.net>
15127
15128         doc: mention more functions added in cygwin 1.7.0
15129         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15130         addition.
15131         * doc/posix-functions/open_wmemstream.texi: Likewise.
15132         * doc/posix-functions/wcsnlen.texi: Likewise.
15133         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15134         * doc/posix-functions/wcstod.texi: Likewise.
15135         * doc/posix-functions/wcstof.texi: Likewise.
15136         * doc/posix-functions/wcstoimax.texi: Likewise.
15137         * doc/posix-functions/wcstok.texi: Likewise.
15138         * doc/posix-functions/wcstoumax.texi: Likewise.
15139
15140         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15142         * doc/posix-functions/fprintf.texi: Update.
15143         * doc/posix-functions/printf.texi: Update.
15144         * doc/posix-functions/snprintf.texi: Update.
15145         * doc/posix-functions/sprintf.texi: Update.
15146         * doc/posix-functions/vfprintf.texi: Update.
15147         * doc/posix-functions/vprintf.texi: Update.
15148         * doc/posix-functions/vsnprintf.texi: Update.
15149         * doc/posix-functions/vsprintf.texi: Update.
15150         * doc/glibc-functions/obstack_printf.texi: Update.
15151         * doc/glibc-functions/obstack_vprintf.texi: Update.
15152
15153 2009-02-26  Eric Blake  <ebb9@byu.net>
15154
15155         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15156         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15157         compilation bug by using runtime conversion.
15158         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15159         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15160         * modules/ceill-tests (Files): Use nan.h.
15161         * modules/floorl-tests (Files): Likewise.
15162         * modules/frexpl-tests (Files): Likewise.
15163         * modules/isnanl-tests (Files): Likewise.
15164         * modules/ldexpl-tests (Files): Likewise.
15165         * modules/roundl-tests (Files): Likewise.
15166         * modules/truncl-tests (Files): Likewise.
15167         * tests/test-ceill.c (main): Use a working NaN.
15168         * tests/test-floorl.c (main): Likewise.
15169         * tests/test-frexpl.c (main): Likewise.
15170         * tests/test-isnan.c (test_long_double): Likewise.
15171         * tests/test-isnanl.h (main): Likewise.
15172         * tests/test-ldexpl.h (main): Likewise.
15173         * tests/test-roundl.h (main): Likewise.
15174         * tests/test-truncl.h (main): Likewise.
15175         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15176
15177 2009-02-26  Eric Blake  <ebb9@byu.net>
15178             Bruno Haible  <bruno@clisp.org>
15179
15180         Work around a *printf bug with %ls on Solaris.
15181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15182         precision is specified, sprintf stops converting the wide string
15183         argument when the number of bytes that have been produced by this
15184         conversion equals or exceeds the precision.
15185         * doc/posix-functions/fprintf.texi: Update.
15186         * doc/posix-functions/printf.texi: Update.
15187         * doc/posix-functions/snprintf.texi: Update.
15188         * doc/posix-functions/sprintf.texi: Update.
15189         * doc/posix-functions/vfprintf.texi: Update.
15190         * doc/posix-functions/vprintf.texi: Update.
15191         * doc/posix-functions/vsnprintf.texi: Update.
15192         * doc/posix-functions/vsprintf.texi: Update.
15193         * doc/glibc-functions/obstack_printf.texi: Update.
15194         * doc/glibc-functions/obstack_vprintf.texi: Update.
15195
15196 2009-02-26  Eric Blake  <ebb9@byu.net>
15197
15198         stdlib: favor compiler check of random.h
15199         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15200         to avoid an ObjC random.h installed by Swarm.
15201
15202 2009-02-26  Bruno Haible  <bruno@clisp.org>
15203
15204         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15205         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15206         Reported by Gary V. Vaughan <gary@gnu.org>.
15207
15208 2009-02-26  Bruno Haible  <bruno@clisp.org>
15209
15210         Fix *printf behaviour regarding the %ls directive.
15211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15212         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15213         NEED_PRINTF_DIRECTIVE_LS.
15214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15215         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15217         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15218         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15219         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15220         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15225         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15229         * doc/posix-functions/fprintf.texi: Update.
15230         * doc/posix-functions/printf.texi: Update.
15231         * doc/posix-functions/snprintf.texi: Update.
15232         * doc/posix-functions/sprintf.texi: Update.
15233         * doc/posix-functions/vfprintf.texi: Update.
15234         * doc/posix-functions/vprintf.texi: Update.
15235         * doc/posix-functions/vsnprintf.texi: Update.
15236         * doc/posix-functions/vsprintf.texi: Update.
15237         * doc/glibc-functions/obstack_printf.texi: Update.
15238         * doc/glibc-functions/obstack_vprintf.texi: Update.
15239         Reported by Eric Blake.
15240
15241 2009-02-25  Bruno Haible  <bruno@clisp.org>
15242
15243         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15244         with known value.
15245         Reported by Gary V. Vaughan <gary@gnu.org>.
15246
15247 2009-02-25  Bruno Haible  <bruno@clisp.org>
15248
15249         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15250         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15251         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15252         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15253         Reported by Gary V. Vaughan <gary@gnu.org>.
15254
15255 2009-02-25  Bruno Haible  <bruno@clisp.org>
15256
15257         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15258         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15259         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15260         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15261         Reported by Gary V. Vaughan <gary@gnu.org>.
15262
15263 2009-02-25  Eric Blake  <ebb9@byu.net>
15264
15265         tests: skip fseek/ftell tests if ungetc is broken
15266         * m4/ungetc.m4: New file.
15267         * modules/fseek-tests: Split test, so ungetc dependency is
15268         separate from rest of test.
15269         * modules/fseeko-tests: Likewise.
15270         * modules/ftell-tests: Likewise.
15271         * modules/ftello-tests: Likewise.
15272         * tests/test-fseek.c (main): Isolate ungetc dependency.
15273         * tests/test-fseeko.c (main): Likewise.
15274         * tests/test-ftell.c (main): Likewise.
15275         * tests/test-ftello.c (main): Likewise.
15276         * tests/test-fseek2.sh: New file.
15277         * tests/test-fseeko2.sh: Likewise.
15278         * tests/test-ftell2.sh: Likewise.
15279         * tests/test-ftello2.sh: Likewise.
15280
15281 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15282
15283         test-getaddrinfo: fix usage of skip return code 77
15284         * tests/test-gettaddrinfo.c: Return skip code 77 only
15285         for first occurance of skip (4x77 is not 77)
15286
15287 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15288
15289         strtod: avoid C99 decl-after-statement
15290         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15291
15292 2009-02-24  Eric Blake  <ebb9@byu.net>
15293
15294         strtod: detect HP-UX 11.31 bug
15295         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15296         Reported by Gary V. Vaughan.
15297
15298 2009-02-23  Bruno Haible  <bruno@clisp.org>
15299
15300         Fix invalid read past end of memory block.
15301         * lib/vasnprintf.c (DCHAR_SET): Define.
15302         (local_wcslen): Define only when needed.
15303         (local_strnlen, local_wcsnlen): New functions.
15304         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15305         directives that involve a conversion ourselves.
15306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15307         wcsnlen, mbrtowc, wcrtomb.
15308         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15309         * tests/test-vasprintf-posix.c (test_function): Likewise.
15310         * tests/test-snprintf-posix.h (test_function): Likewise.
15311         * tests/test-sprintf-posix.h (test_function): Likewise.
15312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15313
15314 2009-02-22  Bruno Haible  <bruno@clisp.org>
15315
15316         Implement new clarified decomposition of Hangul syllables.
15317         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15318         of type LTV, return only a pairwise decomposition.
15319         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15320         Likewise.
15321         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15322         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15323         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15324
15325 2009-02-22  Bruno Haible  <bruno@clisp.org>
15326
15327         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15328         zero-length results and shrink excess allocated memory.
15329         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15330         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15331         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15332         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15333         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15334         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15335         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15336         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15337         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15338         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15339         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15340         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15341
15342 2009-02-21  Bruno Haible  <bruno@clisp.org>
15343
15344         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15345         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15346         spaces after a period. Put a space between a macro name and its
15347         argument list. Trivial rewordings.
15348         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15349         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15350         (main): Return 0 explicitly.
15351
15352 2009-02-21  Bruno Haible  <bruno@clisp.org>
15353
15354         Tests for module 'uninorm/filter'.
15355         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15356         * modules/uninorm/filter-tests: New file.
15357
15358         New module 'uninorm/filter'.
15359         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15360         uninorm_filter_flush, uninorm_filter_free): New declarations.
15361         * lib/uninorm/uninorm-filter.c: New file.
15362         * modules/uninorm/filter: New file.
15363
15364 2009-02-21  Bruno Haible  <bruno@clisp.org>
15365
15366         Tests for module 'uninorm/nfkc'.
15367         * tests/uninorm/test-nfkc.c: New file.
15368         * tests/uninorm/test-u8-nfkc.c: New file.
15369         * tests/uninorm/test-u16-nfkc.c: New file.
15370         * tests/uninorm/test-u32-nfkc.c: New file.
15371         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15372         * tests/uninorm/test-u32-nfkc-big.c: New file.
15373         * modules/uninorm/nfkc-tests: New file.
15374
15375         New module 'uninorm/nfkc'.
15376         * lib/uninorm/nfkc.c: New file.
15377         * modules/uninorm/nfkc: New file.
15378
15379         Tests for module 'uninorm/nfkd'.
15380         * tests/uninorm/test-nfkd.c: New file.
15381         * tests/uninorm/test-u8-nfkd.c: New file.
15382         * tests/uninorm/test-u16-nfkd.c: New file.
15383         * tests/uninorm/test-u32-nfkd.c: New file.
15384         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15385         * tests/uninorm/test-u32-nfkd-big.c: New file.
15386         * modules/uninorm/nfkd-tests: New file.
15387
15388         New module 'uninorm/nfkd'.
15389         * lib/uninorm/nfkd.c: New file.
15390         * modules/uninorm/nfkd: New file.
15391
15392         Tests for module 'uninorm/nfc'.
15393         * tests/uninorm/test-nfc.c: New file.
15394         * tests/uninorm/test-u8-nfc.c: New file.
15395         * tests/uninorm/test-u16-nfc.c: New file.
15396         * tests/uninorm/test-u32-nfc.c: New file.
15397         * tests/uninorm/test-u32-nfc-big.sh: New file.
15398         * tests/uninorm/test-u32-nfc-big.c: New file.
15399         * modules/uninorm/nfc-tests: New file.
15400
15401         New module 'uninorm/nfc'.
15402         * lib/uninorm/nfc.c: New file.
15403         * modules/uninorm/nfc: New file.
15404
15405         Tests for module 'uninorm/nfd'.
15406         * tests/uninorm/test-nfd.c: New file.
15407         * tests/uninorm/test-u8-nfd.c: New file.
15408         * tests/uninorm/test-u16-nfd.c: New file.
15409         * tests/uninorm/test-u32-nfd.c: New file.
15410         * tests/uninorm/test-u32-nfd-big.sh: New file.
15411         * tests/uninorm/test-u32-nfd-big.c: New file.
15412         * tests/uninorm/test-u32-normalize-big.h: New file.
15413         * tests/uninorm/test-u32-normalize-big.c: New file.
15414         * tests/uninorm/NormalizationTest.txt: New file, created from
15415         Unicode 5.1.0 NormalizationTest.txt.
15416         * modules/uninorm/nfd-tests: New file.
15417
15418         New module 'uninorm/nfd'.
15419         * lib/uninorm/nfd.c: New file.
15420         * modules/uninorm/nfd: New file.
15421
15422         New module 'uninorm/u32-normalize'.
15423         * lib/uninorm/u32-normalize.c: New file.
15424         * modules/uninorm/u32-normalize: New file.
15425
15426         New module 'uninorm/u16-normalize'.
15427         * lib/uninorm/u16-normalize.c: New file.
15428         * modules/uninorm/u16-normalize: New file.
15429
15430         New module 'uninorm/u8-normalize'.
15431         * lib/uninorm/u8-normalize.c: New file.
15432         * lib/uninorm/normalize-internal.h: New file.
15433         * lib/uninorm/u-normalize-internal.h: New file.
15434         * modules/uninorm/u8-normalize: New file.
15435
15436         New module 'uninorm/decompose-internal'.
15437         * lib/uninorm/decompose-internal.c: New file.
15438         * modules/uninorm/decompose-internal: New file.
15439
15440         Tests for module 'uninorm/composition'.
15441         * tests/uninorm/test-composition.c: New file.
15442         * modules/uninorm/composition-tests: New file.
15443
15444         New module 'uninorm/composition'.
15445         * lib/uninorm/composition.c: New file.
15446         * lib/uninorm/composition-table.gperf: New file, generated by
15447         gen-uni-tables.
15448         * modules/uninorm/composition: New file.
15449
15450         Tests for module 'uninorm/compat-decomposition'.
15451         * tests/uninorm/test-compat-decomposition.c: New file.
15452         * modules/uninorm/compat-decomposition-tests: New file.
15453
15454         New module 'uninorm/compat-decomposition'.
15455         * lib/uninorm/decompose-internal.h: New file.
15456         * lib/uninorm/compat-decomposition.c: New file.
15457         * modules/uninorm/compat-decomposition: New file.
15458
15459         Tests for module 'uninorm/canonical-decomposition'.
15460         * tests/uninorm/test-canonical-decomposition.c: New file.
15461         * modules/uninorm/canonical-decomposition-tests: New file.
15462
15463         New module 'uninorm/canonical-decomposition'.
15464         * lib/uninorm/canonical-decomposition.c: New file.
15465         * modules/uninorm/canonical-decomposition: New file.
15466
15467         Tests for module 'uninorm/decomposition'.
15468         * tests/uninorm/test-decomposition.c: New file.
15469         * modules/uninorm/decomposition-tests: New file.
15470
15471         New module 'uninorm/decomposition'.
15472         * lib/uninorm/decomposition.c: New file.
15473         * modules/uninorm/decomposition: New file.
15474
15475         New module 'uninorm/decomposition-table'.
15476         * lib/uninorm/decomposition-table.h: New file.
15477         * lib/uninorm/decomposition-table.c: New file.
15478         * lib/uninorm/decomposition-table1.h: New file, generated by
15479         gen-uni-tables.
15480         * lib/uninorm/decomposition-table2.h: New file, generated by
15481         gen-uni-tables.
15482         * modules/uninorm/decomposition-table: New file.
15483
15484         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15485         (UC_DECOMP_*): New enumeration items.
15486         (get_decomposition): New function.
15487         (struct decomp_table): New type.
15488         (output_decomposition, output_decomposition_tables): New functions.
15489         (unicode_composition_exclusions): New variable.
15490         (fill_composition_exclusions, debug_output_composition_tables): New
15491         functions.
15492         (main): Accept one more argument. Invoke fill_composition_exclusions.
15493         Output decomposition and composition tables.
15494
15495         New module 'uninorm/base'.
15496         * lib/uninorm.h: New file.
15497         * lib/unictype.h: Update comment.
15498         * modules/uninorm/base: New file.
15499
15500 2009-02-21  David Lutterkort  <lutter@redhat.com>
15501
15502         Tests for module 'safe-alloc'.
15503         * tests/test-safe-alloc.c: New file.
15504         * modules/safe-alloc-tests: New file.
15505
15506         New module 'safe-alloc'.
15507         * lib/safe-alloc.h: New file.
15508         * lib/safe-alloc.c: New file.
15509         * m4/safe-alloc.m4: New file.
15510         * modules/safe-alloc: New file.
15511         * doc/safe-alloc.texi: New file.
15512         * doc/gnulib.texi: Include it.
15513         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15514         safe-alloc.
15515
15516 2009-02-18  Bruno Haible  <bruno@clisp.org>
15517
15518         Fix link error on non-glibc systems.
15519         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15520         variable.
15521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15522
15523 2009-02-18  Jim Meyering  <meyering@redhat.com>
15524
15525         fts: avoid used-uninitialized error due to recent change
15526         * lib/fts.c (fts_read): Guard uses of the new member,
15527         parent->fts_n_dirs_remaining, since it's not relevant for
15528         the parent of a directory specified on the command-line.
15529
15530 2009-02-17  James Youngman  <jay@gnu.org>
15531             Bruno Haible  <bruno@clisp.org>
15532
15533         * m4/include_next.m4: Reformulate comment.
15534
15535 2009-02-16  Jim Meyering  <meyering@redhat.com>
15536
15537         fts: add #if guards so that the fts_lgpl module still builds
15538         * lib/fts.c: Guard just-added hash-table-using parts with
15539         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15540         Reported by Simon Josefsson.
15541
15542 2009-02-15  Bruno Haible  <bruno@clisp.org>
15543
15544         * modules/array-mergesort-tests: New file.
15545         * tests/test-array-mergesort.c: New file.
15546
15547         New module 'array-mergesort'.
15548         * modules/array-mergesort: New file.
15549         * lib/array-mergesort.h: New file.
15550
15551 2009-02-15  Bruno Haible  <bruno@clisp.org>
15552
15553         Fix 2009-02-07 commit.
15554         * lib/gen-uni-tables.c (output_predicate, output_category,
15555         output_combclass, output_bidi_category, output_decimal_digit,
15556         output_digit, output_numeric, output_mirror, output_scripts,
15557         output_ident_category, output_simple_mapping): Fix format directives.
15558         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15559
15560 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15561
15562         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15563         fixes are available from IBM.
15564
15565 2009-02-13  Jim Meyering  <meyering@redhat.com>
15566
15567         fts: arrange not to stat non-directories in more cases
15568         This makes GNU find (when it doesn't need to stat each file)
15569         *much* more efficient at traversing reiserfs file systems.
15570         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15571         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15572         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15573         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15574         (leaf_optimization_applies): New function.
15575         (LCO_hash, LCO_compare): New helper functions.
15576         (link_count_optimize_ok): New function.
15577         (fts_stat): Initialize new member (if dir).
15578         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15579         we've just stat'ed a directory.  Skip the stat call when possible.
15580         ---
15581         Note this AFS-related exchange:
15582         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15583         and note find's pioctl call in find/fstype.c.
15584         But that is necessary only if you want to enable the
15585         optimization for AFS, and for now, I don't.
15586
15587         fts: move a function definition "up" (no semantic change)
15588         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15589         "up" to precede upcoming use of a related function.
15590
15591 2009-02-11  Jim Meyering  <meyering@redhat.com>
15592
15593         fts: correct internal computation of nlinks (optimization-related)
15594         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15595         whether the current entry is a directory, so don't test it.
15596
15597 2009-02-10  Bruno Haible  <bruno@clisp.org>
15598
15599         Tests for module 'uniwbrk/ulc-wordbreaks'.
15600         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15601         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15602         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15603
15604         Tests for module 'uniwbrk/u32-wordbreaks'.
15605         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15606         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15607
15608         Tests for module 'uniwbrk/u16-wordbreaks'.
15609         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15610         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15611
15612         Tests for module 'uniwbrk/u8-wordbreaks'.
15613         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15614         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15615
15616 2009-02-10  Bruno Haible  <bruno@clisp.org>
15617
15618         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15619         property.
15620         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15621         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15622         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15623
15624 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15625
15626         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15627         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15628
15629 2009-02-10  Bruno Haible  <bruno@clisp.org>
15630
15631         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15632         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15633         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15634         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15635         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15636         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15637
15638 2009-02-09  Simon Josefsson  <simon@josefsson.org>
15639
15640         * lib/sockets.h (gl_fd_to_handle): New function.
15641
15642         * tests/test-sockets.c: Call gl_fd_to_handle.
15643
15644 2009-02-09  Bruno Haible  <bruno@clisp.org>
15645
15646         * doc/havelib.texi: Document the conventions on bi-arch systems.
15647
15648 2009-02-08  Bruno Haible  <bruno@clisp.org>
15649
15650         Document the AC_LIB_LINKFLAGS macro.
15651         * doc/havelib.texi: New file, mostly written on 2005-05-24.
15652         * doc/gnulib.texi: Include it.
15653
15654 2009-02-08  Bruno Haible  <bruno@clisp.org>
15655
15656         Fix wrong order of sections, compared to TOC.
15657         * doc/gnulib.texi: Include relocatable-maint.texi after the
15658         "Regular expressions" node, not before.
15659
15660 2009-02-08  Bruno Haible  <bruno@clisp.org>
15661
15662         Tests for module 'unicase/totitle'.
15663         * modules/unicase/totitle-tests: New file.
15664
15665         Tests for module 'unicase/tolower'.
15666         * modules/unicase/tolower-tests: New file.
15667
15668         Tests for module 'unicase/toupper'.
15669         * modules/unicase/toupper-tests: New file.
15670         * tests/unicase/test-mapping-part1.h: New file.
15671         * tests/unicase/test-mapping-part2.h: New file.
15672
15673         New module 'unicase/totitle'.
15674         * modules/unicase/totitle: New file.
15675         * lib/unicase/totitle.c: New file.
15676
15677         New module 'unicase/tolower'.
15678         * modules/unicase/tolower: New file.
15679         * lib/unicase/tolower.c: New file.
15680
15681         New module 'unicase/toupper'.
15682         * modules/unicase/toupper: New file.
15683         * lib/unicase/toupper.c: New file.
15684         * lib/unicase/simple-mapping.h: New file.
15685
15686         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15687         (mapping_table): New structure.
15688         (output_simple_mapping): New function.
15689         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15690         * modules/gen-uni-tables (Description): Update.
15691         * lib/unicase/toupper.h: New file, automatically generated by
15692         gen-uni-tables.
15693         * lib/unicase/tolower.h: New file, automatically generated by
15694         gen-uni-tables.
15695         * lib/unicase/totitle.h: New file, automatically generated by
15696         gen-uni-tables.
15697         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15698         gen-uni-tables.
15699         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15700         gen-uni-tables.
15701         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15702         gen-uni-tables.
15703
15704         New module 'unicase/base'.
15705         * modules/unicase/base: New file.
15706         * lib/unicase.h: New file.
15707
15708 2009-02-08  Bruno Haible  <bruno@clisp.org>
15709
15710         New module 'uniwbrk/ulc-wordbreaks'.
15711         * modules/uniwbrk/ulc-wordbreaks: New file.
15712         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15713
15714         New module 'uniwbrk/u32-wordbreaks'.
15715         * modules/uniwbrk/u32-wordbreaks: New file.
15716         * lib/uniwbrk/u32-wordbreaks.c: New file.
15717
15718         New module 'uniwbrk/u16-wordbreaks'.
15719         * modules/uniwbrk/u16-wordbreaks: New file.
15720         * lib/uniwbrk/u16-wordbreaks.c: New file.
15721
15722         New module 'uniwbrk/u8-wordbreaks'.
15723         * modules/uniwbrk/u8-wordbreaks: New file.
15724         * lib/uniwbrk/u8-wordbreaks.c: New file.
15725         * lib/uniwbrk/u-wordbreaks.h: New file.
15726
15727         New module 'uniwbrk/table'.
15728         * modules/uniwbrk/table: New file.
15729         * lib/uniwbrk/wbrktable.h: New file.
15730         * lib/uniwbrk/wbrktable.c: New file.
15731
15732         New module 'uniwbrk/wordbreak-property'.
15733         * modules/uniwbrk/wordbreak-property: New file.
15734         * lib/uniwbrk/wordbreak-property.c: New file.
15735
15736         * lib/gen-uni-tables.c (WBP_*): New enum items.
15737         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15738         (unicode_org_wbp): New variable.
15739         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15740         New functions.
15741         (wbp_table): New structure.
15742         (output_wbp, output_wbrk_tables): New functions.
15743         (main): Accept additional argument. Invoke fill_org_wbp,
15744         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15745         output_wbrk_tables.
15746         * modules/gen-uni-tables (Description): Update.
15747         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15748         gen-uni-tables.
15749
15750         New module 'uniwbrk/base'.
15751         * modules/uniwbrk/base: New file.
15752         * lib/uniwbrk.h: New file.
15753
15754 2009-02-08  Bruno Haible  <bruno@clisp.org>
15755
15756         Update to Unicode 5.1.0.
15757         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15758         U+2185..U+2188.
15759         (is_property_default_ignorable_code_point): Don't include characters
15760         of category Cc or Cs and not-a-characters.
15761         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15762         U+0D79, U+109E, U+109F, U+A60C.
15763         * lib/unictype/bidi_of.h: Regenerated.
15764         * lib/unictype/blocks.h: Regenerated.
15765         * lib/unictype/categ_C.h: Regenerated.
15766         * lib/unictype/categ_Cf.h: Regenerated.
15767         * lib/unictype/categ_Cn.h: Regenerated.
15768         * lib/unictype/categ_L.h: Regenerated.
15769         * lib/unictype/categ_Ll.h: Regenerated.
15770         * lib/unictype/categ_Lm.h: Regenerated.
15771         * lib/unictype/categ_Lo.h: Regenerated.
15772         * lib/unictype/categ_Lu.h: Regenerated.
15773         * lib/unictype/categ_M.h: Regenerated.
15774         * lib/unictype/categ_Mc.h: Regenerated.
15775         * lib/unictype/categ_Me.h: Regenerated.
15776         * lib/unictype/categ_Mn.h: Regenerated.
15777         * lib/unictype/categ_N.h: Regenerated.
15778         * lib/unictype/categ_Nd.h: Regenerated.
15779         * lib/unictype/categ_Nl.h: Regenerated.
15780         * lib/unictype/categ_No.h: Regenerated.
15781         * lib/unictype/categ_P.h: Regenerated.
15782         * lib/unictype/categ_Pd.h: Regenerated.
15783         * lib/unictype/categ_Pe.h: Regenerated.
15784         * lib/unictype/categ_Pf.h: Regenerated.
15785         * lib/unictype/categ_Pi.h: Regenerated.
15786         * lib/unictype/categ_Po.h: Regenerated.
15787         * lib/unictype/categ_Ps.h: Regenerated.
15788         * lib/unictype/categ_S.h: Regenerated.
15789         * lib/unictype/categ_Sk.h: Regenerated.
15790         * lib/unictype/categ_Sm.h: Regenerated.
15791         * lib/unictype/categ_So.h: Regenerated.
15792         * lib/unictype/categ_of.h: Regenerated.
15793         * lib/unictype/combining.h: Regenerated.
15794         * lib/unictype/ctype_alnum.h: Regenerated.
15795         * lib/unictype/ctype_alpha.h: Regenerated.
15796         * lib/unictype/ctype_graph.h: Regenerated.
15797         * lib/unictype/ctype_lower.h: Regenerated.
15798         * lib/unictype/ctype_print.h: Regenerated.
15799         * lib/unictype/ctype_punct.h: Regenerated.
15800         * lib/unictype/ctype_upper.h: Regenerated.
15801         * lib/unictype/decdigit.h: Regenerated.
15802         * lib/unictype/digit.h: Regenerated.
15803         * lib/unictype/mirror.h: Regenerated.
15804         * lib/unictype/numeric.h: Regenerated.
15805         * lib/unictype/pr_alphabetic.h: Regenerated.
15806         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15807         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15808         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15809         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15810         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15811         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15812         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15813         * lib/unictype/pr_combining.h: Regenerated.
15814         * lib/unictype/pr_dash.h: Regenerated.
15815         * lib/unictype/pr_decimal_digit.h: Regenerated.
15816         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15817         * lib/unictype/pr_deprecated.h: Regenerated.
15818         * lib/unictype/pr_diacritic.h: Regenerated.
15819         * lib/unictype/pr_extender.h: Regenerated.
15820         * lib/unictype/pr_format_control.h: Regenerated.
15821         * lib/unictype/pr_grapheme_base.h: Regenerated.
15822         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15823         * lib/unictype/pr_grapheme_link.h: Regenerated.
15824         * lib/unictype/pr_id_continue.h: Regenerated.
15825         * lib/unictype/pr_id_start.h: Regenerated.
15826         * lib/unictype/pr_ideographic.h: Regenerated.
15827         * lib/unictype/pr_ignorable_control.h: Regenerated.
15828         * lib/unictype/pr_lowercase.h: Regenerated.
15829         * lib/unictype/pr_math.h: Regenerated.
15830         * lib/unictype/pr_numeric.h: Regenerated.
15831         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15832         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15833         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15834         * lib/unictype/pr_other_id_continue.h: Regenerated.
15835         * lib/unictype/pr_other_lowercase.h: Regenerated.
15836         * lib/unictype/pr_other_math.h: Regenerated.
15837         * lib/unictype/pr_punctuation.h: Regenerated.
15838         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15839         * lib/unictype/pr_soft_dotted.h: Regenerated.
15840         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15841         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15842         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15843         * lib/unictype/pr_uppercase.h: Regenerated.
15844         * lib/unictype/pr_xid_continue.h: Regenerated.
15845         * lib/unictype/pr_xid_start.h: Regenerated.
15846         * lib/unictype/pr_zero_width.h: Regenerated.
15847         * lib/unictype/scripts.h: Regenerated.
15848         * lib/unictype/scripts_byname.gperf: Regenerated.
15849         * lib/unictype/sy_java_ident.h: Regenerated.
15850         * lib/unilbrk/lbrkprop1.h: Regenerated.
15851         * lib/unilbrk/lbrkprop2.h: Regenerated.
15852         * tests/unictype/test-categ_C.c: Regenerated.
15853         * tests/unictype/test-categ_Cf.c: Regenerated.
15854         * tests/unictype/test-categ_Cn.c: Regenerated.
15855         * tests/unictype/test-categ_L.c: Regenerated.
15856         * tests/unictype/test-categ_Ll.c: Regenerated.
15857         * tests/unictype/test-categ_Lm.c: Regenerated.
15858         * tests/unictype/test-categ_Lo.c: Regenerated.
15859         * tests/unictype/test-categ_Lu.c: Regenerated.
15860         * tests/unictype/test-categ_M.c: Regenerated.
15861         * tests/unictype/test-categ_Mc.c: Regenerated.
15862         * tests/unictype/test-categ_Me.c: Regenerated.
15863         * tests/unictype/test-categ_Mn.c: Regenerated.
15864         * tests/unictype/test-categ_N.c: Regenerated.
15865         * tests/unictype/test-categ_Nd.c: Regenerated.
15866         * tests/unictype/test-categ_Nl.c: Regenerated.
15867         * tests/unictype/test-categ_No.c: Regenerated.
15868         * tests/unictype/test-categ_P.c: Regenerated.
15869         * tests/unictype/test-categ_Pd.c: Regenerated.
15870         * tests/unictype/test-categ_Pe.c: Regenerated.
15871         * tests/unictype/test-categ_Pf.c: Regenerated.
15872         * tests/unictype/test-categ_Pi.c: Regenerated.
15873         * tests/unictype/test-categ_Po.c: Regenerated.
15874         * tests/unictype/test-categ_Ps.c: Regenerated.
15875         * tests/unictype/test-categ_S.c: Regenerated.
15876         * tests/unictype/test-categ_Sk.c: Regenerated.
15877         * tests/unictype/test-categ_Sm.c: Regenerated.
15878         * tests/unictype/test-categ_So.c: Regenerated.
15879         * tests/unictype/test-ctype_alnum.c: Regenerated.
15880         * tests/unictype/test-ctype_alpha.c: Regenerated.
15881         * tests/unictype/test-ctype_graph.c: Regenerated.
15882         * tests/unictype/test-ctype_lower.c: Regenerated.
15883         * tests/unictype/test-ctype_print.c: Regenerated.
15884         * tests/unictype/test-ctype_punct.c: Regenerated.
15885         * tests/unictype/test-ctype_upper.c: Regenerated.
15886         * tests/unictype/test-decdigit.h: Regenerated.
15887         * tests/unictype/test-digit.h: Regenerated.
15888         * tests/unictype/test-numeric.h: Regenerated.
15889         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15890         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15891         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15892         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15893         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15894         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15895         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15896         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15897         * tests/unictype/test-pr_combining.c: Regenerated.
15898         * tests/unictype/test-pr_dash.c: Regenerated.
15899         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15900         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15901         * tests/unictype/test-pr_deprecated.c: Regenerated.
15902         * tests/unictype/test-pr_diacritic.c: Regenerated.
15903         * tests/unictype/test-pr_extender.c: Regenerated.
15904         * tests/unictype/test-pr_format_control.c: Regenerated.
15905         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15906         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15907         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15908         * tests/unictype/test-pr_id_continue.c: Regenerated.
15909         * tests/unictype/test-pr_id_start.c: Regenerated.
15910         * tests/unictype/test-pr_ideographic.c: Regenerated.
15911         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15912         * tests/unictype/test-pr_lowercase.c: Regenerated.
15913         * tests/unictype/test-pr_math.c: Regenerated.
15914         * tests/unictype/test-pr_numeric.c: Regenerated.
15915         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15916         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15917         Regenerated.
15918         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15919         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15920         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15921         * tests/unictype/test-pr_other_math.c: Regenerated.
15922         * tests/unictype/test-pr_punctuation.c: Regenerated.
15923         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15924         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15925         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15926         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15927         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15928         * tests/unictype/test-pr_uppercase.c: Regenerated.
15929         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15930         * tests/unictype/test-pr_xid_start.c: Regenerated.
15931         * tests/unictype/test-pr_zero_width.c: Regenerated.
15932
15933         Update to Unicode 5.1.0.
15934         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15935         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15936         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15937         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15938         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15939         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15940         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15941         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15942         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15943         (nonspacing_table_ind): Update.
15944         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15945
15946         Update to Unicode 5.1.0.
15947         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15948         code transform.
15949         * lib/uniname/uniname.c (unicode_character_name,
15950         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15951         * lib/uniname/uninames.h: Regenerated.
15952         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15953
15954 2009-02-07  Bruno Haible  <bruno@clisp.org>
15955
15956         Merge gen-ctype and gen-lbrk into a single program.
15957         * lib/gen-uni-tables.c: New file, incorporating
15958         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15959         Add directory prefixes to the names of the generated files.
15960         * lib/unictype/gen-ctype.c: Remove file.
15961         * lib/unilbrk/gen-lbrk.c: Remove file.
15962         * modules/gen-uni-tables: New file.
15963         * modules/unictype/gen-ctype: Remove file.
15964         * modules/unilbrk/gen-lbrk: Remove file.
15965
15966 2009-02-07  Bruno Haible  <bruno@clisp.org>
15967
15968         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15969
15970         New module 'unistr/u32-strcoll'.
15971         * modules/unistr/u32-strcoll: New file.
15972         * lib/unistr/u32-strcoll.c: New file.
15973
15974         New module 'unistr/u16-strcoll'.
15975         * modules/unistr/u16-strcoll: New file.
15976         * lib/unistr/u16-strcoll.c: New file.
15977
15978         New module 'unistr/u8-strcoll'.
15979         * modules/unistr/u8-strcoll: New file.
15980         * lib/unistr/u8-strcoll.c: New file.
15981         * lib/unistr/u-strcoll.h: New file.
15982
15983 2009-02-07  Bruno Haible  <bruno@clisp.org>
15984
15985         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15986         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15987         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15988         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15989         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15990         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15991
15992 2009-02-07  Bruno Haible  <bruno@clisp.org>
15993
15994         Make 64-bit clean.
15995         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15996         output_combclass, output_bidi_category, output_decimal_digit,
15997         output_digit, output_numeric, output_mirror, output_scripts,
15998         output_ident_category): Use proper width specifier in format strings.
15999
16000 2009-02-07  Bruno Haible  <bruno@clisp.org>
16001
16002         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16003         failure behaviour.
16004
16005 2009-02-07  Jim Meyering  <meyering@redhat.com>
16006
16007         regex: avoid compilation failure with upcoming gcc-4.4
16008         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16009         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16010         "... error: integer overflow in preprocessor expression".
16011
16012 2009-02-05  Ben Pfaff  <blp@gnu.org>
16013
16014         Fix link errors on Windows when close module is used.
16015         * modules/close: Add $(LIB_CLOSE) to Link section.
16016         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16017         $(LIB_CLOSE) on Windows.
16018
16019 2009-02-05  Jim Meyering  <meyering@redhat.com>
16020
16021         still avoid unused-parameter warnings, but do it cleanly
16022         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16023         (get_fs_usage): Cast to void instead.
16024         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16025         (dev_from_mount_options, read_file_system_list): Cast to void.
16026         Prompted by Bruno Haible.
16027
16028 2009-02-04  Jim Meyering  <meyering@redhat.com>
16029
16030         fsusage.c: correct copyright year
16031         * lib/fsusage.c: Reflect year in which the change is pushed into
16032
16033         avoid misc. warnings
16034         * lib/fsusage.c (UNUSED_PARAM): Define.
16035         (get_fs_usage): Mark parameter "disk" as unused.
16036         * lib/getugroups.c (getgrent): Use "void" in prototype.
16037         * lib/mountlist.c: Mark unused parameters.
16038         (read_file_system_list): Declare a local with "const".
16039         * lib/nanosleep.c (getnow): Declare static.
16040         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16041
16042         dirfd: set errno upon failure
16043         * lib/dirfd.c: Include <errno.h>.
16044         Set errno to ENOTSUP when returning -1.
16045         * modules/dirfd (Depends-on): Add errno.
16046         Suggested by John Kodis <kodis@comcast.net>.
16047
16048 2009-02-01  Bruno Haible  <bruno@clisp.org>
16049
16050         Don't assume sizeof (long) >= sizeof (void *).
16051         * lib/memcmp.c: Include stdint.h.
16052         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16053         srcp2 to 'const byte *'.
16054         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16055         types to uintptr_t.
16056         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16057         * modules/memcmp (Depends-on): Add stdint.
16058         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16059
16060 2009-01-30  Eric Blake  <ebb9@byu.net>
16061
16062         fix more require-before-expand issues
16063         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16064         expand, AC_PROG_AWK.
16065         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16066
16067 2009-01-28  Eric Blake  <ebb9@byu.net>
16068
16069         version-etc: use consistent URL formatting
16070         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16071         Improve formatting.  Use fputs for string without %.
16072
16073 2009-01-28  Jim Meyering  <meyering@redhat.com>
16074
16075         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16076         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16077         "underquoted definition of NAME" from autoconf-2.59.
16078
16079 2009-01-28  Bruno Haible  <bruno@clisp.org>
16080
16081         * doc/gnulib.texi: Add "Obsolete modules" to index.
16082
16083 2009-01-28  Jim Meyering  <meyering@redhat.com>
16084
16085         useless-if-before-free: recognize more variants
16086         * build-aux/useless-if-before-free: Also recognize e.g.,
16087         if (NULL != p) free (p);
16088
16089 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16090
16091         test-getaddrinfo: skip (don't fail) this test when there's no network
16092         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16093         on the presumption that it means you lack network access.
16094
16095 2009-01-26  Jim Meyering  <meyering@redhat.com>
16096
16097         fflush: avoid warnings on modern systems
16098         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16099         pos and result, into scopes where they're used.
16100
16101 2009-01-26  Eric Blake  <ebb9@byu.net>
16102
16103         Silence warning reintroduced by recent extensions patch.
16104         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16105         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16106         autoconf.
16107
16108         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16109         * m4/00gnulib.m4: New file.
16110         * gnulib-tool (func_get_filelist): Always use it.
16111         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16112         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16113
16114 2009-01-25  Bruno Haible  <bruno@clisp.org>
16115
16116         Make test-quotearg work on MacOS X and AIX.
16117         * tests/test-quotearg.sh: New file.
16118         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16119         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16120         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16121         include <libintl.h>.
16122         (fake_locale): Remove variable.
16123         (gettext, dgettext, dcgettext): Remove functions.
16124         (main): Instead of setting a fake locale, set a real locale. Call
16125         textdomain and bindtextdomain.
16126         * modules/quotearg-tests (Files): Add the new files.
16127         (Depends-on): Add gettext, setenv, unsetenv.
16128         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16129         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16130         Augment TESTS_ENVIRONMENT.
16131
16132 2009-01-25  Bruno Haible  <bruno@clisp.org>
16133
16134         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16135         fr_FR.ISO8859-1 locale on MacOS X.
16136         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16137         ja_JP.eucJP locale on MacOS X.
16138         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16139         zh_CN.GB18030 locale on MacOS X.
16140
16141 2009-01-25  Bruno Haible  <bruno@clisp.org>
16142
16143         Avoid link errors on MacOS X 10.3.
16144         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16145         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16146
16147 2009-01-25  Bruno Haible  <bruno@clisp.org>
16148
16149         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16150         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16151         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16152         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16153         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16154         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16155         posix_spawnattr_init, posix_spawnattr_setsigmask,
16156         posix_spawnattr_setflags, posix_spawnattr_destroy.
16157
16158         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16159         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16160         * modules/execute (Files): Remove m4/posix_spawn.m4.
16161         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16162         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16163         posix_spawnattr_init, posix_spawnattr_setsigmask,
16164         posix_spawnattr_setflags, posix_spawnattr_destroy.
16165
16166 2009-01-25  Bruno Haible  <bruno@clisp.org>
16167
16168         * lib/glthread/threadlib.c: Include <stdlib.h>.
16169
16170 2009-01-25  Bruno Haible  <bruno@clisp.org>
16171
16172         * lib/glthread/threadlib.c (dummy): New declaration.
16173
16174 2009-01-25  Bruno Haible  <bruno@clisp.org>
16175
16176         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16177         multibyte characters also for the GB18030 encoding. Don't crash when
16178         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16179
16180 2009-01-25  Bruno Haible  <bruno@clisp.org>
16181
16182         Avoid redefining 'struct random_data' on OSF/1 5.1.
16183         * lib/stdlib.in.h: Include <random.h> if it exists.
16184         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16185         HAVE_RANDOM_H. Include <random.h> when testing whether
16186         'struct random_data' exists.
16187         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16188
16189 2009-01-25  Bruno Haible  <bruno@clisp.org>
16190
16191         Don't install charset.alias on MacOS X >= 10.3.
16192         * lib/localcharset.c (DARWIN7): New macro.
16193         (get_charset_aliases): Hardcode the result for Darwin7.
16194         * modules/localcharset (install-exec-local): Don't install
16195         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16196
16197 2009-01-25  Bruno Haible  <bruno@clisp.org>
16198
16199         Don't install charset.alias on mingw and Cygwin.
16200         * modules/localcharset (install-exec-local): Don't install
16201         charset.alias on mingw and Cygwin, if the file does not yet exist.
16202         The result for these platforms is hardcoded in localcharset.c.
16203
16204 2009-01-25  Bruno Haible  <bruno@clisp.org>
16205
16206         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16207         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16208         before requiring AC_USE_SYSTEM_EXTENSIONS.
16209
16210 2009-01-25  Jim Meyering  <meyering@redhat.com>
16211
16212         c-strtod: avoid warnings
16213         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16214         "assignment discards qualifiers from pointer target type" warnings.
16215
16216 2009-01-24  Bruno Haible  <bruno@clisp.org>
16217
16218         Add support for non-UTF-8 locales on MacOS X.
16219         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16220         canonical encodings. For Darwin 7 and newer, don't map traditional
16221         encodings to UTF-8.
16222         Reported by Vincent Lefevre <vincent@vinc17.org>
16223         at <http://savannah.gnu.org/bugs/?25235>.
16224
16225 2009-01-24  Bruno Haible  <bruno@clisp.org>
16226
16227         * doc/gnulib.texi (Obsolete modules): New section.
16228         Reported by Mike Frysinger <vapier@gentoo.org>.
16229
16230 2009-01-24  Bruno Haible  <bruno@clisp.org>
16231
16232         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16233         (%.dvi): New rule.
16234
16235 2009-01-24  Bruno Haible  <bruno@clisp.org>
16236
16237         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16238         Reported by Eric Blake.
16239
16240 2009-01-24  Bruno Haible  <bruno@clisp.org>
16241
16242         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16243         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16244         Reported by Gary V. Vaughan <gary@gnu.org>.
16245
16246 2009-01-24  Bruno Haible  <bruno@clisp.org>
16247
16248         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16249
16250 2009-01-23  Bruno Haible  <bruno@clisp.org>
16251
16252         Make c-strtod, c-strtold usable in libraries.
16253         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16254         (C_STRTOD): Call strdup instead of xstrdup.
16255         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16256         * modules/c-strtold (Depends-on): Likewise.
16257         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16258         * NEWS: Mention the change.
16259         Reported by Michael Gold <mgold@ncf.ca>.
16260
16261 2009-01-23  Jim Meyering  <meyering@redhat.com>
16262
16263         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16264         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16265         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16266
16267 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16268
16269         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16270         GNU CoreUtils.
16271         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16272         * modules/version-etc (Description): Update.
16273
16274 2009-01-22  Bruno Haible  <bruno@clisp.org>
16275
16276         Cache the C locale object.
16277         * lib/c-strtod.c (c_locale_cache): New variable.
16278         (c_locale): New function.
16279         (C_STRTOD): Use it, and don't call freelocale.
16280         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16281         Suggested by Paolo Bonzini.
16282
16283 2009-01-21  Bruno Haible  <bruno@clisp.org>
16284
16285         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16286         conditions other than overflow.
16287
16288 2009-01-21  Bruno Haible  <bruno@clisp.org>
16289
16290         * lib/c-strtod.c: Include errno.h.
16291         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16292         value from STRTOD_L and STRTOD.
16293
16294 2009-01-21  Bruno Haible  <bruno@clisp.org>
16295         and Jim Meyering  <meyering@redhat.com>
16296
16297         nanosleep: skip configure test (fail it) for apple universal builds
16298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16299         universal builds, assume that nanosleep does not work.
16300         * modules/nanosleep (Depends-on): Add multiarch.
16301
16302         mktime: skip configure test (fail it) for apple universal builds
16303         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16304         universal builds, assume that mktime does not work.
16305         * modules/mktime (Depends-on): Add multiarch.
16306
16307 2009-01-21  Eric Blake  <ebb9@byu.net>
16308
16309         multiarch: avoid expand-before-require warning
16310         * modules/multiarch (configure.ac): Require, rather than expand,
16311         gl_MULTIARCH.
16312         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16313         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16314         enforce that all clients require it.  Partial reversion of
16315         2008-12-29 patch.
16316
16317         error: avoid expand-before-require warning
16318         * modules/errno (configure.ac): Require, rather than expand,
16319         gl_HEADER_ERRNO_H.
16320         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16321         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16322         enforce that all clients require it.
16323
16324         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16325         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16326         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16327         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16328
16329 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16330
16331         Revert:
16332         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16333
16334         regex: do not depend on obsolete modules.
16335         * modules/regex: Remove memcmp and memmove.
16336
16337 2009-01-20  Bruno Haible  <bruno@clisp.org>
16338
16339         Make the 'link' module link on Windows NT 4.
16340         * lib/link.c (_WIN32_WINNT): Don't define.
16341         (CreateHardLinkFuncType): New type.
16342         (CreateHardLinkFunc, initialized): New variables.
16343         (initialize): New function.
16344         (link): Invoke CreateHardLink indirectly through the function pointer.
16345
16346 2009-01-20  Bruno Haible  <bruno@clisp.org>
16347
16348         Fix compilation failure on mingw.
16349         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16350
16351 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16352
16353         * doc/c-strtod.texi: Mention a couple of restrictions.
16354
16355 2009-01-20  Jim Meyering  <meyering@redhat.com>
16356
16357         gettimeofday: move more declarations out of functions
16358         * lib/gettimeofday.c: Move extern declarations of tzset and
16359         gmtime out of containing functions.  Prompted by Bruno Haible.
16360
16361 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16362
16363         regex: do not depend on obsolete modules.
16364         * modules/regex: Remove memcmp and memmove.
16365
16366 2009-01-19  Bruno Haible  <bruno@clisp.org>
16367
16368         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16369         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16370         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16371         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16372         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16373
16374 2009-01-19  Bruno Haible  <bruno@clisp.org>
16375
16376         * tests/test-link.c: Include <errno.h>.
16377         (main): Exit with code 77 when a hard link cannot be created due to
16378         the file system.
16379         * tests/test-link.sh: Skip test when a hard link cannot be created due
16380         to the file system.
16381         Suggested by Eric Blake.
16382
16383 2009-01-19  Martin Lambers  <marlam@marlam.de>
16384
16385         * modules/link-tests: New file.
16386         * tests/test-link.sh: New file.
16387         * tests/test-link.c: New file.
16388
16389 2009-01-19  Eric Blake  <ebb9@byu.net>
16390
16391         doc: mention another function added in cygwin 1.7.0
16392         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16393         Another new function in cygwin 1.7.
16394
16395 2009-01-19  Bruno Haible  <bruno@clisp.org>
16396
16397         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16398         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16399         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16400         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16401         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16402         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16403         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16404         * m4/md4.m4 (gl_MD4): Likewise.
16405         * m4/md5.m4 (gl_MD5): Likewise.
16406         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16407         * m4/sha1.m4 (gl_SHA1): Likewise.
16408         * m4/sha256.m4 (gl_SHA256): Likewise.
16409         * m4/sha512.m4 (gl_SHA512): Likewise.
16410
16411 2009-01-19  Bruno Haible  <bruno@clisp.org>
16412
16413         * modules/uniname/uniname-tests (Depends-on): Add progname.
16414         * tests/uniname/test-uninames.c: Include progname.h.
16415         (main): Call set_program_name.
16416
16417         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16418         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16419         (main): Call set_program_name.
16420
16421         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16422         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16423         (main): Call set_program_name.
16424
16425         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16426         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16427         (main): Call set_program_name.
16428
16429         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16430         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16431         (main): Call set_program_name.
16432
16433         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16434         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16435         (main): Call set_program_name.
16436
16437         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16438         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16439         (main): Call set_program_name.
16440
16441         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16442         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16443         (main): Call set_program_name.
16444
16445         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16446         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16447         (main): Call set_program_name.
16448
16449 2009-01-19  Eric Blake  <ebb9@byu.net>
16450
16451         test-unistd: test previous patch
16452         * tests/test-unistd.c: Test *_FILENO macros.
16453
16454         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16455         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16456         Guarantee a definition.
16457         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16458         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16459         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16460         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16461         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16462         Likewise.
16463         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16464         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16465         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16466         Likewise.
16467         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16468         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16469         (STDERR_FILENO): Likewise.
16470         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16471         (STDERR_FILENO): Likewise.
16472         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16473         (STDERR_FILENO): Likewise.
16474         Reported by Elbert Pol.
16475
16476 2009-01-19  Eric Blake  <ebb9@byu.net>
16477
16478         doc: mention more functions added in cygwin 1.7.0
16479         * doc/posix-functions/abort.texi (abort): Update wording related
16480         to cygwin.
16481         * doc/posix-functions/daylight.texi (daylight): Likewise.
16482         * doc/posix-functions/optarg.texi (optarg): Likewise.
16483         * doc/posix-functions/optarg.texi (opterr): Likewise.
16484         * doc/posix-functions/optarg.texi (optind): Likewise.
16485         * doc/posix-functions/optarg.texi (optopt): Likewise.
16486         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16487         worked in 1.5.x, and was withdrawn in 1.7.
16488         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16489         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16490         cygwin versions.
16491         * doc/posix-functions/perror.texi (perror): Likewise.
16492         * doc/posix-functions/printf.texi (printf): Likewise.
16493         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16494         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16495         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16496         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16497         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16498         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16499         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16500         Likewise.
16501         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16502         Likewise.
16503         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16504         this function.
16505         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16506         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16507         Likewise.
16508         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16509         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16510         * doc/posix-functions/confstr.texi (confstr): Likewise.
16511         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16512         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16513         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16514         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16515         * doc/posix-functions/fputws.texi (fputws): Likewise.
16516         * doc/posix-functions/fwide.texi (fwide): Likewise.
16517         * doc/posix-functions/getwc.texi (getwc): Likewise.
16518         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16519         * doc/posix-functions/putwc.texi (putwc): Likewise.
16520         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16521         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16522         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16523         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16524         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16525         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16526         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16527         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16528         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16529         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16530         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16531
16532 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16533
16534         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16535         * lib/ioctl.c: Include <sys/ioctl.h>.
16536
16537 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16538
16539         * modules/getdate-tests (Depends-on): Add progname.
16540         * tests/test-getdate.c: Use progname module, to avoid link errors
16541         on non-glibc systems.
16542
16543 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16544
16545         * modules/filenamecat-tests (Depends-on): Add progname.
16546         * modules/fstrcmp-tests (Depends-on): Likewise.
16547
16548         * tests/test-filenamecat.c: Use progname module, to avoid link
16549         errors on non-glibc systems.
16550         * tests/test-fstrcmp.c: Likewise.
16551
16552 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16553
16554         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16555         * lib/gettimeofday.c: Move extern declaration out of function.
16556
16557 2009-01-18  Bruno Haible  <bruno@clisp.org>
16558
16559         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16560         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16561         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16562
16563 2009-01-18  Bruno Haible  <bruno@clisp.org>
16564
16565         * lib/strftime.c (MEMPCPY): Remove unused macro.
16566         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16567
16568 2009-01-18  Martin Lambers  <marlam@marlam.de>
16569
16570         New module 'link'.
16571         * lib/unistd.in.h (link): New declaration.
16572         * lib/link.c: New file.
16573         * m4/link.m4: New file.
16574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16575         HAVE_LINK.
16576         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16577         * modules/link: New file.
16578         * doc/posix-functions/link.texi: Mention the new module.
16579
16580 2009-01-18  Bruno Haible  <bruno@clisp.org>
16581
16582         * tests/test-avltree_list.c (main): Call set_program_name.
16583         * tests/test-avltree_oset.c (main): Likewise.
16584         * tests/test-obstack-printf.c: Include progname.h.
16585         (main): Call set_program_name.
16586         * tests/test-quotearg.c: Include progname.h.
16587         (main): Call set_program_name.
16588         * tests/test-xmemdup0.c: Include progname.h.
16589         (main): Call set_program_name.
16590
16591 2009-01-18  Bruno Haible  <bruno@clisp.org>
16592
16593         New module 'alphasort'.
16594         * lib/dirent.in.h (alphasort): New declaration.
16595         * lib/alphasort.c: New file, from glibc with modifications.
16596         * m4/alphasort.m4: New file.
16597         * modules/alphasort: New file.
16598         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16599         HAVE_ALPHASORT.
16600         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16601         HAVE_ALPHASORT.
16602         * doc/posix-functions/alphasort.texi: Mention the new module and the
16603         portability problems.
16604
16605 2009-01-18  Bruno Haible  <bruno@clisp.org>
16606
16607         New module 'scandir'.
16608         * lib/dirent.in.h (scandir): New declaration.
16609         * lib/scandir.c: New file, from glibc with modifications.
16610         * m4/scandir.m4: New file.
16611         * modules/scandir: New file.
16612         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16613         HAVE_SCANDIR.
16614         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16615         HAVE_SCANDIR.
16616         * doc/posix-functions/scandir.texi: Mention the new module and the
16617         portability problems.
16618
16619 2009-01-17  Bruno Haible  <bruno@clisp.org>
16620
16621         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16622         Update documentation.
16623         (func_remove_suffix): Escape all dots in the suffix. Update
16624         documentation.
16625         (func_filter_filelist): Update documentation.
16626         Reported by Ralf Wildenhues.
16627
16628 2009-01-17  Bruno Haible  <bruno@clisp.org>
16629
16630         * modules/dprintf-posix-tests: New file.
16631         * tests/test-dprintf-posix.sh: New file.
16632         * tests/test-dprintf-posix.c: New file.
16633
16634         New modules 'dprintf', 'dprintf-posix'.
16635         * lib/stdio.in.h (dprintf): New declaration.
16636         * lib/dprintf.c: New file.
16637         * m4/dprintf.m4: New file.
16638         * m4/dprintf-posix.m4: New file.
16639         * modules/dprintf: New file.
16640         * modules/dprintf-posix: New file.
16641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
16642         HAVE_DPRINTF, REPLACE_DPRINTF.
16643         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
16644         HAVE_DPRINTF, REPLACE_DPRINTF.
16645         * doc/posix-functions/dprintf.texi: Mention the new modules.
16646
16647 2009-01-17  Bruno Haible  <bruno@clisp.org>
16648
16649         * modules/vdprintf-posix-tests: New file.
16650         * tests/test-vdprintf-posix.sh: New file.
16651         * tests/test-vdprintf-posix.c: New file.
16652
16653         New modules 'vdprintf', 'vdprintf-posix'.
16654         * lib/stdio.in.h (vdprintf): New declaration.
16655         * lib/vdprintf.c: New file.
16656         * m4/vdprintf.m4: New file.
16657         * m4/vdprintf-posix.m4: New file.
16658         * modules/vdprintf: New file.
16659         * modules/vdprintf-posix: New file.
16660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16661         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16662         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16663         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16664         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16665
16666 2009-01-17  Bruno Haible  <bruno@clisp.org>
16667
16668         Fix replacement of fopen on mingw.
16669         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16670         mingw.
16671
16672 2009-01-17  Bruno Haible  <bruno@clisp.org>
16673
16674         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16675         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16676
16677 2009-01-17  Bruno Haible  <bruno@clisp.org>
16678
16679         Avoid test-fflush2.sh failure on mingw.
16680         * tests/test-fflush2.c: Include binary-io.h.
16681         (main): Put standard input into binary mode.
16682         * modules/fflush-tests (Depends-on): Add binary-io.
16683
16684 2009-01-17  Bruno Haible  <bruno@clisp.org>
16685
16686         * lib/wchar.in.h: In another particular situation, include only the
16687         system's <wchar.h> file.
16688         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16689         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16690         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16691
16692 2009-01-17  Bruno Haible  <bruno@clisp.org>
16693
16694         Support for stripping executables in --enable-relocatable.
16695         * build-aux/install-reloc: Expect one more argument, or an environment
16696         variable RELOC_STRIP_PROG. If set, strip the destination program and
16697         its wrapper.
16698         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16699         RELOC_STRIP_PROG.
16700         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16701         to set RELOCATABLE_STRIP.
16702         * NEWS: Mention the new Makefile requirement.
16703
16704 2009-01-17  Bruno Haible  <bruno@clisp.org>
16705
16706         * build-aux/install-reloc: Remove debugging information left over by
16707         C compiler on MacOS X.
16708
16709 2009-01-17  Bruno Haible  <bruno@clisp.org>
16710
16711         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16712         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16713         _NSGetExecutablePath.
16714
16715 2009-01-16  Jim Meyering  <meyering@redhat.com>
16716
16717         strerror: avoid warnings about discarding "const"
16718         * lib/strerror.c (rpl_strerror): Instead of returning a const
16719         string from each and every "case", use a variable, and add a single
16720         cast after the switch.
16721
16722 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16723
16724         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16725
16726 2009-01-16  Bruno Haible  <bruno@clisp.org>
16727
16728         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16729         array initializer syntax that also works in C++ mode.
16730         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16731
16732 2009-01-16  Jim Meyering  <meyering@redhat.com>
16733
16734         poll: suppress a warning
16735         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16736         to ignore "...unsigned expression < 0 is always false" warnings.
16737
16738 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16739
16740         poll: remove declarations of unused variables
16741         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16742         sockbuf and optlen.
16743
16744 2009-01-15  Bruno Haible  <bruno@clisp.org>
16745
16746         Make fflush-after-ungetc POSIX compliant on BSD systems.
16747         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16748         (clear_ungetc_buffer): Implement also for other systems.
16749         (rpl_fflush): On glibc systems, invoke
16750         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16751         clear_ungetc_buffer after fetching the stream's position, not before.
16752
16753 2009-01-15  Bruno Haible  <bruno@clisp.org>
16754
16755         Make fflush-after-ungetc POSIX compliant on glibc systems.
16756         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16757         after ungetc.
16758         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16759         (rpl_fflush): On glibc systems, simply call the system's fflush
16760         function after clearing the ungetc buffer.
16761         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16762         Instead, lseek only to the end of file, then use the system's fseeko
16763         for the rest. On glibc systems, reset the EOF indicator bit.
16764
16765 2009-01-15  Jim Meyering  <meyering@redhat.com>
16766
16767         openmp.m4: revert quote-adding change, for portability to older autoconf
16768         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16769         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16770         Simon Josefsson noticed the problem when using autoconf-2.61.
16771
16772 2009-01-15  Bruno Haible  <bruno@clisp.org>
16773
16774         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16775         * tests/test-fflush2.c (ASSERT): Always fail.
16776         (main): Add two tests for fflush() after ungetc(), taking into account
16777         the Austin Group's clarification.
16778         Suggested by Eric Blake.
16779
16780 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16781
16782         mktime.m4: remove K&R-style function prototypes
16783         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16784         for the Sun C++ compiler.
16785
16786 2009-01-14  Bruno Haible  <bruno@clisp.org>
16787
16788         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16789         while including <wchar.h>.
16790         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16791         the system's <wchar.h> file.
16792         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16793
16794 2009-01-14  Bruno Haible  <bruno@clisp.org>
16795
16796         * m4/csharp.m4: Don't mention gettext on the serial number line.
16797         * m4/csharpexec.m4: Likewise.
16798         * m4/eaccess.m4: Likewise.
16799         * m4/javaexec.m4: Likewise.
16800         * m4/sig_atomic_t.m4: Likewise.
16801         * m4/tmpdir.m4: Likewise.
16802         * m4/intldir.m4: Bump gettext version.
16803         * m4/lib-ld.m4: Likewise.
16804
16805 2009-01-14  Bruno Haible  <bruno@clisp.org>
16806
16807         * lib/progname.c (set_program_name): Add more comments.
16808         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16809
16810 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16811
16812         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16813         were sys/stat.h does not define it.
16814
16815 2009-01-14  Jim Meyering  <meyering@redhat.com>
16816
16817         many *.m4 files: improve m4 quoting
16818         99% of this change was performed by running the following commands:
16819         git ls-files | grep '\.m4$' | xargs perl -pi \
16820           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16821           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16822           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16823           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16824         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16825         The remainder were to add Copyright dates, increment serial numbers,
16826         undo some changes in comments, exclude m4/intl.m4, and add quotes
16827         around the "1" in ",1" where the unusual spacing prohibited the
16828         above regexps from doing the job.  For more details, see
16829         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16830         * m4/acl.m4: Modified.
16831         * m4/afs.m4: Likewise.
16832         * m4/alloca.m4: Likewise.
16833         * m4/argp.m4: Likewise.
16834         * m4/argz.m4: Likewise.
16835         * m4/atexit.m4: Likewise.
16836         * m4/bison-i18n.m4: Likewise.
16837         * m4/bison.m4: Likewise.
16838         * m4/byteswap.m4: Likewise.
16839         * m4/c-stack.m4: Likewise.
16840         * m4/c-strtod.m4: Likewise.
16841         * m4/calloc.m4: Likewise.
16842         * m4/canonicalize-lgpl.m4: Likewise.
16843         * m4/chown.m4: Likewise.
16844         * m4/clock_time.m4: Likewise.
16845         * m4/codeset.m4: Likewise.
16846         * m4/copy-file.m4: Likewise.
16847         * m4/csharp.m4: Likewise.
16848         * m4/csharpcomp.m4: Likewise.
16849         * m4/csharpexec.m4: Likewise.
16850         * m4/d-ino.m4: Likewise.
16851         * m4/d-type.m4: Likewise.
16852         * m4/dirfd.m4: Likewise.
16853         * m4/double-slash-root.m4: Likewise.
16854         * m4/eaccess.m4: Likewise.
16855         * m4/eealloc.m4: Likewise.
16856         * m4/environ.m4: Likewise.
16857         * m4/errno_h.m4: Likewise.
16858         * m4/euidaccess.m4: Likewise.
16859         * m4/execute.m4: Likewise.
16860         * m4/fatal-signal.m4: Likewise.
16861         * m4/fchdir.m4: Likewise.
16862         * m4/fcntl_h.m4: Likewise.
16863         * m4/fileblocks.m4: Likewise.
16864         * m4/filenamecat.m4: Likewise.
16865         * m4/findprog.m4: Likewise.
16866         * m4/flexmember.m4: Likewise.
16867         * m4/fnmatch.m4: Likewise.
16868         * m4/fopen.m4: Likewise.
16869         * m4/fpending.m4: Likewise.
16870         * m4/fprintf-posix.m4: Likewise.
16871         * m4/free.m4: Likewise.
16872         * m4/frexp.m4: Likewise.
16873         * m4/frexpl.m4: Likewise.
16874         * m4/fsusage.m4: Likewise.
16875         * m4/ftruncate.m4: Likewise.
16876         * m4/gc-camellia.m4: Likewise.
16877         * m4/gc-random.m4: Likewise.
16878         * m4/gc.m4: Likewise.
16879         * m4/getaddrinfo.m4: Likewise.
16880         * m4/getcwd-abort-bug.m4: Likewise.
16881         * m4/getcwd-path-max.m4: Likewise.
16882         * m4/getdate.m4: Likewise.
16883         * m4/getdomainname.m4: Likewise.
16884         * m4/getgroups.m4: Likewise.
16885         * m4/gethostname.m4: Likewise.
16886         * m4/gethrxtime.m4: Likewise.
16887         * m4/getline.m4: Likewise.
16888         * m4/getloadavg.m4: Likewise.
16889         * m4/getndelim2.m4: Likewise.
16890         * m4/getpass.m4: Likewise.
16891         * m4/gettext.m4: Likewise.
16892         * m4/gettime.m4: Likewise.
16893         * m4/gettimeofday.m4: Likewise.
16894         * m4/gnulib-common.m4: Likewise.
16895         * m4/group-member.m4: Likewise.
16896         * m4/host-os.m4: Likewise.
16897         * m4/iconv.m4: Likewise.
16898         * m4/iconv_open.m4: Likewise.
16899         * m4/inet_ntop.m4: Likewise.
16900         * m4/inet_pton.m4: Likewise.
16901         * m4/inline.m4: Likewise.
16902         * m4/intldir.m4: Likewise.
16903         * m4/intlmacosx.m4: Likewise.
16904         * m4/intmax.m4: Likewise.
16905         * m4/intmax_t.m4: Likewise.
16906         * m4/inttypes.m4: Likewise.
16907         * m4/inttypes_h.m4: Likewise.
16908         * m4/inttypes-pri.m4: Likewise.
16909         * m4/isapipe.m4: Likewise.
16910         * m4/isnand.m4: Likewise.
16911         * m4/isnanf.m4: Likewise.
16912         * m4/isnanl.m4: Likewise.
16913         * m4/javacomp.m4: Likewise.
16914         * m4/javaexec.m4: Likewise.
16915         * m4/jm-winsz1.m4: Likewise.
16916         * m4/jm-winsz2.m4: Likewise.
16917         * m4/lchown.m4: Likewise.
16918         * m4/lcmessage.m4: Likewise.
16919         * m4/ldexpl.m4: Likewise.
16920         * m4/lib-ld.m4: Likewise.
16921         * m4/lib-link.m4: Likewise.
16922         * m4/libsigsegv.m4: Likewise.
16923         * m4/link-follow.m4: Likewise.
16924         * m4/localcharset.m4: Likewise.
16925         * m4/locale-fr.m4: Likewise.
16926         * m4/locale-ja.m4: Likewise.
16927         * m4/locale-tr.m4: Likewise.
16928         * m4/locale-zh.m4: Likewise.
16929         * m4/lock.m4: Likewise.
16930         * m4/longlong.m4: Likewise.
16931         * m4/ls-mntd-fs.m4: Likewise.
16932         * m4/lstat.m4: Likewise.
16933         * m4/malloc.m4: Likewise.
16934         * m4/mathl.m4: Likewise.
16935         * m4/mbrtowc.m4: Likewise.
16936         * m4/mbstate_t.m4: Likewise.
16937         * m4/mbswidth.m4: Likewise.
16938         * m4/memchr.m4: Likewise.
16939         * m4/memcmp.m4: Likewise.
16940         * m4/memcpy.m4: Likewise.
16941         * m4/memmem.m4: Likewise.
16942         * m4/memmove.m4: Likewise.
16943         * m4/mempcpy.m4: Likewise.
16944         * m4/memrchr.m4: Likewise.
16945         * m4/memset.m4: Likewise.
16946         * m4/minmax.m4: Likewise.
16947         * m4/mkdir-slash.m4: Likewise.
16948         * m4/mkdtemp.m4: Likewise.
16949         * m4/mktime.m4: Likewise.
16950         * m4/mmap-anon.m4: Likewise.
16951         * m4/mountlist.m4: Likewise.
16952         * m4/nanosleep.m4: Likewise.
16953         * m4/nls.m4: Likewise.
16954         * m4/nocrash.m4: Likewise.
16955         * m4/open.m4: Likewise.
16956         * m4/openat.m4: Likewise.
16957         * m4/openmp.m4: Likewise.
16958         * m4/pathmax.m4: Likewise.
16959         * m4/perl.m4: Likewise.
16960         * m4/physmem.m4: Likewise.
16961         * m4/pipe.m4: Likewise.
16962         * m4/po.m4: Likewise.
16963         * m4/poll.m4: Likewise.
16964         * m4/posixtm.m4: Likewise.
16965         * m4/posixver.m4: Likewise.
16966         * m4/printf-frexp.m4: Likewise.
16967         * m4/printf-frexpl.m4: Likewise.
16968         * m4/printf-posix.m4: Likewise.
16969         * m4/printf-posix-rpl.m4: Likewise.
16970         * m4/printf.m4: Likewise.
16971         * m4/progtest.m4: Likewise.
16972         * m4/putenv.m4: Likewise.
16973         * m4/readline.m4: Likewise.
16974         * m4/readlink.m4: Likewise.
16975         * m4/readutmp.m4: Likewise.
16976         * m4/realloc.m4: Likewise.
16977         * m4/regex.m4: Likewise.
16978         * m4/relocatable.m4: Likewise.
16979         * m4/relocatable-lib.m4: Likewise.
16980         * m4/rename-dest-slash.m4: Likewise.
16981         * m4/rename.m4: Likewise.
16982         * m4/rmdir-errno.m4: Likewise.
16983         * m4/rmdir.m4: Likewise.
16984         * m4/roundf.m4: Likewise.
16985         * m4/roundl.m4: Likewise.
16986         * m4/rpmatch.m4: Likewise.
16987         * m4/save-cwd.m4: Likewise.
16988         * m4/selinux-selinux-h.m4: Likewise.
16989         * m4/setenv.m4: Likewise.
16990         * m4/settime.m4: Likewise.
16991         * m4/sig2str.m4: Likewise.
16992         * m4/sig_atomic_t.m4: Likewise.
16993         * m4/signalblocking.m4: Likewise.
16994         * m4/signbit.m4: Likewise.
16995         * m4/sigpipe.m4: Likewise.
16996         * m4/sockets.m4: Likewise.
16997         * m4/sockpfaf.m4: Likewise.
16998         * m4/st_dm_mode.m4: Likewise.
16999         * m4/stat-time.m4: Likewise.
17000         * m4/stdbool.m4: Likewise.
17001         * m4/stdint.m4: Likewise.
17002         * m4/stdint_h.m4: Likewise.
17003         * m4/stpcpy.m4: Likewise.
17004         * m4/stpncpy.m4: Likewise.
17005         * m4/strcase.m4: Likewise.
17006         * m4/strchrnul.m4: Likewise.
17007         * m4/strcspn.m4: Likewise.
17008         * m4/strdup.m4: Likewise.
17009         * m4/strftime.m4: Likewise.
17010         * m4/strndup.m4: Likewise.
17011         * m4/strnlen.m4: Likewise.
17012         * m4/strpbrk.m4: Likewise.
17013         * m4/strptime.m4: Likewise.
17014         * m4/strsep.m4: Likewise.
17015         * m4/strtod.m4: Likewise.
17016         * m4/strtoimax.m4: Likewise.
17017         * m4/strtok_r.m4: Likewise.
17018         * m4/strtol.m4: Likewise.
17019         * m4/strtoll.m4: Likewise.
17020         * m4/strtoul.m4: Likewise.
17021         * m4/strtoull.m4: Likewise.
17022         * m4/strtoumax.m4: Likewise.
17023         * m4/strverscmp.m4: Likewise.
17024         * m4/threadlib.m4: Likewise.
17025         * m4/timegm.m4: Likewise.
17026         * m4/tm_gmtoff.m4: Likewise.
17027         * m4/tmpdir.m4: Likewise.
17028         * m4/tmpfile.m4: Likewise.
17029         * m4/tzset.m4: Likewise.
17030         * m4/uintmax_t.m4: Likewise.
17031         * m4/unlinkdir.m4: Likewise.
17032         * m4/unlocked-io.m4: Likewise.
17033         * m4/uptime.m4: Likewise.
17034         * m4/userspec.m4: Likewise.
17035         * m4/utimbuf.m4: Likewise.
17036         * m4/utime.m4: Likewise.
17037         * m4/utimes-null.m4: Likewise.
17038         * m4/utimes.m4: Likewise.
17039         * m4/vararrays.m4: Likewise.
17040         * m4/vasnprintf.m4: Likewise.
17041         * m4/vfprintf-posix.m4: Likewise.
17042         * m4/vprintf-posix.m4: Likewise.
17043         * m4/wait-process.m4: Likewise.
17044         * m4/wchar_t.m4: Likewise.
17045         * m4/wint_t.m4: Likewise.
17046         * m4/write-any-file.m4: Likewise.
17047         * m4/yield.m4: Likewise.
17048
17049 2009-01-13  Bruno Haible  <bruno@clisp.org>
17050
17051         Avoid test-copy-file.sh failures when ACL support insufficient.
17052         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17053         TESTS_ENVIRONMENT.
17054         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17055         Reported by Jim Meyering.
17056
17057 2009-01-13  Bruno Haible  <bruno@clisp.org>
17058
17059         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17060         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17061         * modules/unistdio/u8-printf-parse (Files): Likewise.
17062         * modules/unistdio/u32-printf-parse (Files): Likewise.
17063         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17064
17065 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17066
17067         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17068         and m4/inttypes_h.m4 too.
17069
17070 2009-01-12  Eric Blake  <ebb9@byu.net>
17071
17072         tests: IRIX 6.2 cc can't compile -0.0 into .data
17073         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17074         rather than at compile-time.
17075         * tests/test-floorl.c (minus_zero): Likewise.
17076         * tests/test-frexpl.c (minus_zero): Likewise.
17077         * tests/test-isnan.c (minus_zerol): Likewise.
17078         * tests/test-isnanl.h (minus_zero): Likewise.
17079         * tests/test-ldexpl.c (minus_zero): Likewise.
17080         * tests/test-roundl.c (minus_zero): Likewise.
17081         * tests/test-signbit.c (minus_zerol): Likewise.
17082         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17083         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17084         * tests/test-truncl.c (minus_zero): Likewise.
17085         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17086         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17087         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17088
17089 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17090
17091         regex: fix glibc bug 9697
17092         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17093         handling.
17094
17095 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17096
17097         regex: fix glibc bug 697
17098         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17099         being NULL also if there are no backreferences.
17100
17101 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17102
17103         regex: merge glibc changes
17104         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17105         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17106         re_string_skip_chars, re_string_reconstruct): Likewise.
17107         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17108
17109 2009-01-07  Jim Meyering  <meyering@redhat.com>
17110
17111         poll: filter through cppi
17112         * lib/poll.c: Indent cpp directives to reflect nesting.
17113
17114 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17115
17116         poll: don't return uninitialized
17117         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17118
17119 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17120
17121         avoid compile failure on AIX 6.1
17122         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17123         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17124
17125 2009-01-04  Jim Meyering  <meyering@redhat.com>
17126
17127         remove duplicate inclusion of <stdio.h>
17128         * tests/test-fprintf-posix.c: Likewise.
17129         * tests/test-printf-posix.c: Likewise.
17130         * tests/test-snprintf-posix.c: Likewise.
17131         * tests/test-sprintf-posix.c: Likewise.
17132         * tests/test-vasprintf-posix.c: Likewise.
17133         * tests/test-vfprintf-posix.c: Likewise.
17134         * tests/test-vprintf-posix.c: Likewise.
17135         * tests/test-vsnprintf-posix.c: Likewise.
17136         * tests/test-vsprintf-posix.c: Likewise.
17137
17138 2009-01-03  Jim Meyering  <meyering@redhat.com>
17139
17140         gnulib-tool: fix sed-based filtering
17141         * gnulib-tool (func_filter_filelist): Remove extra backslash
17142         in sed_fff_filter definition.
17143
17144 2009-01-02  Jim Meyering  <meyering@redhat.com>
17145
17146         strftime: avoid compilation failure on Solaris 2.6
17147         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17148         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17149         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17150         be available.  Reported by Tom G. Christensen.  Details in
17151         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17152
17153 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17154             Bruno Haible  <bruno@clisp.org>
17155
17156         Speed up gnulib-tool by doing more string processing through shell
17157         built-ins.
17158         * gnulib-tool (fast_func_append): New variable.
17159         (func_remove_prefix, func_remove_suffix): New functions.
17160         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17161         (func_filter_filelist): New function.
17162         (func_get_dependencies): Use func_remove_suffix instead of sed.
17163         (func_get_automake_snippet): Use func_filter_filelist instead of a
17164         subshell and sed invocation.
17165
17166 2009-01-01  Bruno Haible  <bruno@clisp.org>
17167
17168         Fix a security bug.
17169         * gnulib-tool (func_import, import, update): Don't allow the characters
17170         '"', '$', '`', '\' in macro arguments that become part of commands that
17171         are evaluated.
17172
17173 2009-01-01  Bruno Haible  <bruno@clisp.org>
17174
17175         * gnulib-tool (func_reset_sigpipe): Add more comments.
17176
17177 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17178
17179         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17180         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17181         already know the answer.
17182
17183 2009-01-01  Jim Meyering  <meyering@redhat.com>
17184
17185         * lib/version-etc.c (version_etc_va): Update copyright year.
17186
17187 2008-12-30  Bruno Haible  <bruno@clisp.org>
17188
17189         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17190         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17191         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17192
17193 2008-12-29  Eric Blake  <ebb9@byu.net>
17194
17195         multiarch: avoid autoconf AC_REQUIRE bug
17196         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17197         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17198         2.63 and older.
17199         Reported by Bruno Haible, and analyzed in
17200         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17201
17202 2008-12-29  Bruno Haible  <bruno@clisp.org>
17203
17204         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17205         files in subdirectories correctly.
17206         Reported by Ralf Wildenhues.
17207
17208 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17209
17210         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17211         rather than 'join FILE -', for Solaris join.
17212
17213 2008-12-29  Bruno Haible  <bruno@clisp.org>
17214
17215         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17216         quoting.
17217         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17218         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17219         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17220         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17221         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17222         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17223         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17224         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17225         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17226         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17227         * m4/nls.m4 (AM_NLS): Likewise.
17228         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17229         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17230         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17231         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17232         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17233         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17234         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17235         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17236         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17237         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17238         * m4/xsize.m4 (gl_XSIZE): Likewise.
17239         Suggested by Jim Meyering.
17240
17241 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17242
17243         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17244         * lib/parse-duration.c: use a switch instead of cascading if's.
17245
17246 2008-12-29  Eric Blake  <ebb9@byu.net>
17247
17248         wchar.h: supply WEOF on Irix 5.3
17249         * lib/wchar.in.h (wint_t): Also supply WEOF.
17250         * lib/wctype.in.h (wint_t): Likewise.
17251         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17252         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17253         Reported by Tom G. Christensen.
17254
17255 2008-12-26  Bruno Haible  <bruno@clisp.org>
17256
17257         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17258         i486, i586, i686.
17259
17260 2008-12-26  Bruno Haible  <bruno@clisp.org>
17261
17262         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17263
17264 2008-12-26  Bruno Haible  <bruno@clisp.org>
17265
17266         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17267         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17268         not __STDC_CONSTANT_MACROS.
17269         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17270
17271 2008-12-25  Bruno Haible  <bruno@clisp.org>
17272
17273         Add support for universal builds to vasnprintf.
17274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17275         universal builds, guess no.
17276         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17277         * modules/vasprintf-posix (Depends-on): Likewise.
17278         * modules/fprintf-posix (Depends-on): Likewise.
17279         * modules/vfprintf-posix (Depends-on): Likewise.
17280         * modules/snprintf-posix (Depends-on): Likewise.
17281         * modules/vsnprintf-posix (Depends-on): Likewise.
17282         * modules/sprintf-posix (Depends-on): Likewise.
17283         * modules/vsprintf-posix (Depends-on): Likewise.
17284         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17285         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17286         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17287         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17288         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17289         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17290         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17291
17292         Add support for universal builds to <inttypes.h>.
17293         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17294         _SCNu64_PREFIX): In Apple
17295         universal builds, define directly, using _LP64.
17296         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17297         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17298         * modules/inttypes (Depends-on): Add multiarch.
17299         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17300
17301         Add support for universal builds to <stdint.h>.
17302         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17303         universal builds, define directly, using _LP64.
17304         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17305         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17306         and size_t.
17307         * modules/stdint (Depends-on): Add multiarch.
17308         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17309
17310         New module 'multiarch'.
17311         * modules/multiarch: New file.
17312         * m4/multiarch.m4: New file.
17313
17314 2008-12-25  Bruno Haible  <bruno@clisp.org>
17315
17316         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17317
17318 2008-12-25  Bruno Haible  <bruno@clisp.org>
17319
17320         * modules/btowc (License): Relicense under LGPLv2+.
17321         * modules/mbsinit (License): Likewise.
17322         * modules/mbrtowc (License): Likewise.
17323         * modules/wcrtomb (License): Likewise.
17324         * modules/streq (License): Likewise.
17325         Reported by David Lutterkort <lutter@redhat.com>.
17326
17327 2008-12-23  Bruno Haible  <bruno@clisp.org>
17328
17329         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17330
17331 2008-12-23  Bruno Haible  <bruno@clisp.org>
17332
17333         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17335         GETADDRINFO_LIB, not in LIBS.
17336         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17337         * modules/canon-host (Link): Likewise.
17338         * NEWS: Mention the change.
17339         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17340         GETADDRINFO_LIB.
17341
17342 2008-12-22  Bruno Haible  <bruno@clisp.org>
17343
17344         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17345         * doc/posix-functions/iswalpha_l.texi: Likewise.
17346         * doc/posix-functions/iswblank_l.texi: Likewise.
17347         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17348         * doc/posix-functions/iswctype_l.texi: Likewise.
17349         * doc/posix-functions/iswdigit_l.texi: Likewise.
17350         * doc/posix-functions/iswgraph_l.texi: Likewise.
17351         * doc/posix-functions/iswlower_l.texi: Likewise.
17352         * doc/posix-functions/iswprint_l.texi: Likewise.
17353         * doc/posix-functions/iswpunct_l.texi: Likewise.
17354         * doc/posix-functions/iswspace_l.texi: Likewise.
17355         * doc/posix-functions/iswupper_l.texi: Likewise.
17356         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17357         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17358         * doc/posix-functions/open_wmemstream.texi: Likewise.
17359         * doc/posix-functions/swscanf.texi: Likewise.
17360         * doc/posix-functions/towctrans_l.texi: Likewise.
17361         * doc/posix-functions/towlower.texi: Likewise.
17362         * doc/posix-functions/towlower_l.texi: Likewise.
17363         * doc/posix-functions/towupper.texi: Likewise.
17364         * doc/posix-functions/towupper_l.texi: Likewise.
17365         * doc/posix-functions/vfwprintf.texi: Likewise.
17366         * doc/posix-functions/vfwscanf.texi: Likewise.
17367         * doc/posix-functions/vswscanf.texi: Likewise.
17368         * doc/posix-functions/vwprintf.texi: Likewise.
17369         * doc/posix-functions/vwscanf.texi: Likewise.
17370         * doc/posix-functions/wcpcpy.texi: Likewise.
17371         * doc/posix-functions/wcpncpy.texi: Likewise.
17372         * doc/posix-functions/wcscasecmp.texi: Likewise.
17373         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17374         * doc/posix-functions/wcscoll_l.texi: Likewise.
17375         * doc/posix-functions/wcsdup.texi: Likewise.
17376         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17377         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17378         * doc/posix-functions/wcsnlen.texi: Likewise.
17379         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17380         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17381         * doc/posix-functions/wctrans_l.texi: Likewise.
17382         * doc/posix-functions/wctype_l.texi: Likewise.
17383         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17384         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17385         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17386         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17387         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17388         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17389         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17390         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17391         * doc/glibc-functions/wcschrnul.texi: Likewise.
17392         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17393         * doc/glibc-functions/wcstod_l.texi: Likewise.
17394         * doc/glibc-functions/wcstof_l.texi: Likewise.
17395         * doc/glibc-functions/wcstol_l.texi: Likewise.
17396         * doc/glibc-functions/wcstold_l.texi: Likewise.
17397         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17398         * doc/glibc-functions/wcstoq.texi: Likewise.
17399         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17400         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17401         * doc/glibc-functions/wcstouq.texi: Likewise.
17402         * doc/glibc-functions/wmempcpy.texi: Likewise.
17403
17404 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17405             Eric Blake  <ebb9@byu.net>
17406             Paolo Bonzini  <bonzini@gnu.org>
17407             Bruno Haible  <bruno@clisp.org>
17408
17409         Make c-stack work on Haiku.
17410         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17411         (c_stack_action): Use SA_ONSTACK flag.
17412
17413 2008-12-22  Bruno Haible  <bruno@clisp.org>
17414
17415         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17416
17417 2008-12-22  Bruno Haible  <bruno@clisp.org>
17418
17419         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17420         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17421         being overridden.
17422         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17423         New macros.
17424         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17426         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17427         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17428
17429 2008-12-22  Bruno Haible  <bruno@clisp.org>
17430
17431         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17432         from test code.
17433
17434 2008-12-22  Eric Blake  <ebb9@byu.net>
17435
17436         Avoid gcc warnings on cygwin.
17437         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17438         Avoid unused variable.
17439         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17440         Likewise.
17441
17442 2008-12-22  Bruno Haible  <bruno@clisp.org>
17443
17444         Remove HAVE_MBRTOWC conditionals.
17445         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17446         (mbscasecmp): Assume mbrtowc function.
17447         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17448         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17449         * lib/mbschr.c: Include mbuiter.h unconditionally.
17450         (mbschr): Assume mbrtowc function.
17451         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17452         (mbscspn): Assume mbrtowc function.
17453         * lib/mbslen.c: Include mbuiter.h unconditionally.
17454         (mbslen): Assume mbrtowc function.
17455         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17456         (mbsncasecmp): Assume mbrtowc function.
17457         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17458         (mbsnlen): Assume mbrtowc function.
17459         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17460         (mbspbrk): Assume mbrtowc function.
17461         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17462         (mbspcasecmp): Assume mbrtowc function.
17463         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17464         (mbsrchr): Assume mbrtowc function.
17465         * lib/mbssep.c: Include mbuiter.h unconditionally.
17466         (mbssep): Assume mbrtowc function.
17467         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17468         (mbsspn): Assume mbrtowc function.
17469         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17470         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17471         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17472         (mbstok_r): Assume mbrtowc function.
17473         * lib/propername.c: Include mbuiter.h unconditionally.
17474         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17475         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17476         (trim2): Assume mbrtowc function.
17477         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17478         (mbsnwidth): Assume mbrtowc function.
17479         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17480         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17481         fallback definitions.
17482         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17483
17484 2008-12-22  Bruno Haible  <bruno@clisp.org>
17485
17486         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17487
17488 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17489
17490         * modules/regex: Request emulations for the mb*/wc* functions we need.
17491         * m4/regex.m4: Don't look for those functions here.
17492         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17493
17494 2008-12-22  Bruno Haible  <bruno@clisp.org>
17495
17496         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17497
17498 2008-12-21  Bruno Haible  <bruno@clisp.org>
17499
17500         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17501         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17502         (Include): Remove conditionalization.
17503         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17504         (Include): Remove conditionalization.
17505         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17506         (Include): Remove conditionalization.
17507         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17508         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17509         * NEWS: Mention the change.
17510         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17511         via Sergey Poznyakoff <gray@gnu.org.ua>.
17512
17513 2008-12-21  Bruno Haible  <bruno@clisp.org>
17514
17515         * MODULES.html.sh (Extended multibyte and wide character utilities
17516         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17517         wcrtomb, wcsrtombs.
17518         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17519         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17520         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17521         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17522
17523 2008-12-21  Bruno Haible  <bruno@clisp.org>
17524
17525         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17526
17527 2008-12-21  Bruno Haible  <bruno@clisp.org>
17528
17529         * modules/wcsnrtombs-tests: New file.
17530         * tests/test-wcsnrtombs1.sh: New file.
17531         * tests/test-wcsnrtombs2.sh: New file.
17532         * tests/test-wcsnrtombs3.sh: New file.
17533         * tests/test-wcsnrtombs4.sh: New file.
17534         * tests/test-wcsnrtombs.c: New file.
17535
17536         New module 'wcsnrtombs'.
17537         * lib/wchar.in.h (wcsnrtombs): New declaration.
17538         * lib/wcsnrtombs.c: New file.
17539         * lib/wcsrtombs-state.c: New file.
17540         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17541         (internal_state): Remove variable.
17542         * m4/wcsnrtombs.m4: New file.
17543         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17544         compilation units.
17545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17546         HAVE_WCSNRTOMBS.
17547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17548         HAVE_WCSNRTOMBS.
17549         * modules/wcsnrtombs: New file.
17550         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17551         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17552
17553 2008-12-21  Bruno Haible  <bruno@clisp.org>
17554
17555         * modules/wcsrtombs-tests: New file.
17556         * tests/test-wcsrtombs1.sh: New file.
17557         * tests/test-wcsrtombs2.sh: New file.
17558         * tests/test-wcsrtombs3.sh: New file.
17559         * tests/test-wcsrtombs4.sh: New file.
17560         * tests/test-wcsrtombs.c: New file.
17561
17562         New module 'wcsrtombs'.
17563         * lib/wchar.in.h (wcsrtombs): New declaration.
17564         * lib/wcsrtombs.c: New file.
17565         * m4/wcsrtombs.m4: New file.
17566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17567         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17569         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17570         * modules/wcsrtombs: New file.
17571         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17572         bugs.
17573
17574 2008-12-21  Bruno Haible  <bruno@clisp.org>
17575
17576         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17577         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17578         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17579         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17580         if not correct.
17581         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17582         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17583         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17584         m4/locale-zh.m4, m4/codeset.m4.
17585         * doc/posix-functions/wcrtomb.texi: Document the bug.
17586
17587 2008-12-21  Bruno Haible  <bruno@clisp.org>
17588
17589         Work around a btowc() bug on IRIX 6.5.
17590         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17591         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17592         REPLACE_WTOBC if not.
17593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17594         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17595         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17596
17597 2008-12-21  Bruno Haible  <bruno@clisp.org>
17598
17599         * modules/wcrtomb-tests: New file.
17600         * tests/test-wcrtomb.sh: New file.
17601         * tests/test-wcrtomb.c: New file.
17602
17603         New module 'wcrtomb'.
17604         * lib/wchar.in.h (wcrtomb): New declaration.
17605         * lib/wcrtomb.c: New file.
17606         * m4/wcrtomb.m4: New file.
17607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17608         HAVE_WCRTOMB.
17609         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17610         HAVE_WCRTOMB.
17611         * modules/wcrtomb: New file.
17612         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17613
17614 2008-12-21  Bruno Haible  <bruno@clisp.org>
17615
17616         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17617         * modules/mbsrtowcs (Files): Likewise.
17618         * modules/wctob (Files): Likewise.
17619         * modules/c-strcase-tests (Files): Likewise.
17620         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17621         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17622         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17623         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17624         * modules/vasnprintf-posix-tests (Files): Likewise.
17625
17626 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17627
17628         gitlog-to-changelog: pass all command-line arguments to git-log
17629         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17630         it is sometimes convenient to filter the commits in various ways.
17631         gitlog-to-changelog only allows --since to specify a start date,
17632         but git-log itself supports many other filtering mechanisms.
17633         At the moment, I want to filter by branch name.  Rather than
17634         adding a --branch option to gitlog-to-changelog, it seems more
17635         flexible to simply pass all options directly to git-log and let
17636         git do the work.  Notice that this effectively makes --since a
17637         redundant option for gitlog-to-changelog, but removing it would
17638         require current usage to change since calls would then require
17639         an additional '--'.
17640
17641 2008-12-21  Bruno Haible  <bruno@clisp.org>
17642
17643         * modules/mbsnrtowcs-tests: New file.
17644         * tests/test-mbsnrtowcs1.sh: New file.
17645         * tests/test-mbsnrtowcs2.sh: New file.
17646         * tests/test-mbsnrtowcs3.sh: New file.
17647         * tests/test-mbsnrtowcs4.sh: New file.
17648         * tests/test-mbsnrtowcs.c: New file.
17649
17650         New module 'mbsnrtowcs'.
17651         * lib/wchar.in.h (mbsnrtowcs): New declaration.
17652         * lib/mbsnrtowcs.c: New file.
17653         * lib/mbsrtowcs-state.c: New file.
17654         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
17655         (internal_state): Remove variable.
17656         * m4/mbsnrtowcs.m4: New file.
17657         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17658         compilation units.
17659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17660         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17661         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17662         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17663         * modules/mbsnrtowcs: New file.
17664         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17665         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17666         portability problem.
17667
17668 2008-12-21  Bruno Haible  <bruno@clisp.org>
17669
17670         Work around mbsrtowcs bug.
17671         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17672         (gl_FUNC_MBSRTOWCS): Invoke it.
17673         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17674         m4/locale-zh.m4.
17675         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17676
17677 2008-12-21  Bruno Haible  <bruno@clisp.org>
17678
17679         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17680
17681 2008-12-21  Bruno Haible  <bruno@clisp.org>
17682
17683         Update doc for AIX.
17684         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17685         16-bit wchar_t type.
17686         * doc/posix-functions/btowc.texi: Likewise.
17687         * doc/posix-functions/fgetwc.texi: Likewise.
17688         * doc/posix-functions/fgetws.texi: Likewise.
17689         * doc/posix-functions/fputwc.texi: Likewise.
17690         * doc/posix-functions/fputws.texi: Likewise.
17691         * doc/posix-functions/fwide.texi: Likewise.
17692         * doc/posix-functions/fwprintf.texi: Likewise.
17693         * doc/posix-functions/fwscanf.texi: Likewise.
17694         * doc/posix-functions/getwchar.texi: Likewise.
17695         * doc/posix-functions/getwc.texi: Likewise.
17696         * doc/posix-functions/iswalnum.texi: Likewise.
17697         * doc/posix-functions/iswalpha.texi: Likewise.
17698         * doc/posix-functions/iswblank.texi: Likewise.
17699         * doc/posix-functions/iswcntrl.texi: Likewise.
17700         * doc/posix-functions/iswctype.texi: Likewise.
17701         * doc/posix-functions/iswdigit.texi: Likewise.
17702         * doc/posix-functions/iswgraph.texi: Likewise.
17703         * doc/posix-functions/iswlower.texi: Likewise.
17704         * doc/posix-functions/iswprint.texi: Likewise.
17705         * doc/posix-functions/iswpunct.texi: Likewise.
17706         * doc/posix-functions/iswspace.texi: Likewise.
17707         * doc/posix-functions/iswupper.texi: Likewise.
17708         * doc/posix-functions/iswxdigit.texi: Likewise.
17709         * doc/posix-functions/mbrtowc.texi: Likewise.
17710         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17711         * doc/posix-functions/mbstowcs.texi: Likewise.
17712         * doc/posix-functions/mbtowc.texi: Likewise.
17713         * doc/posix-functions/putwchar.texi: Likewise.
17714         * doc/posix-functions/putwc.texi: Likewise.
17715         * doc/posix-functions/swprintf.texi: Likewise.
17716         * doc/posix-functions/tolower.texi: Likewise.
17717         * doc/posix-functions/toupper.texi: Likewise.
17718         * doc/posix-functions/towctrans.texi: Likewise.
17719         * doc/posix-functions/ungetwc.texi: Likewise.
17720         * doc/posix-functions/vswprintf.texi: Likewise.
17721         * doc/posix-functions/wcrtomb.texi: Likewise.
17722         * doc/posix-functions/wcscat.texi: Likewise.
17723         * doc/posix-functions/wcschr.texi: Likewise.
17724         * doc/posix-functions/wcscmp.texi: Likewise.
17725         * doc/posix-functions/wcscoll.texi: Likewise.
17726         * doc/posix-functions/wcscpy.texi: Likewise.
17727         * doc/posix-functions/wcscspn.texi: Likewise.
17728         * doc/posix-functions/wcsftime.texi: Likewise.
17729         * doc/posix-functions/wcslen.texi: Likewise.
17730         * doc/posix-functions/wcsncat.texi: Likewise.
17731         * doc/posix-functions/wcsncmp.texi: Likewise.
17732         * doc/posix-functions/wcsncpy.texi: Likewise.
17733         * doc/posix-functions/wcspbrk.texi: Likewise.
17734         * doc/posix-functions/wcsrchr.texi: Likewise.
17735         * doc/posix-functions/wcsrtombs.texi: Likewise.
17736         * doc/posix-functions/wcsspn.texi: Likewise.
17737         * doc/posix-functions/wcsstr.texi: Likewise.
17738         * doc/posix-functions/wcstod.texi: Likewise.
17739         * doc/posix-functions/wcstof.texi: Likewise.
17740         * doc/posix-functions/wcstoimax.texi: Likewise.
17741         * doc/posix-functions/wcstok.texi: Likewise.
17742         * doc/posix-functions/wcstold.texi: Likewise.
17743         * doc/posix-functions/wcstoll.texi: Likewise.
17744         * doc/posix-functions/wcstol.texi: Likewise.
17745         * doc/posix-functions/wcstombs.texi: Likewise.
17746         * doc/posix-functions/wcstoull.texi: Likewise.
17747         * doc/posix-functions/wcstoul.texi: Likewise.
17748         * doc/posix-functions/wcstoumax.texi: Likewise.
17749         * doc/posix-functions/wcswidth.texi: Likewise.
17750         * doc/posix-functions/wcsxfrm.texi: Likewise.
17751         * doc/posix-functions/wctob.texi: Likewise.
17752         * doc/posix-functions/wctomb.texi: Likewise.
17753         * doc/posix-functions/wctrans.texi: Likewise.
17754         * doc/posix-functions/wctype.texi: Likewise.
17755         * doc/posix-functions/wcwidth.texi: Likewise.
17756         * doc/posix-functions/wmemchr.texi: Likewise.
17757         * doc/posix-functions/wmemcmp.texi: Likewise.
17758         * doc/posix-functions/wmemcpy.texi: Likewise.
17759         * doc/posix-functions/wmemmove.texi: Likewise.
17760         * doc/posix-functions/wmemset.texi: Likewise.
17761         * doc/posix-functions/wprintf.texi: Likewise.
17762         * doc/posix-functions/wscanf.texi: Likewise.
17763
17764 2008-12-21  Bruno Haible  <bruno@clisp.org>
17765
17766         Update doc for HP-UX 11.11.
17767         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17768         in HP-UX version 11.00, not in all versions of HP-UX 11.
17769         * doc/posix-functions/fwide.texi: Likewise.
17770         * doc/posix-functions/fwprintf.texi: Likewise.
17771         * doc/posix-functions/fwscanf.texi: Likewise.
17772         * doc/posix-functions/inet_ntop.texi: Likewise.
17773         * doc/posix-functions/inet_pton.texi: Likewise.
17774         * doc/posix-functions/mbrlen.texi: Likewise.
17775         * doc/posix-functions/mbrtowc.texi: Likewise.
17776         * doc/posix-functions/mbsinit.texi: Likewise.
17777         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17778         * doc/posix-functions/swprintf.texi: Likewise.
17779         * doc/posix-functions/swscanf.texi: Likewise.
17780         * doc/posix-functions/towctrans.texi: Likewise.
17781         * doc/posix-functions/vfwprintf.texi: Likewise.
17782         * doc/posix-functions/vswprintf.texi: Likewise.
17783         * doc/posix-functions/vwprintf.texi: Likewise.
17784         * doc/posix-functions/wcrtomb.texi: Likewise.
17785         * doc/posix-functions/wcsrtombs.texi: Likewise.
17786         * doc/posix-functions/wcsstr.texi: Likewise.
17787         * doc/posix-functions/wctob.texi: Likewise.
17788         * doc/posix-functions/wctrans.texi: Likewise.
17789         * doc/posix-functions/wmemchr.texi: Likewise.
17790         * doc/posix-functions/wmemcmp.texi: Likewise.
17791         * doc/posix-functions/wmemcpy.texi: Likewise.
17792         * doc/posix-functions/wmemmove.texi: Likewise.
17793         * doc/posix-functions/wmemset.texi: Likewise.
17794         * doc/posix-functions/wprintf.texi: Likewise.
17795         * doc/posix-functions/wscanf.texi: Likewise.
17796
17797 2008-12-21  Bruno Haible  <bruno@clisp.org>
17798
17799         Work around a portability problem.
17800         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17801         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17802
17803 2008-12-20  Bruno Haible  <bruno@clisp.org>
17804
17805         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17806         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17807         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17809         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17810
17811         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17812         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17813         set.
17814         (GNULIB_defined_mbstate_t): New macro.
17815         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17816         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17817         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17818         reuses the system's mbrtowc function but works around the bugs.
17819         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17820         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17821         macros.
17822         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17823         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17824         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17825         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17826         REPLACE_MBSINIT if mbsinit needs to be overridden.
17827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17828         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17829         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17830         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17831         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17832         m4/locale-zh.m4.
17833         (Depends): Add mbsinit.
17834         * modules/mbsinit (Depends): Add mbrtowc.
17835         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17836
17837 2008-12-20  Bruno Haible  <bruno@clisp.org>
17838
17839         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17840         so that there are no conversion errors on AIX.
17841         * tests/test-mbsrtowcs.c (main): LIkewise.
17842
17843 2008-12-20  Bruno Haible  <bruno@clisp.org>
17844
17845         Work around wctob bug on Solaris <= 9.
17846         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17847         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17849         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17850         * modules/wctob (Files): Add m4/locale-fr.m4.
17851         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17852
17853 2008-12-20  Bruno Haible  <bruno@clisp.org>
17854
17855         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17856         /dev/null.
17857         * tests/test-select-in.sh: Likewise.
17858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17859
17860 2008-12-20  Bruno Haible  <bruno@clisp.org>
17861
17862         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17863         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17864         Cygwin 1.5.x.
17865
17866 2008-12-20  Bruno Haible  <bruno@clisp.org>
17867
17868         Ensure mbstate_t is defined on HP-UX 11.11.
17869         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17870         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17871         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17872         AC_USE_SYSTEM_EXTENSIONS.
17873         * modules/fnmatch (Depends-on): Add extensions.
17874         * modules/mbrlen (Depends-on): Likewise.
17875         * modules/mbrtowc (Depends-on): Likewise.
17876         * modules/mbsinit (Depends-on): Likewise.
17877         * modules/mbsrtowcs (Depends-on): Likewise.
17878         * modules/mbswidth (Depends-on): Likewise.
17879         * modules/quotearg (Depends-on): Likewise.
17880         * modules/strftime (Depends-on): Likewise.
17881
17882 2008-12-20  Bruno Haible  <bruno@clisp.org>
17883
17884         Ensure wctob is declared on IRIX 6.5.
17885         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17886         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17887         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17889         of HAVE_WCTOB.
17890         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17891         HAVE_WCTOB.
17892         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17893
17894 2008-12-19  Bruno Haible  <bruno@clisp.org>
17895
17896         * modules/mbsrtowcs-tests: New file.
17897         * tests/test-mbsrtowcs1.sh: New file.
17898         * tests/test-mbsrtowcs2.sh: New file.
17899         * tests/test-mbsrtowcs3.sh: New file.
17900         * tests/test-mbsrtowcs4.sh: New file.
17901         * tests/test-mbsrtowcs.c: New file.
17902
17903         New module 'mbsrtowcs'.
17904         * lib/wchar.in.h (mbsrtowcs): New declaration.
17905         * lib/mbsrtowcs.c: New file.
17906         * m4/mbsrtowcs.m4: New file.
17907         * modules/mbsrtowcs: New file.
17908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17909         HAVE_MBSRTOWCS.
17910         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17911         HAVE_MBSRTOWCS.
17912         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17913
17914 2008-12-19  Bruno Haible  <bruno@clisp.org>
17915
17916         New module 'mbrlen'.
17917         * lib/wchar.in.h (mbrlen): New declaration.
17918         * lib/mbrlen.c: New file.
17919         * m4/mbrlen.m4: New file.
17920         * modules/mbrlen: New file.
17921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17922         HAVE_MBRLEN.
17923         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17924         HAVE_MBRLEN.
17925         * doc/posix-functions/mbrlen.texi: Document the new module.
17926
17927 2008-12-19  Bruno Haible  <bruno@clisp.org>
17928
17929         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17930         * modules/mbrtowc (Depends-on): Add verify.
17931         Suggested by Paul Eggert.
17932
17933 2008-12-18  Bruno Haible  <bruno@clisp.org>
17934
17935         * modules/mbsinit-tests: New file.
17936         * tests/test-mbsinit.sh: New file.
17937         * tests/test-mbsinit.c: New file.
17938
17939 2008-12-18  Bruno Haible  <bruno@clisp.org>
17940
17941         * modules/mbrtowc-tests: New file.
17942         * tests/test-mbrtowc1.sh: New file.
17943         * tests/test-mbrtowc2.sh: New file.
17944         * tests/test-mbrtowc3.sh: New file.
17945         * tests/test-mbrtowc4.sh: New file.
17946         * tests/test-mbrtowc.c: New file.
17947
17948         New module 'mbrtowc'.
17949         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17950         mbsinit and mbrtowc.
17951         (mbrtowc): New declaration.
17952         * lib/mbrtowc.c: New file.
17953         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17954         * modules/mbrtowc: New file.
17955         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17956         HAVE_MBRTOWC.
17957         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17958         HAVE_MBRTOWC.
17959         * doc/posix-functions/mbrtowc.texi: Document the new module.
17960
17961 2008-12-18  Bruno Haible  <bruno@clisp.org>
17962
17963         New module 'wctob'.
17964         * lib/wchar.in.h (wctob): New declaration.
17965         * lib/wctob.c: New file.
17966         * m4/wctob.m4: New file.
17967         * modules/wctob: New file.
17968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17969         HAVE_WCTOB.
17970         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17971         * doc/posix-functions/wctob.texi: Document the new module.
17972
17973 2008-12-18  Bruno Haible  <bruno@clisp.org>
17974
17975         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17976         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17977
17978 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17979
17980         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17981         G. Christensen" <tgc@jupiterrise.com>.
17982
17983         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17984         G. Christensen" <tgc@jupiterrise.com>.
17985
17986         * lib/flock.c: Need to include string.h.  Reported by "Tom
17987         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17988         <ebb9@byu.net>.
17989
17990 2008-12-18  Bruno Haible  <bruno@clisp.org>
17991
17992         * m4/locale-ja.m4: New file, from GNU gettext.
17993
17994 2008-12-17  Bruno Haible  <bruno@clisp.org>
17995
17996         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17997         Suggested by Eric Blake.
17998
17999 2008-12-17  Bruno Haible  <bruno@clisp.org>
18000
18001         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18002
18003 2008-12-17  Bruno Haible  <bruno@clisp.org>
18004
18005         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18006         * modules/mbsinit (Depends-on): Add verify.
18007         Suggested by Paul Eggert.
18008
18009 2008-12-17  Bruno Haible  <bruno@clisp.org>
18010
18011         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18012         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18013         gl_FUNC_MBRTOWC.
18014         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18015         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18016         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18017         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18018         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18019         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18020         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18021         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18022         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18023         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18024         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18025         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18026         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18027         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18028         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18029         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18030         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18031         * modules/trim (configure.ac): Likewise.
18032
18033 2008-12-17  Bruno Haible  <bruno@clisp.org>
18034
18035         * modules/btowc-tests: New file.
18036         * tests/test-btowc1.sh: New file.
18037         * tests/test-btowc2.sh: New file.
18038         * tests/test-btowc.c: New file.
18039
18040         New module 'btowc'.
18041         * lib/wchar.in.h (btowc): New declaration.
18042         * lib/btowc.c: New file.
18043         * m4/btowc.m4: New file.
18044         * modules/btowc: New file.
18045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18046         HAVE_BTOWC.
18047         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18048         * doc/posix-functions/btowc.texi: Document the new module.
18049
18050 2008-12-17  Bruno Haible  <bruno@clisp.org>
18051
18052         New module 'mbsinit'.
18053         * lib/wchar.in.h (mbsinit): New declaration.
18054         * lib/mbsinit.c: New file.
18055         * m4/mbsinit.m4: New file.
18056         * modules/mbsinit: New file.
18057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18058         HAVE_MBSINIT.
18059         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18060         HAVE_MBSINIT.
18061         * doc/posix-functions/mbsinit.texi: Document the new module.
18062
18063 2008-12-16  Bruno Haible  <bruno@clisp.org>
18064
18065         * lib/unistd.in.h: Add comment.
18066         * tests/test-environ.c: Don't include <stdlib.h>.
18067
18068 2008-12-16  Bruno Haible  <bruno@clisp.org>
18069
18070         * lib/parse-duration.h (parse_duration): Document return value
18071         convention.
18072         * lib/parse-duration.c: Include specification header first. Add
18073         comments.
18074         (_): Remove macro.
18075         (parse_year_month_day, parse_hour_minute_second): Move side effects
18076         outside of strchr call.
18077         (parse_non_iso8601): Move side effects outside of isspace call.
18078         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18079         call.
18080
18081 2008-12-16  Bruno Haible  <bruno@clisp.org>
18082
18083         * tests/test-parse-duration.sh: Produce no output when the test
18084         succeeds.
18085
18086 2008-12-16  Bruno Haible  <bruno@clisp.org>
18087
18088         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18089         expressions.
18090
18091 2008-12-15  Bruno Haible  <bruno@clisp.org>
18092
18093         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18094         * doc/glibc-functions/flistxattr.texi: Likewise.
18095         * doc/glibc-functions/fopencookie.texi: Likewise.
18096         * doc/glibc-functions/fremovexattr.texi: Likewise.
18097         * doc/glibc-functions/fsetxattr.texi: Likewise.
18098         * doc/glibc-functions/getxattr.texi: Likewise.
18099         * doc/glibc-functions/lgetxattr.texi: Likewise.
18100         * doc/glibc-functions/listxattr.texi: Likewise.
18101         * doc/glibc-functions/llistxattr.texi: Likewise.
18102         * doc/glibc-functions/lremovexattr.texi: Likewise.
18103         * doc/glibc-functions/lsetxattr.texi: Likewise.
18104         * doc/glibc-functions/removexattr.texi: Likewise.
18105         * doc/glibc-functions/setxattr.texi: Likewise.
18106         * doc/posix-functions/open_memstream.texi: Likewise.
18107
18108 2008-12-15  Eric Blake  <ebb9@byu.net>
18109
18110         Update doc for cygwin 1.7.
18111         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18112         functions.
18113         * doc/posix-functions/fchmodat.texi: Likewise.
18114         * doc/posix-functions/fchownat.texi: Likewise.
18115         * doc/posix-functions/fdopendir.texi: Likewise.
18116         * doc/posix-functions/fmemopen.texi: Likewise.
18117         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18118         * doc/posix-functions/fstatat.texi: Likewise.
18119         * doc/posix-functions/futimens.texi: Likewise.
18120         * doc/posix-functions/gai_strerror.texi: Likewise.
18121         * doc/posix-functions/getaddrinfo.texi: Likewise.
18122         * doc/posix-functions/getnameinfo.texi: Likewise.
18123         * doc/posix-functions/if_freenameindex.texi: Likewise.
18124         * doc/posix-functions/if_indextoname.texi: Likewise.
18125         * doc/posix-functions/if_nameindex.texi: Likewise.
18126         * doc/posix-functions/if_nametoindex.texi: Likewise.
18127         * doc/posix-functions/insque.texi: Likewise.
18128         * doc/posix-functions/linkat.texi: Likewise.
18129         * doc/posix-functions/llrint.texi: Likewise.
18130         * doc/posix-functions/llrintf.texi: Likewise.
18131         * doc/posix-functions/llrintl.texi: Likewise.
18132         * doc/posix-functions/lockf.texi: Likewise.
18133         * doc/posix-functions/lrintl.texi: Likewise.
18134         * doc/posix-functions/mkdirat.texi: Likewise.
18135         * doc/posix-functions/mkfifoat.texi: Likewise.
18136         * doc/posix-functions/mknodat.texi: Likewise.
18137         * doc/posix-functions/mq_close.texi: Likewise.
18138         * doc/posix-functions/mq_getattr.texi: Likewise.
18139         * doc/posix-functions/mq_notify.texi: Likewise.
18140         * doc/posix-functions/mq_open.texi: Likewise.
18141         * doc/posix-functions/mq_receive.texi: Likewise.
18142         * doc/posix-functions/mq_send.texi: Likewise.
18143         * doc/posix-functions/mq_setattr.texi: Likewise.
18144         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18145         * doc/posix-functions/mq_timedsend.texi: Likewise.
18146         * doc/posix-functions/mq_unlink.texi: Likewise.
18147         * doc/posix-functions/open_memstream.texi: Likewise.
18148         * doc/posix-functions/openat.texi: Likewise.
18149         * doc/posix-functions/posix_fadvise.texi: Likewise.
18150         * doc/posix-functions/posix_fallocate.texi: Likewise.
18151         * doc/posix-functions/posix_madvise.texi: Likewise.
18152         * doc/posix-functions/posix_memalign.texi: Likewise.
18153         * doc/posix-functions/posix_openpt.texi: Likewise.
18154         * doc/posix-functions/readlinkat.texi: Likewise.
18155         * doc/posix-functions/remque.texi: Likewise.
18156         * doc/posix-functions/renameat.texi: Likewise.
18157         * doc/posix-functions/rintl.texi: Likewise.
18158         * doc/posix-functions/sem_unlink.texi: Likewise.
18159         * doc/posix-functions/shm_open.texi: Likewise.
18160         * doc/posix-functions/shm_unlink.texi: Likewise.
18161         * doc/posix-functions/signgam.texi: Likewise.
18162         * doc/posix-functions/sigset.texi: Likewise.
18163         * doc/posix-functions/stpcpy.texi: Likewise.
18164         * doc/posix-functions/stpncpy.texi: Likewise.
18165         * doc/posix-functions/strerror.texi: Likewise.
18166         * doc/posix-functions/strtod.texi: Likewise.
18167         * doc/posix-functions/symlinkat.texi: Likewise.
18168         * doc/posix-functions/unlinkat.texi: Likewise.
18169         * doc/posix-functions/utimensat.texi: Likewise.
18170         * doc/glibc-functions/bindresvport.texi: Likewise.
18171         * doc/glibc-functions/dn_expand.texi: Likewise.
18172         * doc/glibc-functions/exp10.texi: Likewise.
18173         * doc/glibc-functions/exp10f.texi: Likewise.
18174         * doc/glibc-functions/fgetxattr.texi: Likewise.
18175         * doc/glibc-functions/flistxattr.texi: Likewise.
18176         * doc/glibc-functions/fopencookie.texi: Likewise.
18177         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18178         * doc/glibc-functions/fremovexattr.texi: Likewise.
18179         * doc/glibc-functions/fsetxattr.texi: Likewise.
18180         * doc/glibc-functions/getifaddrs.texi: Likewise.
18181         * doc/glibc-functions/getxattr.texi: Likewise.
18182         * doc/glibc-functions/lgetxattr.texi: Likewise.
18183         * doc/glibc-functions/listxattr.texi: Likewise.
18184         * doc/glibc-functions/llistxattr.texi: Likewise.
18185         * doc/glibc-functions/lremovexattr.texi: Likewise.
18186         * doc/glibc-functions/lsetxattr.texi: Likewise.
18187         * doc/glibc-functions/pow10.texi: Likewise.
18188         * doc/glibc-functions/pow10f.texi: Likewise.
18189         * doc/glibc-functions/rcmd_af.texi: Likewise.
18190         * doc/glibc-functions/removexattr.texi: Likewise.
18191         * doc/glibc-functions/res_init.texi: Likewise.
18192         * doc/glibc-functions/res_mkquery.texi: Likewise.
18193         * doc/glibc-functions/res_query.texi: Likewise.
18194         * doc/glibc-functions/res_querydomain.texi: Likewise.
18195         * doc/glibc-functions/res_send.texi: Likewise.
18196         * doc/glibc-functions/rresvport_af.texi: Likewise.
18197         * doc/glibc-functions/setxattr.texi: Likewise.
18198         * doc/glibc-functions/strcasestr.texi: Likewise.
18199
18200 2008-12-15  Bruno Haible  <bruno@clisp.org>
18201
18202         Fix compilation error on OSF/1 4.0.
18203         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18204         <sys/time.h>, simply delegate to the system header.
18205         Reported by Daniel Richard G. <oss@teragram.com>.
18206
18207 2008-12-15  Bruno Haible  <bruno@clisp.org>
18208
18209         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18210         * doc/posix-functions/fchmodat.texi: Likewise.
18211         * doc/posix-functions/fchownat.texi: Likewise.
18212         * doc/posix-functions/fdopendir.texi: Likewise.
18213         * doc/posix-functions/fstatat.texi: Likewise.
18214         * doc/posix-functions/mkdirat.texi: Likewise.
18215         * doc/posix-functions/unlinkat.texi: Likewise.
18216
18217 2008-12-14  Bruno Haible  <bruno@clisp.org>
18218
18219         Update doc for POSIX:2008.
18220         * doc/posix-functions/faccessat.texi: New file.
18221         * doc/posix-functions/fchmodat.texi: New file.
18222         * doc/posix-functions/fchownat.texi: New file.
18223         * doc/posix-functions/fdopendir.texi: New file.
18224         * doc/posix-functions/fstatat.texi: New file.
18225         * doc/posix-functions/futimens.texi: New file.
18226         * doc/posix-functions/linkat.texi: New file.
18227         * doc/posix-functions/mkdirat.texi: New file.
18228         * doc/posix-functions/mkfifoat.texi: New file.
18229         * doc/posix-functions/mknodat.texi: New file.
18230         * doc/posix-functions/open_wmemstream.texi: New file.
18231         * doc/posix-functions/openat.texi: New file.
18232         * doc/posix-functions/psiginfo.texi: New file.
18233         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18234         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18235         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18236         * doc/posix-functions/readlinkat.texi: New file.
18237         * doc/posix-functions/renameat.texi: New file.
18238         * doc/posix-functions/strerror_l.texi: New file.
18239         * doc/posix-functions/symlinkat.texi: New file.
18240         * doc/posix-functions/unlinkat.texi: New file.
18241         * doc/posix-functions/utimensat.texi: New file.
18242         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18243
18244 2008-12-14  Bruno Haible  <bruno@clisp.org>
18245
18246         Update doc for POSIX:2008.
18247         * doc/posix-functions/alphasort.texi: Renamed from
18248         doc/glibc-functions/alphasort.texi.
18249         * doc/posix-functions/dirfd.texi: Renamed from
18250         doc/glibc-functions/dirfd.texi.
18251         * doc/posix-functions/dprintf.texi: Renamed from
18252         doc/glibc-functions/dprintf.texi.
18253         * doc/posix-functions/duplocale.texi: Renamed from
18254         doc/glibc-functions/duplocale.texi.
18255         * doc/posix-functions/fexecve.texi: Renamed from
18256         doc/glibc-functions/fexecve.texi.
18257         * doc/posix-functions/fmemopen.texi: Renamed from
18258         doc/glibc-functions/fmemopen.texi.
18259         * doc/posix-functions/freelocale.texi: Renamed from
18260         doc/glibc-functions/freelocale.texi.
18261         * doc/posix-functions/getdate_err.texi: Renamed from
18262         doc/glibc-functions/getdate_err.texi.
18263         * doc/posix-functions/isalnum_l.texi: Renamed from
18264         doc/glibc-functions/isalnum_l.texi.
18265         * doc/posix-functions/isalpha_l.texi: Renamed from
18266         doc/glibc-functions/isalpha_l.texi.
18267         * doc/posix-functions/isblank_l.texi: Renamed from
18268         doc/glibc-functions/isblank_l.texi.
18269         * doc/posix-functions/iscntrl_l.texi: Renamed from
18270         doc/glibc-functions/iscntrl_l.texi.
18271         * doc/posix-functions/isdigit_l.texi: Renamed from
18272         doc/glibc-functions/isdigit_l.texi.
18273         * doc/posix-functions/isgraph_l.texi: Renamed from
18274         doc/glibc-functions/isgraph_l.texi.
18275         * doc/posix-functions/islower_l.texi: Renamed from
18276         doc/glibc-functions/islower_l.texi.
18277         * doc/posix-functions/isprint_l.texi: Renamed from
18278         doc/glibc-functions/isprint_l.texi.
18279         * doc/posix-functions/ispunct_l.texi: Renamed from
18280         doc/glibc-functions/ispunct_l.texi.
18281         * doc/posix-functions/isspace_l.texi: Renamed from
18282         doc/glibc-functions/isspace_l.texi.
18283         * doc/posix-functions/isupper_l.texi: Renamed from
18284         doc/glibc-functions/isupper_l.texi.
18285         * doc/posix-functions/iswalnum_l.texi: Renamed from
18286         doc/glibc-functions/iswalnum_l.texi.
18287         * doc/posix-functions/iswalpha_l.texi: Renamed from
18288         doc/glibc-functions/iswalpha_l.texi.
18289         * doc/posix-functions/iswblank_l.texi: Renamed from
18290         doc/glibc-functions/iswblank_l.texi.
18291         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18292         doc/glibc-functions/iswcntrl_l.texi.
18293         * doc/posix-functions/iswctype_l.texi: Renamed from
18294         doc/glibc-functions/iswctype_l.texi.
18295         * doc/posix-functions/iswdigit_l.texi: Renamed from
18296         doc/glibc-functions/iswdigit_l.texi.
18297         * doc/posix-functions/iswgraph_l.texi: Renamed from
18298         doc/glibc-functions/iswgraph_l.texi.
18299         * doc/posix-functions/iswlower_l.texi: Renamed from
18300         doc/glibc-functions/iswlower_l.texi.
18301         * doc/posix-functions/iswprint_l.texi: Renamed from
18302         doc/glibc-functions/iswprint_l.texi.
18303         * doc/posix-functions/iswpunct_l.texi: Renamed from
18304         doc/glibc-functions/iswpunct_l.texi.
18305         * doc/posix-functions/iswspace_l.texi: Renamed from
18306         doc/glibc-functions/iswspace_l.texi.
18307         * doc/posix-functions/iswupper_l.texi: Renamed from
18308         doc/glibc-functions/iswupper_l.texi.
18309         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18310         doc/glibc-functions/iswxdigit_l.texi.
18311         * doc/posix-functions/isxdigit_l.texi: Renamed from
18312         doc/glibc-functions/isxdigit_l.texi.
18313         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18314         doc/glibc-functions/mbsnrtowcs.texi.
18315         * doc/posix-functions/mkdtemp.texi: Renamed from
18316         doc/glibc-functions/mkdtemp.texi.
18317         * doc/posix-functions/newlocale.texi: Renamed from
18318         doc/glibc-functions/newlocale.texi.
18319         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18320         doc/glibc-functions/nl_langinfo_l.texi.
18321         * doc/posix-functions/open_memstream.texi: Renamed from
18322         doc/glibc-functions/open_memstream.texi.
18323         * doc/posix-functions/opterr.texi: Renamed from
18324         doc/glibc-functions/opterr.texi.
18325         * doc/posix-functions/optind.texi: Renamed from
18326         doc/glibc-functions/optind.texi.
18327         * doc/posix-functions/optopt.texi: Renamed from
18328         doc/glibc-functions/optopt.texi.
18329         * doc/posix-functions/psignal.texi: Renamed from
18330         doc/glibc-functions/psignal.texi.
18331         * doc/posix-functions/scandir.texi: Renamed from
18332         doc/glibc-functions/scandir.texi.
18333         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18334         doc/glibc-functions/sched_get_priority_min.texi.
18335         * doc/posix-functions/signgam.texi: Renamed from
18336         doc/glibc-functions/signgam.texi.
18337         * doc/posix-functions/stpcpy.texi: Renamed from
18338         doc/glibc-functions/stpcpy.texi.
18339         * doc/posix-functions/stpncpy.texi: Renamed from
18340         doc/glibc-functions/stpncpy.texi.
18341         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18342         doc/glibc-functions/strcasecmp_l.texi.
18343         * doc/posix-functions/strcoll_l.texi: Renamed from
18344         doc/glibc-functions/strcoll_l.texi.
18345         * doc/posix-functions/strfmon_l.texi: Renamed from
18346         doc/glibc-functions/strfmon_l.texi.
18347         * doc/posix-functions/strftime_l.texi: Renamed from
18348         doc/glibc-functions/strftime_l.texi.
18349         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18350         doc/glibc-functions/strncasecmp_l.texi.
18351         * doc/posix-functions/strndup.texi: Renamed from
18352         doc/glibc-functions/strndup.texi.
18353         * doc/posix-functions/strnlen.texi: Renamed from
18354         doc/glibc-functions/strnlen.texi.
18355         * doc/posix-functions/strsignal.texi: Renamed from
18356         doc/glibc-functions/strsignal.texi.
18357         * doc/posix-functions/strxfrm_l.texi: Renamed from
18358         doc/glibc-functions/strxfrm_l.texi.
18359         * doc/posix-functions/timer_gettime.texi: Renamed from
18360         doc/glibc-functions/timer_gettime.texi.
18361         * doc/posix-functions/tolower_l.texi: Renamed from
18362         doc/glibc-functions/tolower_l.texi.
18363         * doc/posix-functions/toupper_l.texi: Renamed from
18364         doc/glibc-functions/toupper_l.texi.
18365         * doc/posix-functions/towctrans_l.texi: Renamed from
18366         doc/glibc-functions/towctrans_l.texi.
18367         * doc/posix-functions/towlower_l.texi: Renamed from
18368         doc/glibc-functions/towlower_l.texi.
18369         * doc/posix-functions/towupper_l.texi: Renamed from
18370         doc/glibc-functions/towupper_l.texi.
18371         * doc/posix-functions/uselocale.texi: Renamed from
18372         doc/glibc-functions/uselocale.texi.
18373         * doc/posix-functions/vdprintf.texi: Renamed from
18374         doc/glibc-functions/vdprintf.texi.
18375         * doc/posix-functions/wcpcpy.texi:
18376         Renamed from doc/glibc-functions/wcpcpy.texi.
18377         * doc/posix-functions/wcpncpy.texi: Renamed from
18378         doc/glibc-functions/wcpncpy.texi.
18379         * doc/posix-functions/wcscasecmp.texi: Renamed from
18380         doc/glibc-functions/wcscasecmp.texi.
18381         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18382         doc/glibc-functions/wcscasecmp_l.texi.
18383         * doc/posix-functions/wcscoll_l.texi: Renamed from
18384         doc/glibc-functions/wcscoll_l.texi.
18385         * doc/posix-functions/wcsdup.texi: Renamed from
18386         doc/glibc-functions/wcsdup.texi.
18387         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18388         doc/glibc-functions/wcsncasecmp.texi.
18389         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18390         doc/glibc-functions/wcsncasecmp_l.texi.
18391         * doc/posix-functions/wcsnlen.texi: Renamed from
18392         doc/glibc-functions/wcsnlen.texi.
18393         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18394         doc/glibc-functions/wcsnrtombs.texi.
18395         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18396         doc/glibc-functions/wcsxfrm_l.texi.
18397         * doc/posix-functions/wctrans_l.texi: Renamed from
18398         doc/glibc-functions/wctrans_l.texi.
18399         * doc/posix-functions/wctype_l.texi: Renamed from
18400         doc/glibc-functions/wctype_l.texi.
18401         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18402         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18403         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18404         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18405         these subsections.
18406         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18407         Remove sections.
18408
18409 2008-12-14  Bruno Haible  <bruno@clisp.org>
18410
18411         Update doc for POSIX:2008.
18412         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18413
18414 2008-12-14  Bruno Haible  <bruno@clisp.org>
18415
18416         Update doc for POSIX:2008.
18417         * doc/pastposix-functions/bcmp.texi: Renamed from
18418         doc/posix-functions/bcmp.texi.
18419         * doc/pastposix-functions/bcopy.texi: Renamed from
18420         doc/posix-functions/bcopy.texi.
18421         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18422         doc/posix-functions/bsd_signal.texi.
18423         * doc/pastposix-functions/bzero.texi: Renamed from
18424         doc/posix-functions/bzero.texi.
18425         * doc/pastposix-functions/ecvt.texi: Renamed from
18426         doc/posix-functions/ecvt.texi.
18427         * doc/pastposix-functions/fcvt.texi: Renamed from
18428         doc/posix-functions/fcvt.texi.
18429         * doc/pastposix-functions/ftime.texi: Renamed from
18430         doc/posix-functions/ftime.texi.
18431         * doc/pastposix-functions/gcvt.texi: Renamed from
18432         doc/posix-functions/gcvt.texi.
18433         * doc/pastposix-functions/getcontext.texi: Renamed from
18434         doc/posix-functions/getcontext.texi.
18435         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18436         doc/posix-functions/gethostbyaddr.texi.
18437         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18438         doc/posix-functions/gethostbyname.texi.
18439         * doc/pastposix-functions/getwd.texi: Renamed from
18440         doc/posix-functions/getwd.texi.
18441         * doc/pastposix-functions/h_errno.texi: Renamed from
18442         doc/posix-functions/h_errno.texi.
18443         * doc/pastposix-functions/index.texi: Renamed from
18444         doc/posix-functions/index.texi.
18445         * doc/pastposix-functions/makecontext.texi: Renamed from
18446         doc/posix-functions/makecontext.texi.
18447         * doc/pastposix-functions/mktemp.texi: Renamed from
18448         doc/posix-functions/mktemp.texi.
18449         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18450         doc/posix-functions/pthread_attr_getstackaddr.texi.
18451         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18452         doc/posix-functions/pthread_attr_setstackaddr.texi.
18453         * doc/pastposix-functions/rindex.texi: Renamed from
18454         doc/posix-functions/rindex.texi.
18455         * doc/pastposix-functions/scalb.texi: Renamed from
18456         doc/posix-functions/scalb.texi.
18457         * doc/pastposix-functions/setcontext.texi: Renamed from
18458         doc/posix-functions/setcontext.texi.
18459         * doc/pastposix-functions/swapcontext.texi: Renamed from
18460         doc/posix-functions/swapcontext.texi.
18461         * doc/pastposix-functions/ualarm.texi: Renamed from
18462         doc/posix-functions/ualarm.texi.
18463         * doc/pastposix-functions/usleep.texi: Renamed from
18464         doc/posix-functions/usleep.texi.
18465         * doc/pastposix-functions/vfork.texi: Renamed from
18466         doc/posix-functions/vfork.texi.
18467         * doc/pastposix-functions/wcswcs.texi: Renamed from
18468         doc/posix-functions/wcswcs.texi.
18469         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18470         (Function Substitutes): Update.
18471
18472 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18473
18474         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18475         m4/strerror.m4.
18476
18477 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18478             Bruno Haible  <bruno@clisp.org>
18479
18480         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18481
18482 2008-12-13  Bruno Haible  <bruno@clisp.org>
18483
18484         * modules/strtoull (Depends-on): Remove unistd.
18485
18486 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18487
18488         * modules/strtoull (Depends-on): Add stdlib.
18489
18490 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18491
18492         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18493
18494 2008-12-10  Jim Meyering  <meyering@redhat.com>
18495
18496         gl_ASSERT: don't say assertions are disabled when they're not
18497         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18498         "checking whether to enable assertions... no", when they are in
18499         fact enabled.  This is solely a bug in the output of configure.
18500         In spite of saying "no", NDEBUG was not defined in that case.
18501         Also, as noted by Eric Blake, leave assertions enabled upon
18502         --enable-assert=INVALID.
18503
18504 2008-12-10  Bruno Haible  <bruno@clisp.org>
18505
18506         Change MODULES.html to refer to POSIX:2008 where possible.
18507         * MODULES.html.sh (POSIX2008_URL): New variable.
18508         (posix_headers): Remove sys/timeb, ucontext.
18509         (posix2001_headers): New variable.
18510         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18511         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18512         index, makecontext, mktemp, pthread_attr_getstackaddr,
18513         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18514         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18515         (posix2001_functions): New variable.
18516         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18517         otherwise.
18518
18519 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18520
18521         add missing include to parse-duration.c
18522         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18523         * modules/parse-duration (Depends-on): Add xalloc.
18524
18525         fix sed script reading maint.mk
18526         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18527         (syntax-check-rules): Use it.
18528
18529 2008-12-09  Bruno Haible  <bruno@clisp.org>
18530
18531         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18532         MacOS X 10.4/PowerPC.
18533         Reported by Simon Josefsson.
18534
18535 2008-12-08  Jim Meyering  <meyering@redhat.com>
18536
18537         work around mingw's lack of some S_IF definitions
18538         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18539         Reported by Simon Josefsson.
18540
18541 2008-12-08  Bruno Haible  <bruno@clisp.org>
18542
18543         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18544         applied to variables. Needed on MacOS X 10.4/PowerPC.
18545         Reported by Simon Josefsson.
18546
18547 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18548         and Eric Blake  <ebb9@byu.net>
18549
18550         assert: honor --enable-assert
18551         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18552         order to honor --enable-assert, rather than treating it as a
18553         synonym for --disable-assert.
18554
18555 2008-12-08  Jim Meyering  <meyering@redhat.com>
18556
18557         * lib/posixtm.c: Remove now-useless declaration of mktime.
18558
18559         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18560
18561 2008-12-07  Bruno Haible  <bruno@clisp.org>
18562
18563         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18564         test_once): Mark functions as static.
18565         * tests/test-tls.c (test_tls): Likewise.
18566
18567 2008-12-07  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18570         iconv_register_autodetect.
18571
18572 2008-12-07  Jim Meyering  <meyering@redhat.com>
18573
18574         posixtm.c: avoid a warning
18575         * lib/posixtm.c (posixtime): Don't initialize tm0.
18576         It's no longer needed to placate gcc4's -Wuninitialized,
18577         and the attempt to placate would elicit a new warning.
18578
18579         unicodeio.c: mark unused parameters
18580         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18581         (fallback_failure_callback): Likewise.
18582
18583 2008-12-07  Bruno Haible  <bruno@clisp.org>
18584
18585         * gnulib-tool (func_create_testdir): When building the tests
18586         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18587         Reported by Simon Josefsson.
18588
18589 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18590
18591         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18592
18593 2008-12-06  Bruno Haible  <bruno@clisp.org>
18594
18595         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18596         Suggested by Eric Blake.
18597
18598 2008-12-06  Bruno Haible  <bruno@clisp.org>
18599
18600         Fix a c-stack test failure on MacOS X.
18601         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18602         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18603         handler for SIGBUS as well.
18604         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18605         install a signal handler for SIGBUS as well.
18606         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18607
18608 2008-12-06  Bruno Haible  <bruno@clisp.org>
18609
18610         Advocacy documentation.
18611         * doc/gnulib-intro.texi (Benefits): New section.
18612         * doc/gnulib.texi: Update.
18613
18614 2008-12-06  Bruno Haible  <bruno@clisp.org>
18615
18616         Document the 'manywarnings' module.
18617         * doc/manywarnings.texi: New file.
18618         * doc/gnulib.texi: Include it.
18619
18620 2008-12-05  Eric Blake  <ebb9@byu.net>
18621
18622         tests: silence some gcc warnings
18623         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18624         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18625         type mismatches.
18626
18627 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18628             Bruno Haible  <bruno@clisp.org>
18629
18630         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18631
18632 2008-11-29  Jim Meyering  <meyering@redhat.com>
18633
18634         unicodeio.c: mark unused parameters
18635         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18636         (fallback_failure_callback): Likewise.
18637
18638         fts: fix a thinko
18639         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
18640         (set_stat_type): Return S_IF*-valued "type" directly.
18641         Prompted by James Youngman's spotting a related bug.
18642         Confirmed by further testing through find.
18643
18644         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
18645         * lib/fts.c (D_TYPE): Define.
18646         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
18647         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
18648         (s_ifmt_shift_bits): New function.
18649         (set_stat_type): New function.
18650         (fts_build): When not calling fts_stat, call set_stat_type
18651         to propagate dirent.d_type info to fts_read caller.
18652         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
18653         fts_statp->st_mode type information may be valid.
18654
18655 2008-11-28  Simon Josefsson  <simon@josefsson.org>
18656
18657         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18658         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18659         <sds@gnu.org>.
18660
18661 2008-11-20  Bruno Haible  <bruno@clisp.org>
18662
18663         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18664         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18665         INCLUDE_NEXT.
18666         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18667         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18668         * modules/math (Makefile.am): Substitute
18669         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18670         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18671
18672 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18673             Bruno Haible  <bruno@clisp.org>
18674
18675         * lib/stdint.in.h: Define all type macros so that their expansion is
18676         a single typedef'ed token. Fixes a compilation failure in Boost which
18677         does "using ::int8_t;".
18678
18679 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18680
18681         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18682         gl_MANYWARN_ALL_GCC.
18683         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18684         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18685         * modules/manywarnings: New file.
18686         * MODULES.html.sh: Mention manywarnings module.
18687
18688 2008-11-18  Bruno Haible  <bruno@clisp.org>
18689
18690         * doc/gnulib-tool.texi (Unit tests): New section.
18691
18692 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18693
18694         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18695         paths like 'lib/po/foo.po'.
18696
18697 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18698
18699         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18700         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18701
18702 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18703
18704         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18705         parameter works.
18706
18707 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18708
18709         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18710
18711 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18712
18713         * modules/parse-duration-tests: New file.
18714         * tests/test-parse-duration.sh: New file.
18715         * tests/test-parse-duration.c: New file.
18716
18717         New module 'parse-duration'.
18718         * lib/parse-duration.h: New file.
18719         * lib/parse-duration.c: New file.
18720         * modules/parse-duration: New file.
18721
18722 2008-11-17  Bruno Haible  <bruno@clisp.org>
18723
18724         * tests/test-select-out.sh: Comment out the first pipe test.
18725         Reported by Simon Josefsson.
18726
18727 2008-11-17  Bruno Haible  <bruno@clisp.org>
18728
18729         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18730         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18731         gl_HOSTENT.
18732
18733 2008-11-17  Bruno Haible  <bruno@clisp.org>
18734
18735         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18736         -lnetwork and -lnet. Needed for Haiku and BeOS.
18737
18738 2008-11-16  Bruno Haible  <bruno@clisp.org>
18739
18740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18741
18742 2008-11-16  Bruno Haible  <bruno@clisp.org>
18743
18744         Avoid test failure on Haiku.
18745         * tests/test-fsync.c: Include <errno.h>.
18746         (main): Don't require that fsync (0) fails.
18747
18748 2008-11-15  Bruno Haible  <bruno@clisp.org>
18749
18750         New module 'hostent'.
18751         * modules/hostent: New file.
18752         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18753
18754 2008-11-15  Bruno Haible  <bruno@clisp.org>
18755
18756         New module 'servent'.
18757         * modules/servent: New file.
18758         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18759
18760 2008-11-15  Bruno Haible  <bruno@clisp.org>
18761
18762         Avoid generating same test program with two different rules.
18763         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18764         test-frexp to test-frexp-nolibm.
18765         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18766         test-frexpl to test-frexpl-nolibm.
18767
18768 2008-11-15  Bruno Haible  <bruno@clisp.org>
18769
18770         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18771         $(FREXPL_LIBM).
18772
18773 2008-11-15  Bruno Haible  <bruno@clisp.org>
18774
18775         * lib/netdb.in.h: Activate the definitions also when the system's
18776         <netdb.h> has 'struct addrinfo'.
18777         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18778         EAI_OVERFLOW or AI_NUMERICSERV.
18779         * doc/posix-headers/netdb.texi: Document the problem.
18780
18781 2008-11-15  Bruno Haible  <bruno@clisp.org>
18782
18783         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18784
18785         Make the 'sched' module work on platforms where <sched.h> exists but
18786         is incomplete (such as Haiku).
18787         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18788         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18789         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18790         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18791         HAVE_STRUCT_SCHED_PARAM.
18792         * modules/sched (Depends-on): Add include_next.
18793         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18794         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18795         * doc/posix-headers/sched.texi: Document the issue.
18796
18797 2008-11-13  Jim Meyering  <meyering@redhat.com>
18798
18799         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18800         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18801         test would fail due to the difference in the Report bugs to ...
18802         line.  The expected address is empty, "<>", while the actual
18803         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18804
18805 2008-11-12  Bruno Haible  <bruno@clisp.org>
18806
18807         lstat: don't compile lstat.c on systems lacking lstat
18808         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18809         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18810         Reported by Daniel P. Berrange via Jim Meyering.
18811
18812 2008-11-12  Jim Meyering  <meyering@redhat.com>
18813
18814         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18815
18816 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18817
18818         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18819         instead.
18820
18821 2008-11-12  Bruno Haible  <bruno@clisp.org>
18822
18823         * lib/unicodeio.c: Include unistr.h.
18824         (utf8_wctomb): Remove function.
18825         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18826
18827 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18828
18829         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18830         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18831         <bruno@clisp.org>.
18832         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18833
18834 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18835
18836         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18837         * doc/gnulib.texi: Add section for warnings.
18838
18839 2008-11-11  Bruno Haible  <bruno@clisp.org>
18840
18841         * lib/sockets.h: Add a comment.
18842
18843 2008-11-11  Karl Berry  <karl@gnu.org>
18844
18845         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18846
18847 2008-11-11  Eric Blake  <ebb9@byu.net>
18848
18849         fdl.texi: avoid git symlinks
18850         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18851
18852 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18853
18854         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18855
18856 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18857
18858         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18859         (gl_WARN_ADD): Substitute $2 if literal.
18860
18861 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18862
18863         * m4/warning.m4: Remove.
18864
18865 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18866
18867         * m4/warnings.m4: Almost complete rewrite. :-)
18868
18869 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18870
18871         * modules/warnings: New module.
18872         * m4/warnings.m4: New file.
18873         * MODULES.html.sh: Mention warnings module.
18874         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18875         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18876
18877 2008-11-10  Eric Blake  <ebb9@byu.net>
18878
18879         fdl.texi: make a symlink to the latest version
18880         * doc/standards.texi: Revert today's earlier change.
18881         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18882         * doc/fdl.texi: ...and replace this with a symlink to the newer
18883         fdl-1.3.texi.
18884
18885 2008-11-10  Bruno Haible  <bruno@clisp.org>
18886
18887         * tests/test-select-fd.c (main): Accept the result file name as fourth
18888         argument.
18889         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18890         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18891
18892 2008-11-10  Bruno Haible  <bruno@clisp.org>
18893
18894         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18895         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18896         as autoconf-substituted macros.
18897         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18899         gl_NETDB_H_DEFAULTS. Set these variables.
18900         * modules/netdb (Makefile.am): Substitute these variables.
18901
18902 2008-11-10  Eric Blake  <ebb9@byu.net>
18903
18904         standards.texi: include correct file for FDL 1.3
18905         * doc/standards.texi (GNU Free Documentation License): Change
18906         include file to pull in FDL 1.3, not 1.2.
18907
18908         fdl.texi: revert accidental change to license
18909         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18910
18911 2008-11-10  Bruno Haible  <bruno@clisp.org>
18912
18913         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18914         cross-compiling guesses also when the native compile gives no result.
18915
18916 2008-11-10  Bruno Haible  <bruno@clisp.org>
18917
18918         * lib/spawni.c (__spawni): Force variable into the stack.
18919
18920 2008-11-10  Bruno Haible  <bruno@clisp.org>
18921
18922         Add support for Haiku.
18923         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18924         glibc and BeOS, but also on Haiku.
18925         * lib/fpurge.c (fpurge): Likewise.
18926         * lib/freadable.c (freadable): Likewise.
18927         * lib/freadahead.c (freadahead): Likewise.
18928         * lib/freading.c (freading): Likewise.
18929         * lib/freadptr.c (freadptr): Likewise.
18930         * lib/freadseek.c (freadptrinc): Likewise.
18931         * lib/fseeko.c (rpl_fseeko): Likewise.
18932         * lib/fseterr.c (fseterr): Likewise.
18933         * lib/fwritable.c (fwritable): Likewise.
18934         * lib/fwriting.c (fwriting): Likewise.
18935         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18936
18937 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18938
18939         * lib/config.charset: Treat Haiku like BeOS.
18940
18941 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18942
18943         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18944         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18945
18946 2008-11-08  Bruno Haible  <bruno@clisp.org>
18947
18948         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18949         AC_CACHE_CHECK.
18950
18951 2008-11-08  Bruno Haible  <bruno@clisp.org>
18952
18953         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18954
18955 2008-11-08  Bruno Haible  <bruno@clisp.org>
18956
18957         * tests/test-select-fd.c: New file.
18958         * tests/test-select-in.sh: New file.
18959         * tests/test-select-out.sh: New file.
18960         * tests/test-select-stdin.c: New file.
18961         * modules/select-tests (Files): Add the new files.
18962         (Depends-on): Add gettimeofday.
18963         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18964         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18965         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18966
18967 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18968             Bruno Haible  <bruno@clisp.org>
18969
18970         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18971
18972 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18973
18974         * build-aux/pmccabe2html: Added support for C++ source files.
18975
18976 2008-11-05  Ben Pfaff  <blp@gnu.org>
18977
18978         Fix lib/close.c build on Windows.
18979         * modules/close (Files): Add lib/w32sock.h.
18980
18981 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18982
18983         Accept Bison's NEWS format.
18984         * build-aux/announce-gen (print_news_deltas): Tweak
18985         $re_prefix.
18986
18987 2008-11-04  Bruno Haible  <bruno@clisp.org>
18988
18989         * modules/random_r (Maintainer): Add glibc.
18990
18991 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18992
18993         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18994         by karl@freefriends.org (Karl Berry).
18995         * doc/alloca.texi: Likewise.
18996         * doc/c-ctype.texi: Likewise.
18997         * doc/c-strcase.texi: Likewise.
18998         * doc/c-strcaseeq.texi: Likewise.
18999         * doc/c-strcasestr.texi: Likewise.
19000         * doc/c-strstr.texi: Likewise.
19001         * doc/c-strtod.texi: Likewise.
19002         * doc/c-strtold.texi: Likewise.
19003         * doc/ctime.texi: Likewise.
19004         * doc/error.texi: Likewise.
19005         * doc/fdl.texi: Likewise.
19006         * doc/gcd.texi: Likewise.
19007         * doc/getdate.texi: Likewise.
19008         * doc/gnulib-intro.texi: Likewise.
19009         * doc/gnulib-tool.texi: Likewise.
19010         * doc/gnulib.texi: Likewise.
19011         * doc/inet_ntoa.texi: Likewise.
19012         * doc/maintain.texi: Likewise.
19013         * doc/make-stds.texi: Likewise.
19014         * doc/quote.texi: Likewise.
19015         * doc/regexprops-generic.texi: Likewise.
19016         * doc/standards.texi: Likewise.
19017         * doc/verify.texi: Likewise.
19018         * doc/visibility.texi: Likewise.
19019         * doc/gnulib.texi (GNU Free Documentation License): Include
19020         fdl-1.3.texi instead of fdl.texi.
19021
19022 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19023
19024         * doc/fdl-1.3.texi: New file, from
19025         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19026         * modules/fdl-1.3: Add.
19027         * MODULES.html.sh: Add fdl-1.3.
19028
19029 2008-11-03  Bruno Haible  <bruno@clisp.org>
19030
19031         Make determination of absolute name of header file work with AIX xlc.
19032         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19033         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19034         preprocessing.
19035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19036         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19037
19038 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19039
19040         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19041         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19042         <ludo@gnu.org>.
19043
19044 2008-11-02  Bruno Haible  <bruno@clisp.org>
19045
19046         Mark 'strpbrk' obsolete.
19047         * modules/strpbrk (Status, Notice): New sections.
19048         * modules/strtok_r (Depends-on): Add strpbrk.
19049
19050 2008-11-02  Bruno Haible  <bruno@clisp.org>
19051
19052         Mark 'strdup' obsolete.
19053         * modules/strdup (Status, Notice): New sections.
19054         * modules/findprog (Depends-on): Add strdup.
19055         * modules/getaddrinfo (Depends-on): Likewise.
19056         * modules/localename (Depends-on): Likewise.
19057         * modules/relocatable-lib (Depends-on): Likewise.
19058         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19059         * modules/relocatable-prog (Depends-on): Likewise.
19060         * modules/trim (Depends-on): Likewise.
19061         * modules/unictype/gen-ctype (Depends-on): Likewise.
19062         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19063
19064 2008-11-02  Bruno Haible  <bruno@clisp.org>
19065
19066         Mark 'strcspn' obsolete.
19067         * modules/strcspn (Status, Notice): New sections.
19068
19069 2008-11-02  Bruno Haible  <bruno@clisp.org>
19070
19071         Mark 'rmdir' obsolete.
19072         * modules/rmdir (Status, Notice): New sections.
19073         * modules/clean-temp (Depends-on): Add rmdir.
19074         * modules/openat (Depends-on): Likewise.
19075
19076 2008-11-02  Bruno Haible  <bruno@clisp.org>
19077
19078         Mark 'raise' obsolete.
19079         * modules/raise (Status, Notice): New sections.
19080         (Include): Specify <signal.h>.
19081         * modules/stdio (Depends-on): Add raise.
19082         * modules/write (Depends-on): Likewise.
19083
19084 2008-11-02  Bruno Haible  <bruno@clisp.org>
19085
19086         Mark 'memset' obsolete.
19087         * modules/memset (Status, Notice): New sections.
19088
19089 2008-11-02  Bruno Haible  <bruno@clisp.org>
19090
19091         Mark 'memmove' obsolete.
19092         * modules/memmove (Status, Notice): New sections.
19093         * modules/argp (Depends-on): Add memmove.
19094         * modules/argz (Depends-on): Likewise.
19095         * modules/canonicalize (Depends-on): Likewise.
19096         * modules/canonicalize-lgpl (Depends-on): Likewise.
19097         * modules/fts (Depends-on): Likewise.
19098         * modules/getcwd (Depends-on): Likewise.
19099         * modules/human (Depends-on): Likewise.
19100         * modules/regex (Depends-on): Likewise.
19101         * modules/striconveh (Depends-on): Likewise.
19102         * modules/trim (Depends-on): Likewise.
19103         * modules/unistr/u8-move (Depends-on): Likewise.
19104         * modules/unistr/u16-move (Depends-on): Likewise.
19105         * modules/unistr/u32-move (Depends-on): Likewise.
19106
19107 2008-11-02  Bruno Haible  <bruno@clisp.org>
19108
19109         Mark 'memcpy' obsolete.
19110         * modules/memcpy (Status, Notice): New sections.
19111
19112 2008-11-02  Bruno Haible  <bruno@clisp.org>
19113
19114         Mark 'memcmp' obsolete.
19115         * modules/memcmp (Status, Notice): New sections.
19116         * modules/argmatch (Depends-on): Add memchr.
19117         * modules/backupfile (Depends-on): Likewise.
19118         * modules/c-strcasestr (Depends-on): Likewise.
19119         * modules/crypto/des (Depends-on): Likewise.
19120         * modules/csharpcomp (Depends-on): Likewise.
19121         * modules/fnmatch (Depends-on): Likewise.
19122         * modules/git-merge-changelog (Depends-on): Likewise.
19123         * modules/isnand (Depends-on): Likewise.
19124         * modules/isnand-nolibm (Depends-on): Likewise.
19125         * modules/isnanf (Depends-on): Likewise.
19126         * modules/isnanf-nolibm (Depends-on): Likewise.
19127         * modules/isnanl (Depends-on): Likewise.
19128         * modules/isnanl-nolibm (Depends-on): Likewise.
19129         * modules/mbchar (Depends-on): Likewise.
19130         * modules/memcoll (Depends-on): Likewise.
19131         * modules/quotearg (Depends-on): Likewise.
19132         * modules/regex (Depends-on): Likewise.
19133         * modules/relocatable-prog (Depends-on): Likewise.
19134         * modules/same (Depends-on): Likewise.
19135         * modules/signbit (Depends-on): Likewise.
19136         * modules/strcasestr-simple (Depends-on): Likewise.
19137         * modules/unictype/gen-ctype (Depends-on): Likewise.
19138         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19139         * modules/uniname/uniname (Depends-on): Likewise.
19140         * modules/unistr/u8-cmp (Depends-on): Likewise.
19141
19142 2008-11-02  Bruno Haible  <bruno@clisp.org>
19143
19144         Mark 'memchr' obsolete.
19145         * modules/memchr (Status, Notice): New sections.
19146         * modules/argp (Depends-on): Add memchr.
19147         * modules/base64 (Depends-on): Likewise.
19148         * modules/c-strcasestr (Depends-on): Likewise.
19149         * modules/chdir-long (Depends-on): Likewise.
19150         * modules/fnmatch (Depends-on): Likewise.
19151         * modules/getsubopt (Depends-on): Likewise.
19152         * modules/git-merge-changelog (Depends-on): Likewise.
19153         * modules/glob (Depends-on): Likewise.
19154         * modules/strcasestr-simple (Depends-on): Likewise.
19155         * modules/strnlen (Depends-on): Likewise.
19156
19157 2008-11-02  Bruno Haible  <bruno@clisp.org>
19158
19159         Mark 'atexit' obsolete.
19160         * modules/atexit (Status, Notice): New sections.
19161         * modules/chdir-long (Depends-on): Add atexit.
19162         * modules/wait-process (Depends-on): Likewise.
19163
19164 2008-11-02  Bruno Haible  <bruno@clisp.org>
19165
19166         * gnulib-tool: New option --with-obsolete.
19167         (func_usage): Document it.
19168         (func_modules_transitive_closure): Drop obsolete dependencies if
19169         incobsolete is not true.
19170         (func_import): Read and save the incobsolete variable to the cache.
19171
19172 2008-11-02  Bruno Haible  <bruno@clisp.org>
19173
19174         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19175         * gnulib-tool: New option --extract-status.
19176         (func_usage): Document it.
19177         (sed_extract_prog): Recognize it.
19178         (func_get_status): New function.
19179
19180 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19181
19182         * modules/sockets (License): Change from LGPL to LGPLv2+.
19183
19184 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19185
19186         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19187
19188 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19189
19190         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19191         Mention times and sys_times.
19192         * modules/sys_times, modules/sys_times-tests: New modules.
19193         * modules/times, modules/times-tests: Likewise
19194         * m4/sys_times_h.m4: New file.
19195         * lib/sys_times.in.h: Likewise
19196         * lib/times.c: Likewise.
19197         * tests/test-sys_times.c: Likewise.
19198         * tests/test-times.c: Likewise.
19199         * doc/posix-headers/sys_times.texi: Update.
19200         * doc/posix-functions/times.texi: Update.
19201
19202 2008-10-28  Jim Meyering  <meyering@redhat.com>
19203
19204         * modules/tempname (Depends-on): Add lstat.
19205
19206         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19207
19208 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19209
19210         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19211         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19212         using idiom used elsewhere in gnulib.
19213
19214 2008-10-27  Jim Meyering  <meyering@redhat.com>
19215
19216         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19217
19218 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19219
19220         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19221         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19222         programs.
19223         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19224
19225 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19226
19227         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19228
19229 2008-10-27  Bruno Haible  <bruno@clisp.org>
19230
19231         * tests/test-lstat.c: Include <stdio.h>.
19232
19233 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19234
19235         * modules/lstat-tests: New module.
19236         * tests/test-lstat.c: New file.
19237
19238 2008-10-26  Jim Meyering  <meyering@redhat.com>
19239
19240         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19241
19242 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19243             Bruno Haible  <bruno@clisp.org>
19244
19245         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19246         * modules/configmake (Include): Add a note that the include must come
19247         after all system headers.
19248         * lib/javaversion.c: Include configmake.h after all other includes.
19249
19250 2008-10-26  Bruno Haible  <bruno@clisp.org>
19251
19252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19253         HAVE_STRUCT_RANDOM_DATA to 1.
19254         (gl_STDLIB_H): Simplify.
19255
19256 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19257
19258         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19259         substitute HAVE_STRUCT_RANDOM_DATA.
19260         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19261         random_data.
19262         * modules/stdlib (Makefile.am): Substitute
19263         HAVE_STRUCT_RANDOM_DATA.
19264
19265 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19266
19267         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19268         * doc/gnulib-intro.texi (Copyright): Likewise.
19269
19270 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19271
19272         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19273         findings.
19274
19275 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19276             Bruno Haible  <bruno@clisp.org>
19277
19278         * lib/unistd.in.h: Include <winsock2.h>.
19279         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19280         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19281         Provide dummy declarations.
19282         (gethostname): Override.
19283         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19284         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19285         gl_PREREQ_SYS_H_WINSOCK2.
19286         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19287         * doc/posix-functions/gethostname.texi: More details.
19288
19289 2008-10-25  Bruno Haible  <bruno@clisp.org>
19290
19291         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19292         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19293         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19294
19295         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19296         here ...
19297         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19299         gl_UNISTD_H_DEFAULTS.
19300
19301 2008-10-25  Eric Blake  <ebb9@byu.net>
19302
19303         signbit: avoid spurious compiler failure
19304         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19305         declarations inside function.
19306
19307 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19308             Bruno Haible  <bruno@clisp.org>
19309
19310         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19311         * modules/random_r (Depends-on): Add stdint.
19312
19313 2008-10-24  Bruno Haible  <bruno@clisp.org>
19314
19315         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19316         Eggert.
19317         * modules/strerror (License): Likewise.
19318
19319 2008-10-24  Jim Meyering  <meyering@redhat.com>
19320
19321         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19322         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19323
19324 2008-10-24  Eric Blake  <ebb9@byu.net>
19325
19326         getgroups: fix compilation when getgroups is available
19327         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19328         but with <config.h> override of getgroups disabled.
19329
19330 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19331
19332         * doc/gnulib.texi (Header files): Add note about C++ problems.
19333         Explained by Bruno Haible <bruno@clisp.org>.
19334
19335 2008-10-23  Bruno Haible  <bruno@clisp.org>
19336
19337         Define a dummy SA_NODEFER macro on Interix.
19338         * lib/signal.in.h (SA_NODEFER): Define fallback.
19339         Reported by Aleksey Cheusov <cheusov@tut.by> via
19340         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19341
19342 2008-10-23  Bruno Haible  <bruno@clisp.org>
19343
19344         * modules/freadahead (License): Change to LGPLv2+.
19345         Suggested by Simon Josefsson.
19346
19347 2008-10-23  Jim Meyering  <meyering@redhat.com>
19348
19349         random_r: new module
19350         * modules/random_r: New file.
19351         * m4/random_r.m4: New file.
19352         * lib/random_r.c: New file, from glibc.
19353         * modules/random_r-tests: New file.
19354         * tests/test-random_r.c: New file.
19355         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19356          Declare.
19357         (RAND_MAX): Define.
19358         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19359         * modules/stdlib: Substitute them, too.
19360         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19361         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19362         * doc/glibc-functions/random_r.texi: Likewise.
19363         * doc/glibc-functions/setstate_r.texi: Likewise.
19364         * doc/glibc-functions/srandom_r.texi: Likewise.
19365         * config/srclist.txt: Mention it.
19366
19367 2008-10-23  David Lutterkort  <lutter@redhat.com>
19368
19369         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19370         link requirement
19371
19372 2008-10-23  Jim Meyering  <meyering@redhat.com>
19373
19374         selinux-h: mark parameters of stub functions as intentionally unused
19375         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19376         * lib/se-context.in.h: Likewise.
19377
19378 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19379
19380         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19381
19382 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19383
19384         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19385
19386 2008-10-22  Eric Blake  <ebb9@byu.net>
19387
19388         glthread/thread: avoid compiler warning
19389         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19390         Add unreachable abort to silence compiler.
19391
19392 2008-10-22  Eric Blake  <ebb9@byu.net>
19393
19394         netdb: also supply struct addrinfo for cygwin 1.5.x
19395         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19396         older cygwin.
19397         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19398         cygwin.
19399         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19400
19401 2008-10-22  Bruno Haible  <bruno@clisp.org>
19402
19403         * users.txt: Update entry about pspp.
19404
19405 2008-10-21  Bruno Haible  <bruno@clisp.org>
19406
19407         Simplification.
19408         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19409         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19410
19411         Simplification.
19412         * lib/ioctl.c (ioctl): Don't undefine.
19413         * lib/socket.c (socket): Don't undefine.
19414
19415         Remove unused module indicator macros.
19416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19417         GNULIB_$1 as a C macro.
19418
19419         * doc/posix-functions/close.texi: Undo last change.
19420         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19421         Windows platforms.
19422
19423 2008-10-21  Bruno Haible  <bruno@clisp.org>
19424
19425         Add gethostname() declaration to <unistd.h>.
19426         * lib/unistd.in.h (gethostname): New declaration.
19427         * lib/gethostname.c: Include <unistd.h>.
19428         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19429         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19431         and HAVE_GETHOSTNAME.
19432         * modules/gethostname (Depends-on): Add unistd.
19433         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19434         (Include): Specify <unistd.h>.
19435         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19436         HAVE_GETHOSTNAME.
19437         * tests/test-gethostname.c: Include <unistd.h> first.
19438
19439 2008-10-21  Bruno Haible  <bruno@clisp.org>
19440
19441         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19442         * modules/select-tests (Depends-on): Likewise.
19443         Reported by Simon Josefsson.
19444
19445 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19446
19447         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19448         * lib/accept.c: New file, based on winsock.c.
19449         * lib/bind.c: New file, based on winsock.c.
19450         * lib/connect.c: New file, based on winsock.c.
19451         * lib/getpeername.c: New file, based on winsock.c.
19452         * lib/getsockname.c: New file, based on winsock.c.
19453         * lib/getsockopt.c: New file, based on winsock.c.
19454         * lib/ioctl.c: New file, based on winsock.c.
19455         * lib/listen.c: New file, based on winsock.c.
19456         * lib/recv.c: New file, based on winsock.c.
19457         * lib/recvfrom.c: New file, based on winsock.c.
19458         * lib/send.c: New file, based on winsock.c.
19459         * lib/sendto.c: New file, based on winsock.c.
19460         * lib/setsockopt.c: New file, based on winsock.c.
19461         * lib/shutdown.c: New file, based on winsock.c.
19462         * lib/socket.c: New file, based on winsock.c.
19463         * lib/w32sock.h: New file, based on winsock.c.
19464         * lib/winsock.c: Remove file.
19465         * modules/accept: Likewise.
19466         * modules/bind: Likewise.
19467         * modules/connect: Likewise.
19468         * modules/getpeername: Likewise.
19469         * modules/getsockname: Likewise.
19470         * modules/getsockopt: Likewise.
19471         * modules/ioctl: Likewise.
19472         * modules/listen: Likewise.
19473         * modules/recv: Likewise.
19474         * modules/recvfrom: Likewise.
19475         * modules/send: Likewise.
19476         * modules/sendto: Likewise.
19477         * modules/setsockopt: Likewise.
19478         * modules/shutdown: Likewise.
19479         * modules/socket: Use socket.c instead of winsock.c.
19480         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19481         * doc/posix-functions/accept.texi: Doc fix.
19482         * doc/posix-functions/bind.texi: Doc fix.
19483         * doc/posix-functions/close.texi: Doc fix.
19484         * doc/posix-functions/connect.texi: Doc fix.
19485         * doc/posix-functions/getpeername.texi: Doc fix.
19486         * doc/posix-functions/getsockname.texi: Doc fix.
19487         * doc/posix-functions/getsockopt.texi: Doc fix.
19488         * doc/posix-functions/ioctl.texi: Doc fix.
19489         * doc/posix-functions/listen.texi: Doc fix.
19490         * doc/posix-functions/recv.texi: Doc fix.
19491         * doc/posix-functions/recvfrom.texi: Doc fix.
19492         * doc/posix-functions/send.texi: Doc fix.
19493         * doc/posix-functions/sendto.texi: Doc fix.
19494         * doc/posix-functions/setsockopt.texi: Doc fix.
19495         * doc/posix-functions/shutdown.texi: Doc fix.
19496         * doc/posix-functions/socket.texi: Doc fix.
19497
19498 2008-10-20  Bruno Haible  <bruno@clisp.org>
19499
19500         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19501         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19502         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19503         as an alias for SIGABRT.
19504         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19505         (sigaction): Map it to SIGABRT.
19506         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19507
19508 2008-10-20  Bruno Haible  <bruno@clisp.org>
19509
19510         * lib/fts.c: Don't include lstat.h.
19511         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19512
19513         Move the lstat() declaration to <sys/stat.h>.
19514         * lib/lstat.h: Remove file.
19515         * lib/sys_stat.in.h: Add special invocation convention.
19516         (lstat): New declaration.
19517         * lib/lstat.c (orig_lstat): New function.
19518         (rpl_lstat): Use orig_lstat instead of lstat.
19519         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19520         AC_C_INLINE. Set REPLACE_LSTAT.
19521         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19522         and REPLACE_LSTAT.
19523         * modules/lstat (Files): Remove lib/lstat.h.
19524         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19525         (Include): Specify <sys/stat.h> instead of lstat.h.
19526         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19527         REPLACE_LSTAT.
19528         * NEWS: Mention the change.
19529
19530 2008-10-20  Bruno Haible  <bruno@clisp.org>
19531
19532         * modules/posix_spawn-tests: New file.
19533         * tests/test-posix_spawn3.c: New file.
19534
19535 2008-10-20  Bruno Haible  <bruno@clisp.org>
19536
19537         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19538         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19539         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19540         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19541         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19542
19543 2008-10-20  Bruno Haible  <bruno@clisp.org>
19544
19545         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19546         of posix_spawn on AIX 5.3.
19547
19548 2008-10-20  Bruno Haible  <bruno@clisp.org>
19549
19550         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19551
19552 2008-10-20  Bruno Haible  <bruno@clisp.org>
19553
19554         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19555         of AC_LANG_PROGRAM.
19556
19557 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19558
19559         * lib/netdb.in.h: Don't define GNU specific constants until they
19560         are supported or needed.  Reported by Bruno Haible
19561         <bruno@clisp.org>.
19562
19563 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19564
19565         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19566
19567 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19568
19569         * lib/getaddrinfo.h: Remove file.
19570         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19571         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19572         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19573         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19574         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19575         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19576         * tests/test-getaddrinfo.c: Likewise.
19577         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19578         * NEWS: Mention change.
19579
19580 2008-10-19  Bruno Haible  <bruno@clisp.org>
19581
19582         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19583
19584 2008-10-19  Bruno Haible  <bruno@clisp.org>
19585
19586         * lib/wait-process.c: Include simply <sys/wait.h>.
19587         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19588         WIFSTOPPED): Remove fallback definitions.
19589         * modules/wait-process (Depends-on): Add sys_wait.
19590
19591         New module 'sys_wait'.
19592         * modules/sys_wait: New file.
19593         * lib/sys_wait.in.h: New file, partially copied from
19594         lib/wait-process.c.
19595         * m4/sys_wait_h.m4: New file.
19596         * doc/posix-headers/sys_wait.texi: Mention the new module.
19597
19598 2008-10-19  Bruno Haible  <bruno@clisp.org>
19599
19600         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19601
19602 2008-10-19  Bruno Haible  <bruno@clisp.org>
19603
19604         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19605         * lib/wait-process.c (WAIT_T): Remove type.
19606         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19607         (wait_subprocess): Update.
19608
19609 2008-10-19  Bruno Haible  <bruno@clisp.org>
19610
19611         New module 'atoll'.
19612         * modules/atoll: New file.
19613         * lib/stdlib.in.h (atoll): New declaration.
19614         * lib/atoll.c: New file, from glibc with modifications.
19615         * m4/atoll.m4: New file.
19616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19617         HAVE_ATOLL.
19618         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19619         * doc/posix-functions/atoll.texi: Mention the new module.
19620
19621 2008-10-19  Bruno Haible  <bruno@clisp.org>
19622
19623         Add strtoull() declaration to <stdlib.h>.
19624         * lib/stdlib.in.h (strtoull): New declaration.
19625         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19626         Set HAVE_STRTOULL.
19627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19628         HAVE_STRTOULL.
19629         * modules/strtoull (Depends-on): Add stdlib.
19630         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19631         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19632         HAVE_STRTOULL.
19633
19634 2008-10-19  Bruno Haible  <bruno@clisp.org>
19635
19636         Add strtoll() declaration to <stdlib.h>.
19637         * lib/stdlib.in.h (strtoll): New declaration.
19638         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19639         Set HAVE_STRTOLL.
19640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
19641         HAVE_STRTOLL.
19642         * modules/strtoll (Depends-on): Add stdlib.
19643         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19644         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
19645
19646 2008-10-19  Bruno Haible  <bruno@clisp.org>
19647
19648         * modules/bcopy (Depends-on): Add strings.
19649         (Include): Specify <strings.h>.
19650
19651 2008-10-19  Bruno Haible  <bruno@clisp.org>
19652
19653         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
19654
19655 2008-10-19  Bruno Haible  <bruno@clisp.org>
19656
19657         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19658         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19659         mingw.
19660
19661 2008-10-19  Bruno Haible  <bruno@clisp.org>
19662
19663         * lib/atanl.c: Don't include isnanl.h.
19664         * lib/cosl.c: Likewise.
19665         * lib/ldexpl.c: Likewise.
19666         * lib/logl.c: Likewise.
19667         * lib/sinl.c: Likewise.
19668         * lib/sqrtl.c: Likewise.
19669         * lib/tanl.c: Likewise.
19670
19671         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19672         * lib/isnanf.h: Remove file.
19673         * lib/isnand.h: Remove file.
19674         * lib/isnanl.h: Remove file.
19675         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19676         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19677         macros.
19678         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19679         HAVE_ISNANF, don't define it as a C macro.
19680         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19681         HAVE_ISNAND, don't define it as a C macro.
19682         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19683         HAVE_ISNANL, don't define it as a C macro.
19684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19685         HAVE_ISNAN[FDL].
19686         * modules/isnanf (Files): Remove lib/isnanf.h.
19687         (Depends-on): Add math.
19688         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19689         (Include): Specify <math.h> instead of isnanf.h.
19690         * modules/isnand (Files): Remove lib/isnand.h.
19691         (Depends-on): Add math.
19692         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19693         (Include): Specify <math.h> instead of isnand.h.
19694         * modules/isnanl (Files): Remove lib/isnanl.h.
19695         (Depends-on): Add math.
19696         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19697         (Include): Specify <math.h> instead of isnanl.h.
19698         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19699         HAVE_ISNAN[FDL].
19700         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19701         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19702         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19703         * NEWS: Mention the change.
19704
19705 2008-10-18  Bruno Haible  <bruno@clisp.org>
19706
19707         Add getusershell(), setusershell(), endusershell() declarations to
19708         <unistd.h>.
19709         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19710         declarations.
19711         * lib/getusershell.c: Include unistd.h.
19712         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19713         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19714         HAVE_GETUSERSHELL.
19715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19716         and HAVE_GETUSERSHELL.
19717         * modules/getusershell (Depends-on): Add unistd, extensions.
19718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19719         (Include): Specify <unistd.h>.
19720         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19721         HAVE_GETUSERSHELL.
19722
19723 2008-10-18  Bruno Haible  <bruno@clisp.org>
19724
19725         Add a getloadavg() declaration to <stdlib.h>.
19726         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19727         getloadavg declaration.
19728         (getloadavg): New declaration.
19729         * lib/getloadavg.c: Include <stdlib.h> first.
19730         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19731         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19732         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19734         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19735         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19737         (Include): Specify <stdlib.h>.
19738         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19739         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19740
19741 2008-10-18  Bruno Haible  <bruno@clisp.org>
19742
19743         * lib/dirchownmod.c: Don't include lchmod.h.
19744
19745         Move the lchmod() declaration to <sys/stat.h>.
19746         * lib/lchmod.h: Remove file.
19747         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19748         (lchmod): New declaration, moved here from lib/lchown.h.
19749         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19750         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19752         and HAVE_LCHMOD.
19753         * modules/lchmod (Files): Remove lib/lchmod.h.
19754         (Depends-on): Add sys_stat, extensions.
19755         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19756         (Include): Specify <sys/stat.h> instead of lchmod.h.
19757         * modules/sys_stat (Depends-on): Add link-warning.
19758         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19759         definition of GL_LINK_WARNING.
19760         * NEWS: Mention the change.
19761
19762 2008-10-18  Bruno Haible  <bruno@clisp.org>
19763
19764         * lib/fchdir.c: Don't include dirfd.h.
19765         * lib/fts.c: Likewise.
19766         * lib/getcwd.c: Likewise.
19767         * lib/glob.c: Likewise.
19768
19769         Move the dirfd() declaration to <dirent.h>.
19770         * lib/dirfd.h: Remove file.
19771         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19772         (dirfd): New declaration.
19773         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19774         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19775         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19776         HAVE_DECL_DIRFD.
19777         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19778         HAVE_DECL_DIRFD.
19779         * modules/dirfd (Files): Remove lib/dirfd.h.
19780         (Depends-on): Add dirent, extensions.
19781         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19782         (Include): Specify <dirent.h> instead of dirfd.h.
19783         * modules/dirent (Depends-on): Add link-warning.
19784         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19785         definition of GL_LINK_WARNING.
19786         * NEWS: Mention the change.
19787
19788 2008-10-18  Bruno Haible  <bruno@clisp.org>
19789
19790         Move the euidaccess() declaration to <unistd.h>.
19791         * lib/euidaccess.h: Remove file.
19792         * lib/unistd.in.h (euidaccess): New declaration.
19793         * lib/euidaccess.c: Don't include euidaccess.h.
19794         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19795         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19797         and HAVE_EUIDACCESS.
19798         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19799         (Depends-on): Add unistd.
19800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19801         (Include): Specify <unistd.h> instead of euidaccess.h.
19802         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19803         HAVE_EUIDACCESS.
19804         * NEWS: Mention the change.
19805
19806 2008-10-18  Bruno Haible  <bruno@clisp.org>
19807
19808         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19809
19810         Move the getdomainname() declaration to <unistd.h>.
19811         * lib/getdomainname.h: Remove file.
19812         * lib/unistd.in.h (getdomainname): New declaration.
19813         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19814         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19815         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19816         HAVE_GETDOMAINNAME.
19817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19818         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19819         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19820         (Depends-on): Add unistd, extensions.
19821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19822         (Includes): Specify <unistd.h> instead of getdomainname.h.
19823         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19824         HAVE_GETDOMAINNAME.
19825         * NEWS: Mention the change.
19826
19827 2008-10-18  Bruno Haible  <bruno@clisp.org>
19828
19829         * modules/dirent: New file.
19830         * m4/dirent_h.m4: New file.
19831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19832         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19833         * modules/fchdir (Files): Remove lib/dirent.in.h.
19834         (Depends-on): Add dirent.
19835         (Makefile.am): Move rules to modules/dirent.
19836         * doc/posix-headers/dirent.texi: Mention the new module.
19837
19838 2008-10-18  Bruno Haible  <bruno@clisp.org>
19839
19840         Avoid -Wunused-parameter warnings in public gnulib header files.
19841         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19842         macro.
19843         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19844
19845 2008-10-18  Bruno Haible  <bruno@clisp.org>
19846
19847         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19848         * doc/glibc-functions/error.texi: Mention the module 'error'.
19849         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19850         * doc/glibc-functions/getdomainname.texi: Mention the module
19851         'getdomainname'.
19852         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19853         * doc/glibc-functions/getpagesize.texi: Mention the module
19854         'getpagesize'.
19855         * doc/glibc-functions/getusershell.texi: Mention the module
19856         'getusershell'.
19857         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19858         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19859         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19860         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19861         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19862         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19863         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19864         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19865         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19866         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19867         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19868         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19869         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19870         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19871
19872 2008-10-17  Bruno Haible  <bruno@clisp.org>
19873
19874         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19875         HP-UX and IRIX, use -0.0L.
19876         * tests/test-ceill.c (minus_zero): Likewise.
19877         * tests/test-floorl.c (minus_zero): Likewise.
19878         * tests/test-frexpl.c (minus_zero): Likewise.
19879         * tests/test-isnan.c (minus_zerol): Likewise.
19880         * tests/test-isnanl.h (minus_zero): Likewise.
19881         * tests/test-ldexpl.c (minus_zero): Likewise.
19882         * tests/test-roundl.c (minus_zero): Likewise.
19883         * tests/test-signbit.c (minus_zerol): Likewise.
19884         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19885         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19886         * tests/test-truncl.c (minus_zero): Likewise.
19887         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19888         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19889         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19890         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19891
19892 2008-10-17  Bruno Haible  <bruno@clisp.org>
19893
19894         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19895         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19896         that it gets activated only for gcc >= 3.0.
19897         * lib/dirent.in.h: Likewise.
19898         * lib/errno.in.h: Likewise.
19899         * lib/fcntl.in.h: Likewise.
19900         * lib/float.in.h: Likewise.
19901         * lib/iconv.in.h: Likewise.
19902         * lib/inttypes.in.h: Likewise.
19903         * lib/locale.in.h: Likewise.
19904         * lib/math.in.h: Likewise.
19905         * lib/netdb.in.h: Likewise.
19906         * lib/netinet_in.in.h: Likewise.
19907         * lib/search.in.h: Likewise.
19908         * lib/signal.in.h: Likewise.
19909         * lib/spawn.in.h: Likewise.
19910         * lib/stdarg.in.h: Likewise.
19911         * lib/stdint.in.h: Likewise.
19912         * lib/stdio.in.h: Likewise.
19913         * lib/stdlib.in.h: Likewise.
19914         * lib/string.in.h: Likewise.
19915         * lib/strings.in.h: Likewise.
19916         * lib/sys_file.in.h: Likewise.
19917         * lib/sys_ioctl.in.h: Likewise.
19918         * lib/sys_select.in.h: Likewise.
19919         * lib/sys_socket.in.h: Likewise.
19920         * lib/sys_stat.in.h: Likewise.
19921         * lib/sys_time.in.h: Likewise.
19922         * lib/sysexits.in.h: Likewise.
19923         * lib/time.in.h: Likewise.
19924         * lib/unistd.in.h: Likewise.
19925         * lib/wchar.in.h: Likewise.
19926         * lib/wctype.in.h: Likewise.
19927         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19928
19929 2008-10-17  Jim Meyering  <meyering@redhat.com>
19930
19931         ignore-value: don't depend on inline module
19932         * modules/ignore-value (Depends-on): Remove 'inline'.
19933         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19934         Suggestion from Bruno Haible.
19935
19936 2008-10-17  Bruno Haible  <bruno@clisp.org>
19937
19938         New implementation of condition variables for Win32.
19939         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19940         (gl_linked_waitqueue_t): New type.
19941         (gl_cond_t): Use it.
19942         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19943         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19944         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19945         (glthread_cond_init_func, glthread_cond_wait_func,
19946         glthread_cond_timedwait_func, glthread_cond_signal_func,
19947         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19948         Reimplemented on the basis of gl_linked_waitqueue_t.
19949         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19950         gl_waitqueue_t.
19951         (gl_rwlock_t): Update.
19952         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19953
19954 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19955
19956         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19957         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19958
19959 2008-10-17  Jim Meyering  <meyering@redhat.com>
19960
19961         ignore-value: new module
19962         * modules/ignore-value: New file.
19963         * lib/ignore-value.h: New file.
19964         * MODULES.html.sh (Compiler warning management): New section,
19965         just for this module.  More to come.
19966
19967 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19968
19969         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19970         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19971         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19972
19973 2008-10-16  Jim Meyering  <meyering@redhat.com>
19974
19975         openat-die.c: avoid 'no previous prototype' warning
19976         * lib/openat-die.c: Include "openat.h".
19977         Reported by Reuben Thomas <rrt@sc3d.org>.
19978
19979 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19980
19981         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19982         * lib/netdb.in.h: Fix typo.
19983         Reported by Bruno Haible  <bruno@clisp.org>
19984
19985         * lib/netdb.in.h: Include sys/socket.h for platforms without
19986         netdb.h, to get structures like hostent on MinGW.
19987         * modules/netdb (Depends-on): Add sys_socket.
19988
19989 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19990
19991         * modules/netdb, modules/netdb-tests: New file.
19992         * m4/netdb_h.m4: New file.
19993         * lib/netdb.in.h: Add, currently just an empty file pending
19994         definitions.
19995         * tests/test-netdb.c: New file.
19996         * doc/posix-headers/netdb.texi: Mention that we replace it if
19997         needed.
19998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19999         netdb.
20000
20001 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20002
20003         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20004         with code.
20005
20006 2008-10-13  Bruno Haible  <bruno@clisp.org>
20007
20008         * lib/glthread/cond.c (glthread_cond_wait_func,
20009         glthread_cond_timedwait_func): Add a comment.
20010
20011 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20012
20013         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20014         * tests/test-select.c: Likewise,
20015
20016 2008-10-13  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/glthread/cond.c (glthread_cond_wait_func,
20019         glthread_cond_timedwait_func): Fix variable name.
20020         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20021
20022 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20023
20024         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20026         struct sockaddr.sa_len.
20027         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20028
20029 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20030
20031         * build-aux/pmccabe2html: Add css and css_url parameters.
20032
20033 2008-10-12  Bruno Haible  <bruno@clisp.org>
20034
20035         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20036         calling aclx_get.
20037         Reported by Rainer Tammer <tammer@tammer.net>.
20038
20039 2008-10-12  Bruno Haible  <bruno@clisp.org>
20040
20041         Use msvcrt aware primitives for creation/termination of Win32 threads.
20042         * lib/glthread/thread.c: Include <process.h>.
20043         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20044         (wrapper_func): Update signature.
20045         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20046
20047 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20048             Bruno Haible  <bruno@clisp.org>
20049
20050         Provide a Win32 implementation of the 'cond' module.
20051         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20052         * lib/glthread/cond.c (glthread_cond_init_func,
20053         glthread_cond_wait_func, glthread_cond_timedwait_func,
20054         glthread_cond_signal_func, glthread_cond_broadcast_func,
20055         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20056         * modules/cond (Dependencies): Add gettimeofday.
20057
20058 2008-10-11  Bruno Haible  <bruno@clisp.org>
20059
20060         Make sleep work on older versions of mingw.
20061         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20062         only whether it exists.
20063         * doc/posix-functions/sleep.texi: Mention the problem with older
20064         versions of mingw.
20065
20066 2008-10-11  Bruno Haible  <bruno@clisp.org>
20067
20068         New module 'shutdown'.
20069         * modules/shutdown: New file.
20070         * lib/sys_socket.in.h (shutdown): New declaration.
20071         * lib/winsock.c (shutdown): New function.
20072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20073         GNULIB_SHUTDOWN.
20074         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20075         * doc/posix-functions/shutdown.texi: Document the new module.
20076
20077 2008-10-11  Jim Meyering  <meyering@redhat.com>
20078
20079         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20080
20081 2008-10-11  Bruno Haible  <bruno@clisp.org>
20082
20083         New module 'fclose'.
20084         * modules/fclose: New file.
20085         * lib/stdio.in.h (fclose): New declaration.
20086         * lib/fclose.c: New file.
20087         * m4/fclose.m4: New file.
20088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20089         REPLACE_FCLOSE.
20090         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20091         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20092         REPLACE_FCLOSE.
20093         * modules/close (Depends-on): fclose.
20094         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20095
20096 2008-10-11  Bruno Haible  <bruno@clisp.org>
20097
20098         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20099         set errno and don't call _close.
20100
20101 2008-10-10  Bruno Haible  <bruno@clisp.org>
20102
20103         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20104         ACL, not afterwards. Fixes test failure on Cygwin.
20105
20106 2008-10-09  Ben Pfaff  <blp@gnu.org>
20107
20108         * build-aux/announce-gen: Fix gnulib version related part of usage
20109         message.  Die with a useful error message if no tarballs are
20110         found.
20111
20112 2008-10-10  Jim Meyering  <meyering@redhat.com>
20113
20114         bootstrap: use git's --depth=N option only if it's supported
20115         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20116         recognize the --depth option.  Reported by Pádraig Brady.
20117
20118 2008-10-09  Bruno Haible  <bruno@clisp.org>
20119
20120         New module 'ioctl'.
20121         * modules/ioctl: New file.
20122         * lib/sys_socket.in.h (ioctl): Remove declaration.
20123         * lib/winsock.c: Include <sys/ioctl.h>.
20124         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20125         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20126         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20127         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20128         * doc/posix-functions/ioctl.texi: Mention the new module.
20129
20130 2008-10-09  Bruno Haible  <bruno@clisp.org>
20131
20132         New module 'sys_ioctl'.
20133         * lib/sys_ioctl.in.h: New file.
20134         * m4/sys_ioctl_h.m4: New file.
20135         * modules/sys_ioctl: New file.
20136         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20137
20138 2008-10-09  Bruno Haible  <bruno@clisp.org>
20139
20140         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20141         * lib/winsock.c: Include <stdarg.h>.
20142         (rpl_ioctl): Change to second argument 'int' and then varargs.
20143
20144 2008-10-09  Bruno Haible  <bruno@clisp.org>
20145
20146         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20147         when the sys_socket module is present and the system has <winsock2.h>.
20148
20149 2008-10-09  Bruno Haible  <bruno@clisp.org>
20150
20151         * doc/posix-functions/close.texi: Mention module 'close' instead of
20152         module 'sys_socket'.
20153
20154 2008-10-09  Bruno Haible  <bruno@clisp.org>
20155
20156         * doc/glibc-headers/sys_ioctl.texi: New file.
20157         * doc/gnulib.texi: Include it.
20158
20159 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20160             Bruno Haible  <bruno@clisp.org>
20161
20162         Combine the two replacements of 'close'.
20163         * lib/sys_socket.in.h (close): Define to a reminder to include
20164         <unistd.h>.
20165         (_gl_close_fd_maybe_socket): New declaration.
20166         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20167         * lib/winsock.c (close): Remove undefinition.
20168         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20169         needed for the gnulib module 'close'.
20170         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20171         define to an error symbol or to a warning, if suitable.
20172         * lib/close.c: Include <sys/socket.h>.
20173         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20175         UNISTD_H_HAVE_WINSOCK2_H.
20176         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20178         UNISTD_H_HAVE_WINSOCK2_H.
20179         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20180         (configure.ac): Set a module indicator.
20181         (Makefile.am): Substitute GNULIB_CLOSE.
20182         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20183         * modules/poll-tests (Depends-on): Add close.
20184         * modules/select-tests (Depends-on): Likewise.
20185
20186 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20187             Bruno Haible  <bruno@clisp.org>
20188
20189         New module 'close'.
20190         * modules/close: New file.
20191         * lib/unistd.in.h (close): Move declaration out of the
20192         FCHDIR_REPLACEMENT scope.
20193         (_gl_unregister_fd): New declaration.
20194         * lib/close.c: New file.
20195         * lib/fchdir.c (rpl_close): Remove function.
20196         * m4/close.m4: New file.
20197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20198         close.
20199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20200         REPLACE_CLOSE.
20201         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20202         REPLACE_CLOSE.
20203         * modules/fchdir (Depends-on): Add close.
20204
20205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20206             Bruno Haible  <bruno@clisp.org>
20207
20208         * lib/fcntl.in.h (open): Simplify conditionals.
20209         (_gl_register_fd): New declaration.
20210         * lib/fchdir.c (rpl_open): Remove function.
20211         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20212         also.
20213         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20215         open.
20216
20217 2008-10-09  Jim Meyering  <meyering@redhat.com>
20218
20219         GNUmakefile: use the more name-space-friendly "_version"
20220         * top/GNUmakefile (_dummy): Update.
20221         (_version): Rename from "version".
20222
20223 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20224             Bruno Haible  <bruno@clisp.org>
20225
20226         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20227         rpl_close.
20228         (_gl_register_fd): New function, extracted from rpl_open.
20229         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20230         (rpl_open, rpl_opendir): Use _gl_register_fd.
20231
20232 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20233
20234         Fix organization of 'open' replacement.
20235         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20236         (gl_FUNC_OPEN): Use it.
20237         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20238
20239 2008-10-08  Bruno Haible  <bruno@clisp.org>
20240
20241         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20242
20243 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20244
20245         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20246         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20247         listen).
20248
20249 2008-10-08  Eric Blake  <ebb9@byu.net>
20250
20251         GNUmakefile: add 'make version' target
20252         * top/GNUmakefile (_curr-ver): Split version update rules...
20253         (version): ...into a target.
20254
20255 2008-10-07  Bruno Haible  <bruno@clisp.org>
20256
20257         Use a more portable replacement expression for -0.0L.
20258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20259         instead of -0.0L. Fix m4 quotation.
20260
20261         * tests/test-signbit.c: Include <float.h>.
20262         (minus_zero): New variable.
20263         (test_signbitl): Use minus_zero instead of -zero.
20264         * modules/signbit-tests (Depends-on): Add float.
20265
20266         * tests/test-ceill.c: Include <float.h>.
20267         (zero): Remove variable.
20268         (minus_zero): New variable.
20269         (main): Use minus_zero instead of -zero.
20270         * modules/ceill-tests (Depends-on): Add float.
20271
20272         * tests/test-floorl.c: Include <float.h>.
20273         (zero): Remove variable.
20274         (minus_zero): New variable.
20275         (main): Use minus_zero instead of -zero.
20276         * modules/floorl-tests (Depends-on): Add float.
20277
20278         * tests/test-roundl.c: Include <float.h>.
20279         (zero): Remove variable.
20280         (minus_zero): New variable.
20281         (main): Use minus_zero instead of -zero.
20282         * modules/roundl-tests (Depends-on): Add float.
20283
20284         * tests/test-truncl.c: Include <float.h>.
20285         (zero): Remove variable.
20286         (minus_zero): New variable.
20287         (main): Use minus_zero instead of -zero.
20288         * modules/truncl-tests (Depends-on): Add float.
20289
20290         * tests/test-frexpl.c (zero): Remove variable.
20291         (minus_zero): New variable.
20292         (main): Use minus_zero instead of -zero.
20293         * modules/frexpl-tests (Depends-on): Add float.
20294
20295         * tests/test-isnan.c (zerol): Remove variable.
20296         (minus_zerol): New variable.
20297         (test_long_double): Use minus_zerol instead of -zerol.
20298         * modules/isnan-tests (Depends-on): Add float.
20299
20300         * tests/test-isnanl.h (zero): Remove variable.
20301         (minus_zero): New variable.
20302         (main): Use minus_zero instead of -zero.
20303         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20304         * modules/isnanl-tests (Depends-on): Add float.
20305
20306         * tests/test-ldexpl.c (zero): Remove variable.
20307         (minus_zero): New variable.
20308         (main): Use minus_zero instead of -zero.
20309         * modules/ldexpl-tests (Depends-on): Add float.
20310
20311         * tests/test-snprintf-posix.h (zerol): Remove variable.
20312         (minus_zerol): New variable.
20313         (test_function): Use minus_zerol instead of -zerol.
20314         * modules/snprintf-posix-tests (Depends-on): Add float.
20315         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20316
20317         * tests/test-sprintf-posix.h (zerol): Remove variable.
20318         (minus_zerol): New variable.
20319         (test_function): Use minus_zerol instead of -zerol.
20320         * modules/sprintf-posix-tests (Depends-on): Add float.
20321         * modules/vsprintf-posix-tests (Depends-on): Add float.
20322
20323         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20324         (minus_zerol): New variable.
20325         (test_function): Use minus_zerol instead of -zerol.
20326         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20327
20328         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20329         (minus_zerol): New variable.
20330         (test_function): Use minus_zerol instead of -zerol.
20331         * modules/vasprintf-posix-tests (Depends-on): Add float.
20332
20333 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20334
20335         * MODULES.html.sh (Support for building documentation): Mention
20336         pmccabe2html.  Sort entries.
20337
20338         Add pmccabe2html module, from gnupdf.
20339         * build-aux/pmccabe.css: New file.
20340         * build-aux/pmccabe2html: New file.
20341         * m4/pmccabe2html.m4: New file.
20342         * modules/pmccabe2html: New file.
20343
20344 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20345
20346         flock: new module
20347         * MODULES.html.sh: Add to list of modules.
20348         * lib/flock.c: flock implementation for Windows and Unix systems
20349         which have fcntl.
20350         * doc/glibc-functions/flock.texi: Update documentation.
20351         * lib/sys_file.in.h: <sys/file.h> header file.
20352         * m4/flock.m4: M4 macros.
20353         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20354         * modules/flock: flock module.
20355         * modules/flock-tests: flock tests module.
20356         * modules/sys_file: sys/file.h module.
20357         * tests/test-flock.c: test suite for flock.
20358
20359 2008-10-06  Jim Meyering  <meyering@redhat.com>
20360
20361         bootstrap: check for LT_INIT more portably still ;-)
20362         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20363         Spotted by Bruno Haible.
20364
20365 2008-10-06  Eric Blake  <ebb9@byu.net>
20366
20367         test-signbit: avoid tripping Irix cc bug on -0.0L
20368         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20369         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20370         entire testsuite consistent and avoids an Irix 6.2 bug.
20371
20372 2008-10-05  Bruno Haible  <bruno@clisp.org>
20373             Jim Meyering  <jim@meyering.net>
20374
20375         Add an option for ignoring EPIPE during close_stdout.
20376         * lib/closeout.h: Include <stdbool.h>.
20377         (close_stdout_set_ignore_EPIPE): New declaration.
20378         * lib/closeout.c: Include <stdbool.h>.
20379         (ignore_EPIPE): New variable.
20380         (close_stdout_set_ignore_EPIPE): New function.
20381         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20382         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20383         failure.
20384         * modules/closeout (Depends-on): Add stdbool.
20385
20386 2008-10-05  Bruno Haible  <bruno@clisp.org>
20387
20388         * modules/accept: New file.
20389         * modules/bind: New file.
20390         * modules/connect: New file.
20391         * modules/getpeername: New file.
20392         * modules/getsockname: New file.
20393         * modules/getsockopt: New file.
20394         * modules/listen: New file.
20395         * modules/recv: New file.
20396         * modules/recvfrom: New file.
20397         * modules/send: New file.
20398         * modules/sendto: New file.
20399         * modules/setsockopt: New file.
20400         * modules/socket: New file.
20401         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20402         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20403         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20404         the particular module is requested. Add a link warning when the
20405         particular module is not requested.
20406         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20407         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20408         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20409         the particular module is requested.
20410         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20411         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20412         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20413         * modules/sys_socket (Depends-on): Add link-warning.
20414         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20415         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20416         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20417         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20418         GL_LINK_WARNING.
20419         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20420         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20421         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20422         * doc/posix-functions/getpeername.texi: Mention the new module
20423         'getpeername'.
20424         * doc/posix-functions/getsockname.texi: Mention the new module
20425         'getsockname'.
20426         * doc/posix-functions/getsockopt.texi: Mention the new module
20427         'getsockopt'.
20428         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20429         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20430         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20431         * doc/posix-functions/send.texi: Mention the new module 'send'.
20432         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20433         * doc/posix-functions/setsockopt.texi: Mention the new module
20434         'setsockopt'.
20435         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20436         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20437         listen, connect, accept.
20438         * modules/select-tests (Depends-on): Likewise.
20439
20440 2008-10-05  Bruno Haible  <bruno@clisp.org>
20441
20442         * lib/winsock.c (strerror): Remove unused #undef.
20443         (rpl_close): Remove unused local variable.
20444
20445         * modules/sys_socket (Depends-on); Add errno.
20446
20447 2008-10-05  Bruno Haible  <bruno@clisp.org>
20448
20449         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20450         (select): Add a link warning when the 'select' module is not used.
20451         * modules/sys_select (Depends-on): Add link-warning.
20452         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20453         Suggested by Paolo Bonzini.
20454
20455 2008-10-05  Jim Meyering  <meyering@redhat.com>
20456
20457         bootstrap: check for LT_INIT more portably
20458         * build-aux/bootstrap: Avoid using grep -E, since it's not
20459         portable enough.  Suggestion from Bruno Haible.
20460
20461 2008-10-05  Bruno Haible  <bruno@clisp.org>
20462
20463         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20464         as being fixed by gnulib.
20465
20466 2008-10-05  Bruno Haible  <bruno@clisp.org>
20467
20468         * modules/select-tests: New file, mostly copied from
20469         modules/sys_select-tests.
20470         * tests/test-select.c: New file, mostly copied from
20471         tests/test-sys_select.c.
20472         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20473         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20474         (Makefile.am): Remove test_sys_select_LDADD.
20475
20476         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20477         to an undefined symbol, for an error message.
20478         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20479         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20480         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20481         winsock-select.c here.
20482         * modules/sys_select (Files): Remove lib/winsock-select.c.
20483         (Depends-on): Remove alloca.
20484         (Makefile.am): Substitute GNULIB_SELECT.
20485         * modules/select: New file.
20486         * doc/posix-functions/select.texi: Update.
20487
20488 2008-10-05  Bruno Haible  <bruno@clisp.org>
20489
20490         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20491         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20492         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20493         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20494         getdtablesize.
20495         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20496         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20497
20498 2008-10-05  Bruno Haible  <bruno@clisp.org>
20499
20500         * modules/getdtablesize-tests: New file.
20501         * tests/test-getdtablesize.c: New file.
20502
20503         New module 'getdtablesize'.
20504         * lib/unistd.in.h (getdtablesize): New declaration.
20505         * lib/getdtablesize.c: New file.
20506         * m4/getdtablesize.m4: New file.
20507         * modules/getdtablesize: New file.
20508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20509         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20510         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20511         HAVE_GETDTABLESIZE.
20512         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20513
20514 2008-10-05  Bruno Haible  <bruno@clisp.org>
20515
20516         * modules/sched (Makefile.am): Fix typo.
20517         Reported by Simon Josefsson.
20518
20519 2008-10-05  Jim Meyering  <meyering@redhat.com>
20520
20521         bootstrap: check for LT_INIT, too
20522         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20523         are deprecated.  Suggestion from Ralf Wildenhues.
20524
20525 2008-10-05  Bruno Haible  <bruno@clisp.org>
20526
20527         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20528         overriding them by ours.
20529         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20530
20531 2008-10-05  Jim Meyering  <meyering@redhat.com>
20532
20533         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20534         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20535         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20536
20537 2008-10-04  Bruno Haible  <bruno@clisp.org>
20538
20539         * modules/dup2 (License): Change to LGPLv2+.
20540         * modules/sleep (License): Likewise.
20541         * modules/perror (License): Likewise.
20542         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20543         Blake.
20544         * modules/signal (License): Likewise.
20545         * modules/sigprocmask (License): Likewise.
20546         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20547         Meyering.
20548
20549 2008-10-04  Bruno Haible  <bruno@clisp.org>
20550
20551         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20552         Reported by Rainer Tammer <tammer@tammer.net>.
20553
20554 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20555             Bruno Haible  <bruno@clisp.org>
20556
20557         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20558         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20559         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20560
20561 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20562
20563         filevercmp: new module
20564         * lib/filevercmp.h: New function filevercmp comparing version strings.
20565         * lib/filevercmp.c: Implementation of filevercmp function.
20566         * modules/filevercmp: Module metadata.
20567         * tests/test-filevercmp.c: Unit test for new module.
20568         * modules/filevercmp-tests: Unit test metadata.
20569         * MODULES.html.sh: Add filevercmp module.
20570
20571 2008-10-03  Bruno Haible  <bruno@clisp.org>
20572
20573         * lib/c-ctype.h: Add comment.
20574         Reported by Jim Meyering.
20575
20576 2008-10-02  Bruno Haible  <bruno@clisp.org>
20577
20578         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20579
20580 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20581
20582         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20583         name of bootstrap.conf accordingly.
20584
20585 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20586
20587         * build-aux/bootstrap: Install git-merge-changelog configuration
20588         items into .gitconfig if needed.
20589
20590 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20591
20592         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20593         git repository, and initialize/update it accordingly.
20594
20595 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20596
20597         * modules/fsync-tests: New file.
20598         * tests/test-fsync.c: New file.
20599
20600         New module 'fsync'.
20601         * lib/fsync.c: New file.
20602         * m4/fsync.m4: New file.
20603         * modules/fsync: New file.
20604         * lib/unistd.in.h (fsync): New declaration.
20605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20606         GNULIB_FSYNC and HAVE_FSYNC.
20607         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20608         * MODULES.html.sh (posix_functions): Add fsync.
20609         * doc/posix-functions/fsync.texi: Mention the new module.
20610
20611 2008-10-02  Jim Meyering  <meyering@redhat.com>
20612
20613         fts.c: sync with similar code from coreutils' remove.c
20614         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20615         Guard also with "#if defined __linux__", since for now at least,
20616         this code is Linux-kernel-specific.
20617
20618 2008-10-02  Jim Meyering  <meyering@redhat.com>
20619
20620         fts: bug fixes
20621         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20622         Include <sys/vfs.h>, not <sys/statfs.h>.
20623
20624         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20625         Include <sys/vfs.h>, not <sys/statfs.h>.
20626
20627 2008-10-01  Bruno Haible  <bruno@clisp.org>
20628
20629         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20630         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20631         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20632         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20633         * doc/posix-functions/posix_spawnp.texi: Likewise.
20634         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20635         whether posix_spawn actually works.
20636         * m4/pipe.m4 (gl_PIPE): Likewise.
20637         * modules/execute (Files): Add m4/posix_spawn.m4.
20638         * modules/pipe (Files): Add m4/posix_spawn.m4.
20639         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
20640
20641 2008-10-01  Jim Meyering  <meyering@redhat.com>
20642
20643         remove trailing spaces
20644         * NEWS: Likewise.
20645         * lib/poll.c (poll): Likewise.
20646         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
20647         * lib/winsock.c (rpl_close): Likewise.
20648         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
20649         * modules/yield: Likewise.
20650         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
20651         * tests/test-sys_select.c (connect_to_socket): Likewise.
20652
20653         fts.c: adjust a new interface to be more generally useful
20654         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
20655         (fts_build): Adjust caller.
20656
20657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20658
20659         * modules/cond-tests: New file.
20660         * tests/test-cond.c: New file.
20661
20662 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20663             Bruno Haible  <bruno@clisp.org>
20664
20665         * modules/cond (Dependencies): Add errno, time.
20666         * lib/glthread/cond.h: Include <time.h>.
20667         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20668         across platforms.
20669
20670 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20671             Bruno Haible  <bruno@clisp.org>
20672
20673         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20674
20675 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20676             Bruno Haible  <bruno@clisp.org>
20677
20678         * modules/tls-tests (Depends-on): Add thread, yield.
20679         (configure.ac): Remove all checks.
20680         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20681         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20682         gl_thread_self): Remove definitions. Include glthread/thread.h and
20683         glthread/yield.h instead.
20684         (test_tls): Pass an additional NULL argument to gl_thread_join.
20685
20686 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20687             Bruno Haible  <bruno@clisp.org>
20688
20689         * modules/lock-tests (Depends-on): Add thread, yield.
20690         (configure.ac): Remove all checks.
20691         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20692         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20693         gl_thread_self): Remove definitions. Include glthread/thread.h and
20694         glthread/yield.h instead.
20695         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20696         additional NULL argument to gl_thread_join.
20697
20698 2008-09-30  Bruno Haible  <bruno@clisp.org>
20699
20700         Fix the Win32 implementation of the 'thread' module.
20701         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20702         pointer type.
20703         (gl_thread_self): Invoke gl_thread_self_func.
20704         (gl_thread_self_func): New declaration.
20705         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20706         (do_init_self_key, init_self_key): New functions.
20707         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20708         Remove some fields.
20709         (running_threads, running_lock): Remove variables.
20710         (get_current_thread_handle): New function.
20711         (gl_thread_self_func, wrapper_func, glthread_create_func,
20712         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20713         simplified.
20714
20715 2008-09-30  Bruno Haible  <bruno@clisp.org>
20716
20717         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20718         files.
20719
20720 2008-09-30  Jim Meyering  <meyering@redhat.com>
20721
20722         fts.m4: correct the test for statfs.f_type
20723         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20724         when checking for statfs.f_type.
20725
20726 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20727
20728         tests: avoid some compiler warnings
20729         * tests/test-memchr.c (main): Pass NULL indirectly.
20730         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20731
20732 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
20733
20734         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20735         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20736         exactly specified dayshifts.
20737         (dayshift): New rule.
20738         (rel): Add dayshift.
20739         (relative_time_table) [tomorrow, yesterday, today, now]:
20740         Use tDAY_SHIFT in place of tDAY_UNIT.
20741         * tests/test-getdate.c: Add tests for now-disallowed countable
20742         dayshifts, e.g., "4 yesterday ago".
20743
20744 2008-09-29  Bruno Haible  <bruno@clisp.org>
20745
20746         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20747         * tests/test-posix_spawn1.in.sh: Renamed from
20748         tests/test-posix_spawn.in.sh.
20749         * tests/test-posix_spawn2.c: New file.
20750         * tests/test-posix_spawn2.in.sh: New file.
20751         * modules/posix_spawnp-tests (Files): Update.
20752         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20753
20754 2008-09-29  Bruno Haible  <bruno@clisp.org>
20755
20756         Propagate effects of putenv/setenv/unsetenv to child processes.
20757         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20758         * lib/pipe.c (create_pipe): Likewise.
20759
20760 2008-09-29  Bruno Haible  <bruno@clisp.org>
20761
20762         Enable use of shell scripts as executables in mingw.
20763         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20764         run the program as a shell script.
20765         * lib/pipe.c (create_pipe): Likewise.
20766         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20767         resulting array.
20768
20769 2008-09-29  Eric Blake  <ebb9@byu.net>
20770
20771         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20772
20773 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20774
20775         * doc/posix-functions/accept.texi: Update mingw problems.
20776         * doc/posix-functions/bind.texi: Update mingw problems.
20777         * doc/posix-functions/close.texi: Update mingw problems.
20778         * doc/posix-functions/connect.texi: Update mingw problems.
20779         * doc/posix-functions/getpeername.texi: Update mingw problems.
20780         * doc/posix-functions/getsockname.texi: Update mingw problems.
20781         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20782         * doc/posix-functions/ioctl.texi: Update mingw problems.
20783         * doc/posix-functions/listen.texi: Update mingw problems.
20784         * doc/posix-functions/recv.texi: Update mingw problems.
20785         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20786         * doc/posix-functions/select.texi: Update mingw problems.
20787         * doc/posix-functions/send.texi: Update mingw problems.
20788         * doc/posix-functions/sendto.texi: Update mingw problems.
20789         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20790         * doc/posix-functions/socket.texi: Update mingw problems.
20791
20792 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20793             Bruno Haible  <bruno@clisp.org>
20794
20795         * lib/sys_select.in.h: Include sys/time.h.
20796         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20797         * modules/sys_select: Depend on sys_time.
20798         * tests/test-sys_select.c: Test that sys/select.h defines struct
20799         timeval fully.
20800
20801 2008-09-29  Bruno Haible  <bruno@clisp.org>
20802
20803         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20804         * lib/sys_select.in.h: Likewise.
20805
20806 2008-09-29  Bruno Haible  <bruno@clisp.org>
20807
20808         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20809
20810 2008-09-29  Bruno Haible  <bruno@clisp.org>
20811
20812         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20813         Set LIBSOCKET instead of augmenting LIBS.
20814         * modules/sockets (Link): New section.
20815         * modules/sockets-tests (test_sockets_LDADD): New variable.
20816         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20817         * modules/poll-tests (test_poll_LDADD): New variable.
20818         * NEWS: Document the change.
20819
20820 2008-09-29  Bruno Haible  <bruno@clisp.org>
20821
20822         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20823         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20824         ARPA_INET_H directly.
20825         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20826
20827 2008-09-28  Bruno Haible  <bruno@clisp.org>
20828
20829         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20830         from gl_HEADER_SYS_SOCKET.
20831         (gl_HEADER_SYS_SOCKET): Invoke it.
20832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20833
20834 2008-09-28  Bruno Haible  <bruno@clisp.org>
20835
20836         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20837         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20838         Needed on OSF/1 4.0.
20839
20840 2008-09-28  Bruno Haible  <bruno@clisp.org>
20841
20842         Override open more carefully.
20843         * lib/open.c (orig_open): New function.
20844         (rpl_open): Use orig_open instead of open.
20845         * lib/fcntl.in.h: Add special invocation convention.
20846         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20847         (gl_FUNC_OPEN): Invoke it.
20848
20849         Override freopen more carefully.
20850         * lib/freopen.c (orig_freopen): New function.
20851         (rpl_freopen): Use orig_freopen instead of freopen.
20852         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20853         (gl_FUNC_FREOPEN): Invoke it.
20854
20855         Override fopen more carefully.
20856         * lib/fopen.c (orig_fopen): New function.
20857         (rpl_fopen): Use orig_fopen instead of fopen.
20858         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20859         (gl_FUNC_FOPEN): Invoke it.
20860         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20861
20862 2008-09-28  Bruno Haible  <bruno@clisp.org>
20863
20864         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20865         SIGPIPE.
20866
20867 2008-09-28  Bruno Haible  <bruno@clisp.org>
20868
20869         * tests/test-sigaction.c (handler, main): Disable the check whether
20870         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20871         glibc systems with LinuxThreads.
20872
20873 2008-09-28  Bruno Haible  <bruno@clisp.org>
20874
20875         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20876
20877         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20878         with AIX xlc.
20879         * lib/fcntl.in.h (open): Likewise.
20880         Reported by Rainer Tammer <tammer@tammer.net>.
20881
20882 2008-09-28  Bruno Haible  <bruno@clisp.org>
20883
20884         * modules/posix_spawnp-tests: New file.
20885         * tests/test-posix_spawn.c: New file.
20886         * tests/test-posix_spawn.in.sh: New file.
20887
20888         New module 'posix_spawnp'.
20889         * modules/posix_spawnp: New file.
20890         * lib/spawnp.c: New file, from GNU libc with modifications.
20891         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20892
20893         New module 'posix_spawn'.
20894         * modules/posix_spawn: New file.
20895         * lib/spawn.c: New file, from GNU libc with modifications.
20896         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20897
20898         New module 'posix_spawnattr_destroy'.
20899         * modules/posix_spawnattr_destroy: New file.
20900         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20901         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20902         module.
20903
20904         New module 'posix_spawnattr_setsigmask'.
20905         * modules/posix_spawnattr_setsigmask: New file.
20906         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20907         modifications.
20908         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20909         new module.
20910
20911         New module 'posix_spawnattr_getsigmask'.
20912         * modules/posix_spawnattr_getsigmask: New file.
20913         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20914         modifications.
20915         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20916         new module.
20917
20918         New module 'posix_spawnattr_setsigdefault'.
20919         * modules/posix_spawnattr_setsigdefault: New file.
20920         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20921         modifications.
20922         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20923         new module.
20924
20925         New module 'posix_spawnattr_getsigdefault'.
20926         * modules/posix_spawnattr_getsigdefault: New file.
20927         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20928         modifications.
20929         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20930         new module.
20931
20932         New module 'posix_spawnattr_setschedpolicy'.
20933         * modules/posix_spawnattr_setschedpolicy: New file.
20934         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20935         modifications.
20936         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20937         new module.
20938
20939         New module 'posix_spawnattr_getschedpolicy'.
20940         * modules/posix_spawnattr_getschedpolicy: New file.
20941         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20942         modifications.
20943         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20944         new module.
20945
20946         New module 'posix_spawnattr_setschedparam'.
20947         * modules/posix_spawnattr_setschedparam: New file.
20948         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20949         modifications.
20950         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20951         new module.
20952
20953         New module 'posix_spawnattr_getschedparam'.
20954         * modules/posix_spawnattr_getschedparam: New file.
20955         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20956         modifications.
20957         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20958         new module.
20959
20960         New module 'posix_spawnattr_setpgroup'.
20961         * modules/posix_spawnattr_setpgroup: New file.
20962         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20963         modifications.
20964         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20965         module.
20966
20967         New module 'posix_spawnattr_getpgroup'.
20968         * modules/posix_spawnattr_getpgroup: New file.
20969         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20970         modifications.
20971         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20972         module.
20973
20974         New module 'posix_spawnattr_setflags'.
20975         * modules/posix_spawnattr_setflags: New file.
20976         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20977         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20978         module.
20979
20980         New module 'posix_spawnattr_getflags'.
20981         * modules/posix_spawnattr_getflags: New file.
20982         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20983         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20984         module.
20985
20986         New module 'posix_spawnattr_init'.
20987         * modules/posix_spawnattr_init: New file.
20988         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20989         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20990         module.
20991
20992         New module 'posix_spawn_file_actions_destroy'.
20993         * modules/posix_spawn_file_actions_destroy: New file.
20994         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20995         modifications.
20996         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20997         the new module.
20998
20999         New module 'posix_spawn_file_actions_addopen'.
21000         * modules/posix_spawn_file_actions_addopen: New file.
21001         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21002         modifications.
21003         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21004         the new module.
21005
21006         New module 'posix_spawn_file_actions_adddup2'.
21007         * modules/posix_spawn_file_actions_adddup2: New file.
21008         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21009         modifications.
21010         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21011         the new module.
21012
21013         New module 'posix_spawn_file_actions_addclose'.
21014         * modules/posix_spawn_file_actions_addclose: New file.
21015         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21016         modifications.
21017         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21018         the new module.
21019
21020         New module 'posix_spawn_file_actions_init'.
21021         * modules/posix_spawn_file_actions_init: New file.
21022         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21023         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21024         new module.
21025
21026         New module 'posix_spawn-internal'.
21027         * modules/posix_spawn-internal: New file.
21028         * lib/spawn_int.h: New file, from GNU libc with modifications.
21029         * lib/spawni.c: New file, from GNU libc with modifications.
21030         * m4/posix_spawn.m4: New file.
21031
21032         New module 'spawn'.
21033         * modules/spawn: New file.
21034         * lib/spawn.in.h: New file, from GNU libc with modifications.
21035         * m4/spawn_h.m4: New file.
21036         * doc/posix-headers/spawn.texi: Mention the new module.
21037
21038 2008-09-28  Bruno Haible  <bruno@clisp.org>
21039
21040         * modules/sched-tests: New file.
21041         * tests/test-sched.c: New file.
21042
21043         New module 'sched'.
21044         * modules/sched: New file.
21045         * lib/sched.in.h: New file.
21046         * m4/sched_h.m4: New file.
21047         * doc/posix-headers/sched.texi: Mention the new module.
21048
21049 2008-09-27  Eric Blake  <ebb9@byu.net>
21050
21051         Fix previous patch, and tweak references to $0.
21052         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21053         (func_version, func_gnulib_dir): Don't call this program
21054         gnulib-tool.
21055         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21056         with using $0 in function.
21057         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21058         (func_fatal_error): Reuse the name the user invoked us with.
21059
21060 2008-09-27  Bruno Haible  <bruno@clisp.org>
21061
21062         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21063         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21064         (gl_ICONV_H): Not here.
21065         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21066         instead of assigning ICONV_H directly.
21067
21068         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21070         WCHAR_H directly.
21071
21072 2008-09-27  Bruno Haible  <bruno@clisp.org>
21073
21074         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21075         * modules/arpa_inet (Depends-on): Add link-warning.
21076         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21077         * modules/unistd (Makefile.am): Likewise.
21078
21079 2008-09-26  Bruno Haible  <bruno@clisp.org>
21080
21081         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21082         variables.
21083         (func_version): Essentially copied from gnulib-tool.
21084         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21085         func_readlink): Copied from gnulib-tool.
21086
21087 2008-09-26  Bruno Haible  <bruno@clisp.org>
21088
21089         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21090         invoking git-version-gen.
21091
21092 2008-09-26  Bruno Haible  <bruno@clisp.org>
21093
21094         * posix-modules: Update to directory names changed on 2008-01-19.
21095         Remove commas in output before splitting into words. No more need to
21096         avoid 'ftruncate' since 2007-02-19.
21097
21098 2008-09-26  Bruno Haible  <bruno@clisp.org>
21099
21100         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21101
21102 2008-09-26  Bruno Haible  <bruno@clisp.org>
21103
21104         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21105         * modules/fwriteerror (Depends-on): Add errno.
21106
21107 2008-09-26  Bruno Haible  <bruno@clisp.org>
21108
21109         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21110         * tests/test-vc-list-files-cvs.sh: Likewise.
21111
21112 2008-09-26  Bruno Haible  <bruno@clisp.org>
21113
21114         * doc/posix-headers/sys_resource.texi: Reorder items.
21115
21116 2008-09-26  Jim Meyering  <meyering@redhat.com>
21117
21118         fts: tweak inode comparison function
21119         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21120         inode numbers, as documented.
21121
21122         fts: sort dirent entries on inode number before traversing
21123         This avoids a quadratic, seek-related performance penalty when
21124         operating on a directory containing many entries (measurable at 10k;
21125         3.5 hours at 2 million entries with a cold cache) on certain types
21126         of file systems, including ext3 and ext4, but not tmpfs.
21127         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21128         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21129         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21130         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21131         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21132         (fts_build): Set the stat.st_ino member from D_INO.
21133         If it is likely to be useful, sort dirent entries on inode number.
21134
21135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21136         and the struct statfs.f_type member.
21137         * modules/fts (Depends-on): Add d-ino.
21138
21139 2008-09-26  Bruno Haible  <bruno@clisp.org>
21140
21141         * modules/sigpipe-die (Depends-on): Add sigpipe.
21142
21143         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21144         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21145         and GNULIB_STDIO_H_SIGPIPE are set.
21146         * lib/stdio-write.c: New file.
21147         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21148         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21149         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21150         REPLACE_STDIO_WRITE_FUNCS.
21151         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21152         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21153         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21154         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21155         * modules/stdio (Files): Add lib/stdio-write.c.
21156         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21157         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21158         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21159         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21160         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21161         REPLACE_FPRINTF_POSIX.
21162         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21163         REPLACE_PRINTF_POSIX.
21164         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21165         REPLACE_VFPRINTF_POSIX.
21166         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21167         REPLACE_VPRINTF_POSIX.
21168         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21169         SIGPIPE issue.
21170         * doc/posix-functions/fputc.texi: Likewise.
21171         * doc/posix-functions/fputs.texi: Likewise.
21172         * doc/posix-functions/fwrite.texi: Likewise.
21173         * doc/posix-functions/printf.texi: Likewise.
21174         * doc/posix-functions/putc.texi: Likewise.
21175         * doc/posix-functions/putchar.texi: Likewise.
21176         * doc/posix-functions/puts.texi: Likewise.
21177         * doc/posix-functions/vfprintf.texi: Likewise.
21178         * doc/posix-functions/vprintf.texi: Likewise.
21179
21180         * modules/safe-write (Depends-on): Add write.
21181
21182         * modules/sigpipe-tests: New file.
21183         * tests/test-sigpipe.c: New file.
21184         * tests/test-sigpipe.sh: New file.
21185
21186         * modules/write: New file.
21187         * lib/unistd.in.h: Include <sys/types.h>.
21188         (write): New declaration.
21189         * lib/write.c: New file.
21190         * m4/write.m4: New file.
21191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21192         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21193         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21194         GNULIB_WRITE, REPLACE_WRITE.
21195         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21196         and the SIGPIPE issue.
21197
21198         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21199         (raise): New declaration.
21200         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21201         (ext_signal): New function.
21202         (rpl_raise): New function.
21203         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21204         GNULIB_SIGNAL_H_SIGPIPE.
21205         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21206         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21207
21208         * modules/sigpipe: New file.
21209         * m4/sigpipe.m4: New file.
21210
21211 2008-09-25  Derek Price  <derek@ximbiot.com>
21212             Bruno Haible  <bruno@clisp.org>
21213
21214         * gnulib-tool (func_import): Report all license incompatibilities, not
21215         just the first one.
21216
21217 2008-09-25  Bruno Haible  <bruno@clisp.org>
21218
21219         * gnulib-tool (func_import): When computing the edits, consider not
21220         only the Makefile.ams that exist but also those that will be generated.
21221
21222 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21223
21224         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21225         fixes gnulib-tool --test warning about duplicate dependency.
21226
21227 2008-09-25  Bruno Haible  <bruno@clisp.org>
21228
21229         * gnulib-tool: Don't ask the user to perform edits in the generated
21230         Makefile.ams.
21231         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21232         apply to the Makefile.am being generated.
21233         (func_emit_tests_Makefile_am): Execute edits that apply to the
21234         Makefile.am being generated.
21235         (func_import): Setup list of Makefile.am edits before emitting the
21236         Makefile.ams, not at the end.
21237         (func_create_testdir): Update.
21238         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21239
21240 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21241
21242         * gnulib-tool (func_import): Store the --tests-base option in the
21243         comment in gnulib-cache.m4.
21244
21245 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21246
21247         * NEWS: Document increased portability that sys_select now provides.
21248
21249         * lib/sys_select.in.h: Install select wrapper.
21250         * lib/sys_socket.in.h: Use more descriptive name when there is no
21251         select wrapper.
21252         * lib/winsock-select.c: New.
21253         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21254         Require gl_HEADER_SYS_SOCKET.
21255         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21256         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21257         * tests/test-sys_select.c: Add functional tests.
21258
21259 2008-09-24  Eric Blake  <ebb9@byu.net>
21260
21261         open, fopen: close fd leak in last patch
21262         * lib/open.c (rpl_open): Close fd before returning error.
21263         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21264         * doc/posix-functions/open.texi (open): Document that Irix also
21265         has the bug.
21266         * doc/posix-functions/fopen.texi (fopen): Likewise.
21267         Reported by Paolo Bonzini.
21268
21269 2008-09-24  Bruno Haible  <bruno@clisp.org>
21270
21271         Ensure that a filename ending in a slash cannot be used to access a
21272         non-directory.
21273         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21274         to check whether it's really a directory.
21275         * lib/fopen.c: Include fcntl.h, unistd.h.
21276         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21277         and fdopen().
21278         * modules/fopen (Depends-on): Add unistd.
21279         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21280         * tests/test-fopen.c (main): Likewise.
21281         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21282         * doc/posix-functions/fopen.texi: Likewise.
21283         Reported by Eric Blake.
21284
21285 2008-09-23  Eric Blake  <ebb9@byu.net>
21286
21287         c-stack: avoid compiler optimizations when provoking overflow
21288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21289         recursion harder to optimize, to ensure a stack overflow occurs.
21290         * tests/test-c-stack.c (recurse): Likewise.
21291         Borrowed from libsigsegv.
21292
21293         c-stack: work around Irix sigaltstack bug
21294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21295         whether sigaltstack uses wrong end of stack_t (copied in part from
21296         libsigsegv).
21297         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21298         Irix bug, without requiring an over-allocation.
21299         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21300         bug.
21301
21302         fopen: document mingw bug on directories
21303         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21304         not allowing a stream visiting a directory, even though reading
21305         from such a stream is not portable.
21306
21307 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21308
21309         * lib/poll.c: Rewrite.
21310         * modules/poll: Depend on alloca.
21311
21312 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21313
21314         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21315         instead define prototypes for a full set of wrappers.  Ensure
21316         that Cygwin does not use the compatibility code, which is only
21317         for MinGW.
21318         * lib/winsock.c: New.
21319         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21320         * modules/sys_socket: Add lib/winsock.c.
21321
21322         * modules/poll-tests: Add errno and perror.
21323         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21324
21325 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21326
21327         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21328
21329 2008-09-23  Bruno Haible  <bruno@clisp.org>
21330
21331         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21332         * doc/glibc-functions/*: Likewise.
21333
21334 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21335
21336         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21337         success.
21338
21339 2008-09-22  Eric Blake  <ebb9@byu.net>
21340             Bruno Haible  <bruno@clisp.org>
21341
21342         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21343         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21344         supply %A but mishandle pseudo-NaN.
21345         Reported by Simon Josefsson.
21346
21347 2008-09-21  Bruno Haible  <bruno@clisp.org>
21348
21349         * tests/test-lock.c (main): Tweak skip message.
21350         * tests/test-tls.c (main): Likewise.
21351
21352 2008-09-21  Bruno Haible  <bruno@clisp.org>
21353
21354         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21355         whether 'struct sigaction' has sa_sigaction here...
21356         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21357         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21358
21359 2008-09-21  Bruno Haible  <bruno@clisp.org>
21360
21361         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21362         section.
21363         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21364         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21365         the new section.
21366         (Support for obsolete systems lacking POSIX:2001): New section.
21367         (String handling <string.h>): Move strdup to the new section.
21368         Suggested by Simon Josefsson and Paolo Bonzini.
21369
21370 2008-09-21  Bruno Haible  <bruno@clisp.org>
21371
21372         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21373         exponents in %e and %g results on 'long double'. Needed for mingw's
21374         improved *printf functions.
21375         * tests/test-vasprintf-posix.c (test_function): Likewise.
21376         * tests/test-snprintf-posix.h (test_function): Likewise.
21377         * tests/test-sprintf-posix.h (test_function): Likewise.
21378         Reported by Eric Blake.
21379
21380 2008-09-21  Bruno Haible  <bruno@clisp.org>
21381
21382         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21383         * tests/test-sprintf-posix.h (test_function): Likewise.
21384
21385 2008-09-21  Bruno Haible  <bruno@clisp.org>
21386
21387         * modules/getpass (Depends-on): Add strdup-posix.
21388
21389         New module 'strdup-posix'.
21390         * modules/strdup-posix: New file.
21391         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21392         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21394         REPLACE_STRDUP.
21395         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21396         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21398         strdup-posix.
21399
21400         * modules/strdup (Depends-on): Remove malloc-posix.
21401
21402 2008-09-20  Bruno Haible  <bruno@clisp.org>
21403
21404         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21405         Wildenhues.
21406
21407 2008-09-20  Bruno Haible  <bruno@clisp.org>
21408
21409         Ensure that wint_t gets defined on IRIX 5.3.
21410         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21411         * lib/wctype.in.h (wint_t): Likewise.
21412         (__wctype_wint_t): Remove type.
21413         (isw*): Use wint_t instead of __wctype_wint_t.
21414         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21415         * modules/wchar (Files): Add m4/wint_t.m4.
21416         (Makefile.am): Substitute HAVE_WINT_T.
21417         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21418         * tests/test-wctype.c: Check that wint_t is defined.
21419         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21420         * doc/posix-headers/wctype.texi: Likewise.
21421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21422
21423 2008-09-18  Bruno Haible  <bruno@clisp.org>
21424
21425         * gnulib-tool (func_exit): Update comment.
21426
21427 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21428
21429         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21430         assumes strdup exists and does not depend on strdup to return
21431         ENOMEM on out of memory conditions.
21432
21433 2008-09-18  Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21436         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21437         digits for the exponent.
21438
21439 2008-09-18  Jim Meyering  <meyering@redhat.com>
21440             Bruno Haible  <bruno@clisp.org>
21441
21442         * lib/vasnprintf.c (decimal_point_char): Define also if
21443         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21444
21445 2008-09-16  Bruno Haible  <bruno@clisp.org>
21446         and Eric Blake  <ebb9@byu.net>
21447
21448         vasnprintf: support Irix 5.3
21449         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21450         that mishandle long double infinity.
21451         Reported by Tom G. Christensen.
21452
21453 2008-09-16  Bruno Haible  <bruno@clisp.org>
21454
21455         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21456         Solaris 9.
21457         * doc/glibc-functions/alphasort.texi: Likewise.
21458         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21459
21460 2008-09-16  Jim Meyering  <meyering@redhat.com>
21461
21462         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21463         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21464         a umask modification leak out of a subshell.  Otherwise, the
21465         opensolaris /bin/sh would be accepted and thus cause unwarranted
21466         failures in the coreutils test suite.
21467
21468 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21469
21470         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21471         to succeed.
21472
21473 2008-09-16  Jim Meyering  <meyering@redhat.com>
21474
21475         avoid spurious test failure when library is built without ACL support
21476         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21477         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21478         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21479         * tests/test-copy-acl.sh: Likewise.
21480
21481 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21482
21483         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21484         based on character occurrence counts.
21485
21486 2008-09-15  Eric Blake  <ebb9@byu.net>
21487
21488         tests: avoid some compiler warnings
21489         * tests/test-memchr.c (main): Pass NULL indirectly.
21490         * tests/test-closein.c (main): Avoid unused variable.
21491
21492 2008-09-15  Bruno Haible  <bruno@clisp.org>
21493
21494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21495         are missing on OpenBSD 4.0 individually.
21496         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21497
21498 2008-09-15  Bruno Haible  <bruno@clisp.org>
21499
21500         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21501         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21502         * doc/posix-functions/perror.texi: Likewise.
21503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21504         is missing.
21505         Reported by Eric Blake.
21506
21507         * lib/errno.in.h: Use replacement values >= 2000.
21508         Reported by Eric Blake.
21509
21510 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21511
21512         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21513         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21514         limit.
21515         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21516         compareseq was aborted.
21517
21518 2008-09-14  Bruno Haible  <bruno@clisp.org>
21519
21520         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21521         yvec_edit_count.
21522         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21523         (fstrcmp_bounded): Simplify result computation accordingly.
21524
21525 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21526
21527         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21528         (fstrcmp): Define in terms of fstrcmp_bounded.
21529         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21530         lower_bound argument.
21531         Return quickly if the result is certainly < lower_bound.
21532         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21533
21534 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21535
21536         * lib/diffseq.h (EARLY_ABORT): New macro.
21537         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21538         evaluates to true.
21539
21540 2008-09-14  Bruno Haible  <bruno@clisp.org>
21541
21542         * modules/perror-tests: New file.
21543         * tests/test-perror.sh: New file.
21544         * tests/test-perror.c: New file.
21545
21546         New module 'perror'.
21547         * lib/stdio.in.h (perror): New declaration.
21548         * lib/perror.c: New file.
21549         * m4/perror.m4: New file.
21550         * modules/perror: New file.
21551         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21552         * doc/posix-functions/perror.texi: Mention the perror module.
21553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21554         REPLACE_PERROR.
21555         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21556         REPLACE_PERROR.
21557
21558 2008-09-14  Bruno Haible  <bruno@clisp.org>
21559
21560         * modules/stdio (Makefile.am): Reorder to match the order in
21561         lib/stdio.in.h.
21562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21563
21564 2008-09-13  Bruno Haible  <bruno@clisp.org>
21565
21566         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21567
21568 2008-09-13  Bruno Haible  <bruno@clisp.org>
21569
21570         Extend strerror to cover the added errno values.
21571         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21572         (rpl_strerror): Provide error messages for the added errno values and
21573         for the WSA* values.
21574         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21575         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21576         strerror.
21577         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21578         * modules/strerror (Depends-on): Add errno.
21579         * doc/posix-functions/strerror.texi: Document the change.
21580         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21581         and EOVERFLOW.
21582
21583 2008-09-13  Bruno Haible  <bruno@clisp.org>
21584
21585         * modules/EOVERFLOW: Remove file.
21586         * m4/eoverflow.m4: Remove file.
21587         * modules/EOVERFLOW-tests: Remove file.
21588         * tests/test-EOVERFLOW.c: Remove file.
21589         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21590         * modules/ftell (Depends-on): Likewise.
21591         * modules/getdelim (Depends-on): Likewise.
21592         * modules/getugroups (Depends-on): Likewise.
21593         * modules/poll (Depends-on): Likewise.
21594         * modules/snprintf (Depends-on): Likewise.
21595         * modules/sprintf-posix (Depends-on): Likewise.
21596         * modules/vasnprintf (Depends-on): Likewise.
21597         * modules/vasprintf (Depends-on): Likewise.
21598         * modules/vfprintf-posix (Depends-on): Likewise.
21599         * modules/vsnprintf (Depends-on): Likewise.
21600         * modules/vsprintf-posix (Depends-on): Likewise.
21601         * modules/xvasprintf (Depends-on): Likewise.
21602         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21603         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21604         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21605         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21606         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21607         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21608         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21609         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21610         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21611         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21612         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21613         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21614         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21615         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21616         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21617         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21618         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21619         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21620         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21621         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21622         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21623         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21624         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21625         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21626         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21627         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21628         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21629         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21630         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21631         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21632         * MODULES.html.sh: Remove EOVERFLOW.
21633         * NEWS: Mention the change.
21634
21635 2008-09-13  Bruno Haible  <bruno@clisp.org>
21636
21637         * modules/errno-tests: New file.
21638         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
21639
21640         * lib/errno.in.h: New file.
21641         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
21642         * modules/errno: New file.
21643         * doc/posix-headers/errno.texi: Update documentation.
21644         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
21645
21646 2008-09-13  Bruno Haible  <bruno@clisp.org>
21647
21648         * tests/test-poll.c: Use #if for native Windows, rather than testing
21649         __MSVCRT__.
21650
21651 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21652             Bruno Haible  <bruno@clisp.org>
21653
21654         * lib/glob.c: Don't include <pwd.h> on native Windows.
21655         (WINDOWS32): New macro.
21656         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21657
21658 2008-09-13  Bruno Haible  <bruno@clisp.org>
21659
21660         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21661         (ETIMEDOUT): Remove macro.
21662         (glthread_cond_timedwait_multithreaded): New declaration.
21663         (glthread_cond_timedwait): Use it.
21664         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21665         (glthread_cond_timedwait_multithreaded): New function.
21666
21667 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21668
21669         * modules/poll-tests: Do not check for io.h.
21670         * tests/test-poll.c: Check for __MSVCRT__ instead.
21671
21672 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21673
21674         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21675         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21676         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21677
21678 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21679
21680         * modules/poll-tests: New.
21681         * tests/test-poll.c: New.
21682
21683 2008-09-12  Eric Blake  <ebb9@byu.net>
21684
21685         frexp: test for NetBSD failure on -0.0
21686         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21687         not all, bugs from NetBSD 3.0 have been fixed.
21688         * doc/posix-functions/frexp.texi (frexp): Document bug.
21689         Reported by Thomas Klausner.
21690
21691         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21692         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21693         literal -0.0.
21694         Reported by Jonathan C. Patschke <jp@centtech.com>.
21695
21696 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21697
21698         * lib/glthread/cond.h: Use dummy implementation also if
21699         USE_WIN32_THREADS.
21700
21701 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21702
21703         * modules/fnmatch-posix (License): Change to LGPLv2+.
21704         * modules/fnmatch-gnu (License): Likewise.
21705
21706 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21707
21708         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21709
21710 2008-09-11  Jim Meyering  <meyering@redhat.com>
21711
21712         * users.txt: Add gtk-vnc.
21713
21714 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21715
21716         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21717         rotate amounts.
21718
21719         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21720         required for 16-bit and 8-bit rotates.
21721         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21722         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21723         UINT8_MAX instead of hard-coded constants.
21724         Suggested by Paul Eggert.
21725
21726 2008-09-07  Bruno Haible  <bruno@clisp.org>
21727
21728         * tests/test-striconveh.c (main): Check behaviour when converting from
21729         UTF-7.
21730
21731         Make striconveh work better with stateful encodings.
21732         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21733         that iconv does not increment the inptr when returning -1/EINVAL.
21734
21735 2008-09-07  Bruno Haible  <bruno@clisp.org>
21736
21737         * build-aux/config.rpath: Update according to libtool-2.2.6.
21738         * build-aux/config.libpath: Likewise.
21739
21740 2008-09-06  Bruno Haible  <bruno@clisp.org>
21741
21742         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21743         * lib/freadptr.c (freadptr): Likewise.
21744         * lib/freadseek.c (freadptrinc): Likewise.
21745         Reported by Simon Josefsson.
21746
21747 2008-09-06  Bruno Haible  <bruno@clisp.org>
21748
21749         * modules/freadptr (License): Change to LGPLv2+.
21750         * modules/freadseek (License): Likewise.
21751         Suggested by Eric Blake.
21752
21753         * modules/memchr2 (License): Change to LGPLv2+.
21754         Approved by Eric Blake.
21755
21756 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21757             Bruno Haible  <bruno@clisp.org>
21758
21759         Make gnulib-tool work with native 'sed' on AIX.
21760         * gnulib-tool (sed_noop): New variable.
21761         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21762         func_add_or_update, func_create_testdir): Use it to initialize sed
21763         script variables.
21764         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21765
21766 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21767             Bruno Haible  <bruno@clisp.org>
21768
21769         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21770         also works after #include directives.
21771
21772 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
21773
21774         getdate.y: reject an out-of-range timezone value
21775         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21776         the range [-24...+24].  When specified with only one or two digits,
21777         * tests/test-getdate.c: Tests for the fix.
21778         * doc/getdate.texi: Document this change.
21779
21780 2008-09-03  Bruno Haible  <bruno@clisp.org>
21781
21782         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21783
21784 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21785
21786         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21787         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21788         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21789         Blake <ebb9@byu.net>.
21790
21791         * tests/test-bitrotate.c: Add more test vectors.
21792
21793 2008-09-02  Eric Blake  <ebb9@byu.net>
21794
21795         vasnprintf-posix: handle large precision via %.*d
21796         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21797         when handling it ourselves.
21798         * tests/test-vasnprintf-posix.c (test_function): Add test.
21799         * tests/test-snprintf-posix.h (test_function): Likewise.
21800         * tests/test-sprintf-posix.h (test_function): Likewise.
21801         * tests/test-vasprintf-posix.c (test_function): Likewise.
21802         Reported by Alain Guibert.
21803
21804 2008-09-01  Eric Blake  <ebb9@byu.net>
21805
21806         c-stack: make configure-time check more robust
21807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21808         successful sigaction call.
21809         Reported by Tom G. Christensen.
21810
21811 2008-09-01  Bruno Haible  <bruno@clisp.org>
21812
21813         New module 'findprog-lgpl'.
21814         * modules/findprog-lgpl: New file.
21815         * lib/findprog-lgpl.c: New file.
21816         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21817         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21818         to decide whether to use strdup or xstrdup, concatenated_filename or
21819         xconcatenated_filename.
21820
21821 2008-09-01  Bruno Haible  <bruno@clisp.org>
21822
21823         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21824         'xconcat-filename' (GPL).
21825         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21826         (License): Change to LGPLv2+.
21827         * modules/xconcat-filename: New file.
21828         * lib/concat-filename.h (concatenated_filename): Change specification.
21829         (xconcatenated_filename): New declaration.
21830         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21831         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21832         memory situations.
21833         * lib/xconcat-filename.c: New file.
21834         * NEWS: Mention the change.
21835         * lib/findprog.c: Include concat-filename.h, not filename.h.
21836         (find_in_path): Use xconcatenated_filename instead of
21837         concatenated_filename.
21838         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21839         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21840         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21841         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21842         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21843         instead of concatenated_filename.
21844         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21845         (execute_java_class): Use xconcatenated_filename instead of
21846         concatenated_filename.
21847         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21848         * modules/javacomp (Depends-on): Likewise.
21849         * modules/javaexec (Depends-on): Likewise.
21850
21851 2008-09-01  Bruno Haible  <bruno@clisp.org>
21852
21853         Split module 'filename' into 'filename' and 'concat-filename'.
21854         * modules/filename: Keep only lib/filename.h.
21855         (License): Change to LGPLv2+.
21856         * modules/concat-filename: New file, extracted from modules/filename.
21857         * lib/filename.h (concatenated_filename): Remove declaration.
21858         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21859         * lib/concat-filename.c: Include concat-filename.h.
21860         * NEWS: Mention the change.
21861
21862 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21863
21864         * lib/bitrotate.h (rotl8, rotr8): Add.
21865
21866         * modules/bitrotate (configure.ac): Need
21867         AC_REQUIRE([AC_C_INLINE]).
21868         (Description): Mention stdint.h.  Reported by Bruno Haible
21869         <bruno@clisp.org>.
21870
21871         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21872         Paolo Bonzini <bonzini@gnu.org>.
21873
21874 2008-08-31  Bruno Haible  <bruno@clisp.org>
21875
21876         Assume Solaris specific bi-arch conventions on Solaris systems.
21877         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21878         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21880         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21881         like acl_libdirstem.
21882         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21883         acl_libdirstem.
21884         * NEWS: Mention the change.
21885         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21886
21887 2008-08-31  Jim Meyering  <meyering@redhat.com>
21888
21889         * lib/strftime.h: Add comments describing the two added arguments.
21890
21891         remove duplicate #include directives
21892         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21893         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21894
21895 2008-08-31  Bruno Haible  <bruno@clisp.org>
21896
21897         New module 'sigpipe-die'.
21898         * modules/sigpipe-die: New file.
21899         * lib/sigpipe-die.h: New file.
21900         * lib/sigpipe-die.c: New file.
21901         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21902
21903 2008-08-31  Bruno Haible  <bruno@clisp.org>
21904
21905         Don't override previously installed signal handlers.
21906         * lib/fatal-signal.c (saved_sigactions): New variable.
21907         (uninstall_handlers): Reset the signal to the saved handler, not
21908         to SIG_DFL (except when ignored).
21909         (install_handlers): Save the previous handlers.
21910
21911 2008-08-30  Bruno Haible  <bruno@clisp.org>
21912
21913         * gnulib-tool (func_reset_sigpipe): New function.
21914         (func_get_automake_snippet, func_modules_transitive_closure,
21915         func_import): Invoke it before a join command that reads from stdin,
21916         to avoid "echo: write error: Broken pipe" error messages on stderr.
21917         Reported by Sam Steingold <sds@gnu.org>.
21918
21919 2008-08-30  Bruno Haible  <bruno@clisp.org>
21920
21921         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21922         Code copied from m4/open.m4.
21923         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21924         access and the filename ends in a slash. Code copied from lib/open.c.
21925         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21926         * tests/test-fopen.c (main): Check against bug with trailing slash.
21927
21928 2008-08-29  Bruno Haible  <bruno@clisp.org>
21929
21930         Avoid some "gcc -pedantic" warnings.
21931         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21932         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21933         * lib/dirent.in.h: Likewise.
21934         * lib/fcntl.in.h: Likewise.
21935         * lib/float.in.h: Likewise.
21936         * lib/iconv.in.h: Likewise.
21937         * lib/inttypes.in.h: Likewise.
21938         * lib/locale.in.h: Likewise.
21939         * lib/math.in.h: Likewise.
21940         * lib/netinet_in.in.h: Likewise.
21941         * lib/search.in.h: Likewise.
21942         * lib/signal.in.h: Likewise.
21943         * lib/stdarg.in.h: Likewise.
21944         * lib/stdint.in.h: Likewise.
21945         * lib/stdio.in.h: Likewise.
21946         * lib/stdlib.in.h: Likewise.
21947         * lib/string.in.h: Likewise.
21948         * lib/strings.in.h: Likewise.
21949         * lib/sys_select.in.h: Likewise.
21950         * lib/sys_socket.in.h: Likewise.
21951         * lib/sys_stat.in.h: Likewise.
21952         * lib/sys_time.in.h: Likewise.
21953         * lib/sysexits.in.h: Likewise.
21954         * lib/time.in.h: Likewise.
21955         * lib/unistd.in.h: Likewise.
21956         * lib/wchar.in.h: Likewise.
21957         * lib/wctype.in.h: Likewise.
21958         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21959         * modules/fchdir (Makefile.am): Likewise.
21960         * modules/fcntl (Makefile.am): Likewise.
21961         * modules/float (Makefile.am): Likewise.
21962         * modules/iconv_open (Makefile.am): Likewise.
21963         * modules/inttypes (Makefile.am): Likewise.
21964         * modules/locale (Makefile.am): Likewise.
21965         * modules/math (Makefile.am): Likewise.
21966         * modules/netinet_in (Makefile.am): Likewise.
21967         * modules/search (Makefile.am): Likewise.
21968         * modules/signal (Makefile.am): Likewise.
21969         * modules/stdarg (Makefile.am): Likewise.
21970         * modules/stdint (Makefile.am): Likewise.
21971         * modules/stdio (Makefile.am): Likewise.
21972         * modules/stdlib (Makefile.am): Likewise.
21973         * modules/string (Makefile.am): Likewise.
21974         * modules/strings (Makefile.am): Likewise.
21975         * modules/sys_select (Makefile.am): Likewise.
21976         * modules/sys_socket (Makefile.am): Likewise.
21977         * modules/sys_stat (Makefile.am): Likewise.
21978         * modules/sys_time (Makefile.am): Likewise.
21979         * modules/sysexits (Makefile.am): Likewise.
21980         * modules/time (Makefile.am): Likewise.
21981         * modules/unistd (Makefile.am): Likewise.
21982         * modules/wchar (Makefile.am): Likewise.
21983         * modules/wctype (Makefile.am): Likewise.
21984         Reported by Reuben Thomas <rrt@sc3d.org>.
21985
21986 2008-08-29  Bruno Haible  <bruno@clisp.org>
21987
21988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21989         any more.
21990
21991 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21992
21993         * MODULES.html.sh (Misc): Add bitrotate.
21994
21995         * modules/bitrotate: New file.
21996
21997         * lib/bitrotate.h: New file.
21998
21999         * modules/bitrotate-tests: New file.
22000
22001         * tests/test-bitrotate.c: New file.
22002
22003         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22004         on the bitrotate module.
22005
22006         * lib/arctwo.c: Use new bitrotate module.
22007
22008 2008-08-29  Jim Meyering  <meyering@redhat.com>
22009
22010         bootstrap: merge changes from coreutils
22011         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22012         of copied files.  Remove a kludge, now that this is fixed.
22013         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22014         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22015         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22016
22017 2008-08-29  Bruno Haible  <bruno@clisp.org>
22018
22019         * MODULES.html.sh: Remove --cvs-urls option.
22020
22021 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22022
22023         maint.mk: adjust to file name change
22024         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22025
22026 2008-08-28  Jim Meyering  <meyering@redhat.com>
22027
22028         * modules/getndelim2 (License): Relicense to LGPLv2+.
22029         Approved by Richard Stallman for the version of 1995, and by
22030         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22031
22032 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22033
22034         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22035         dummy if one is not available.  Do not touch them if
22036         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22037         (getc_maybe_unlocked): New.
22038         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22039
22040 2008-08-26  Eric Blake  <ebb9@byu.net>
22041
22042         doc/INSTALL: resync from autoconf
22043         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22044         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22045         moving...
22046         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22047         * INSTALL: Regenerate.
22048         * INSTALL.ISO: New file.
22049         * INSTALL.UTF-8: Likewise.
22050
22051 2008-08-26  Jim Meyering  <meyering@redhat.com>
22052
22053         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22054         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22055         these definitions conditional, so that they may be overridden, too.
22056
22057 2008-08-26  Bruno Haible  <bruno@clisp.org>
22058
22059         Generate INSTALL file variants with prettier quotes.
22060         * doc/Makefile (INSTALL_PRELUDE): New macro.
22061         (INSTALL): Use it.
22062         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22063
22064 2008-08-26  Bruno Haible  <bruno@clisp.org>
22065
22066         Run makeinfo in an English locale.
22067         * doc/Makefile (MAKEINFO): New variable.
22068
22069 2008-08-26  Bruno Haible  <bruno@clisp.org>
22070
22071         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22072         Suggested by Eric Blake.
22073
22074 2008-08-25  Bruno Haible  <bruno@clisp.org>
22075
22076         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22077
22078 2008-08-25  Eric Blake  <ebb9@byu.net>
22079
22080         c-stack: test that stack overflow can be caught
22081         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22082         that platform allows handling stack overflow; at least OS/2 EMX
22083         has sigaltstack, but crashes before transferring control to
22084         handler on stack overflow.
22085         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22086         check for HAVE_STACK_OVERFLOW_HANDLING.
22087         Reported by Elbert Pol.
22088
22089 2008-08-25  Bruno Haible  <bruno@clisp.org>
22090
22091         * doc/posix-functions/strftime.texi: Fix description of strftime
22092         module.
22093
22094 2008-08-24  Bruno Haible  <bruno@clisp.org>
22095
22096         * tests/uniwidth/test-uc_width2.c: New file.
22097         * tests/uniwidth/test-uc_width2.sh: New file.
22098         * modules/uniwidth/width-tests (Files): Add the new files.
22099         (TESTS): Add uniwidth/test-uc_width2.sh.
22100         (TESTS_ENVIRONMENT): New variable.
22101         (check_PROGRAMS): Add test-uc_width2.
22102         (test_uc_width2_SOURCES): New variable.
22103
22104         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22105         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22106         not 0x00AB.
22107         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22108
22109 2008-08-22  Eric Blake  <ebb9@byu.net>
22110
22111         test-lock, test-tls: mention why a test is skipped
22112         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22113         skipped.
22114         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22115
22116         count-one-bits: relax license
22117         * modules/count-one-bits (License): Relicense to LGPLv2+.
22118         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22119
22120 2008-08-22  Andreas Schwab  <schwab@suse.de>
22121
22122         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22123         Remove spurious space in assignment.
22124
22125 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22126
22127         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22128         Paul Eggert <eggert@CS.UCLA.EDU>.
22129
22130 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22131
22132         * modules/gettext: Add m4/threadlib.m4.
22133
22134 2008-08-19  Eric Blake  <ebb9@byu.net>
22135
22136         test-c-stack: fix compilation failure on FreeBSD 5.0
22137         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22138         headers before <sys/resource.h>.
22139         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22140         the bug.
22141         Reported by Nelson H. F. Beebe.
22142
22143         strverscmp: migrate from "strverscmp.h" to <string.h>
22144         * modules/string (Makefile.am): Add new hooks.
22145         * modules/strverscmp (Files): Remove strverscmp.h.
22146         (Depends-on): Add string.
22147         (configure.ac): Add indicator.
22148         (Include): Mention new header.
22149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22150         defaults.
22151         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22152         results.
22153         * lib/strverscmp.h: Delete.
22154         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22155         * tests/test-strverscmp.c (includes): Adjust client.
22156         * lib/check-version.c (includes): Likewise.
22157         * NEWS: Document the change.
22158
22159         strverscmp: add unit test
22160         * modules/strverscmp-tests: New file.
22161         * tests/test-strverscmp.c: Likewise.
22162
22163 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22164
22165         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22166         regarding Windows crypto stuff, from Mono.
22167
22168 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22169
22170         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22171         if present, for intel RND.  Return error on failures.
22172
22173 2008-08-18  Ben Pfaff  <blp@gnu.org>
22174
22175         gitlog-to-changelog: give better diagnostic for failed pipe-open
22176         * build-aux/gitlog-to-changelog: Improve error message: suggest
22177         that the version of Git may be too old.
22178
22179 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22180
22181         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22182         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22183
22184 2008-08-18  Bruno Haible  <bruno@clisp.org>
22185
22186         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22187         pthread_in_use().
22188
22189 2008-08-18  Bruno Haible  <bruno@clisp.org>
22190
22191         * lib/glthread/threadlib.c: Include <pthread.h>.
22192
22193 2008-08-18  Bruno Haible  <bruno@clisp.org>
22194
22195         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22196         glthread_recursive_lock_* macros.
22197         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22198         Fix syntax error.
22199
22200 2008-08-18  Bruno Haible  <bruno@clisp.org>
22201
22202         * lib/glthread/thread.c: Avoid forcing a context switch right after
22203         thread creation.
22204
22205 2008-08-17  Bruno Haible  <bruno@clisp.org>
22206
22207         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22208         * lib/glthread/thread.h: Provide Win32 specific implementation.
22209         * modules/thread (Files): Add lib/glthread/thread.c.
22210         (Depends-on): Add lock.
22211         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22212
22213 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22214
22215         New module 'yield'.
22216         * modules/yield: New file.
22217         * lib/glthread/yield.h: New file.
22218         * m4/yield.m4: New file.
22219         * MODULES.html.sh (Multithreading): Add yield.
22220
22221 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22222
22223         New module 'thread'.
22224         * modules/thread: New file.
22225         * lib/glthread/thread.h: New file.
22226         * m4/thread.m4: New file.
22227         * MODULES.html.sh (Multithreading): Add thread.
22228
22229 2008-08-17  Bruno Haible  <bruno@clisp.org>
22230
22231         * lib/glthread/lock.h: Include <stdlib.h> always.
22232         * lib/glthread/tls.h: Likewise.
22233         * lib/glthread/cond.h: Likewise.
22234
22235 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22236
22237         New module 'cond'.
22238         * modules/cond: New file.
22239         * lib/glthread/cond.h: New file.
22240         * lib/glthread/cond.c: New file.
22241         * m4/cond.m4: New file.
22242         * MODULES.html.sh (Multithreading): Add cond.
22243
22244 2008-08-16  Eric Blake  <ebb9@byu.net>
22245
22246         c-stack: fix regression on Irix 5.3 from 2008-06-21
22247         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22248         sa_sigaction...
22249         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22250         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22251         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22252         * modules/signal (Makefile.am): Use the value.
22253         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22254         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22255         * doc/posix-headers/signal.texi (signal.h): Document this
22256         portability issue.
22257         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22258         Reported by Tom G. Christensen.
22259
22260 2008-08-17  Bruno Haible  <bruno@clisp.org>
22261
22262         New module 'threadlib'.
22263         * modules/threadlib: New file.
22264         * lib/glthread/threadlib.c: New file, extracted from
22265         lib/glthread/lock.c.
22266         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22267         functions.
22268         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22269         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22270         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22271         macros.
22272         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22273         (gl_DISABLE_THREADS): Remove macro.
22274         * modules/lock (Files): Remove build-aux/config.rpath.
22275         (Depends-on): Remove havelib. Add threadlib.
22276         (configure.ac-early): Remove section.
22277         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22278         * modules/tls (Depends-on): Remove lock. Add threadlib.
22279         (Link): New section, copied from threadlib.
22280         * MODULES.html.sh (Multithreading): Add threadlib.
22281
22282 2008-08-14  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22285         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22286         glthread_rwlock_unlock, glthread_rwlock_destroy,
22287         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22288         glthread_recursive_lock_destroy): Define as macros always.
22289         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22290         glthread_lock_lock.
22291         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22292         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22293         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22294         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22295         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22296         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22297         (glthread_recursive_lock_lock_func): Renamed from
22298         glthread_recursive_lock_lock.
22299         (glthread_recursive_lock_unlock_func): Renamed from
22300         glthread_recursive_lock_unlock.
22301         (glthread_recursive_lock_destroy_func): Renamed from
22302         glthread_recursive_lock_destroy.
22303
22304 2008-08-14  Bruno Haible  <bruno@clisp.org>
22305
22306         * lib/glthread/lock.h: Renamed from lib/lock.h.
22307         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22308         * lib/glthread/tls.h: Renamed from lib/tls.h.
22309         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22310         * lib/fstrcmp.c: Update includes.
22311         * lib/strsignal.c: Update includes.
22312         * modules/lock (Files, Makefile.am): Update.
22313         (Include): Change to "glthread/lock.h".
22314         * modules/tls (Files, Makefile.am): Update.
22315         (Include): Change to "glthread/tls.h".
22316         * tests/test-lock.c: Update includes.
22317         * tests/test-tls.c: Update includes.
22318         * NEWS: Mention the renamed header files.
22319
22320 2008-08-11  Jim Meyering  <meyering@redhat.com>
22321
22322         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22323
22324 2008-08-11  Eric Blake  <ebb9@byu.net>
22325
22326         test-c-stack: avoid C99-ism
22327         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22328         before statement.
22329         Reported by Alain Guibert.
22330
22331 2008-08-10  Jim Meyering  <meyering@redhat.com>
22332
22333         ensure that return value of uinttostr et al are not ignored
22334         * lib/inttostr.h (__GNUC_PREREQ): Define.
22335         (__attribute_warn_unused_result__): Define.
22336         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22337
22338 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22339
22340         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22341         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22342
22343 2008-08-07  Jim Meyering  <meyering@redhat.com>
22344
22345         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22346
22347         * modules/mkstemp (License): Relicense under LGPLv2+.
22348         * modules/tempname (License): Likewise.
22349
22350 2008-08-06  Bruno Haible  <bruno@clisp.org>
22351
22352         * lib/poll.c (poll): Further micro-optimization.
22353
22354 2008-08-06  Jim Meyering  <meyering@redhat.com>
22355
22356         inet_pton.c: use locale-independent tolower
22357         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22358         (inet_pton6): Use c_tolower rather than tolower.
22359         * modules/inet_pton (Depends-on): Add c-ctype.
22360
22361 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22362
22363         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22364         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22365
22366 2008-08-06  Jim Meyering  <meyering@redhat.com>
22367
22368         * modules/inet_pton (License): Relicense under LGPLv2+.
22369
22370 2008-08-03  Bruno Haible  <bruno@clisp.org>
22371
22372         Additional non-aborting API for lock and tls.
22373         * lib/lock.h: Include <errno.h>.
22374         (glthread_lock_init): New macro/function.
22375         (gl_lock_init): Define as wrapper around glthread_lock_init.
22376         (glthread_lock_lock): New macro/function.
22377         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22378         (glthread_lock_unlock): New macro/function.
22379         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22380         (glthread_lock_destroy): New macro/function.
22381         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22382         (glthread_rwlock_init): New macro/function.
22383         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22384         (glthread_rwlock_rdlock): New macro/function.
22385         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22386         (glthread_rwlock_wrlock): New macro/function.
22387         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22388         (glthread_rwlock_unlock): New macro/function.
22389         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22390         (glthread_rwlock_destroy): New macro/function.
22391         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22392         (glthread_recursive_lock_init): New macro/function.
22393         (gl_recursive_lock_init): Define as wrapper around
22394         glthread_recursive_lock_init.
22395         (glthread_recursive_lock_lock): New macro/function.
22396         (gl_recursive_lock_lock): Define as wrapper around
22397         glthread_recursive_lock_lock.
22398         (glthread_recursive_lock_unlock): New macro/function.
22399         (gl_recursive_lock_unlock): Define as wrapper around
22400         glthread_recursive_lock_unlock.
22401         (glthread_recursive_lock_destroy): New macro/function.
22402         (gl_recursive_lock_destroy): Define as wrapper around
22403         glthread_recursive_lock_destroy.
22404         (glthread_once): New macro/function.
22405         (gl_once): Define as wrapper around glthread_once.
22406         Update function declarations.
22407         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22408         glthread_rwlock_init. Return error code.
22409         (glthread_rwlock_rdlock_multithreaded): Renamed from
22410         glthread_rwlock_rdlock. Return error code.
22411         (glthread_rwlock_wrlock_multithreaded): Renamed from
22412         glthread_rwlock_wrlock. Return error code.
22413         (glthread_rwlock_unlock_multithreaded): Renamed from
22414         glthread_rwlock_unlock. Return error code.
22415         (glthread_rwlock_destroy_multithreaded): Renamed from
22416         glthread_rwlock_destroy. Return error code.
22417         (glthread_recursive_lock_init_multithreaded): Renamed from
22418         glthread_recursive_lock_init. Return error code.
22419         (glthread_recursive_lock_lock_multithreaded): Renamed from
22420         glthread_recursive_lock_lock. Return error code.
22421         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22422         glthread_recursive_lock_unlock. Return error code.
22423         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22424         glthread_recursive_lock_destroy. Return error code.
22425         (glthread_once_call): Make static.
22426         (glthread_once_multithreaded): Renamed from glthread_once.
22427         * lib/tls.h: Include <errno.h>.
22428         (glthread_tls_key_init): New macro/function.
22429         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22430         (glthread_tls_set): New macro/function.
22431         (gl_tls_set): Define as wrapper around glthread_tls_set.
22432         (glthread_tls_key_destroy): New macro/function.
22433         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22434         Update function declarations.
22435         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22436         glthread_tls_get.
22437         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22438
22439 2008-08-04  Eric Blake  <ebb9@byu.net>
22440
22441         gnumakefile: use space, not TAB, outside of targets
22442         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22443
22444 2008-08-02  Jim Meyering  <meyering@redhat.com>
22445
22446         getdate.y: avoid locale-dependent date parsing failure
22447         In Turkish locales, getdate would fail to recognize keywords
22448         containing a lowercase "i".  The solution is not to rely on
22449         locale-sensitive case-conversion.
22450         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22451         (lookup_word): Use c_toupper in place of toupper.
22452         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22453         Reported by Vefa Bicakci <bicave@superonline.com> in
22454         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22455         * modules/getdate (Depends-on): Add c-ctype.
22456
22457 2008-08-02  Bruno Haible  <bruno@clisp.org>
22458
22459         * gnulib-tool (func_import): When updating or creating a .gitignore
22460         file, prepend each added line with a slash, and ignore leading slashes
22461         from the existing lines.
22462         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22463
22464 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22465
22466         Portability fix for GNU make 3.79.1.
22467         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22468         versions do not understand.
22469
22470 2008-08-01  Bruno Haible  <bruno@clisp.org>
22471
22472         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22473         * tests/test-isnanf.h (zero): New variable.
22474         (main): Avoid literal -0.0f.
22475         * tests/test-isnand.h (zero): New variable.
22476         (main): Avoid literal -0.0.
22477         * tests/test-isnanl.h (zero): New variable.
22478         (main): Avoid literal -0.0L.
22479         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22480         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22481         -0.0, -0.0L.
22482         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22483         (test_signbitd): Avoid literal -0.0.
22484         (test_signbitl): Avoid literal -0.0L.
22485         * tests/test-ceilf1.c (zero): New variable.
22486         (main): Avoid literal -0.0f.
22487         * tests/test-ceill.c (zero): New variable.
22488         (main): Avoid literal -0.0L.
22489         * tests/test-floorf1.c (zero): New variable.
22490         (main): Avoid literal -0.0f.
22491         * tests/test-floorl.c (zero): New variable.
22492         (main): Avoid literal -0.0L.
22493         * tests/test-roundf1.c (zero): New variable.
22494         (main): Avoid literal -0.0f.
22495         * tests/test-round1.c (zero): New variable.
22496         (main): Avoid literal -0.0.
22497         * tests/test-roundl.c (zero): New variable.
22498         (main): Avoid literal -0.0L.
22499         * tests/test-truncf1.c (zero): New variable.
22500         (main): Avoid literal -0.0f.
22501         * tests/test-trunc1.c (zero): New variable.
22502         (main): Avoid literal -0.0.
22503         * tests/test-truncl.c (zero): New variable.
22504         (main): Avoid literal -0.0L.
22505         * tests/test-frexp.c (zero): New variable.
22506         (main): Avoid literal -0.0.
22507         * tests/test-frexpl.c (zero): New variable.
22508         (main): Avoid literal -0.0L.
22509         * tests/test-ldexpl.c (zero): New variable.
22510         (main): Avoid literal -0.0L.
22511         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22512         (zerod, zerol): New variables.
22513         (test_function): Avoid literals -0.0, -0.0L.
22514         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22515         (zerod, zerol): New variables.
22516         (test_function): Avoid literals -0.0, -0.0L.
22517         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22518         (zerod, zerol): New variables.
22519         (test_function): Avoid literals -0.0, -0.0L.
22520         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22521         (zerod, zerol): New variables.
22522         (test_function): Avoid literals -0.0, -0.0L.
22523         * tests/test-strtod.c (zero): New variable.
22524         (main): Avoid literal -0.0.
22525         Reported by Jonathan C. Patschke <jp@centtech.com>.
22526
22527 2008-07-31  Jim Meyering  <meyering@redhat.com>
22528
22529         sha256.h: correct definition of SHA224_DIGEST_SIZE
22530         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22531         Reported by Paulie Pena IV <paulie4@gmail.com>.
22532         Define as 224 / 8, rather than as a literal.
22533         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22534         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22535         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22536
22537 2008-07-31  Bruno Haible  <bruno@clisp.org>
22538
22539         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22540         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22541         Reported by Jonathan Patschke <jp@centtech.com>.
22542
22543 2008-07-31  Bruno Haible  <bruno@clisp.org>
22544
22545         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22546         Reported by Paolo Bonzini <bonzini@gnu.org>.
22547
22548 2008-07-30  Eric Blake  <ebb9@byu.net>
22549
22550         test-strtod: allow compilation without -lm
22551         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22552         Reported by Dennis Clarke <blastwave@gmail.com>.
22553
22554 2008-07-28  Jim Meyering  <meyering@redhat.com>
22555
22556         bootstrap: work also when there are no .po files in po/
22557         * build-aux/bootstrap (update_po_files): Complete the change
22558         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22559
22560 2008-07-27  Jim Meyering  <meyering@redhat.com>
22561
22562         * users.txt: Add zile.
22563
22564 2008-07-26  Ben Pfaff  <blp@gnu.org>
22565
22566         Add missing dependencies on new m4/exponent[fdl].m4 files.
22567         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22568         * modules/isnand-nolibm: Add m4/exponentd.m4.
22569         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22570         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22571         m4/isnan[fdl].m4, because the macros actually used moved.
22572         Reported by Jim Meyering.
22573
22574 2008-07-14  Ben Pfaff  <blp@gnu.org>
22575
22576         Add isinf module.
22577         * lib/isinf.c: New file.
22578         * lib/math.in.h: Define isinf macro if we have decided to replace
22579         it.
22580         * m4/isinf.m4: New file.
22581         * m4/math_h.m4: Initialize and substitute variables for isinf
22582         module.
22583         * modules/isinf: New file.
22584         * modules/isinf-tests: New file.
22585         * modules/math: Add substitutions for new module.
22586         * tests/test-isinf.c: New file.
22587         * doc/posix-functions/isinf.texi: Mention new module.
22588         * MODULES.html.sh: Mention new module.
22589
22590 2008-07-14  Ben Pfaff  <blp@gnu.org>
22591
22592         Factor out some macros for use by additional modules.
22593         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22594         exponentf.m4.
22595         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22596         exponentd.m4.
22597         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22598         file exponentl.m4.
22599         * m4/exponentf.m4: New file.
22600         * m4/exponentd.m4: New file.
22601         * m4/exponentl.m4: New file.
22602         * modules/isnanf: Use new file m4/exponentf.m4.
22603         * modules/isnand: Use new file m4/exponentd.m4.
22604         * modules/isnanl: Use new file m4/exponentl.m4.
22605
22606 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22607
22608         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22609         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22610         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22611         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22612
22613         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22614         readlink on platforms without PATH_MAX.
22615
22616 2008-07-21  Eric Blake  <ebb9@byu.net>
22617
22618         Warn, not fail, on stale version.
22619         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22620
22621         Don't allow installation with stale devel version number.
22622         * top/GNUmakefile (_is-install-target): New macro.
22623         (_curr-ver): Forbid installation with stale version number.
22624
22625 2008-07-20  Bruno Haible  <bruno@clisp.org>
22626
22627         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22628         TESTS_ENVIRONMENT.
22629         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22630
22631 2008-07-20  Bruno Haible  <bruno@clisp.org>
22632
22633         * lib/c-stack.h (c_stack_action): Add documentation.
22634         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22635
22636 2008-07-20  Bruno Haible  <bruno@clisp.org>
22637
22638         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
22639         * modules/readlink (License): Likewise.
22640
22641 2008-07-17  Eric Blake  <ebb9@byu.net>
22642
22643         * modules/c-stack (Link): Fix typo.
22644
22645         Make c-stack use libsigsegv, when available.
22646         * modules/c-stack (Depends-on): Add libsigsegv.
22647         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
22648         needed.
22649         * lib/c-stack.c (SIGSTKSZ): Define fallback.
22650         (segv_handler, overflow_handler, c_stack_action)
22651         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
22652         implementation when libsigsegv is available, but only when using
22653         the library is necessary.
22654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
22655         comment, explaining why XSI check fails on Linux.
22656         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22657         * tests/test-c-stack2.sh: Tweak skip message.
22658         * NEWS: Document new link-time requirements.
22659
22660 2008-07-16  Eric Blake  <ebb9@byu.net>
22661
22662         c-stack: Expose false positives when not using libsigsegv.
22663         * modules/c-stack-tests (Files): Expand test.
22664         * tests/test-c-stack.c (main): Add means to conditionally trigger
22665         non-overflow SIGSEGV.
22666         * tests/test-c-stack2.sh: New file.
22667
22668 2008-07-14  Bruno Haible  <bruno@clisp.org>
22669
22670         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22671         Reported by Eric Blake.
22672
22673 2008-07-14  Sam Steingold  <sds@gnu.org>
22674             Bruno Haible  <bruno@clisp.org>
22675
22676         New module libsigsegv.
22677         * modules/libsigsegv: New file.
22678         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22679         modifications.
22680         * MODULES.html.sh (Signal handling): New section.
22681
22682 2008-07-14  Bruno Haible  <bruno@clisp.org>
22683
22684         * modules/unictype/ctype-* (Description): Add the word "function".
22685         Improves the resulting doc in MODULES.html.
22686
22687 2008-07-12  Ben Pfaff  <blp@gnu.org>
22688
22689         Add longlong module.
22690         * modules/longlong: New file.
22691
22692 2008-07-12  Bruno Haible  <bruno@clisp.org>
22693
22694         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22695         to empty.
22696
22697 2008-07-10  Ben Pfaff  <blp@gnu.org>
22698
22699         Add isnan module.
22700         * doc/posix-functions/isnan.texi: Mention new module.
22701         * lib/math.in.h: Define isnan macro if we have decided to replace
22702         it.
22703         * m4/isnan.m4: New file.
22704         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22705         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22706         also.
22707         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22708         redundancy.
22709         * m4/math_h.m4: Initialize and substitute variables for isnan
22710         module.
22711         * modules/isnan: New file.
22712         * modules/isnan-tests: New file.
22713         * modules/math: Add substitutions for new module.
22714         * tests/test-isnan.c: New file.
22715         * MODULES.html.sh: Mention new module.
22716
22717 2008-07-10  Ben Pfaff  <blp@gnu.org>
22718
22719         Add isnanf module.
22720         * lib/isnanf.m4: New file.
22721         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22722         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22723         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22724         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22725         * modules/isnanf: New file.
22726         * modules/isnanf-tests: New file.
22727         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22728         files.
22729         * tests/test-isnanf-nolibm.c: factored most of its contents into
22730         new file tests/test-isnanf.h.
22731         * tests/test-isnanf.h: New file.
22732         * tests/test-isnanf.c: New file.
22733         * MODULES.html.sh: Mention new module.
22734         * doc/glibc-functions/isnanf.texi: Mention new module.
22735
22736 2008-07-10  Ben Pfaff  <blp@gnu.org>
22737
22738         Add isnand module.
22739         * lib/isnand.h: New file.
22740         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22741         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22742         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22743         functionality also.
22744         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22745         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22746         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22747         * modules/isnand: New file.
22748         * modules/isnand-tests: New file.
22749         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22750         files.
22751         * tests/test-isnand-nolibm.c: factored most of its contents into
22752         new file tests/test-isnand.h.
22753         * tests/test-isnand.h: New file.
22754         * tests/test-isnand.c: New file.
22755         * MODULES.html.sh: Mention new module.
22756
22757 2008-07-10  Ben Pfaff  <blp@gnu.org>
22758
22759         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22760         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22761         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22762         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22763         * modules/isnanf-nolibm: Update references to renamed files.
22764         * modules/isnand-nolibm: Likewise.
22765         * modules/isnanf-nolibm-tests: Likewise.
22766         * modules/isnand-nolibm-tests: Likewise.
22767         * lib/frexp.c: Likewise.
22768         * lib/isfinite.c: Likewise.
22769         * lib/signbitd.c: Likewise.
22770         * lib/signbitf.c: Likewise.
22771         * lib/vasnprintf.c: Likewise.
22772         * tests/test-ceilf1.c: Likewise.
22773         * tests/test-ceilf2.c: Likewise.
22774         * tests/test-floorf1.c: Likewise.
22775         * tests/test-floorf2.c: Likewise.
22776         * tests/test-frexp.c: Likewise.
22777         * tests/test-round1.c: Likewise.
22778         * tests/test-round2.c: Likewise.
22779         * tests/test-roundf1.c: Likewise.
22780         * tests/test-strtod.c: Likewise.
22781         * tests/test-trunc1.c: Likewise.
22782         * tests/test-trunc2.c: Likewise.
22783         * tests/test-truncf1.c: Likewise.
22784         * tests/test-truncf2.c: Likewise.
22785         * NEWS: Mention the renamed header files.
22786
22787 2008-07-11  Jim Meyering  <meyering@redhat.com>
22788
22789         vc-list-files: make the last-resort awk code more portable
22790         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22791         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22792         does not support it.
22793
22794 2008-07-10  Eric Blake  <ebb9@byu.net>
22795
22796         Work with tar's bootstrap.
22797         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22798         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22799         an m4 comment.
22800
22801 2008-07-09  Jim Meyering  <meyering@redhat.com>
22802
22803         posix-shell.m4: fix typo that made this test malfunction
22804         * m4/posix-shell.m4: Remove capitalization in variable name.
22805
22806 2008-07-08  Bruno Haible  <bruno@clisp.org>
22807
22808         * m4/onceonly.m4: Update comments.
22809         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22810
22811 2008-07-04  Jim Meyering  <meyering@redhat.com>
22812
22813         * users.txt: Add vc-dwim.
22814         (bison, coreutils): Use the gitweb URL.
22815
22816 2008-07-03  Jim Meyering  <meyering@redhat.com>
22817
22818         * users.txt: Add libffcall.  From Sam Steingold.
22819
22820 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
22821
22822         getdate.y: do not ignore TZ with relative day, month or year offset
22823         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22824         relative-date-handling, since otherwise, the latter would clobber the
22825         sole output (an updated Start value) of the tz-handling block.
22826         * tests/test-getdate.c: Tests for the fix
22827
22828 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22829
22830         Recognize 'foo_LIBRARIES += libgnu.a'.
22831         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22832         makefile snippet has already specified an installation location,
22833         also using '+='.
22834
22835 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
22836
22837         getdate.y: factor out common actions
22838         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22839         Use them in place of open-coded actions.
22840
22841 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22842
22843         Add self-test for getdate module.
22844         * modules/getdate-tests: New file.
22845         * tests/test-getdate.c: New file.
22846
22847 2008-06-29  Bruno Haible  <bruno@clisp.org>
22848
22849         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22850         .gitignore.
22851         Reported by Sylvain Beucler <beuc@beuc.net>.
22852
22853 2008-06-29  Bruno Haible  <bruno@clisp.org>
22854
22855         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22856         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22857
22858 2008-06-29  Bruno Haible  <bruno@clisp.org>
22859
22860         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22861         EXTRA_DIST.
22862         Reported by Sylvain Beucler <beuc@beuc.net>.
22863
22864 2008-06-26  Jim Meyering  <meyering@redhat.com>
22865
22866         make several modules depend on the "open" module
22867         This provides slightly increased consistency when opening-for-write
22868         the name of a non-directory spelled with a trailing slash.
22869         * modules/chdir-safer: Likewise.
22870         * modules/chown: Likewise.
22871         * modules/clean-temp: Likewise.
22872         * modules/copy-file: Likewise.
22873         * modules/fchdir: Likewise.
22874         * modules/fcntl-safer: Likewise.
22875         * modules/pipe: Likewise.
22876         * modules/utime: Likewise.
22877         Prompted by Eric Blake and Bruno Haible.
22878
22879 2008-06-24  Andreas Schwab  <schwab@suse.de>
22880
22881         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22882         literals can be used as initializers for global variables.
22883
22884 2008-06-23  Eric Blake  <ebb9@byu.net>
22885
22886         Make gnulib-cache.m4 easier to diff.
22887         * gnulib-tool (func_import): Allow newlines when reading cached
22888         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22889
22890 2008-06-23  Bruno Haible  <bruno@clisp.org>
22891
22892         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22893         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22894         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22895         m4/signalblocking.m4.
22896         (gl_PREREQ_SIGACTION): Don't invoke it.
22897         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22898         gl_PREREQ_SIG_HANDLER_H.
22899         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22900         Don't check for sigaction here.
22901
22902 2008-06-23  Bruno Haible  <bruno@clisp.org>
22903
22904         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22905         (install_handlers): Don't set the SA_RESETHAND flag.
22906
22907 2008-06-23  Bruno Haible  <bruno@clisp.org>
22908
22909         * m4/sigaction.m4: Comment fixes.
22910         * lib/signal.in.h: Likewise.
22911
22912 2008-06-23  Eric Blake  <ebb9@byu.net>
22913
22914         Fix typo.
22915         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22916
22917         Avoid SA_ namespace.
22918         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22919         Reported by Ralf Wildenhues.
22920
22921         Avoid test failure due to SA_RESTORER.
22922         * tests/test-sigaction.c (SA_MASK): New macro.
22923         (main): Avoid failing due to extension flags being set.
22924         Reported by Jim Meyering.
22925
22926         Revert use of sig-handler.h in sigprocmask.c.
22927         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22928         it requires the existence of struct sigaction.
22929         * lib/sigprocmask.c (handler_t): Restore typedef.
22930         (rpl_signal, old_handlers): Use local type.
22931
22932 2008-06-22  Bruno Haible  <bruno@clisp.org>
22933
22934         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22935         conditionally.
22936         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22937
22938 2008-06-22  Bruno Haible  <bruno@clisp.org>
22939
22940         * doc/posix-functions/siginterrupt.texi: Move note.
22941
22942         * lib/signal.in.h (SA_RESTART): New macro.
22943         * lib/sigaction.c: Update comment.
22944
22945         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22946
22947         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22948         (gl_PREREQ_SIGPROCMASK): Invoke it.
22949         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22950
22951         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22952
22953         * lib/sigprocmask.c: Update a comment.
22954
22955 2008-06-21  Eric Blake  <ebb9@byu.net>
22956
22957         Use sigaction module rather than signal().
22958         * modules/c-stack (Depends-on): Add sigaction.
22959         * modules/fatal-signal (Depends-on): Likewise.
22960         * modules/nanosleep (Depends-on): Likewise.
22961         * modules/sigprocmask (Files): Add sig-handler.h.
22962         * modules/sigaction (Files): Likewise.
22963         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22964         Eggert.
22965         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22966         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22967         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22968         (init_fatal_signals): Likewise.
22969         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22970         (siginterrupt): Delete fallback.
22971         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22972         instead.
22973         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22974         siginterrupt.
22975
22976         New module sigaction, for mingw.
22977         * modules/sigaction: New module...
22978         * modules/sigaction-tests: ...and its test.
22979         * m4/sigaction.m4: New file.
22980         * lib/sigaction.c: Likewise.
22981         * tests/test-sigaction.c: Likewise.
22982         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22983         * modules/signal (Makefile.am): Likewise.
22984         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22985         needed.
22986         * doc/posix-headers/signal.texi (signal.h): Mention provided
22987         types.
22988         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22989         that sigaction is preferable.
22990         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22991         module.
22992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22993         sigaction.
22994
22995         Improve robustness of sigprocmask by overriding signal.
22996         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22997         is in use.
22998         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22999         (SIGKILL, SIGSTOP): Provide fallbacks.
23000         (rpl_signal): Implement.
23001         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23002         signal can be called inside handlers.
23003
23004         Fix nanosleep module on mingw.
23005         * modules/nanosleep (Depends-on): Add sys_select.
23006         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23007
23008         Fix licensing of sigprocmask.
23009         * modules/raise (License): Relicense as LGPL.
23010
23011 2008-06-21  Bruno Haible  <bruno@clisp.org>
23012
23013         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23014         result if it contains question marks.
23015         Reported by Michael Geng <linux@michaelgeng.de>.
23016
23017 2008-06-19  Bruno Haible  <bruno@clisp.org>
23018
23019         Fix CVS-ism.
23020         * doc/gnulib.texi: Include updated-stamp.texi.
23021         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23022         (updated-stamp.texi): New rule.
23023         (gnulib.info): Depend on it.
23024         * doc/.gitignore: Add updated-stamp.texi.
23025         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23026
23027 2008-06-19  Bruno Haible  <bruno@clisp.org>
23028
23029         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23030         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23031
23032 2008-06-19  Eric Blake  <ebb9@byu.net>
23033
23034         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23035         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23036         Reported by Stepan Kasal.
23037
23038 2008-06-18  Bruno Haible  <bruno@clisp.org>
23039
23040         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23041         Reported by Eric Blake.
23042
23043 2008-06-18  Eric Blake  <ebb9@byu.net>
23044
23045         Work around cygwin 1.5.25 strsignal bug.
23046         * tests/test-strsignal.c: Allow for const char *.
23047         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23048
23049 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23050
23051         * users.txt: Update URL to article and add author/date
23052         information.
23053
23054 2008-06-17  Bruno Haible  <bruno@clisp.org>
23055
23056         New macro gl_DISABLE_THREADS.
23057         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23058         if the user did not pass --enable-threads or --disable-threads option.
23059         (gl_DISABLE_THREADS): New macro.
23060         Reported by Eric Blake <ebb9@byu.net>.
23061
23062 2008-06-17  Bruno Haible  <bruno@clisp.org>
23063
23064         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23065         when the macro ignores it.
23066         Based on a patch by Eric Blake <ebb9@byu.net>.
23067
23068 2008-06-17  Bruno Haible  <bruno@clisp.org>
23069
23070         * modules/tls (License): Change to LGPLv2+.
23071         Reported by Eric Blake.
23072
23073 2008-06-17  Eric Blake  <ebb9@byu.net>
23074
23075         Simplify c-stack prerequisites.
23076         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23078         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23079         check.
23080         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23081         <sys/resource.h>.
23082
23083         Move c-stack test into testsuite.
23084         * modules/c-stack-tests: New file.
23085         * lib/c-stack.c [DEBUG]: Move test program...
23086         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23087         fail test if sigaltstack is lacking.
23088         * tests/test-c-stack.sh: New driver file.
23089
23090 2008-06-16  Eric Blake  <ebb9@byu.net>
23091
23092         Use raise module consistently.
23093         * modules/fatal-signal (Depends-on): Add raise.
23094         * modules/sigprocmask (Depends-on): Likewise.
23095         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23096         * lib/sigprocmask.c (sigprocmask): Likewise.
23097         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23098         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23099
23100         Fix compliance bug in sigpending.
23101         * lib/sigprocmask.c (sigpending): Return pending array via
23102         parameter, not return value.
23103
23104 2008-06-14  Eric Blake  <ebb9@byu.net>
23105
23106         Improve obstack-printf test code.
23107         * tests/test-obstack-printf.c (test_function): Fix comment, and
23108         simplify usage of obstack_* in macros.  Add a test for coverage.
23109         Reported by Bruno Haible.
23110
23111 2008-06-14  Bruno Haible  <bruno@clisp.org>
23112
23113         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23114         array size as a constant, not as a const variable.
23115         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23116         AC_USE_SYSTEM_EXTENSIONS.
23117         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23118         Test whether the obstack_printf function actually exists.
23119         * modules/obstack-printf (Depends-on): Add extensions.
23120         (Include): Remove obstack.h.
23121         * modules/obstack-printf-posix (Depends-on): Add extensions.
23122         (Include): Remove obstack.h.
23123
23124 2008-06-13  Eric Blake  <ebb9@byu.net>
23125
23126         Add obstack-printf and obstack-printf-posix modules.
23127         * modules/obstack-printf: New file.
23128         * modules/obstack-printf-posix: Likewise.
23129         * MODULES.html.sh (Misc): Mention them.
23130         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23131         Likewise.
23132         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23133         Likewise.
23134         * modules/stdio (Makefile.am): Accomodate new modules.
23135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23136         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23137         Declare.
23138         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23139         functions.
23140         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23141         (gl_REPLACE_OBSTACK_PRINTF): New macros
23142         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23143         * tests/test-obstack-printf.c: New file.
23144         * modules/obstack-printf-tests: Likewise.
23145         * modules/obstack-printf-posix-tests: Likewise.
23146
23147 2008-06-11  Bruno Haible  <bruno@clisp.org>
23148
23149         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23150         * lib/open.c: Include errno.h.
23151         (open): Fail when attempting to write to a file that has a trailing
23152         slash.
23153         * tests/test-open.c (main): Test against trailing slash bug.
23154         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23155
23156 2008-06-10  Bruno Haible  <bruno@clisp.org>
23157
23158         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23159         for $? to work inside the trap command, with various /bin/sh-s.
23160         * tests/test-vc-list-files-cvs.sh: Likewise.
23161
23162 2008-06-10  Bruno Haible  <bruno@clisp.org>
23163
23164         * lib/acl-internal.h: Don't include gettext.h here.
23165         * lib/set-mode-acl.c: Include gettext.h here.
23166         * lib/copy-acl.c: Likewise.
23167
23168 2008-06-10  Bruno Haible  <bruno@clisp.org>
23169
23170         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23171         * lib/wait-process.c (wait_subprocess): Likewise.
23172         * lib/execute.h (execute): Add termsigp argument.
23173         * lib/execute.c (execute): Likewise.
23174         * lib/csharpcomp.c (compile_csharp_using_pnet,
23175         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23176         * lib/csharpexec.c (execute_csharp_using_pnet,
23177         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23178         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23179         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23180         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23181         is_jikes_present): Update.
23182         * lib/javaexec.c (execute_java_class): Update.
23183         * lib/javaversion.c (execute_and_read_line): Update.
23184         * NEWS: Document the changes.
23185         Reported by Eric Blake.
23186
23187 2008-06-10  Eric Blake  <ebb9@byu.net>
23188
23189         Add missing include.
23190         * tests/test-strstr.c (includes): Add <signal.h>.
23191         * tests/test-strcasestr.c (includes): Likewise.
23192         * tests/test-memmem.c (includes): Likewise.
23193
23194 2008-06-10  Bruno Haible  <bruno@clisp.org>
23195
23196         * lib/wait-process.c (wait_subprocess): Add an assertion.
23197
23198 2008-06-10  Bruno Haible  <bruno@clisp.org>
23199
23200         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23201
23202 2008-06-10  Bruno Haible  <bruno@clisp.org>
23203
23204         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23205         using alarm().
23206         * tests/test-strcasestr.c (main): Likewise.
23207         * tests/test-strstr.c (main): Likewise.
23208
23209 2008-06-09  Bruno Haible  <bruno@clisp.org>
23210
23211         Work around the Solaris 10 ACE ACLs ABI change.
23212         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23213         declare if ACL_NO_TRIVIAL is present.
23214         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23215         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23216         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23217         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23218         define if ACL_NO_TRIVIAL is present.
23219         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23220         and use the current ABI.
23221         (file_has_acl): Use same #if condition as elsewhere.
23222         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23223         in use, and use the current ABI.
23224         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23225         Reported by Jim Meyering.
23226
23227 2008-06-09  Eric Blake  <ebb9@byu.net>
23228
23229         Work around environments that (stupidly) ignore SIGALRM.
23230         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23231         before using alarm().
23232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23234         Reported by Ian Beckwith <ianb@erislabs.net>.
23235
23236         Produce autobuild blurb earlier in log.
23237         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23238
23239 2008-06-09  Jim Meyering  <meyering@redhat.com>
23240         and Ondřej Vašík  <ovasik@redhat.com>
23241
23242         utimens.c: correct kernel bug work-around
23243         Ondřej Vašík found that the invalid return value of 280 indicates
23244         failure, not success, and the kernel bug we're trying to work
23245         around affects not just the utimensat call, but also the fallback
23246         futimens call.
23247         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23248         not success.
23249         [HAVE_FUTIMENS]: Use the same work-around, here.
23250
23251 2008-06-09  Jim Meyering  <meyering@redhat.com>
23252
23253         add more guards around definition of ACE_-related code
23254         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23255         ALLOW and ACE_OWNER are also defined.
23256
23257 2008-06-08  Bruno Haible  <bruno@clisp.org>
23258
23259         * lib/acl-internal.h: Add me as co-author.
23260         * lib/file-has-acl.c: Likewise.
23261         * lib/set-mode-acl.c: Likewise.
23262         * lib/copy-acl.c: Likewise.
23263
23264 2008-06-08  Bruno Haible  <bruno@clisp.org>
23265
23266         Add support for AIX ACLs.
23267         * lib/acl-internal.h (acl_nontrivial): New declaration.
23268         * lib/file-has-acl.c (acl_nontrivial): New function.
23269         (file_has_acl): Add implementation using AIX 4 ACL API.
23270         * lib/set-mode-acl.c (qset_acl): Likewise.
23271         * lib/copy-acl.c (qcopy_acl): Likewise.
23272
23273 2008-06-08  Bruno Haible  <bruno@clisp.org>
23274
23275         Add support for HP-UX ACLs.
23276         * lib/acl-internal.h (acl_nontrivial): New declaration.
23277         * lib/file-has-acl.c (acl_nontrivial): New function.
23278         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23279         * lib/set-mode-acl.c (qset_acl): Likewise.
23280         * lib/copy-acl.c (qcopy_acl): Likewise.
23281
23282 2008-06-08  Bruno Haible  <bruno@clisp.org>
23283
23284         Add support for Cygwin ACLs.
23285         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23286         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23287         the chmod_or_fchmod call.
23288         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23289
23290 2008-06-08  Bruno Haible  <bruno@clisp.org>
23291
23292         Fix bug with setuid modes in Solaris 10+ code.
23293         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23294         succeeded, when the mode contains some special bits.
23295
23296 2008-06-08  Bruno Haible  <bruno@clisp.org>
23297
23298         Add support for Solaris 7..10 ACLs.
23299         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23300         declarations.
23301         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23302         functions.
23303         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23304         * lib/set-mode-acl.c (qset_acl): Likewise.
23305         * lib/copy-acl.c (qcopy_acl): Likewise.
23306
23307 2008-06-08  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23310         declaration.
23311         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23312         (acl_access_nontrivial): Remove MacOS X case.
23313         (file_has_acl): Use acl_extended_nontrivial.
23314         * lib/copy-acl.c (qcopy_acl): Likewise.
23315
23316 2008-06-08  Bruno Haible  <bruno@clisp.org>
23317
23318         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23319
23320 2008-06-08  Jim Meyering  <meyering@redhat.com>
23321
23322         * modules/acl (Maintainer): Add Bruno Haible.
23323
23324 2008-06-07  Bruno Haible  <bruno@clisp.org>
23325
23326         Improve support for Tru64 ACLs.
23327         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23328         ACL on OSF/1.
23329
23330 2008-06-07  Bruno Haible  <bruno@clisp.org>
23331
23332         Add support for MacOS X ACLs.
23333         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23334         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23335         * lib/set-mode-acl.c (qset_acl): Likewise.
23336         * lib/copy-acl.c (qcopy_acl): Likewise.
23337
23338 2008-06-07  Bruno Haible  <bruno@clisp.org>
23339
23340         Fix memory leak introduced on 2008-05-22.
23341         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23342         use.
23343
23344 2008-06-07  Bruno Haible  <bruno@clisp.org>
23345
23346         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23347         to construct an empty ACL.
23348
23349 2008-06-07  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23352         precisely.
23353         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23354
23355 2008-06-07  Bruno Haible  <bruno@clisp.org>
23356
23357         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23358         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23359
23360 2008-06-07  Bruno Haible  <bruno@clisp.org>
23361
23362         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23363         regardless of POSIX.
23364         * doc/posix-functions/_longjmp.texi: Likewise.
23365         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23366         SystemV platform in this case.
23367
23368 2008-06-06  Eric Blake  <ebb9@byu.net>
23369
23370         Document abort() bugs.
23371         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23372
23373         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23374         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23375         sigsetjmp.
23376         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23377         siglongjmp, but only as a macro.
23378         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23379         is obsolete.
23380         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23381
23382         Tweak documentation to cover cygwin argz bugs.
23383         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23384         argz bug fix; no code change needed since no cygwin releases
23385         occurred between the last fix and the bug being tested.
23386         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23387         module and recently fixed cygwin bugs.
23388         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23389         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23390         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23391         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23392         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23393         Likewise.
23394         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23395         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23396         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23397         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23398         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23399         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23400         Likewise.
23401
23402         Avoid gcc warning on cygwin.
23403         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23404         !ACL_NO_TRIVIAL]: Avoid unused variable.
23405
23406 2008-06-05  Eric Blake  <ebb9@byu.net>
23407
23408         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23409         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23410         git-version-gen fails to come up with a version.
23411         Reported by Simon Josefsson.
23412
23413 2008-06-05  Jim Meyering  <meyering@redhat.com>
23414             Paul Eggert  <eggert@cs.ucla.edu>
23415
23416         utimens.c: work around a probable Linux kernel bug
23417         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23418         appears to be a kernel bug that causes utimensat to return 280
23419         instead of 0, indicating success.
23420
23421 2008-06-04  Bruno Haible  <bruno@clisp.org>
23422
23423         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23424         2008-06-01 commit.
23425
23426 2008-06-04  Bruno Haible  <bruno@clisp.org>
23427
23428         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23429         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23430         (file_has_acl): Use it. Save errno afterwards.
23431         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23432
23433 2008-06-03  Bruno Haible  <bruno@clisp.org>
23434
23435         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23436         draft code. Simplify #ifs.
23437         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23438         Put Solaris code after POSIX-draft code. Fix comments regarding
23439         Solaris 10, HP-UX. Mention Cygwin.
23440         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23441
23442 2008-06-03  Eric Blake  <ebb9@byu.net>
23443
23444         Provide fallback for older kernels.
23445         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23446         Provide runtime fallback if kernel lacks support.
23447         Reported by Mike Frysinger.
23448
23449 2008-06-02  Bruno Haible  <bruno@clisp.org>
23450
23451         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23452         it exists.
23453
23454 2008-06-02  Bruno Haible  <bruno@clisp.org>
23455
23456         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23457         * lib/copy-acl.c (qcopy_acl): Update comment.
23458
23459 2008-06-02  Bruno Haible  <bruno@clisp.org>
23460
23461         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23462         like ACL APIs.
23463
23464 2008-06-02  Bruno Haible  <bruno@clisp.org>
23465
23466         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23467         * tests/test-set-mode-acl.sh: Likewise.
23468         * tests/test-copy-acl.sh: Likewise.
23469         * tests/test-copy-file.sh: Likewise.
23470
23471 2008-06-02  Bruno Haible  <bruno@clisp.org>
23472
23473         * tests/test-file-has-acl.sh: Remove unused code.
23474
23475 2008-06-01  Bruno Haible  <bruno@clisp.org>
23476
23477         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23478         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23479         messages.
23480         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23481
23482 2008-06-01  Bruno Haible  <bruno@clisp.org>
23483
23484         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23485         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23486         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23487         APIs.
23488         * modules/acl-tests (configure.ac): Remove tests now contained in
23489         m4/acl.m4.
23490
23491 2008-06-02  Jim Meyering  <meyering@redhat.com>
23492
23493         announce-gen: use a better key-server host name
23494         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23495         it may be more consistently reliable.  Suggested by Werner Koch
23496         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23497
23498 2008-06-01  Bruno Haible  <bruno@clisp.org>
23499
23500         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23501         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23502
23503 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23504
23505         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23506
23507 2008-06-01  Bruno Haible  <bruno@clisp.org>
23508
23509         New ACL tests.
23510         * tests/test-file-has-acl.sh: New file.
23511         * tests/test-file-has-acl.c: New file.
23512         * tests/test-set-mode-acl.sh: New file.
23513         * tests/test-set-mode-acl.c: New file.
23514         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23515         * tests/test-copy-acl.c: New file.
23516         * modules/acl-tests: New file, based on modules/copy-file-tests.
23517         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23518         (Depends-on): Add acl-tests.
23519         (configure.ac): Remove checks.
23520         (Makefile.am): Don't create test-sameacls program here any more.
23521
23522 2008-06-01  Bruno Haible  <bruno@clisp.org>
23523
23524         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23525         * tests/test-sameacls.c: Include progname.h.
23526         (main): Invoke set_program_name. Portability fixes for MacOS X,
23527         Solaris, HP-UX.
23528
23529 2008-06-01  Bruno Haible  <bruno@clisp.org>
23530
23531         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23532         function.
23533         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23534
23535 2008-06-01  Bruno Haible  <bruno@clisp.org>
23536
23537         * modules/rpmatch (Depends-on): Add strdup.
23538
23539 2008-06-01  Bruno Haible  <bruno@clisp.org>
23540
23541         * lib/pipe.c: Include unistd-safer.h.
23542         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23543         * modules/pipe (Depends-on): Add unistd-safer.
23544
23545 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23546
23547         * modules/autobuild (configure.ac): Call AB_INIT.
23548
23549 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23550
23551         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23552         Suggested by Bruno Haible <bruno@clisp.org>.
23553
23554 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23555
23556         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23557         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23558         <bruno@clisp.org>.
23559
23560 2008-05-29  Eric Blake  <ebb9@byu.net>
23561
23562         Prefer new POSIX 200x interfaces over futimesat.
23563         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23564         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23565         when available.
23566         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23567
23568 2008-05-28  Bruno Haible  <bruno@clisp.org>
23569
23570         * modules/stpcpy (License): Change to LGPLv2+.
23571         Requested by David Lutterkort <dlutter@redhat.com>.
23572
23573 2008-05-27  Bruno Haible  <bruno@clisp.org>
23574
23575         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23576         current mingw.
23577         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23578
23579 2008-05-27  Bruno Haible  <bruno@clisp.org>
23580
23581         * modules/iconv_open (Link): New section, from module 'iconv'.
23582         * modules/striconv (Link): Likewise.
23583         * modules/striconveh (Link): Likewise.
23584         * modules/xstriconv (Link): Likewise.
23585         * modules/unicodeio (Link): Likewise.
23586         * modules/propername (Link): Likewise.
23587         Reported by Jim Meyering.
23588
23589 2008-05-26  Jim Meyering  <meyering@redhat.com>
23590
23591         sha256: do not artificially restrict buffer length to be < 2^32
23592         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23593         uint32_t to size_t.
23594         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23595         to match.
23596
23597         avoid unaligned access errors, e.g., on sparc
23598         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23599         direct access through a possibly-unaligned uint64* pointer.
23600         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23601         direct access through a possibly-unaligned uint32* pointer.
23602         Prompted by this patch from Tom "spot" Callaway:
23603         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23604
23605         sha512.c: fix typo in comment
23606         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23607
23608 2008-05-25  Bruno Haible  <bruno@clisp.org>
23609
23610         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23611         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23612         (Makefile.am): Update lib_SOURCES.
23613
23614 2008-05-25  Bruno Haible  <bruno@clisp.org>
23615
23616         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23617
23618 2008-05-25  Jim Meyering  <meyering@redhat.com>
23619
23620         useless-if-before-free: freed expr may have white-space differences
23621         * build-aux/useless-if-before-free: Recognize cases in which the
23622         freed expression differs from the tested one in embedded white
23623         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23624         $1 was used, so we can't make any regexp shy.  Improved tests now
23625         detect this.
23626
23627         useless-if-before-free: accept white space in the expression.
23628         * build-aux/useless-if-before-free: For now, any white space
23629         in the expression must be identical in the free argument.
23630
23631         useless-if-before-free: efficiency tweak
23632         * build-aux/useless-if-before-free: Make the expression-matching
23633         regexp "shy".
23634         Make the *outer* regexp shy, not the expr-matching one.
23635
23636         update code-in-comment to accept cast of free arg
23637         * build-aux/useless-if-before-free: Update regexp.
23638
23639 2008-05-25  Bruno Haible  <bruno@clisp.org>
23640
23641         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
23642         * modules/copy-file-tests (Files, Makefile.am): Update.
23643         * tests/test-copy-file.c (func_test_copy): Update.
23644
23645 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
23646
23647         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
23648
23649 2008-05-23  Bruno Haible  <bruno@clisp.org>
23650
23651         Improve support for ACLs on OSF/1.
23652         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
23653         Remove fallback for unknown flavors of ACLs.
23654
23655 2008-05-22  Bruno Haible  <bruno@clisp.org>
23656
23657         Add support for ACLs on OSF/1.
23658         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23659         replacements.
23660         (acl_free_text): New macro fallback.
23661         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23662         acl_free.
23663         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23664         acl_free_text function. Require AC_C_INLINE.
23665
23666 2008-05-22  Bruno Haible  <bruno@clisp.org>
23667
23668         Make copy_acl work on MacOS X 10.5.
23669         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23670         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23671         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23672         If MODE_INSIDE_ACL, don't assume that every system has the same text
23673         representation for ACLs as FreeBSD.
23674         * lib/copy-acl.c (copy_acl): Add support for platforms with
23675         !MODE_INSIDE_ACL.
23676         * lib/file-has-acl.c (file_has_acl): Likewise.
23677         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23678         FreeBSD, MacOS X, or IRIX, respectively.
23679
23680 2008-05-22  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/acl.h: Don't include <sys/acl.h>.
23683         (GETACLCNT): Move fallback to lib/acl-internal.h.
23684         * lib/acl-internal.h: Include <sys/acl.h> here.
23685         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23686
23687 2008-05-22  Bruno Haible  <bruno@clisp.org>
23688
23689         Split off copy_acl function to separate file.
23690         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23691         * lib/acl.c (copy_acl): Moved function to separate file.
23692         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23693         * modules/acl (Files): Add lib/copy-acl.c.
23694         (Makefiles.am): Augment lib_SOURCES.
23695
23696 2008-05-22  Bruno Haible  <bruno@clisp.org>
23697
23698         * modules/copy-file-tests: New file.
23699         * tests/test-copy-file.sh: New file.
23700         * tests/test-copy-file.c: New file.
23701         * tests/test-copy-file-sameacls.c: New file.
23702
23703 2008-05-22  Eric Blake  <ebb9@byu.net>
23704
23705         Avoid gcc warning.
23706         * tests/test-memcmp.c (main): Pass NULL indirectly.
23707
23708 2008-05-21  Bruno Haible  <bruno@clisp.org>
23709
23710         Add reference doc about ACLs.
23711         * doc/acl-resources.txt: New file.
23712         * doc/acl-cygwin.txt: New file.
23713
23714 2008-05-21  Bruno Haible  <bruno@clisp.org>
23715
23716         Avoid one more warning from gcc.
23717         * lib/vasnprintf.c (IF_LINT): Update comments.
23718         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23719
23720 2008-05-21  Jim Meyering  <meyering@redhat.com>
23721
23722         avoid a warning from gcc
23723         * lib/vasnprintf.c (IF_LINT): Define.
23724         (scale10_round_decimal_long_double):
23725         Use it to avoid a "may be used uninitialized" warning.
23726         (scale10_round_decimal_double): Likewise.
23727
23728 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23729
23730         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23731         declared.
23732
23733 2008-05-20  Bruno Haible  <bruno@clisp.org>
23734
23735         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23736         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23737
23738 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23739
23740         * modules/memcmp-tests: New file.
23741         * tests/test-memcmp.c: New file.
23742
23743 2008-05-19  Bruno Haible  <bruno@clisp.org>
23744
23745         * modules/propername (Notice, configure.ac): Put quoted "..." into
23746         --keyword option.
23747         * lib/propername.h: Update comments accordingly.
23748         Reported by Eric Blake.
23749
23750 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23751
23752         * modules/getpass-gnu (Depends-on): Add fseeko.
23753
23754 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23755
23756         * modules/base64-tests: New file.
23757
23758 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23759
23760         * lib/base64.c (base64_decode_ctx): If a decode context structure
23761         was passed in use it to ignore newlines.  If a context structure
23762         was _not_ passed in, continue to treat newlines as garbage (this
23763         is the historical behavior).  Formerly base64_decode.
23764         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23765         takes a decode context structure.
23766         * lib/base64.h (base64_decode): Macro for four-argument calls.
23767         (base64_decode_alloc): Likewise.
23768         * lib/base64.c (base64_decode_ctx): If a decode context structure
23769         was passed in use it to ignore newlines.  If a context structure
23770         was _not_ passed in, continue to treat newlines as garbage (this
23771         is the historical behavior).  Formerly base64_decode.
23772         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23773         takes a decode context structure.
23774         * lib/base64.h (base64_decode): Macro for four-argument calls.
23775         (base64_decode_alloc): Likewise.
23776
23777 2008-05-19  Jim Meyering  <meyering@redhat.com>
23778
23779         avoid a warning from gcc
23780         * lib/trim.c (IF_LINT): Define.
23781         (trim2): Use it to avoid a "may be used uninitialized" warning.
23782
23783         Fix doc typo.
23784         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23785
23786 2008-05-19  Bruno Haible  <bruno@clisp.org>
23787
23788         * doc/glibc-functions/getpass.texi: Document limits of other
23789         implementations.
23790
23791 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23792             Bruno Haible <bruno@clisp.org>
23793
23794         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23795
23796 2008-05-18  Bruno Haible  <bruno@clisp.org>
23797
23798         * modules/propername: New file, from GNU gettext.
23799         * lib/propername.h: New file, from GNU gettext.
23800         * lib/propername.c: New file, from GNU gettext.
23801         * MODULES.html.sh (Internationalization functions): Add propername.
23802
23803 2008-05-16  Jim Meyering  <meyering@redhat.com>
23804             Bruno Haible  <bruno@clisp.org>
23805
23806         Avoid some warnings from "gcc -Wshadow".
23807         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23808
23809 2008-05-15  Eric Blake  <ebb9@byu.net>
23810
23811         Extend previous patch to cygwin 1.7.0.
23812         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23813         fast implementation in cygwin >= 1.7.0.
23814         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23816
23817 2008-05-15  Bruno Haible  <bruno@clisp.org>
23818
23819         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23820         implementation in glibc >= 2.9.
23821         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23823
23824 2008-05-15  Bruno Haible  <bruno@clisp.org>
23825
23826         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23827         (Unicode string functions): Add unilbrk/*.
23828         Reported by Karl Berry.
23829
23830 2008-05-15  Eric Blake  <ebb9@byu.net>
23831
23832         Fix violation of <stdbool.h> replacement in regex.
23833         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23834         * lib/regexec.c (re_search_internal): Likewise.
23835         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23836
23837 2008-05-15  Jim Meyering  <meyering@redhat.com>
23838
23839         avoid distracting test output when git or cvs is not found
23840         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23841         * tests/test-vc-list-files-git.sh: Likewise.
23842
23843 2008-05-15  Eric Blake  <ebb9@byu.net>
23844
23845         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23846         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23847         glibc version.
23848         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23849         * doc/posix-functions/strstr.texi (strstr): Likewise.
23850         * lib/str-two-way.h (MAX): Sychronize with glibc.
23851
23852 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23853
23854         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23855         opr.ctx_type.
23856         (calc_first): Initialize constraint field.
23857         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23858         Fix grammar.
23859         (duplicate_node): Merge constraint field for all node types.
23860         (calc_eclosure_iter): Look at constraint field for all node types.
23861         * lib/regex_internal.c (create_cd_newstate): Don't look at
23862         opr.ctx_type.
23863
23864 2008-05-14  Bruno Haible  <bruno@clisp.org>
23865
23866         Help GCC to do better code generation.
23867         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23868         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23869         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23870         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23871         Declare with attribute 'malloc' if supported.
23872
23873 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23874
23875         use "echo STR|wc -c" rather than unportable "expr length STR"
23876         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23877         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23878
23879 2008-05-14  Jim Meyering  <meyering@redhat.com>
23880
23881         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23882         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23883         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23884         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23885         via Collin Lasse.
23886
23887 2008-05-14  Eric Blake  <ebb9@byu.net>
23888
23889         Avoid quadratic growth in gl_LIBSOURCES.
23890         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23891         Suggested by Bruno Haible.
23892
23893         Test xmemdup0.
23894         * modules/xmemdup0-tests: New file.
23895         * tests/test-xmemdup0.c: Likewise.
23896
23897 2008-05-13  Eric Blake  <ebb9@byu.net>
23898
23899         Split xmemdup0 into its own module.
23900         * modules/xmemdup0: New file.
23901         * lib/xmemdup0.h: Likewise.
23902         * lib/xmemdup0.c: Likewise.
23903         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23904         * lib/xalloc.h (xmemdup0): Remove.
23905         * lib/xmalloc.c (xmemdup0): Likewise.
23906
23907 2008-05-13  Eric Blake  <ebb9@byu.net>
23908             Bruno Haible  <bruno@clisp.org>
23909
23910         Reduce number of forks required during autoconf.
23911         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23912         and gl_LIBSOURCES_DIR.
23913         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23914         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23915         m4_syscmd per file.
23916         <m4_foreach_w>: Move...
23917         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23918
23919 2008-05-13  Eric Blake  <ebb9@byu.net>
23920
23921         * gnulib-tool: Fix various comment typos.
23922
23923 2008-05-12  Bruno Haible  <bruno@clisp.org>
23924
23925         Tailor the linebreaking algorithm.
23926         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23927
23928 2008-05-12  Bruno Haible  <bruno@clisp.org>
23929
23930         Update to Unicode 5.0.0.
23931         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23932         LBP_JV, LBP_JT. Redistribute values.
23933         (unilbrk_table): Change size.
23934         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23935         Unicode TR#14 rev. 22.
23936         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23937         LBP_JV, LBP_JT. Redistribute values.
23938         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23939         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23940         Update.
23941         * lib/unilbrk/lbrkprop1.h: Regenerated.
23942         * lib/unilbrk/lbrkprop2.h: Regenerated.
23943         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23944         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23945         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23946         Likewise.
23947         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23948         Likewise.
23949         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23950         result.
23951         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23952         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23953         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23954         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23955         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23956         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23957
23958 2008-05-11  Bruno Haible  <bruno@clisp.org>
23959
23960         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23961
23962 2008-05-11  Bruno Haible  <bruno@clisp.org>
23963
23964         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23965         * modules/unilbrk/gen-lbrk: New file.
23966
23967 2008-05-11  Bruno Haible  <bruno@clisp.org>
23968
23969         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23970         * m4/sha512.m4 (gl_SHA512): Likewise.
23971
23972 2008-05-11  Jim Meyering  <meyering@redhat.com>
23973
23974         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23975         * modules/crypto/sha256: New file.
23976         * modules/crypto/sha512: Likewise.
23977         * lib/sha256.c: Likewise.
23978         * lib/sha256.h: Likewise.
23979         * lib/sha512.c: Likewise.
23980         * lib/sha512.h: Likewise.
23981         * lib/u64.h: Likewise.
23982         * m4/sha256.m4: Likewise.
23983         * m4/sha512.m4: Likewise.
23984         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23985
23986 2008-05-10  Bruno Haible  <bruno@clisp.org>
23987
23988         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23989         (Input/Output <stdio.h>): Add xprintf.
23990         (Signal handling <signal.h>): Add strsignal.
23991         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23992         (Core language properties): Add func.
23993         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23994         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23995         strings.
23996         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23997         (Input/output): New section.
23998         (File system functions): Add openat-die, stat-macros.
23999         (Networking functions): Add sockets.
24000         (Unicode string functions): Add unictype/*.
24001         (Support for building libraries and executables): Add gperf.
24002         (Support for building documentation): Add agpl-3.0.
24003         (Misc): Add nocrash.
24004
24005 2008-05-10  Bruno Haible  <bruno@clisp.org>
24006
24007         * modules/unictype/gen-ctype: New file.
24008
24009 2008-05-10  Jim Meyering  <meyering@redhat.com>
24010
24011         Make chdir-safer.c more efficient on a system with no symlinks.
24012         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24013         also if ELOOP is zero.  Suggested by Bruno Haible.
24014
24015         Make chdir-safer.c slightly safer.
24016         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24017         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24018
24019         Avoid compile failure on systems without ELOOP (like mingw).
24020         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24021         Reported by Bruno Haible.
24022
24023 2008-05-10  Bruno Haible  <bruno@clisp.org>
24024
24025         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24026         (is_utf8_encoding): Use a case-insensitive comparison.
24027         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24028         streq.
24029
24030 2008-05-10  Bruno Haible  <bruno@clisp.org>
24031
24032         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24033         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24034         * lib/unilbrk/ulc-common.h (iconv_string_length,
24035         iconv_string_keeping_offsets): Remove declarations.
24036         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24037         Don't include <iconv.h>, streq.h, xsize.h.
24038         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24039         conversion.
24040         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24041         <iconv.h>, streq.h, xsize.h.
24042         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24043         conversion.
24044         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24045         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24046         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24047         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24048
24049 2008-05-10  Bruno Haible  <bruno@clisp.org>
24050
24051         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24052         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24053
24054         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24055         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24056
24057         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24058         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24059
24060         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24061         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24062
24063         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24064         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24065
24066         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24067         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24068
24069         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24070         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24071
24072         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24073         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24074
24075 2008-05-10  Bruno Haible  <bruno@clisp.org>
24076
24077         Split up 'linebreak' module.
24078         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24079         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24080         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24081         modifications.
24082         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24083         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24084         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24085         lib/linebreak.c.
24086         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24087         lib/linebreak.c.
24088         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24089         lib/linebreak.c.
24090         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24091         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24092         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24093         lib/linebreak.c.
24094         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24095         lib/linebreak.c.
24096         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24097         lib/linebreak.c.
24098         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24099         lib/linebreak.c.
24100         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24101         lib/linebreak.c.
24102         * modules/unilbrk/base: New file.
24103         * modules/unilbrk/tables: New file.
24104         * modules/unilbrk/u8-possible-linebreaks: New file.
24105         * modules/unilbrk/u16-possible-linebreaks: New file.
24106         * modules/unilbrk/u32-possible-linebreaks: New file.
24107         * modules/unilbrk/ulc-common: New file.
24108         * modules/unilbrk/ulc-possible-linebreaks: New file.
24109         * modules/unilbrk/u8-width-linebreaks: New file.
24110         * modules/unilbrk/u16-width-linebreaks: New file.
24111         * modules/unilbrk/u32-width-linebreaks: New file.
24112         * modules/unilbrk/ulc-width-linebreaks: New file.
24113         * lib/linebreak.h: Remove file.
24114         * lib/linebreak.c: Remove file.
24115         * m4/linebreak.m4: Remove file.
24116         * modules/linebreak: Remove file.
24117         * NEWS: Mention the changes.
24118
24119 2008-05-09  Eric Blake  <ebb9@byu.net>
24120
24121         Add xmemdup0.
24122         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24123         implementation.
24124         * lib/xmalloc.c (xmemdup0): New C implementation.
24125
24126 2008-05-08  Bruno Haible  <bruno@clisp.org>
24127
24128         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24129
24130 2008-05-07  Eric Blake  <ebb9@byu.net>
24131
24132         Support cross-compilation of <wctype.h>.
24133         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24134         AC_CACHE_CHECK.
24135
24136 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24137
24138         * build-aux/vc-list-files: Add support for bzr.
24139
24140 2008-05-03  Jim Meyering  <meyering@redhat.com>
24141
24142         avoid failed assertion with tight malloc
24143         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24144
24145 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24146
24147         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24148         are needed from arpa/inet.h.
24149         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24150         Reported by Bruno Haible.
24151
24152 2008-05-02  Jim Meyering  <meyering@redhat.com>
24153
24154         avoid compilation error on FreeBSD 6
24155         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24156
24157 2008-05-01  Jim Meyering  <meyering@redhat.com>
24158
24159         useless-if-before-free: correct --help's exit status description
24160         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24161         for one or more matches, etc.  Reported by Bruno Haible.
24162
24163         vc-list-files: make the stand-alone gnulib test work
24164         * modules/vc-list-files-tests (configure.ac):
24165         Define and AC_SUBST abs_aux_dir.
24166         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24167         $(abs_top_srcdir) to each script and having each of them
24168         duplicate the work of setting PATH, set PATH here, using
24169         the new variable, abs_aux_dir instead.
24170         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24171         * tests/test-vc-list-files-git.sh: Likewise.
24172         Reported by Bruno Haible.
24173
24174 2008-05-01  Bruno Haible  <bruno@clisp.org>
24175
24176         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24177         reallocation. Rename 'done' to 'found_delimiter'.
24178
24179 2008-05-01  Jim Meyering  <meyering@redhat.com>
24180
24181         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24182         * build-aux/vc-list-files: Use `...`, not $(...).
24183
24184 2008-04-30  Jim Meyering  <meyering@redhat.com>
24185
24186         add tests for vc-list-files
24187         * modules/vc-list-files-tests: New module.
24188         * tests/test-vc-list-files-cvs.sh: New file.
24189         * tests/test-vc-list-files-git.sh: New file.
24190
24191         avoid a warning from gcc
24192         * lib/getndelim2.c (IF_LINT): Define.
24193         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24194
24195         vc-list-files: work properly with build-aux/cvsu, too
24196         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24197         to all cvs-based clauses.
24198
24199         vc-list-files: work properly in the CVS+awk case, too
24200         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24201
24202         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24203         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24204         take more than one file argument, so .  Add quotes, just in case $dir
24205         ever contains a shell meta-character.  Prompted by Soren Hansen in
24206         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24207
24208 2008-04-29  Eric Blake  <ebb9@byu.net>
24209
24210         Optimize getndelim2 to use block operations when possible.
24211         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24212         freadseek, and memchr2.
24213         * lib/getndelim2.c (getndelim2): Use them for block reads.
24214
24215 2008-04-29  Bruno Haible  <bruno@clisp.org>
24216
24217         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24218         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24219         * modules/inet_ntop (Depends-on): Add extensions.
24220         * modules/inet_pton (Depends-on): Likewise.
24221         Reported by Simon Josefsson.
24222
24223 2008-04-29  Jim Meyering  <meyering@redhat.com>
24224
24225         When the is more than one match in a block, match all of them.
24226         * build-aux/useless-if-before-free: Iterate through each block
24227         until there are no more matches.
24228
24229         Fix broken useless-if-before-free script.
24230         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24231         the expression to match cast of argument to free-like function.
24232
24233 2008-04-29  Eric Blake  <ebb9@byu.net>
24234
24235         Use new header.
24236         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24237
24238 2008-04-29  Jim Meyering  <meyering@redhat.com>
24239
24240         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24241         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24242         by gnulib to exist and to declare e.g., inet_ntop.
24243         Don't include "inet_ntop.h", now removed.
24244
24245         * m4/arpa_inet_h.m4: Remove trailing blanks.
24246
24247 2008-04-29  Eric Blake  <ebb9@byu.net>
24248
24249         Silence valgrind on safe reads beyond potential array bounds.
24250         * lib/rawmemchr.valgrind: New file.
24251         * lib/strchrnul.valgrind: Likewise.
24252         * modules/rawmemchr (Files): Distribute new file.
24253         * modules/strchrnul (Files): Likewise.
24254         Suggested by Bruno Haible.
24255
24256 2008-04-29  Bruno Haible  <bruno@clisp.org>
24257
24258         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24259         (inet_ntop, inet_pton): Change portability warning's wording.
24260         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24261         Invoke gl_CHECK_NEXT_HEADERS.
24262         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24263         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24264         set ARPA_INET_H.
24265         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24266         * modules/arpa_inet (Description): No longer only for systems that
24267         lack it.
24268         (Depends-on): Add include_next.
24269         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24270         HAVE_ARPA_INET_H.
24271
24272 2008-04-29  Jim Meyering  <meyering@redhat.com>
24273
24274         * modules/mkdir (License): Re-license as LGPLv2+.
24275
24276 2008-04-29  Bruno Haible  <bruno@clisp.org>
24277
24278         * modules/rawmemchr (Maintainer): Set to Eric.
24279         * modules/strchrnul (Maintainer): Likewise.
24280
24281 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24282
24283         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24284         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24285
24286         * modules/arpa_inet (arpa/inet.h): Use them.
24287
24288 2008-04-28  Eric Blake  <ebb9@byu.net>
24289
24290         Test getndelim2.
24291         * modules/getndelim2-tests: New file.
24292         * tests/test-getndelim2.c: Likewise.
24293         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24294         stream.
24295         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24296
24297         * MODULES.html.sh: Document new module.
24298
24299 2008-04-20  Bruno Haible  <bruno@clisp.org>
24300
24301         * lib/c-stack.c (die): Use raise.
24302         * modules/c-stack (Depends-on): Add raise.
24303
24304 2008-04-28  Bruno Haible  <bruno@clisp.org>
24305
24306         Expect rpmatch to be declared.
24307         * lib/yesno.c (rpmatch): Remove declaration.
24308
24309         Declare rpmatch.
24310         * lib/stdlib.in.h (rpmatch): New declaration.
24311         * lib/rpmatch.c: Include <stdlib.h> first.
24312         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24313         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24315         HAVE_RPMATCH.
24316         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24318         (Include): Set to <stdlib.h>.
24319         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24320         HAVE_RPMATCH.
24321         * NEWS: Document the change.
24322
24323 2008-04-28  Bruno Haible  <bruno@clisp.org>
24324
24325         Change rpmatch to use nl_langinfo when appropriate.
24326         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24327         (N_): New macro.
24328         (localized_pattern): New function/macro.
24329         (try): Remove match, nomatch arguments. Copy the pattern into safe
24330         memory before caching it.
24331         (rpmatch): Use localized_pattern. Add translator comments.
24332         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24333         Suggested by Eric Blake.
24334         * modules/rpmatch (Depends-on): Add stdbool.
24335
24336 2008-04-28  Eric Blake  <ebb9@byu.net>
24337
24338         Add rawmemchr module, matching glibc.
24339         * modules/string (Makefile.am): New indicator.
24340         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24341         * lib/string.in.h (rawmemchr): Declare when appropriate.
24342         * modules/rawmemchr: New file.
24343         * m4/rawmemchr.m4: Likewise.
24344         * lib/rawmemchr.c: Likewise.
24345         * modules/rawmemchr-tests: Likewise.
24346         * tests/test-rawmemchr.c: Likewise.
24347         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24348         module.
24349         * modules/strchrnul (Depends-on): Add rawmemchr.
24350         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24351
24352         Whitespace cleanup.
24353         * tests/test-strchrnul.c: Reindent.
24354         * lib/strchrnul.c: Likewise.
24355
24356         Optimize and test strchrnul.
24357         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24358         * modules/strchrnul-tests: New file.
24359         * tests/test-strchrnul.c: Likewise.
24360
24361         Remove intprops dependency.
24362         * modules/memchr (Depends-on): Remove intprops.
24363         * modules/memrchr (Depends-on): Likewise.
24364         * modules/memchr2 (Depends-on): Likewise.
24365         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24366         * lib/memrchr.c (__memrchr): Likewise.
24367         * lib/memrchr2.c (memchr2): Likewise.
24368         Reported by Simon Josefsson.
24369
24370 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24371
24372         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24373         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24374
24375 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24376
24377         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24378
24379         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24380
24381         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24382
24383         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24384         declarations.
24385         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24386
24387         * m4/inet_pton.m4: Don't check for header files.
24388
24389         * m4/inet_ntop.m4: Don't check for header files.
24390
24391 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24392
24393         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24394         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24395         trigger for cygwin).
24396         Reported by Bruno Haible  <bruno@clisp.org>.
24397
24398 2008-04-28  Bruno Haible  <bruno@clisp.org>
24399
24400         * doc/posix-functions/strdup.texi: Mention mingw problem.
24401
24402 2008-04-27  Bruno Haible  <bruno@clisp.org>
24403
24404         * modules/stat-time-tests (Depends-on): Add sleep.
24405         * tests/test-stat-time.c (force_unlink): New function.
24406         (cleanup): Use it.
24407         (test_mtime): Remove the ctime related tests.
24408         (test_ctime): New function, containing the ctime related tests.
24409         (main): Call test_ctime, except on native Windows platforms.
24410
24411 2008-04-27  Bruno Haible  <bruno@clisp.org>
24412
24413         * lib/rpmatch.c (rpmatch): Add some comments.
24414         Reported by James Youngman <jay@gnu.org>.
24415
24416 2008-04-27  Bruno Haible  <bruno@clisp.org>
24417
24418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24419         quiet NaNs.
24420
24421 2008-04-27  Bruno Haible  <bruno@clisp.org>
24422
24423         Make test-yesno.sh work on mingw.
24424         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24425         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24426         (main): Set stdin to binary mode.
24427         * modules/yesno-tests (Depends-on): Add binary-io.
24428
24429 2008-04-27  Bruno Haible  <bruno@clisp.org>
24430
24431         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24432         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24433         argument that lie outside the IEEE 854 domain.
24434         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24435         (gl_ISFINITE): Use it.
24436         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24437
24438 2008-04-27  Bruno Haible  <bruno@clisp.org>
24439
24440         Allow local renaming in config.h.
24441         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24442
24443 2008-04-27  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/memchr.c (__memchr): Change type of 'i'.
24446         * lib/memchr2.c (memchr2): Likewise.
24447
24448 2008-04-26  Eric Blake  <ebb9@byu.net>
24449         and Bruno Haible  <bruno@clisp.org>
24450
24451         Optimize and test memrchr.
24452         * modules/memrchr (Depends-on): Add intprops.
24453         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24454         * modules/memrchr-tests: New file.
24455         * tests/test-memrchr.c: New file.
24456
24457 2008-04-26  Bruno Haible  <bruno@clisp.org>
24458
24459         Add tentative support for DragonFly BSD.
24460         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24461         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24462         fp.
24463         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24464         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24465         * lib/fpurge.c (fpurge): Likewise.
24466         * lib/freadable.c (freaadable): Likewise.
24467         * lib/freadahead.c (freadahead): Likewise.
24468         * lib/freading.c (freading): Likewise.
24469         * lib/freadptr.c (freadptr): Likewise.
24470         * lib/freadseek.c (freadptrinc): Likewise.
24471         * lib/fseeko.c (fseeko): Likewise.
24472         * lib/fseterr.c (fseterr): Likewise.
24473         * lib/fwritable.c (fwritable): Likewise.
24474         * lib/fwriting.c (fwriting): Likewise.
24475
24476 2008-04-26  Bruno Haible  <bruno@clisp.org>
24477
24478         * lib/stdio-impl.h: New file.
24479         * lib/fbufmode.c: Include stdio-impl.h.
24480         (fbufmode): Use fp_, remove redundant #defines.
24481         * lib/fflush.c: Include stdio-impl.h.
24482         (clear_ungetc_buffer): Remove redundant #defines.
24483         * lib/fpurge.c: Include stdio-impl.h.
24484         (fpurge): Remove redundant #defines.
24485         * lib/freadable.c: Include stdio-impl.h.
24486         (freadable): Remove redundant #defines.
24487         * lib/freadahead.c: Include stdio-impl.h.
24488         (freadahead): Remove redundant #defines.
24489         * lib/freading.c: Include stdio-impl.h.
24490         (freading): Remove redundant #defines.
24491         * lib/freadptr.c: Include stdio-impl.h.
24492         (freadptr): Remove redundant #defines.
24493         * lib/freadseek.c: Include stdio-impl.h.
24494         (freadptrinc): Remove redundant #defines.
24495         * lib/fseeko.c: Include stdio-impl.h.
24496         (rpl_fseeko): Remove redundant #defines.
24497         * lib/fseterr.c: Include stdio-impl.h.
24498         (fseterr): Remove redundant #defines.
24499         * lib/fwritable.c: Include stdio-impl.h.
24500         (fwritable: Remove redundant #defines.
24501         * lib/fwriting.c: Include stdio-impl.h.
24502         (fwriting): Remove redundant #defines.
24503         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24504         * modules/fflush (Files): Likewise.
24505         * modules/fpurge (Files): Likewise.
24506         * modules/freadable (Files): Likewise.
24507         * modules/freadahead (Files): Likewise.
24508         * modules/freading (Files): Likewise.
24509         * modules/freadptr (Files): Likewise.
24510         * modules/freadseek (Files): Likewise.
24511         * modules/fseeko (Files): Likewise.
24512         * modules/fseterr (Files): Likewise.
24513         * modules/fwritable (Files): Likewise.
24514         * modules/fwriting (Files): Likewise.
24515
24516 2008-04-26  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24519         restore_seek_optimization, update_fpos_cache): New functions, extracted
24520         from rpl_fflush.
24521         (rpl_fflush): Use them.
24522         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24523         (gl_REPLACE_FFLUSH): Use it.
24524
24525 2008-04-26  Bruno Haible  <bruno@clisp.org>
24526
24527         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24528         on Solaris.
24529         * tests/test-xstrtoimax.sh: Likewise.
24530         * tests/test-xstrtoumax.sh: Likewise.
24531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24532
24533 2008-04-26  Bruno Haible  <bruno@clisp.org>
24534
24535         * modules/memchr-tests: New file.
24536         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24537
24538 2008-04-26  Eric Blake  <ebb9@byu.net>
24539             Bruno Haible  <bruno@clisp.org>
24540
24541         * lib/memchr.c: Include intprops.h.
24542         (__memchr): Optimize parallel detection of matching bytes. Rename local
24543         variables. Add explanatory comments.
24544
24545 2008-04-26  Bruno Haible  <bruno@clisp.org>
24546
24547         Fix module 'memchr', broken since 2000-10-28.
24548         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24549
24550 2008-04-26  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24553         comments.
24554
24555 2008-04-25  Eric Blake  <ebb9@byu.net>
24556
24557         Use native fstatat on cygwin 1.7.0.
24558         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24559         first.
24560
24561 2008-04-23  Eric Blake  <ebb9@byu.net>
24562
24563         Improve memchr2 performance.
24564         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24565         NUL bytes.
24566         * modules/memchr2 (Depends-on): Use intprops.h.
24567
24568 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24569
24570         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24571         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24572         <blp@cs.stanford.edu>.
24573
24574 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24575
24576         * lib/arpa_inet.in.h: New file.
24577
24578         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24579         (Makefile.am): Sed in substitute header file.
24580
24581         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24582         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24583
24584         * modules/inet_ntop (configure.ac): Use
24585         gl_ARPA_INET_MODULE_INDICATOR.
24586
24587         * modules/inet_pton (configure.ac): Use
24588         gl_ARPA_INET_MODULE_INDICATOR.
24589
24590 2008-04-22  Jim Meyering  <meyering@redhat.com>
24591
24592         * modules/verify (License): Re-license as LGPLv2+.
24593
24594 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24595
24596         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24597         parameter to void* as per POSIX standard (MinGW uses char*).
24598
24599 2008-04-21  Bruno Haible  <bruno@clisp.org>
24600
24601         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24602         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24603         Define to replacements if REPLACE_ISWCNTRL is 1.
24604         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24605         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24606         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24607         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24608         what it fixes.
24609         * doc/posix-functions/iswalpha.texi: Likewise.
24610         * doc/posix-functions/iswblank.texi: Likewise.
24611         * doc/posix-functions/iswcntrl.texi: Likewise.
24612         * doc/posix-functions/iswdigit.texi: Likewise.
24613         * doc/posix-functions/iswgraph.texi: Likewise.
24614         * doc/posix-functions/iswlower.texi: Likewise.
24615         * doc/posix-functions/iswprint.texi: Likewise.
24616         * doc/posix-functions/iswpunct.texi: Likewise.
24617         * doc/posix-functions/iswspace.texi: Likewise.
24618         * doc/posix-functions/iswupper.texi: Likewise.
24619         * doc/posix-functions/iswxdigit.texi: Likewise.
24620         Reported by Alain Guibert.
24621
24622 2008-04-21  Bruno Haible  <bruno@clisp.org>
24623
24624         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24625         Patch by Alain Guibert.
24626
24627 2008-04-21  Bruno Haible  <bruno@clisp.org>
24628
24629         Fix test failures on mingw.
24630         * tests/test-xstrtol.c (print_no_progname): New function.
24631         (main): Install it in error_print_progname hook.
24632         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24633         * tests/test-xstrtoimax.sh: Likewise.
24634         * tests/test-xstrtoumax.sh: Likewise.
24635
24636 2008-04-21  Bruno Haible  <bruno@clisp.org>
24637
24638         Fix test failure on mingw.
24639         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
24640
24641 2008-04-21  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
24644         Actually assign a value.
24645
24646 2008-04-20  Bruno Haible  <bruno@clisp.org>
24647
24648         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
24649         take 2.
24650         * lib/canonicalize.c (canonicalize_file_name): Elide if the
24651         'canonicalize-lgpl' module is also used.
24652         * lib/canonicalize-lgpl.c: Undo last change.
24653         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
24654
24655 2008-04-20  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24658         config.h. Provide _mkdir based fallback for mingw.
24659         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24660         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24661         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24662         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24663         rather than defining mkdir in config.h.
24664         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24665         (gl_SYS_STAT_H_DEFAULTS): New macro.
24666         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24667         HAVE_IO_H any more.
24668         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24669         HAVE_DECL_MKDIR and HAVE_IO_H.
24670
24671 2008-04-20  Bruno Haible  <bruno@clisp.org>
24672
24673         * lib/isapipe.c: Port to native Windows platforms.
24674
24675 2008-04-20  Bruno Haible  <bruno@clisp.org>
24676
24677         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24678
24679 2008-04-21  Eric Blake  <ebb9@byu.net>
24680
24681         Work around preprocessors that don't handle UINTMAX_MAX.
24682         * lib/memchr2.c (memchr2): Avoid embedded #if.
24683         Reported by Alain Guibert, fix suggested by Bruno Haible.
24684
24685 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24686
24687         * doc/posix-functions/strftime.texi (strftime): Explain better
24688         Windows incompatibility.  Suggested by Micah Cowan
24689         <micah@cowan.name>.
24690
24691 2008-04-20  Bruno Haible  <bruno@clisp.org>
24692
24693         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24694         unistr/u8-mblen.
24695
24696 2008-04-20  Bruno Haible  <bruno@clisp.org>
24697
24698         Fix test failure on platforms with non-GNU iconv.
24699         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24700         (U_TO_U8): Use it, rather than u16_to_u8.
24701         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24702         units at the end of the input string.
24703         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24704
24705 2008-04-20  Bruno Haible  <bruno@clisp.org>
24706
24707         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24708         when the resulting length is 0.
24709         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24710
24711 2008-04-20  Bruno Haible  <bruno@clisp.org>
24712
24713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24714         works.
24715         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24716
24717 2008-04-20  Bruno Haible  <bruno@clisp.org>
24718
24719         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24720         * modules/tsearch-tests (configure.ac): Test for initstate function.
24721
24722 2008-04-20  Bruno Haible  <bruno@clisp.org>
24723
24724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24725         for nlink_t if missing.
24726         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24727
24728 2008-04-19  Bruno Haible  <bruno@clisp.org>
24729
24730         Work around snprintf bug on Linux libc5.
24731         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24733         gl_SNPRINTF_SIZE1.
24734         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24735         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24736         that test failed.
24737         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24738         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24739         * modules/snprintf (Files): Add m4/printf.m4.
24740         * modules/vsnprintf (Files): Likewise.
24741         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24742         * doc/posix-functions/vsnprintf.texi: Likewise.
24743
24744 2008-04-19  Bruno Haible  <bruno@clisp.org>
24745
24746         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24747         from 0.0058 to less than 10^-7.
24748
24749 2008-04-19  Bruno Haible  <bruno@clisp.org>
24750
24751         Fix rounding when a precision is given.
24752         * lib/vasnprintf.c (is_borderline): New function.
24753         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24754         9...9x.
24755         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24756         %e, %g.
24757         * tests/test-vasprintf-posix.c (test_function): Likewise.
24758         * tests/test-snprintf-posix.h (test_function): Likewise.
24759         * tests/test-sprintf-posix.h (test_function): Likewise.
24760         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24761         * tests/test-printf-posix.h (test_function): Likewise.
24762         * tests/test-printf-posix.output: Update.
24763         Reported by John Darrington <john@darrington.wattle.id.au> via
24764         Ben Pfaff <blp@cs.stanford.edu>.
24765
24766 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24767
24768         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24769         Suggested by Bruno Haible <bruno@clisp.org>.
24770
24771 2008-04-17  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24774         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24775         implementation.
24776         Patch by Bruce Merry <bmerry@gmail.com>.
24777
24778 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24779
24780         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24781         doesn't work under Windows.
24782
24783 2008-04-16  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24786         New macros.
24787         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24788         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24789         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24790         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24791         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24792         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24793         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24794         macros.
24795         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24796         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24797         Northern Sotho, Uighur.
24798
24799 2008-04-16  Bruno Haible  <bruno@clisp.org>
24800
24801         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24802         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24803         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24804         Reported by Daniel Bergström <daniel@octocode.com>.
24805
24806 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24807             Bruno Haible  <bruno@clisp.org>
24808
24809         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24810         function.
24811         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24812         New functions, mostly extracted from gl_locale_name_default.
24813         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24814
24815 2008-04-16  Eric Blake  <ebb9@byu.net>
24816
24817         Adjust strtod detection to catch glibc 2.7 bug.
24818         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24819         Reported by John Gatewood Ham.
24820
24821 2008-04-16  Bruno Haible  <bruno@clisp.org>
24822
24823         Add tentative support for Linux libc5.
24824         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24825         * lib/fpurge.c (fpurge): Likewise.
24826         * lib/freadable.c (freadable): Likewise.
24827         * lib/freadahead.c (freadahead): Likewise.
24828         * lib/freading.c (freading): Likewise.
24829         * lib/freadptr.c (freadptr): Likewise.
24830         * lib/freadseek.c (freadptrinc): Likewise.
24831         * lib/fseeko.c (rpl_fseeko): Likewise.
24832         * lib/fseterr.c (fseterr): Likewise.
24833         * lib/fwritable.c (fwritable): Likewise.
24834         * lib/fwriting.c (fwriting): Likewise.
24835         Reported by Alain Guibert <alguibert+bts@free.fr>.
24836
24837 2008-04-15  Bruno Haible  <bruno@clisp.org>
24838
24839         * modules/mathl (configure.ac): Define module indicator.
24840
24841 2008-04-15  Bruno Haible  <bruno@clisp.org>
24842
24843         * lib/logl.c (logl): Remove unused variables.
24844
24845 2008-04-15  Bruno Haible  <bruno@clisp.org>
24846
24847         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24848         fails.
24849
24850 2008-04-15  Bruno Haible  <bruno@clisp.org>
24851
24852         * lib/trim.c (trim2): Fix argument of isspace() macro.
24853
24854 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24855
24856         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24857         to 0.
24858         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24859
24860 2008-04-14  Bruno Haible  <bruno@clisp.org>
24861
24862         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24863         AC_LANG_PROGRAM argument.
24864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24865         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24866         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24867         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24868         * m4/math_h.m4 (gl_MATH_H): Likewise.
24869         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24871         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24872         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24873         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24874         * m4/regex.m4 (gl_REGEX): Likewise.
24875         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24876         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24878         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24879         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24880         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24883
24884 2008-04-14  Jim Meyering  <meyering@redhat.com>
24885
24886         test-strtod: fix typos: s/abs/fabs/
24887         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24888
24889 2008-04-13  Bruno Haible  <bruno@clisp.org>
24890
24891         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24892         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24893         module is also used and while not building the reloc-wrapper.
24894
24895 2008-04-13  Bruno Haible  <bruno@clisp.org>
24896
24897         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24898
24899 2008-04-13  Bruno Haible  <bruno@clisp.org>
24900
24901         Fix AIX compilation failure introduced on 2008-04-02.
24902         * tests/test-frexp.c (exp): Undefine before redefining.
24903         * tests/test-frexpl.c (exp): Likewise.
24904
24905 2008-04-13  Bruno Haible  <bruno@clisp.org>
24906
24907         Work around a HP-UX stdio bug.
24908         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24909         * tests/test-ftello.c (main): Likewise.
24910         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24911         * doc/posix-functions/ftello.texi: Likewise.
24912
24913 2008-04-13  Bruno Haible  <bruno@clisp.org>
24914
24915         Make test-signbit pass on HP-UX/hppa.
24916         * tests/test-signbit.c (minus_zerol): New variable.
24917         (test_signbitl): Use it.
24918
24919 2008-04-13  Bruno Haible  <bruno@clisp.org>
24920
24921         Make truncl work on OSF/1 4.0.
24922         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24923         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24924         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24926         HAVE_DECL_TRUNCL.
24927         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24928         HAVE_DECL_TRUNCL.
24929         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24930
24931 2008-04-13  Bruno Haible  <bruno@clisp.org>
24932
24933         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24934
24935 2008-04-13  Bruno Haible  <bruno@clisp.org>
24936
24937         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24938         expression, so as to avoid HP-UX 11 cc compiler bug.
24939
24940 2008-04-13  Bruno Haible  <bruno@clisp.org>
24941
24942         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24943
24944 2008-04-13  Bruno Haible  <bruno@clisp.org>
24945
24946         * lib/git-merge-changelog.c: Remove empty declaration outside of
24947         functions.
24948
24949 2008-04-13  Bruno Haible  <bruno@clisp.org>
24950
24951         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24952
24953 2008-04-13  Bruno Haible  <bruno@clisp.org>
24954
24955         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24956         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24957         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24958         also if it exists but lacks definitions of the SHUT_* macros.
24959         * modules/sys_socket (Description): Update.
24960         Reported by Elbert Pol <e.pol@chello.nl>.
24961
24962 2008-04-13  Bruno Haible  <bruno@clisp.org>
24963
24964         * lib/localcharset.c (OS2): Don't redefine if already defined.
24965         Reported by Elbert Pol <e.pol@chello.nl>.
24966
24967 2008-04-13  Bruno Haible  <bruno@clisp.org>
24968
24969         * lib/binary-io.h [__EMX__]: Include <io.h>.
24970         Reported by Elbert Pol <e.pol@chello.nl>.
24971
24972 2008-04-12  Bruno Haible  <bruno@clisp.org>
24973
24974         * lib/fpucw.h: Enable the definitions also for x86_64.
24975         Needed for NetBSD/x86_64.
24976         Reported by Thomas Klausner <tk@giga.or.at>.
24977
24978 2008-04-12  Bruno Haible  <bruno@clisp.org>
24979
24980         * tests/test-strtod.c: Include isnand.h.
24981         (main): Use isnand instead of isnan.
24982         Reported by Jim Meyering.
24983
24984 2008-04-12  Bruno Haible  <bruno@clisp.org>
24985
24986         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24988
24989 2008-04-12  Jim Meyering  <meyering@redhat.com>
24990
24991         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24992
24993 2008-04-12  Bruno Haible  <bruno@clisp.org>
24994
24995         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24996         Reported by Elbert Pol <e.pol@chello.nl>.
24997
24998 2008-04-12  Eric Blake  <ebb9@byu.net>
24999
25000         Work around Solaris 10 math.h bug.
25001         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25002         (gl_MATH_H_DEFAULTS): Set up default.
25003         * modules/math (Makefile.am): Replace new indicators.
25004         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25005         * tests/test-math.c (main): Test this.
25006         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25007         * doc/posix-headers/math.texi (math.h): Mention bug.
25008         Reported by Nelson H. F. Beebe and Jim Meyering.
25009
25010 2008-04-11  Bruno Haible  <bruno@clisp.org>
25011
25012         Adapt to future versions of Apple GCC.
25013         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25014         Reported by Peter O'Gorman <peter@pogma.com>.
25015
25016 2008-04-11  Bruno Haible  <bruno@clisp.org>
25017
25018         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25019
25020 2008-04-11  Bruno Haible  <bruno@clisp.org>
25021
25022         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25023
25024         * modules/getaddrinfo-tests (Makefile.am): Define
25025         test_getaddrinfo_LDADD.
25026
25027 2008-04-11  Bruno Haible  <bruno@clisp.org>
25028
25029         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25030         (init): Fix syntax error.
25031         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25032         is declared.
25033
25034 2008-04-11  Bruno Haible  <bruno@clisp.org>
25035
25036         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25037         * modules/glob (Depends-on): Add stdbool.
25038
25039 2008-04-11  Bruno Haible  <bruno@clisp.org>
25040
25041         * lib/trim.c: Include <string.h>.
25042
25043 2008-04-11  Eric Blake  <ebb9@byu.net>
25044
25045         Avoid compile failure on OS/2.
25046         * lib/regex_internal.h (internal_function): Disable optimization
25047         on OS/2 (__EMX__), where it caused compiler error.
25048         Reported by Elbert Pol.
25049
25050 2008-04-11  Bruno Haible  <bruno@clisp.org>
25051
25052         Flush the standard error stream before aborting. Needed on mingw.
25053         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25054         * tests/test-array_list.c (ASSERT): Likewise.
25055         * tests/test-array_oset.c (ASSERT): Likewise.
25056         * tests/test-avltree_list.c (ASSERT): Likewise.
25057         * tests/test-avltree_oset.c (ASSERT): Likewise.
25058         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25059         * tests/test-binary-io.c (ASSERT): Likewise.
25060         * tests/test-byteswap.c (ASSERT): Likewise.
25061         * tests/test-c-ctype.c (ASSERT): Likewise.
25062         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25063         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25064         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25065         * tests/test-c-strstr.c (ASSERT): Likewise.
25066         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25067         * tests/test-canonicalize.c (ASSERT): Likewise.
25068         * tests/test-carray_list.c (ASSERT): Likewise.
25069         * tests/test-ceilf1.c (ASSERT): Likewise.
25070         * tests/test-ceilf2.c (ASSERT): Likewise.
25071         * tests/test-ceill.c (ASSERT): Likewise.
25072         * tests/test-count-one-bits.c (ASSERT): Likewise.
25073         * tests/test-fbufmode.c (ASSERT): Likewise.
25074         * tests/test-fflush2.c (ASSERT): Likewise.
25075         * tests/test-floorf1.c (ASSERT): Likewise.
25076         * tests/test-floorf2.c (ASSERT): Likewise.
25077         * tests/test-floorl.c (ASSERT): Likewise.
25078         * tests/test-fopen.c (ASSERT): Likewise.
25079         * tests/test-fpending.c (ASSERT): Likewise.
25080         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25081         * tests/test-fpurge.c (ASSERT): Likewise.
25082         * tests/test-freadable.c (ASSERT): Likewise.
25083         * tests/test-freadahead.c (ASSERT): Likewise.
25084         * tests/test-freading.c (ASSERT): Likewise.
25085         * tests/test-freadptr.c (ASSERT): Likewise.
25086         * tests/test-freadptr2.c (ASSERT): Likewise.
25087         * tests/test-freadseek.c (ASSERT): Likewise.
25088         * tests/test-freopen.c (ASSERT): Likewise.
25089         * tests/test-frexp.c (ASSERT): Likewise.
25090         * tests/test-frexpl.c (ASSERT): Likewise.
25091         * tests/test-fseek.c (ASSERT): Likewise.
25092         * tests/test-fseeko.c (ASSERT): Likewise.
25093         * tests/test-fstrcmp.c (ASSERT): Likewise.
25094         * tests/test-ftell.c (ASSERT): Likewise.
25095         * tests/test-ftello.c (ASSERT): Likewise.
25096         * tests/test-func.c (ASSERT): Likewise.
25097         * tests/test-fwritable.c (ASSERT): Likewise.
25098         * tests/test-fwriting.c (ASSERT): Likewise.
25099         * tests/test-getdelim.c (ASSERT): Likewise.
25100         * tests/test-getline.c (ASSERT): Likewise.
25101         * tests/test-i-ring.c (ASSERT): Likewise.
25102         * tests/test-iconv-utf.c (ASSERT): Likewise.
25103         * tests/test-iconv.c (ASSERT): Likewise.
25104         * tests/test-isfinite.c (ASSERT): Likewise.
25105         * tests/test-isnand.c (ASSERT): Likewise.
25106         * tests/test-isnanf.c (ASSERT): Likewise.
25107         * tests/test-isnanl.h (ASSERT): Likewise.
25108         * tests/test-ldexpl.c (ASSERT): Likewise.
25109         * tests/test-linked_list.c (ASSERT): Likewise.
25110         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25111         * tests/test-localename.c (ASSERT): Likewise.
25112         * tests/test-lseek.c (ASSERT): Likewise.
25113         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25114         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25115         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25116         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25117         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25118         * tests/test-mbschr.c (ASSERT): Likewise.
25119         * tests/test-mbscspn.c (ASSERT): Likewise.
25120         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25121         * tests/test-mbspbrk.c (ASSERT): Likewise.
25122         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25123         * tests/test-mbsrchr.c (ASSERT): Likewise.
25124         * tests/test-mbsspn.c (ASSERT): Likewise.
25125         * tests/test-mbsstr1.c (ASSERT): Likewise.
25126         * tests/test-mbsstr2.c (ASSERT): Likewise.
25127         * tests/test-mbsstr3.c (ASSERT): Likewise.
25128         * tests/test-memchr2.c (ASSERT): Likewise.
25129         * tests/test-memmem.c (ASSERT): Likewise.
25130         * tests/test-open.c (ASSERT): Likewise.
25131         * tests/test-printf-frexp.c (ASSERT): Likewise.
25132         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25133         * tests/test-printf-posix.c (ASSERT): Likewise.
25134         * tests/test-quotearg.c (ASSERT): Likewise.
25135         * tests/test-rbtree_list.c (ASSERT): Likewise.
25136         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25137         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25138         * tests/test-round1.c (ASSERT): Likewise.
25139         * tests/test-roundf1.c (ASSERT): Likewise.
25140         * tests/test-roundl.c (ASSERT): Likewise.
25141         * tests/test-signbit.c (ASSERT): Likewise.
25142         * tests/test-sleep.c (ASSERT): Likewise.
25143         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25144         * tests/test-snprintf.c (ASSERT): Likewise.
25145         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25146         * tests/test-stat-time.c (ASSERT): Likewise.
25147         * tests/test-strcasestr.c (ASSERT): Likewise.
25148         * tests/test-strerror.c (ASSERT): Likewise.
25149         * tests/test-striconv.c (ASSERT): Likewise.
25150         * tests/test-striconveh.c (ASSERT): Likewise.
25151         * tests/test-striconveha.c (ASSERT): Likewise.
25152         * tests/test-strsignal.c (ASSERT): Likewise.
25153         * tests/test-strstr.c (ASSERT): Likewise.
25154         * tests/test-strtod.c (ASSERT): Likewise.
25155         * tests/test-trunc1.c (ASSERT): Likewise.
25156         * tests/test-trunc2.c (ASSERT): Likewise.
25157         * tests/test-truncf1.c (ASSERT): Likewise.
25158         * tests/test-truncf2.c (ASSERT): Likewise.
25159         * tests/test-truncl.c (ASSERT): Likewise.
25160         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25161         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25162         * tests/test-vasnprintf.c (ASSERT): Likewise.
25163         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25164         * tests/test-vasprintf.c (ASSERT): Likewise.
25165         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25166         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25167         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25168         * tests/test-vsnprintf.c (ASSERT): Likewise.
25169         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25170         * tests/test-wcwidth.c (ASSERT): Likewise.
25171         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25172         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25173         * tests/test-xvasprintf.c (ASSERT): Likewise.
25174         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25175         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25176         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25177         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25178         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25179         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25180         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25181         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25182         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25183         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25184         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25185         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25186         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25187         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25188         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25189         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25190         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25191         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25192         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25193         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25194         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25195         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25196         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25197         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25198         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25199         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25200         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25201         * tests/unictype/test-combining.c (ASSERT): Likewise.
25202         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25203         * tests/unictype/test-digit.c (ASSERT): Likewise.
25204         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25205         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25206         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25207         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25208         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25209         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25210         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25211         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25212         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25213         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25214         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25215         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25216         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25217         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25218         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25219         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25220         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25221         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25222         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25223         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25224         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25225         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25226         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25227         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25228         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25229         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25230         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25231         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25232         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25233         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25234         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25235         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25236         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25237         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25238         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25239         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25240         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25241         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25242         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25243         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25244         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25245         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25246         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25247         Reported by Eric Blake.
25248
25249 2008-04-11  Bruno Haible  <bruno@clisp.org>
25250
25251         * lib/wchar.in.h: Tweak comment.
25252
25253 2008-04-11  Bruno Haible  <bruno@clisp.org>
25254
25255         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25256         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25257         gl_COMMON.
25258         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25259
25260 2008-04-11  Bruno Haible  <bruno@clisp.org>
25261
25262         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25263
25264 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25265
25266         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25267         of attempting to use non-existing /dev/*random.  Based on patch
25268         from Adam Strzelecki <ono@java.pl> in
25269         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25270
25271 2008-04-08  Bruno Haible  <bruno@clisp.org>
25272
25273         Add tentative support for emx+gcc.
25274         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25275         * lib/fpurge.c (fpurge): Likewise.
25276         * lib/freadable.c (freadable): Likewise.
25277         * lib/freadahead.c (freadahead): Likewise.
25278         * lib/freading.c (freading): Likewise.
25279         * lib/freadptr.c (freadptr): Likewise.
25280         * lib/freadseek.c (freadptrinc): Likewise.
25281         * lib/fseeko.c (rpl_fseeko): Likewise.
25282         * lib/fseterr.c (fseterr): Likewise.
25283         * lib/fwritable.c (fwritable): Likewise.
25284         * lib/fwriting.c (fwriting): Likewise.
25285         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25286
25287 2008-04-09  Eric Blake  <ebb9@byu.net>
25288
25289         Avoid some autoconf warnings.
25290         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25291         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25292         * m4/afs.m4 (gl_AFS): Likewise.
25293         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25294         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25295         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25297         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25298         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25299         (AC_CHECK_DECLS_ONCE): Likewise.
25300         Rename file...
25301         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25302         gnulib-tool requires autoconf 2.59 or better.
25303         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25304
25305 2008-04-08  Eric Blake  <ebb9@byu.net>
25306
25307         Use 'git describe --match' if present (added in git 1.5.5).
25308         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25309         if possible.
25310
25311 2008-04-08  Bruno Haible  <bruno@clisp.org>
25312
25313         Add tentative support for OpenServer.
25314         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25315         _ptr, _cnt.
25316         * lib/fpurge.c (fpurge): Likewise.
25317         * lib/freadable.c (freadable): Likewise.
25318         * lib/freadahead.c (freadahead): Likewise.
25319         * lib/freading.c (freading): Likewise.
25320         * lib/freadptr.c (freadptr): Likewise.
25321         * lib/freadseek.c (freadptrinc): Likewise.
25322         * lib/fseeko.c (rpl_fseeko): Likewise.
25323         * lib/fseterr.c (fseterr): Likewise.
25324         * lib/fwritable.c (fwritable): Likewise.
25325         * lib/fwriting.c (fwriting): Likewise.
25326         Reported by Roger Cornelius <rac@tenzing.org> and
25327         Brian K. White <brian@aljex.com>.
25328
25329 2008-04-06  Jim Meyering  <meyering@redhat.com>
25330
25331         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25332
25333 2008-04-06  Bruno Haible  <bruno@clisp.org>
25334
25335         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25336         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25337         * tests/test-printf-posix.sh: Likewise.
25338         * tests/test-vfprintf-posix.sh: Likewise.
25339         * tests/test-vprintf-posix.sh: Likewise.
25340         * tests/test-xprintf-posix.sh: Likewise.
25341
25342 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25343
25344         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25345         hide error from 'ls', needed on OS/2.
25346         Report by Elbert Pol <elbert.pol@gmail.com>.
25347
25348 2008-04-04  Eric Blake  <ebb9@byu.net>
25349
25350         Make test-fseeko.c failures meaningful.
25351         * tests/test-fseeko.c: Print line number on failure.
25352         * tests/test-fseek.c: Likewise.
25353         Reported by Nelson H. F. Beebe.
25354
25355         Improve strtod bug detection check.
25356         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25357         required for Solaris 10.
25358         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25359
25360 2008-04-04  Bruno Haible  <bruno@clisp.org>
25361
25362         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25363         by m4/setenv.m4.
25364
25365 2008-04-03  Eric Blake  <ebb9@byu.net>
25366
25367         Ensure sane .version contents.
25368         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25369         version string.
25370         * build-aux/git-version-gen: Improve documentation.
25371
25372         Make GNU make output nicer.
25373         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25374         MAKECMDGOALS to enforce message for all command line targets.  Set
25375         srcdir for use in maint.mk.
25376
25377         Another maintainer tweak.
25378         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25379         a target that regenerates version.
25380
25381 2008-04-03  Jim Meyering  <meyering@redhat.com>
25382
25383         vc-list-files: don't cause coreutils "make po-check" failure
25384         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25385
25386 2008-04-03  Eric Blake  <ebb9@byu.net>
25387
25388         Allow VPATH usage of vc-list-files.
25389         * build-aux/vc-list-files (scriptversion): Add timestamp.
25390         (options): Add --help, --version, -C.
25391         (CVS): Support installed cvsu.
25392
25393 2008-04-02  Bruno Haible  <bruno@clisp.org>
25394
25395         Avoid some "statement with no effect" warnings from gcc.
25396         * tests/test-wctype.c (main): Explicitly ignore unused values.
25397         Reported by Jim Meyering.
25398
25399 2008-04-02  Jim Meyering  <meyering@redhat.com>
25400
25401         Avoid some warnings from "gcc -Wshadow".
25402         * tests/test-frexp.c (exp): Define to a different identifier.
25403         * tests/test-frexpl.c (exp): Likewise.
25404
25405 2008-04-03  Jim Meyering  <meyering@redhat.com>
25406
25407         bootstrap: remove dangling *.[ch] symlinks from lib
25408         * build-aux/bootstrap [dangling symlink removal]: Move find's
25409         -depth option to precede all others, to avoid a warning.
25410         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25411
25412 2008-04-02  Bruno Haible  <bruno@clisp.org>
25413
25414         Avoid some warnings from "gcc -Wshadow".
25415         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25416         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25417         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25418         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25419         Reported by Jim Meyering.
25420
25421 2008-04-01  Bruno Haible  <bruno@clisp.org>
25422
25423         Fix test to work on IRIX 6.5 with cc.
25424         * tests/test-math.c (numeric_equal): New function.
25425         (main): Use it.
25426
25427 2008-04-01  Bruno Haible  <bruno@clisp.org>
25428
25429         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25430
25431 2008-04-01  Bruno Haible  <bruno@clisp.org>
25432
25433         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25434         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25435         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25436         (Depends-on): Remove math.
25437
25438         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25439         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25440         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25441         (Depends-on): Remove math.
25442
25443         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25444         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25445         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25446         (Depends-on): Remove math.
25447         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25448         (Depends-on): Remove math.
25449
25450         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25451         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25452         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25453         (Depends-on): Remove math.
25454         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25455         (Depends-on): Remove math.
25456
25457         * tests/test-round1.c: Include nan.h.
25458         (main): Use NaNd instead of NAN.
25459         * modules/round-tests (Files): Add tests/nan.h.
25460
25461         * tests/test-trunc1.c: Include nan.h.
25462         (main): Use NaNd instead of NAN.
25463         * modules/trunc-tests (Files): Add tests/nan.h.
25464
25465         * tests/test-roundf1.c: Include nan.h.
25466         (main): Use NaNf instead of NAN.
25467         * modules/roundf-tests (Files): Add tests/nan.h.
25468
25469         * tests/test-truncf1.c: Include nan.h.
25470         (main): Use NaNf instead of NAN.
25471         * modules/truncf-tests (Files): Add tests/nan.h.
25472
25473         * tests/test-ceilf1.c: Include nan.h.
25474         (main): Use NaNf instead of NAN.
25475         * modules/ceilf-tests (Files): Add tests/nan.h.
25476
25477         * tests/test-floorf1.c: Include nan.h.
25478         (main): Use NaNf instead of NAN.
25479         * modules/floorf-tests (Files): Add tests/nan.h.
25480
25481         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25482         (main): Use NaNf instead of NAN.
25483         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25484
25485         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25486         (main): Use NaNd instead of NAN.
25487         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25488
25489         * tests/test-frexp.c: Include nan.h.
25490         (main): Use NaNd instead of NAN.
25491         * modules/frexp-tests (Files): Add tests/nan.h.
25492
25493         * lib/isnan.c: Don't include <math.h>.
25494         (FUNC): Don't use NAN macro.
25495         * modules/isnand-nolibm (Depends-on): Remove math.
25496         * modules/isnanf-nolibm (Depends-on): Remove math.
25497         * modules/isnanl (Depends-on): Remove math.
25498         * modules/isnanl-nolibm (Depends-on): Remove math.
25499
25500         * tests/nan.h: New file.
25501
25502 2008-04-01  Eric Blake  <ebb9@byu.net>
25503
25504         Fix typos.
25505         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25506         values to be the right type.
25507
25508         For now, cater to gnulib strtod inaccuracies.
25509         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25510         fractional results.  While not as nice from a QoI perspective, it
25511         is a quicker patch than correctly implementing decimal to binary
25512         rounding.
25513
25514 2008-03-31  Eric Blake  <ebb9@byu.net>
25515
25516         Guarantee a definition of NAN.
25517         * lib/math.in.h (NAN): Define if missing.
25518         * tests/test-math.c (main): Test it.
25519         * doc/posix-headers/math.texi (math.h): Document this.
25520         * lib/isnan.c (rpl_isnand): Use it.
25521         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25522         * tests/test-floorf1.c (NaN): Likewise.
25523         * tests/test-frexp.c (NaN): Likewise.
25524         * tests/test-isnand.c (NaN): Likewise.
25525         * tests/test-isnanf.c (NaN): Likewise.
25526         * tests/test-round1.c (NaN): Likewise.
25527         * tests/test-roundf1.c (NaN): Likewise.
25528         * tests/test-snprintf-posix.h (NaN): Likewise.
25529         * tests/test-sprintf-posix.h (NaN): Likewise.
25530         * tests/test-trunc1.c (NaN): Likewise.
25531         * tests/test-truncf1.c (NaN): Likewise.
25532         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25533         * tests/test-vasprintf-posix.c (NaN): Likewise.
25534         * modules/isnand-nolibm (Depends-on): Add math.
25535         * modules/isnanf-nolibm (Depends-on): Likewise.
25536         * modules/isnanl (Depends-on): Likewise.
25537         * modules/isnanl-nolibm (Depends-on): Likewise.
25538         * modules/snprintf-posix-tests (Depends-on): Likewise.
25539         * modules/sprintf-posix-tests (Depends-on): Likewise.
25540         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25541         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25542         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25543         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25544
25545 2008-03-31  Bruno Haible  <bruno@clisp.org>
25546
25547         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25548         * doc/posix-functions/strtod.texi: Likewise.
25549
25550 2008-03-31  Bruno Haible  <bruno@clisp.org>
25551
25552         * tests/test-strtod.c (main): Don't use C99 syntax.
25553
25554 2008-03-31  Bruno Haible  <bruno@clisp.org>
25555
25556         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25557         Reported by Eric Blake.
25558
25559 2008-03-31  Jim Meyering  <meyering@redhat.com>
25560
25561         Don't compare actual signbit return values.
25562         * tests/test-strtod.c (main): Rather, compare only their
25563         zero/non-zero nature.
25564
25565 2008-03-31  Eric Blake  <ebb9@byu.net>
25566
25567         More strtod documentation.
25568         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25569         failures as distinct bugs.
25570
25571 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25572
25573         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25574         Problem reported by Erik Benada in
25575         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25576
25577 2008-03-30  Bruno Haible  <bruno@clisp.org>
25578
25579         * tests/test-strtod.c: Add comments about which assertion fails on which
25580         platform.
25581         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25582
25583 2008-03-30  Eric Blake  <ebb9@byu.net>
25584
25585         Test signbit behavior on zeros.
25586         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25587         (test_signbitd, test_signbitl): Likewise.
25588
25589         More strtod touchups.
25590         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25591         sign of negative underflow, for now.  Use .5, not .1.
25592         * doc/posix-functions/strtod.texi (strtod): Mention these
25593         limitations.
25594         Reported by Jim Meyering.
25595
25596 2008-03-30  Bruno Haible  <bruno@clisp.org>
25597
25598         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25599         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25600
25601 2008-03-30  Bruno Haible  <bruno@clisp.org>
25602
25603         Avoid failure when attempting to return empty iconv results on some
25604         platforms.
25605         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25606         allocation, don't report ENOMEM when the resulting string is empty.
25607
25608 2008-03-30  Bruno Haible  <bruno@clisp.org>
25609
25610         Fix buffer overrun.
25611         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25612         Don't consider the width for tmp_length. Check count against tmp_length
25613         before doing the padding. Ensure enough allocation during padding.
25614
25615 2008-03-30  Eric Blake  <ebb9@byu.net>
25616
25617         strtod touchups.
25618         * lib/strtod.c (strtod): Avoid compiler warnings.
25619         Reported by Jim Meyering.
25620
25621 2008-03-30  Bruno Haible  <bruno@clisp.org>
25622
25623         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25624         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25625         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25626         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25627         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25628         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25629         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25630         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25631
25632         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25633         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25634         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25635         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25636         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25637         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25638         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
25639         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
25640
25641         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
25642         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
25643         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
25644         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
25645         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
25646         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
25647         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
25648         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
25649
25650         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
25651         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
25652
25653         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
25654         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
25655
25656         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25657         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25658
25659         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25661         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25662
25663         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25665         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25666
25667         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25668         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25669         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25670
25671         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25673         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25674
25675         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25676         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25677         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25678         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25679         (Depends-on): Add EOVERFLOW.
25680         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25681         (Depends-on): Add EOVERFLOW.
25682         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25683         (Depends-on): Add EOVERFLOW.
25684         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25685         (Depends-on): Add EOVERFLOW.
25686         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25687         (Depends-on): Add EOVERFLOW.
25688         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25689         (Depends-on): Add EOVERFLOW.
25690         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25691         (Depends-on): Add EOVERFLOW.
25692         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25693         (Depends-on): Add EOVERFLOW.
25694
25695         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25696         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25697         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25698
25699         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25700         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25701         * modules/snprintf (Depends-on): Add EOVERFLOW.
25702
25703         * lib/poll.c (EOVERFLOW): Remove fallback.
25704         * modules/poll (Depends-on): Add EOVERFLOW.
25705
25706         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25707         * modules/getugroups (Depends-on): Add EOVERFLOW.
25708
25709         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25710         * modules/getdelim (Depends-on): Add EOVERFLOW.
25711
25712         * lib/ftell.c (EOVERFLOW): Remove fallback.
25713         * modules/ftell (Depends-on): Add EOVERFLOW.
25714
25715         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25717         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25718
25719         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25720
25721         * modules/EOVERFLOW-tests: New file.
25722         * tests/test-EOVERFLOW.c: New file.
25723
25724         * modules/EOVERFLOW: New file.
25725         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25726
25727 2008-03-30  Bruno Haible  <bruno@clisp.org>
25728
25729         Fix bug introduced on 2007-06-10.
25730         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25731         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25732
25733 2008-03-30  Bruno Haible  <bruno@clisp.org>
25734
25735         Improve freadseek's efficiency after ungetc.
25736         * lib/freadseek.c: Include freadahead.h.
25737         (freadptrinc): New function, extracted from freadseek.
25738         (freadseek): Use it in a loop. Use freadahead to determine the number
25739         of loop iterations.
25740         * modules/freadseek (Depends-on): Add freadahead.
25741         (configure.ac): Require AC_C_INLINE.
25742
25743 2008-03-30  Bruno Haible  <bruno@clisp.org>
25744
25745         * lib/freadseek.c (freadseek): Don't ignore the return value of
25746         freadptr.
25747
25748 2008-03-29  Eric Blake  <ebb9@byu.net>
25749
25750         Add hex float support.
25751         * modules/strtod (Depends-on): Add c-ctype.
25752         (Link): Mention POW_LIB.
25753         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25754         whitespace between 'e' and exponent.
25755         * tests/test-strtod.c (main): Enable hex float tests.
25756         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25757         now provides.
25758
25759         Document various strtod bugs, with some fixes.
25760         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25761         "-0x", "inf", "nan", and hex constants.
25762         * doc/posix-functions/atof.texi (atof): Likewise.
25763         * modules/stdlib (Makefile.am): Support strtod.
25764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25765         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25766         detect additional strtod bugs.
25767         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25768         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25769         bool where appropriate.  Parse 'inf' and 'nan'.
25770         * tests/test-strtod.c: New file.
25771         * modules/strtod (Depends-on): Add stdbool, stdlib.
25772         (configure.ac): Turn on module indicator.
25773         * modules/strtod-tests: New module.
25774
25775 2008-03-29  Eric Blake  <ebb9@byu.net>
25776
25777         Fix ftell on mingw.
25778         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25779         * modules/ftell-tests (Depends-on): Add binary-io.
25780         * modules/ftello-tests (Depends-on): Likewise.
25781         * tests/test-ftell.c (main): Enhance test to cover behavior after
25782         ungetc.  Enforce binary mode.
25783         * tests/test-ftello.c (main): Likewise.
25784
25785         Pass test-freadseek on cygwin.
25786         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25787         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25788         ungetc buffer.
25789
25790         * tests/test-fflush2.c (main): Fix typo.
25791
25792 2008-03-29  Bruno Haible  <bruno@clisp.org>
25793
25794         * tests/test-fflush2.c (main): Temporarily disable the contents of
25795         this test.
25796         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25797         Reported by Eric Blake.
25798
25799 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25800
25801         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25802         (GC_SHA224_DIGEST_SIZE): Add.
25803
25804         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25805         (gc_hash_digest_length): Likewise.
25806         (gc_hash_buffer): Likewise.
25807
25808 2008-03-25  Bruno Haible  <bruno@clisp.org>
25809
25810         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25811         detail which gettext release to use.
25812         Reported by Simon Josefsson.
25813
25814 2008-03-26  Jim Meyering  <meyering@redhat.com>
25815
25816         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25817         * modules/gnumakefile (clean-GNUmakefile): Also, use
25818         test ... && ... || : syntax rather than if-then ... fi.
25819
25820         gnumakefile: Don't double-quote-expand $(VPATH) value.
25821         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25822
25823 2008-03-24  Eric Blake  <ebb9@byu.net>
25824
25825         Alter GNUmakefile to install into top directory.
25826         * modules/maintainer-makefile: Split, and add dependency...
25827         * modules/gnumakefile: to this new module.
25828         * build-aux/GNUmakefile: Move...
25829         * top/GNUmakefile: ...here.
25830         * build-aux/maint.mk: Move...
25831         * top/maint.mk: ...here.
25832         * MODULES.html.sh (Support for maintaining...): Document new
25833         module.
25834
25835 2008-03-23  Bruno Haible  <bruno@clisp.org>
25836
25837         * gnulib-tool: New options --vc-files, --no-vc-files.
25838         (func_usage): Document them.
25839         (vc_files): New variable.
25840         (func_import): Consider vc_files.
25841         (func_create_testdir): Set vc_files to empty.
25842         Suggested by Jim Meyering and Karl Berry.
25843
25844 2008-03-23  Bruno Haible  <bruno@clisp.org>
25845
25846         Fix regex compilation error on HP-UX 11.
25847         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25848         * modules/regex (Files): Add m4/mbstate_t.m4.
25849         Reported by Ton Voon <ton.voon@altinity.com>.
25850
25851 2008-03-23  Bruno Haible  <bruno@clisp.org>
25852
25853         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25854
25855 2008-03-23  Eric Blake  <ebb9@byu.net>
25856             Bruno Haible  <bruno@clisp.org>
25857
25858         Install files from top/ in the destination directory.
25859         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25860         augmentation also for the files from top/.
25861         (func_import, func_create_testdir): Rewrite file names:
25862         top/filename -> filename.
25863
25864 2008-03-23  Bruno Haible  <bruno@clisp.org>
25865
25866         Tweak "gnulib --version" output.
25867         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25868
25869 2008-03-23  Bruno Haible  <bruno@clisp.org>
25870
25871         Tweak "gnulib --version" output.
25872         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25873         rather than contents of ChangeLog, when possible.
25874
25875 2008-03-21  Eric Blake  <ebb9@byu.net>
25876
25877         More --version tweaks.
25878         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25879         date of last ChangeLog entry.
25880
25881 2008-03-21  Jim Meyering  <meyering@redhat.com>
25882
25883         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25884
25885 2008-03-20  Eric Blake  <ebb9@byu.net>
25886
25887         VPATH fix.
25888         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25889
25890 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25891
25892         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25893         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25894
25895 2008-03-20  Eric Blake  <ebb9@byu.net>
25896
25897         Sync GNUmakefile with coreutils.
25898         * build-aux/GNUmakefile (have-Makefile): Rename...
25899         (_have-Makefile): ...to this, for namespace consideration.
25900         (GNUmakefile.cfg): Include, if present.
25901         (_autoreconf): Define a default.
25902         (_is-dist-target): New rule for rebuilds to pick up intra-release
25903         version.
25904         (maint-cfg.mk): Rename...
25905         (cfg.mk): ...to this.
25906
25907 2008-03-18  Jim Meyering  <meyering@redhat.com>
25908
25909         New script and module: mktempd
25910         * MODULES.html.sh (maint+release support): Add mktempd.
25911         * build-aux/mktempd: New file.
25912         * modules/mktempd: New file.
25913
25914 2008-03-15  Jim Meyering  <meyering@redhat.com>
25915
25916         Undo last change.
25917         * lib/sha1.c, lib/md5.c: 63 != ~63.
25918         Reported by Andreas Schwab.
25919
25920         sha1.c, md5.c: Hoist a redundant expression.
25921         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25922         "ctx->buflen" only once, before calling *_process_block.
25923         * lib/md5.c (md5_process_bytes): Likewise.
25924
25925 2008-03-14  Eric Blake  <ebb9@byu.net>
25926
25927         Bump copyright year in files generated by gnulib-tool.
25928         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25929         gnulib-tool, rather than hard-coding it.
25930
25931         Fix 'gnulib-tool --version' output to work with git.
25932         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25933         (startup): ...here.
25934         (func_version): Use it to invoke git-version-gen, rather than
25935         relying on CVS keyword expansion.  Modernize wording.
25936         (cvsdatestamp, last_checkin_date, version): Kill unused
25937         variables.
25938
25939 2008-03-12  Jim Meyering  <meyering@redhat.com>
25940
25941         Recognize optional cast of the argument to free.
25942         * build-aux/useless-if-before-free: Update regexps.
25943
25944         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25945
25946 2008-03-11  Bruno Haible  <bruno@clisp.org>
25947
25948         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25949         by a single package.
25950         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25951         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25952         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25953         Reported by Sam Steingold <sds@gnu.org>.
25954
25955 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25956
25957         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25958         repositories.
25959
25960 2008-03-11  Bruno Haible  <bruno@clisp.org>
25961
25962         Avoid conflicts between local macro definitions.
25963         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25964         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25965
25966 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25967             Bruno Haible  <bruno@clisp.org>
25968
25969         Make va_copy work with some version of xlc on AIX 5.1.
25970         * lib/stdarg.in.h: New file.
25971         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25972         On AIX, use a <stdarg.h> file substitute.
25973         * modules/stdarg (Files): Add lib/stdarg.in.h.
25974         (Depends-on): Add include_next.
25975         (Makefile.am): Build a stdarg.h substitute if requested.
25976         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25977
25978 2008-03-10  Bruno Haible  <bruno@clisp.org>
25979
25980         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25981         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25982         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25983
25984 2008-03-10  Bruno Haible  <bruno@clisp.org>
25985
25986         * modules/stdlib (Depends-on): Add include_next, remove
25987         absolute-header.
25988
25989 2008-03-09  Bruno Haible  <bruno@clisp.org>
25990
25991         * lib/freadahead.h (freadahead): Document more precisely.
25992         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25993         the sum of both buffer sizes.
25994         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25995         * NEWS: Document the change.
25996
25997 2008-03-09  Bruno Haible  <bruno@clisp.org>
25998
25999         Extend freadptr to return also the buffer size.
26000         * lib/freadptr.h (freadptr): Add sizep argument.
26001         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26002         (freadptr): Add sizep argument. Determine buffer size like freadahead
26003         does.
26004         * tests/test-freadptr.c: Don't include freadahead.h.
26005         (main): Adapt for new calling convention of freadptr.
26006         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26007         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26008         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26009         tests/test-freadptr2.sh.
26010         (Depends): Remove freadahead.
26011         (TESTS): Add test-freadptr2.sh.
26012         (check_PROGRAMS): Add test-freadptr2.
26013
26014 2008-03-09  Bruno Haible  <bruno@clisp.org>
26015
26016         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26017         Report and solution by Simon Josefsson.
26018
26019 2008-03-06  Bruno Haible  <bruno@clisp.org>
26020
26021         Make fflush after ungetc work on BSD platforms.
26022         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26023         * tests/test-fflush2.c: New file.
26024         * tests/test-fflush2.sh: New file.
26025         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26026         tests/test-fflush2.c.
26027         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26028         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26029
26030 2008-03-06  Eric Blake  <ebb9@byu.net>
26031
26032         Likewise for ftello.
26033         * modules/ftello (Dependencies): Add extensions.
26034         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26035
26036 2008-03-06  Bruno Haible  <bruno@clisp.org>
26037
26038         * modules/fseeko (Dependencies): Add extensions.
26039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26040         Needed on glibc systems.
26041
26042 2008-03-06  Bruno Haible  <bruno@clisp.org>
26043
26044         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26045         email address.
26046         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26047
26048 2008-03-06  Bruno Haible  <bruno@clisp.org>
26049
26050         * users.txt: Add libgnupdf.
26051
26052 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26053
26054         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26055         (Header File Substitutes, Function Substitutes,
26056         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26057         (Build robot for gnulib): Fix typo.
26058
26059 2008-03-06  Bruno Haible  <bruno@clisp.org>
26060
26061         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26062         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26063
26064 2008-03-06  Bruno Haible  <bruno@clisp.org>
26065
26066         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26067         * doc/gnulib.texi: Include it.
26068
26069 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26070
26071         * modules/func (License): Change license to unlimited; there was
26072         no LGPL parts in the module anyway.
26073
26074 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26075
26076         * modules/__func__: Renamed to modules/func.
26077         * modules/__func__-tests: Renamed to modules/func-tests.
26078         * tests/test-__func__.c: Renamed to tests/test-func.c.
26079         * m4/__func__.m4: Renamed to m4/func.m4.
26080         * doc/gnulib.texi (__func__): Section renamed to func.
26081         Suggested by Eric Blake <ebb9@byu.net>.
26082
26083 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26084
26085         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26086         about __func__.  Make example self-contained.  Suggested by Eric
26087         Blake <ebb9@byu.net>.
26088
26089         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26090         Suggested by Eric Blake <ebb9@byu.net>.
26091
26092 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26093
26094         * modules/__func__: New file.
26095         * modules/__func__-tests: New file.
26096         * tests/test-__func__.c: New file.
26097         * m4/__func__.m4: New file.
26098         * doc/gnulib.texi (__func__): Document __func__ module.
26099
26100 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26101
26102         * modules/byteswap (License): Re-license as LGPLv2+.
26103
26104 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26105
26106         * doc/Makefile: Add pdf target.
26107
26108 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26109
26110         * modules/inline (License): Use 'unlimited', since there are only
26111         *.m4 files in this module.
26112
26113 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26114             Bruno Haible  <bruno@clisp.org>
26115
26116         Add support for HP C 7.1 on OpenVMS 8.3.
26117         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26118
26119 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26120
26121         Update VMS specifics.
26122         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26123
26124 2008-03-02  Jim Meyering  <meyering@redhat.com>
26125
26126         Remove the last dependency on the "free" module.
26127         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26128         Reported by Bob Proulx.
26129
26130         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26131
26132         Remove useless "if" tests before free.  Deprecate "free" module.
26133         * doc/posix-functions/free.texi: Mention that this
26134         module is no longer useful.
26135         * modules/free (Notice): Say this module is obsolete.
26136         * modules/readutmp (Depends-on): Remove free.
26137         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26138         * lib/putenv.c (putenv): Likewise.
26139         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26140         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26141         * tests/test-c-strcasestr.c (main): Likewise.
26142         * tests/test-c-strstr.c (main): Likewise.
26143         * tests/test-mbscasestr1.c (main): Likewise.
26144         * tests/test-mbscasestr2.c (main): Likewise.
26145         * tests/test-mbsstr1.c (main): Likewise.
26146         * tests/test-mbsstr2.c (main): Likewise.
26147         * tests/test-memmem.c (main): Likewise.
26148         * tests/test-strcasestr.c (main): Likewise.
26149         * tests/test-striconv.c (main): Likewise.
26150         * tests/test-striconveh.c (main): Likewise.
26151         * tests/test-striconveha.c (main): Likewise.
26152         * tests/test-strstr.c (main): Likewise.
26153
26154         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26155
26156         bootstrap: sync from coreutils again
26157         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26158
26159 2008-03-01  Jim Meyering  <meyering@redhat.com>
26160
26161         bootstrap: sync from coreutils
26162         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26163         also when the target doesn't exist.
26164
26165 2008-03-01  Eric Blake  <ebb9@byu.net>
26166
26167         Fix bugs in last patch.
26168         * lib/memchr2.c (memchr2): Fix typo.
26169         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26170         extension.
26171         Reported by Bruce Korb.
26172
26173         New module 'memchr2'.
26174         * modules/memchr2: New file.
26175         * modules/memchr2-tests: Likewise.
26176         * lib/memchr2.h: Likewise.
26177         * lib/memchr2.c: Likewise, based on memchr.c.
26178         * tests/test-memchr2.c: New test.
26179         * MODULES.html.sh (String handling): Add memchr2.
26180
26181 2008-02-29  Bruno Haible  <bruno@clisp.org>
26182
26183         * modules/freadseek-tests: New file.
26184         * tests/test-freadseek.sh: New file.
26185         * tests/test-freadseek.c: New file.
26186
26187         New module 'freadseek'.
26188         * modules/freadseek: New file.
26189         * lib/freadseek.h: New file.
26190         * lib/freadseek.c: New file.
26191         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26192
26193 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26194
26195         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26196         wydawca.
26197
26198         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26199         program_invocation_name and program_invocation_short_name are
26200         present.
26201
26202 2008-02-28  Bruno Haible  <bruno@clisp.org>
26203
26204         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26205         * tests/test-freadptr.sh: Also test non-seekable stdin.
26206
26207 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26208
26209         * build-aux/bootstrap (source_base, m4_base)
26210         (doc_base, tests_base): New variables.
26211         (gnulib_tool_options): Do not hardcode base directories, use
26212         the above variables instead.
26213
26214 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26215
26216         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26217
26218 2008-02-28  Bruno Haible  <bruno@clisp.org>
26219
26220         * modules/freadptr-tests: New file.
26221         * tests/test-freadptr.sh: New file.
26222         * tests/test-freadptr.c: New file.
26223
26224         New module 'freadptr'.
26225         * modules/freadptr: New file.
26226         * lib/freadptr.h: New file.
26227         * lib/freadptr.c: New file.
26228         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26229
26230 2008-02-26  Karl Berry  <karl@freefriends.org>
26231
26232         Sync from Libtool:
26233         * libltdl/argz.c (argz_add, argz_count): New functions.
26234         * libltdl/argz.in.h: Declare them.
26235         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26236
26237 2008-02-22  Bruno Haible  <bruno@clisp.org>
26238
26239         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26240         is a pointer type.  Needed for HP-UX 10.
26241         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26242         * doc/posix-functions/gmtime_r.texi: Likewise.
26243         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26244
26245 2008-02-24  Bruno Haible  <bruno@clisp.org>
26246
26247         * modules/environ-tests: New file.
26248         * tests/test-environ.c: New file.
26249
26250         New module 'environ'.
26251         * modules/environ: New file.
26252         * lib/unistd.in.h (environ): New declaration.
26253         * m4/environ.m4: New file.
26254         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26255         after use.
26256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26257         HAVE_DECL_ENVIRON.
26258         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26259         HAVE_DECL_ENVIRON.
26260         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26261         wrong claim that 'environ' is missing on some systems.
26262         * modules/execute (Depends-on): Add environ.
26263         * lib/execute.c (environ): Remove fallback declaration.
26264         * modules/pipe (Depends-on): Add environ.
26265         * lib/pipe.c (environ): Remove fallback declaration.
26266         * modules/setenv (Depends-on): Add environ.
26267         * lib/setenv.c (environ): Remove fallback declaration.
26268         * modules/unsetenv (Depends-on): Add environ.
26269         * lib/unsetenv.c (environ): Remove fallback declaration.
26270         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26271         m4/environ.m4.
26272         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26273         (gl_PREREQ_UNSETENV): Likewise.
26274
26275 2008-02-24  Bruno Haible  <bruno@clisp.org>
26276
26277         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26278
26279 2008-02-20  Bob Proulx  <bob@proulx.com>
26280
26281         Enable use of older two part flavor 'git describe'.
26282         * build-aux/git-version-gen: If using the older two part flavor of
26283         git version then recreate the third part now present in the
26284         newer three part flavor of git describe.
26285
26286 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26287
26288         * lib/fts.c (fts_build): Typo correction to comment.
26289
26290 2008-02-17  Bruno Haible  <bruno@clisp.org>
26291
26292         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26293         generating no-op conflicts.
26294
26295 2008-02-17  Bruno Haible  <bruno@clisp.org>
26296
26297         Speed up by 10%.
26298         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26299         result_entries, rather than an index-based loop.
26300
26301 2008-02-17  Bruno Haible  <bruno@clisp.org>
26302
26303         Speed up by 25%.
26304         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26305         'hashcode_cached'.
26306         (entry_create): New function.
26307         (entry_hashcode): Use the cached hashcode if possible.
26308         (read_changelog_file, try_split_merged_entry): Use entry_create.
26309
26310 2008-02-17  Bruno Haible  <bruno@clisp.org>
26311
26312         Speed up from O(n^2) to O(n) for long ChangeLog files.
26313         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26314         (read_changelog_file): Change implementation of entries_reversed list
26315         to rbtreehash.
26316         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26317
26318 2008-02-17  Bruno Haible  <bruno@clisp.org>
26319
26320         New option --split-merged-entry.
26321         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26322         (find_paragraph_end, try_split_merged_entry): New functions.
26323         (long_options): Add option --split-merged-entry.
26324         (usage): Document option --split-merged-entry.
26325         (main): Implement option --split-merged-entry.
26326         Reported by Eric Blake.
26327
26328 2008-02-17  Bruno Haible  <bruno@clisp.org>
26329
26330         * lib/git-merge-changelog.c: Include c-strstr.h.
26331         (main): Support the "git pull --rebase" situation.
26332         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26333         Reported by Eric Blake.
26334
26335 2008-02-16  Eric Blake  <ebb9@byu.net>
26336
26337         Avoid doubling \ in common case of "c-maybe" quoting style.
26338         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26339         eliding outer quotes.
26340         * lib/quotearg.h: Document this.
26341         * tests/test-quotearg.c (result_strings, inputs, results_g)
26342         (flag_results, locale_results): Test it by adding a new string to
26343         each test group.
26344         (compare_strings): Test new string.
26345
26346 2008-02-13  Eric Blake  <ebb9@byu.net>
26347
26348         Avoid trigraph quoting in default output.
26349         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26350         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26351         unless explicitly requested.
26352         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26353
26354 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26355
26356         Don't rely on signed integer overflowing to negative value.
26357         * lib/getugroups.c (getugroups): Include <limits.h>.
26358         Instead, compare against INT_MAX, and increment only if the test passes.
26359
26360 2008-02-13  Jim Meyering  <meyering@redhat.com>
26361         and Eric Blake  <ebb9@byu.net>
26362
26363         Avoid shadowing warning and compile errors on Linux.
26364         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26365         forwarding macros on Linux.
26366         (dcgettext): Define a stub, for Linux.
26367         (results_g, main): Avoid warnings.
26368
26369 2008-02-12  Eric Blake  <ebb9@byu.net>
26370
26371         Silence warning in last patch.
26372         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26373
26374         Quotearg part 4: add tests, fix c-maybe colon quoting.
26375         * lib/quotearg.h: Improve documentation.
26376         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26377         escapes when adding outer quotes.  When quoting trigraphs, use
26378         valid C notation.  When quoting NUL, omit extra characters if next
26379         character is not digit.  Alter prototype.
26380         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26381         callers.
26382         * modules/quotearg-tests: New module.
26383         * tests/test-quotearg.c: New test.
26384
26385 2008-02-07  Eric Blake  <ebb9@byu.net>
26386
26387         Quotearg part 3: add flag to control outer quote elision.
26388         * lib/quotearg.h (c_maybe_quoting_style): New style.
26389         (enum quoting_flags): Better documentation of flags.
26390         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26391         c-maybe style.
26392         (quotearg_buffer_restyled): Handle new flag to elide outer
26393         quotes.
26394
26395         Quotearg part 2: add flag that can control NUL elision.
26396         * lib/quotearg.h (set_quoting_flags): New prototype.
26397         * lib/quotearg.c (struct quoting_options): Add flag field.
26398         (set_quoting_flags): New function.
26399         (quotearg_buffer_restyled): Add flags parameter.
26400         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26401         (quotearg_n_options): Set the flag, since length cannot be
26402         returned.
26403         (quoting_options_from_style): Default flags correctly.
26404
26405         Quotearg part 1: more wrappers, restore quotearg_char state.
26406         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26407         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26408         (quotearg_colon_mem): New wrappers.
26409         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26410         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26411         functions.
26412         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26413         (quotearg_colon_mem): New functions.
26414
26415 2008-02-11  Bruno Haible  <bruno@clisp.org>
26416
26417         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26418         library in the current directory: it does not work with parallel make.
26419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26420
26421 2008-02-11  Bruno Haible  <bruno@clisp.org>
26422
26423         * .gitattributes: New file.
26424
26425 2008-02-11  Jim Meyering  <meyering@redhat.com>
26426
26427         useless-if-before-free: Fix reversed exit values.
26428         * build-aux/useless-if-before-free: Use correct values
26429         for EXIT_MATCH and EXIT_NO_MATCH.
26430
26431         * build-aux/useless-if-before-free: Close stdout carefully.
26432
26433 2008-02-10  Bruno Haible  <bruno@clisp.org>
26434
26435         New module 'git-merge-changelog'.
26436         * modules/git-merge-changelog: New file.
26437         * lib/git-merge-changelog.c: New file.
26438
26439 2008-02-10  Jim Meyering  <meyering@redhat.com>
26440
26441         useless-if-before-free: New option: --list (-l).
26442
26443         useless-if-before-free: Don't exit immediately upon open failure.
26444         * build-aux/useless-if-before-free: Exit 2 for errors.
26445         Upon failure to open a file, don't exit immediately.
26446         Rather, just warn and continue with any remaining files.
26447
26448 2008-02-10  Bruno Haible  <bruno@clisp.org>
26449
26450         New abstract list operation 'node_set_value'.
26451         * lib/gl_list.h (gl_list_node_set_value): New function.
26452         (struct gl_list_implementation): New field node_set_value.
26453         * lib/gl_list.c (gl_list_node_set_value): New function.
26454         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26455         (gl_array_list_implementation): Update.
26456         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26457         (gl_carray_list_implementation): Update.
26458         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26459         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26460         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26461         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26462         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26463         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26464         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26465         Update.
26466         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26467         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26468         (gl_sublist_list_implementation): Update.
26469
26470 2008-02-10  Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26473         Needed when ELEMENT is #defined to 'some_type *'.
26474
26475 2008-02-10  Jim Meyering  <meyering@redhat.com>
26476
26477         New script and module: useless-if-before-free
26478         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26479         * build-aux/useless-if-before-free: New file.
26480         * modules/useless-if-before-free: New file.
26481
26482         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26483
26484         xstrtol_error: Fix typo.
26485         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26486         s/exit_failure/exit_status/.
26487
26488 2008-02-09  Jim Meyering  <meyering@redhat.com>
26489
26490         New script and module: gitlog-to-changelog
26491         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26492         * modules/gitlog-to-changelog: New file.
26493         * build-aux/gitlog-to-changelog: New file.
26494
26495 2008-02-08  Jim Meyering  <meyering@redhat.com>
26496
26497         Avoid two "parameter unused" warnings.
26498         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26499         Mark "st" as used.
26500
26501         Use "git COMMAND", not "git-COMMAND".
26502         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26503         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26504         * build-aux/git-version-gen: Use "git status", not "git-status".
26505
26506 2008-02-07  Bruno Haible  <bruno@clisp.org>
26507
26508         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26509         Avoids a crash on Windows Vista.
26510         Reported by Adam Strzelecki <ono@java.pl> via
26511         Simon Josefsson <simon@josefsson.org>.
26512
26513 2008-02-06  Bruno Haible  <bruno@clisp.org>
26514
26515         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26516         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26517         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26519         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26520         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26521         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26522         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26523         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26525         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26526         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26527         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26529         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26530         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26531         left-adjust flag.
26532         * tests/test-snprintf-posix.h (test_function): Likewise.
26533         * tests/test-sprintf-posix.h (test_function): Likewise.
26534         * tests/test-vasprintf-posix.c (test_function): Likewise.
26535         * doc/posix-functions/fprintf.texi: Update.
26536         * doc/posix-functions/printf.texi: Update.
26537         * doc/posix-functions/snprintf.texi: Update.
26538         * doc/posix-functions/sprintf.texi: Update.
26539         * doc/posix-functions/vfprintf.texi: Update.
26540         * doc/posix-functions/vprintf.texi: Update.
26541         * doc/posix-functions/vsnprintf.texi: Update.
26542         * doc/posix-functions/vsprintf.texi: Update.
26543         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26544
26545 2008-02-06  Bruno Haible  <bruno@clisp.org>
26546
26547         Fix bug introduced on 2008-01-26.
26548         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26549
26550 2008-02-06  Bruno Haible  <bruno@clisp.org>
26551
26552         Fix bug introduced on 2007-06-10.
26553         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26554         !NEED_PRINTF_FLAG_ZERO.
26555
26556 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26557
26558         getloadavg: use libperfstat on AIX5
26559         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26560
26561 2008-02-03  Bruno Haible  <bruno@clisp.org>
26562
26563         * lib/diffseq.h: Add comments about required #includes.
26564         Reported by Michael Biggs <gnulib@doubleplum.net>.
26565
26566 2008-02-01  Bruno Haible  <bruno@clisp.org>
26567
26568         * users.txt: Add gnuit.
26569
26570 2008-01-31  Bruno Haible  <bruno@clisp.org>
26571
26572         * lib/md4.c (set_uint32): Mark as inline.
26573         * lib/md5.c (set_uint32): Likewise.
26574         * lib/sha1.c (set_uint32): Likewise.
26575         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26576         * m4/md5.m4 (gl_MD5): Likewise.
26577         * m4/sha1.m4 (gl_SHA1): Likewise.
26578
26579 2008-01-31  Jim Meyering  <meyering@redhat.com>
26580
26581         Use "sizeof VAR", rather than a literal "4".
26582         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26583         * lib/md4.c (md4_read_ctx): Likewise.
26584         * lib/sha1.c (sha1_read_ctx): Likewise.
26585
26586 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26587
26588         * tests/test-sha1.c: New file, based on test-md5.c.
26589
26590         * modules/crypto/sha1-tests: New file.
26591
26592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26593
26594         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26595
26596 2008-01-31  Jim Meyering  <meyering@redhat.com>
26597
26598         Prefer "sizeof v" over the equivalent "4".
26599         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26600         * lib/md5.c (set_uint32): Likewise.
26601         * lib/sha1.c (set_uint32): Likewise.
26602
26603 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26604
26605         * lib/sha1.c (set_uint32): Mark function as static.
26606
26607 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26608
26609         md2: clarify comments to say that alignment is not required.
26610         * lib/md2.h: Remove warning about alignment in comment.
26611         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26612         never been required.
26613
26614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26615
26616         md4: adapt alignment constraint fix from sha1.
26617         * lib/md4.c (set_uint32): New function, from sha1.c
26618         (md4_read_ctx): Use it.
26619         (md4_finish_ctx): Doc fix.
26620         * lib/md4.h: Doc fix.
26621
26622 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26623
26624         md5: adapt alignment constraint fix from sha1.
26625         * lib/md5.c (set_uint32): New function, from sha1.c
26626         (md5_read_ctx): Use it.
26627         (md5_finish_ctx): Doc fix.
26628         * lib/md5.h: Doc fix.
26629
26630 2008-01-30  Peter Palfrader  <weasel@debian.org>
26631
26632         sha1: remove the result buffer alignment constraint
26633         * lib/sha1.c (set_uint32): New function.
26634         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26635         constraint.
26636         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26637         * lib/sha1.h: Likewise.
26638
26639 2008-01-30  Andreas Schwab  <schwab@suse.de>
26640             Bruno Haible  <bruno@clisp.org>
26641
26642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
26643         correct definition of LDBL_MIN_EXP.
26644
26645 2008-01-30  Karl Berry  <karl@gnu.org>
26646
26647         * config/srclist-update: try to preserve x bit on updates.
26648         * config/srclistvars.sh: update for karl.
26649
26650 2008-01-29  Jim Meyering  <meyering@redhat.com>
26651
26652         vasnprintf.c: Avoid warning about unused label
26653         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
26654         "overflow" label definition and associated code with the
26655         same cpp condition that guards the sole use of that label.
26656
26657 2008-01-26  Bruno Haible  <bruno@clisp.org>
26658
26659         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26660         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26661         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26662         * lib/isnanl-nolibm.h (isnanl): Likewise.
26663         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26664
26665 2008-01-26  Bruno Haible  <bruno@clisp.org>
26666
26667         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26668         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26669
26670 2008-01-26  Bruno Haible  <bruno@clisp.org>
26671
26672         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26673         GCC >= 4.0 built-in.
26674         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26675
26676 2008-01-26  Bruno Haible  <bruno@clisp.org>
26677
26678         Rename isnan, applicable to 'double' only, to isnand.
26679         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26680         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26681         (configure.ac): Update.
26682         (Include): Replace "isnan.h" with "isnand.h".
26683         * m4/isnand.m4: Renamed from m4/isnan.m4.
26684         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26685         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26686         instead of isnan.c.
26687         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26688         instead of HAVE_ISNAN_IN_LIBC.
26689         (isnand): Renamed from isnan.
26690         * lib/isnand.c: New file.
26691         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26692         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26693         (Makefile.am): Update.
26694         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26695         Include isnand.h instead of isnan.h.
26696         (main): Test isnand instead of isnan.
26697         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26698         isnan-nolibm.
26699         * modules/frexp (Depends-on): Likewise.
26700         * modules/frexp-tests (Depends-on): Likewise.
26701         * modules/frexp-nolibm (Depends-on): Likewise.
26702         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26703         * modules/isfinite (Depends-on): Likewise.
26704         * modules/round-tests (Depends-on): Likewise.
26705         * modules/signbit (Depends-on): Likewise.
26706         * modules/signbit-tests (Depends-on): Likewise.
26707         * modules/snprintf-posix (Depends-on): Likewise.
26708         * modules/sprintf-posix (Depends-on): Likewise.
26709         * modules/trunc-tests (Depends-on): Likewise.
26710         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26711         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26712         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26713         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26714         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26715         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26716         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26717         * modules/vasnprintf-posix (Depends-on): Likewise.
26718         * modules/vasprintf-posix (Depends-on): Likewise.
26719         * modules/vfprintf-posix (Depends-on): Likewise.
26720         * modules/vsnprintf-posix (Depends-on): Likewise.
26721         * modules/vsprintf-posix (Depends-on): Likewise.
26722         * lib/frexp.c: Include isnand.h instead of isnan.h.
26723         (ISNAN): Set to isnand instead of isnan.
26724         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26725         (gl_isfinited): Use isnand instead of isnan.
26726         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26727         (gl_signbitd): Use isnand instead of isnan.
26728         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26729         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26730         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26731         (main): Use isnand instead of isnan.
26732         * tests/test-round1.c: Include isnand.h.
26733         (main): Use isnand instead of isnan.
26734         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26735         (ISNAN): Set to isnand instead of isnan.
26736         * tests/test-trunc1.c: Include isnand.h.
26737         (main): Use isnand instead of isnan.
26738         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26739         (equal): Use isnand instead of isnan.
26740         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26741         isnand-nolibm.
26742         * NEWS: Mention the change.
26743
26744 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26745             Bruno Haible  <bruno@clisp.org>
26746
26747         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26748         the GCC builtins for signbits are present and set
26749         REPLACE_SIGNBIT_USING_GCC if so.
26750         * lib/math.in.h (signbit): Define using GCC builtins if
26751         REPLACE_SIGNBIT_USING_GCC is set.
26752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26753         REPLACE_SIGNBIT_USING_GCC.
26754         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26755
26756 2008-01-25  Jim Meyering  <meyering@redhat.com>
26757
26758         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26759         * lib/poll.c: Include <config.h>, not "config.h".
26760         * tests/test-getaddrinfo.c: Likewise.
26761
26762 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26763
26764         * modules/sockets-tests: New file.
26765
26766 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26767
26768         * modules/sockets: New module, can be used to call WSA_Startup and
26769         WSA_Cleanup when needed.
26770
26771         * lib/sockets.h, lib/sockets.c: New files.
26772
26773         * m4/sockets.m4: New file.
26774
26775         * tests/test-sockets.c: New file.
26776
26777 2008-01-19  Bruno Haible  <bruno@clisp.org>
26778
26779         * doc/posix-headers: Renamed from doc/headers.
26780         * doc/posix-functions: Renamed from doc/functions.
26781         * doc/gnulib.texi: Update.
26782
26783 2008-01-19  Bruno Haible  <bruno@clisp.org>
26784
26785         * doc/glibc-functions/strcasestr.texi: Include contents of
26786         doc/functions/strcasestr.texi, fixing the list of platforms.
26787         * doc/functions/strcasestr.texi: Remove file.
26788
26789 2008-01-19  Bruno Haible  <bruno@clisp.org>
26790
26791         * doc/glibc-functions/memmem.texi: Include contents of
26792         doc/functions/memmem.texi.
26793         * doc/functions/memmem.texi: Remove file.
26794
26795 2008-01-18  Bruno Haible  <bruno@clisp.org>
26796
26797         * doc/glibc-functions/*.texi: New files.
26798         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26799         to use the new files.
26800
26801 2008-01-17  Bruno Haible  <bruno@clisp.org>
26802
26803         * tests/test-gethostname.c (main): Fix printf statement.
26804
26805 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26806
26807         * modules/gethostname-tests: New file.
26808
26809         * tests/test-gethostname.c: New file.
26810
26811 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26812
26813         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26814         used by the UNAME case.  Reported by Bruno Haible
26815         <bruno@clisp.org>.
26816
26817 2008-01-17  Eric Blake  <ebb9@byu.net>
26818
26819         Convert c-strcasestr to be more efficient.
26820         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26821         (Depends-on): Add c-strcase, remove malloca, strnlen.
26822         * tests/test-c-strcasestr.c (main): Enhance test.
26823         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26824
26825 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26826
26827         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26828         Use it in creating po/Makevars.
26829
26830 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26831
26832         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26833         Applications that requires it should initialize libgcrypt
26834         manually.
26835
26836 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26837
26838         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26839
26840 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26841
26842         Fix problem with getdate on mingw32 reported by Simon Josefsson
26843         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26844         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26845         tzname", when deciding whether to declare tzname.
26846         * lib/strftime.c (tzname): Likewise.
26847
26848 2008-01-15  Bruno Haible  <bruno@clisp.org>
26849
26850         Work around a MacOS X 10.5 bug in frexpl().
26851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26852         * doc/functions/frexpl.texi: Document the bug.
26853         Reported by Elias Pipping <pipping@gentoo.org>.
26854
26855 2008-01-14  Eric Blake  <ebb9@byu.net>
26856
26857         Touch up previous patch.
26858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26859         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26860
26861         Convert strcasestr module to use Two-Way algorithm.
26862         * modules/strcasestr-simple: New module, based on the old
26863         strcasestr, but with Two-Way rather than KMP.
26864         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26865         * lib/string.in.h (rpl_strcasestr): Declare.
26866         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26867         performance.
26868         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26869         * modules/string (Makefile.am): Support strcasestr.
26870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26871         * modules/strcasestr-tests (Depends-on): Check for alarm.
26872         * tests/test-strcasestr.c: Augment test.
26873         * lib/str-two-way.h: Clean up stray macro.
26874         * NEWS: Document new module.
26875         * MODULES.html.sh (string handling): Likewise.
26876         * doc/functions/strcasestr.texi: New file.
26877         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26878         here, since it is not a POSIX function.
26879
26880 2008-01-14  Colin Watson  <cjwatson@debian.org>
26881             Bruno Haible  <bruno@clisp.org>
26882
26883         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26884         works fine; if not, set REPLACE_STRSIGNAL.
26885         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26887         REPLACE_STRSIGNAL.
26888         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26889         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26890         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26891
26892 2008-01-14  Bruno Haible  <bruno@clisp.org>
26893
26894         * modules/strsignal (Include): Change to <string.h>.
26895
26896 2008-01-14  Colin Watson  <cjwatson@debian.org>
26897
26898         * modules/argp (Notice): Add a notice recommending to change
26899         XGETTEXT_OPTIONS.
26900         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26901
26902 2008-01-13  Colin Watson  <cjwatson@debian.org>
26903
26904         * modules/strsignal-tests: New file.
26905         * tests/test-strsignal.c: New file.
26906
26907         * lib/strsignal.c: New file, from glibc with modifications.
26908         * lib/siglist.h: New file, from glibc with modifications.
26909         * lib/string.in.h (strsignal): New declaration.
26910         * m4/strsignal.m4: New file.
26911         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26912         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26913         * modules/strsignal: New file.
26914         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26915         HAVE_DECL_STRSIGNAL.
26916
26917 2008-01-13  Bruno Haible  <bruno@clisp.org>
26918
26919         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26920         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26921         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26922         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26923
26924 2008-01-13  Bruno Haible  <bruno@clisp.org>
26925
26926         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26927         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26928         * lib/argp.h (__attribute__): Likewise.
26929         * lib/c-stack.c (__attribute__): Likewise.
26930         * lib/error.h (__attribute__): Likewise.
26931         * lib/fts.c (__attribute__): Likewise.
26932         * lib/openat.h (__attribute__): Likewise.
26933         * lib/stdio.in.h (__attribute__): Likewise.
26934         * lib/string.in.h (__attribute__): Likewise.
26935         * lib/utimens.c (__attribute__): Likewise.
26936         * lib/vasnprintf.h (__attribute__): Likewise.
26937         * lib/xalloc.h (__attribute__): Likewise.
26938         * lib/xprintf.h (__attribute__): Likewise.
26939         * lib/xstrtol.h (__attribute__): Likewise.
26940         * lib/xvasprintf.h (__attribute__): Likewise.
26941
26942 2008-01-12  Bruno Haible  <bruno@clisp.org>
26943
26944         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26945         * doc/glibc-headers/a.out.texi: New file.
26946         * doc/glibc-headers/aliases.texi: New file.
26947         * doc/glibc-headers/alloca.texi: New file.
26948         * doc/glibc-headers/ar.texi: New file.
26949         * doc/glibc-headers/argp.texi: New file.
26950         * doc/glibc-headers/argz.texi: New file.
26951         * doc/glibc-headers/byteswap.texi: New file.
26952         * doc/glibc-headers/crypt.texi: New file.
26953         * doc/glibc-headers/endian.texi: New file.
26954         * doc/glibc-headers/envz.texi: New file.
26955         * doc/glibc-headers/err.texi: New file.
26956         * doc/glibc-headers/error.texi: New file.
26957         * doc/glibc-headers/execinfo.texi: New file.
26958         * doc/glibc-headers/fpu_control.texi: New file.
26959         * doc/glibc-headers/fstab.texi: New file.
26960         * doc/glibc-headers/fts.texi: New file.
26961         * doc/glibc-headers/getopt.texi: New file.
26962         * doc/glibc-headers/ieee754.texi: New file.
26963         * doc/glibc-headers/ifaddrs.texi: New file.
26964         * doc/glibc-headers/libintl.texi: New file.
26965         * doc/glibc-headers/mcheck.texi: New file.
26966         * doc/glibc-headers/mntent.texi: New file.
26967         * doc/glibc-headers/obstack.texi: New file.
26968         * doc/glibc-headers/paths.texi: New file.
26969         * doc/glibc-headers/printf.texi: New file.
26970         * doc/glibc-headers/pty.texi: New file.
26971         * doc/glibc-headers/resolv.texi: New file.
26972         * doc/glibc-headers/shadow.texi: New file.
26973         * doc/glibc-headers/sysexits.texi: New file.
26974         * doc/glibc-headers/ttyent.texi: New file.
26975
26976 2008-01-12  Jim Meyering  <meyering@redhat.com>
26977
26978         announce-gen: emit Gnulib's git-based version string.
26979         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26980         New option --gnulib-version=V, where V is expected to be
26981         the output of running git describe in the gnulib directory.
26982         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26983         not useful, and plan to stop publishing an xdelta file with each
26984         coreutils release.
26985
26986         * build-aux/announce-gen: Also check for lzma-compressed files.
26987
26988 2008-01-11  Bruno Haible  <bruno@clisp.org>
26989
26990         * tests/test-memmem.c (main): Increase maximum allowed time.
26991         * tests/test-strstr.c (main): Likewise.
26992
26993 2008-01-11  Bruno Haible  <bruno@clisp.org>
26994
26995         * doc/functions/memmem.texi: Add more precisions about platforms.
26996         * doc/functions/strstr.texi: Likewise.
26997
26998 2008-01-10  Eric Blake  <ebb9@byu.net>
26999
27000         * m4/strstr.m4: Delete cruft from copy-n-paste.
27001         Reported by Bruno Haible.
27002
27003 2008-01-10  Bruno Haible  <bruno@clisp.org>
27004
27005         Make c-strstr rely on strstr.
27006         * lib/c-strstr.c: Don't include str-kmp.h.
27007         (c_strstr): Define in terms of strstr.
27008         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27009         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27010
27011 2008-01-10  Bruno Haible  <bruno@clisp.org>
27012
27013         * doc/gnulib.texi (String Functions in C Locale): New section.
27014         * doc/c-ctype.texi: New file.
27015         * doc/c-strcase.texi: New file.
27016         * doc/c-strcaseeq.texi: New file.
27017         * doc/c-strcasestr.texi: New file.
27018         * doc/c-strstr.texi: New file.
27019         * doc/c-strtod.texi: New file.
27020         * doc/c-strtold.texi: New file.
27021
27022 2008-01-10  Eric Blake  <ebb9@byu.net>
27023
27024         * lib/relocatable.h: Fix a comment.
27025
27026 2008-01-10  Eric Blake  <ebb9@byu.net>
27027
27028         Share two-way algorithm.
27029         * lib/str-two-way.h: New file, merged from...
27030         * lib/memmem.c: ...here...
27031         * lib/strstr.c: ...and here.
27032         * modules/memmem (Files): Use it.
27033         * modules/strstr (Files): Likewise.
27034
27035         Avoid quadratic strstr implementations.
27036         * lib/strstr.c: New file.
27037         * m4/strstr.m4: Likewise.
27038         * modules/strstr: Likewise.
27039         * modules/strstr-tests: Likewise.
27040         * tests/test-strstr.c: Likewise.
27041         * lib/string.in.h (rpl_strstr): Declare.
27042         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27044         * modules/string (Makefile.am): Likewise.
27045         * MODULES.html.sh (string handling): Mention new module.
27046         * doc/functions/strstr.texi (strstr): Document the bug.
27047
27048 2008-01-10  Bruno Haible  <bruno@clisp.org>
27049
27050         * lib/relocatable.h (relocate): State whether result is freshly
27051         allocated or not.
27052         * lib/relocatable.c (relocate): Return a freshly allocated string
27053         instead of a pointer to a privately held string.
27054         Reported by Sylvain Beucler <beuc@gnu.org>.
27055
27056 2008-01-10  Colin Watson  <cjwatson@debian.org>
27057
27058         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27059         s/S_ISNLK/S_ISLNK/.
27060
27061 2008-01-09  Bruno Haible  <bruno@clisp.org>
27062
27063         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27064         and other files.
27065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27066         if it's only a guess.
27067         * modules/memmem: Simplify by depending on memmem-simple.
27068
27069 2008-01-09  Bruno Haible  <bruno@clisp.org>
27070
27071         Work around OpenBSD 4.0 tdelete() bug.
27072         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27073         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27074         macros and don't redefine the enum values.
27075         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27076         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27077         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27078
27079 2008-01-09  Bruno Haible  <bruno@clisp.org>
27080
27081         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27082         (main): Don't perform the tests if setlocale did not install a UTF-8
27083         locale. Needed on OpenBSD 4.0.
27084         * modules/wcwidth-tests (Depends-on): Add localcharset.
27085
27086 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27087
27088         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27089         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27090         * NEWS: announce this.
27091         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27092
27093 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27094         and Eric Blake  <ebb9@byu.net>
27095
27096         Add memmem-simple module.
27097         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27098         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27099         * modules/memmem-simple: New file.
27100         * modules/memmem (Description): Tweak.
27101         * MODULES.html.sh (string handling): Mention new module.
27102         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27103         addressed by memmem-simple.
27104         * NEWS: Document the difference.
27105
27106 2008-01-09  Eric Blake  <ebb9@byu.net>
27107
27108         Give gcc some memmem optimization hints.
27109         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27110         (strcasestr): Declare as pure.
27111         * modules/memmem (Maintainer): Claim my implementation.
27112
27113 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27114
27115         Support AIX 6.1 and higher.
27116         * build-aux/config.libpath: Likewise.
27117         * build-aux/config.rpath: Likewise.
27118
27119 2008-01-08  Jim Meyering  <meyering@redhat.com>
27120             Bruno Haible  <bruno@clisp.org>
27121
27122         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27123         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27124         Reported by Peter Fales in
27125         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27126
27127 2008-01-08  Bruno Haible  <bruno@clisp.org>
27128
27129         * modules/unictype/category-of (Depends-on): Add
27130         unictype/category-none.
27131         * modules/unictype/category-and-tests (Depends-on): Add
27132         unictype/category-{L,N,Lu,Nd}.
27133         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27134         * modules/unictype/category-or-tests (Depends-on): Add
27135         unictype/category-{L,N}.
27136         * modules/unictype/category-name-tests (Depends-on): Add
27137         unictype/category-{Z,Nl}.
27138         Reported by Simon Josefsson.
27139
27140 2008-01-08  Bruno Haible  <bruno@clisp.org>
27141
27142         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27143         convention better.
27144         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27145         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27146         Reported by Peter Miller <millerp@canb.auug.org.au>.
27147
27148 2008-01-08  Eric Blake  <ebb9@byu.net>
27149
27150         Rewrite memmem to guarantee linear complexity without malloc.
27151         * lib/memmem.c (memmem): Use Two-Way rather than
27152         Knuth-Morris-Pratt, to allow O(1) space usage.
27153         (critical_factorization, two_way_short_needle)
27154         (two_way_long_needle): New functions.
27155         (knuth_morris_pratt): Delete.
27156         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27157         Add stdint.
27158         * tests/test-memmem.c (main): Add tests for periodic needle and
27159         sublinear performance.
27160         * doc/functions/memmem.texi (memmem): Document other deficiencies
27161         in cygwin and older glibc.
27162
27163 2008-01-08  Bruno Haible  <bruno@clisp.org>
27164
27165         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27166         augmentation.
27167
27168 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27169
27170         Add a configure time option: --disable-acl.
27171         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27172         AC_ARG_ENABLE(acl).
27173
27174 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27175
27176         * tests/test-localename.c: Don't include obsolete "setenv.h".
27177
27178         * modules/localename-tests (Depends-on): Need unsetenv.
27179
27180 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27181
27182         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27183
27184 2008-01-06  Colin Watson  <cjwatson@debian.org>
27185
27186         * users.txt: Add man-db.
27187
27188 2008-01-07  Bruno Haible  <bruno@clisp.org>
27189
27190         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27191         previous section name.
27192
27193 2008-01-07  Bruno Haible  <bruno@clisp.org>
27194
27195         * lib/progname.c (set_program_name): Don't strip off a leading
27196         "lt-" prefix outside a .libs directory.
27197         Suggested by Paul Eggert.
27198
27199 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27200             Bruno Haible  <bruno@clisp.org>
27201
27202         Improve memory cleanup in 'relocatable' module.
27203         * lib/relocatable.h (compute_curr_prefix): Change return type to
27204         'char *'.
27205         * lib/relocatable.c (compute_curr_prefix): Change return type to
27206         'char *'. Free curr_installdir after use.
27207         (relocate): Free curr_prefix_better after use.
27208         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27209
27210 2008-01-01  Bruno Haible  <bruno@clisp.org>
27211
27212         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27213         failure on older glibc systems.
27214         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27215
27216 2008-01-05  Eric Blake  <ebb9@byu.net>
27217
27218         Avoid quadratic system memmem.
27219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27220         Reported by Ralf Wildenhues.
27221
27222         Fix memmem test for mingw.
27223         * modules/memmem-tests (configure.ac): Check for alarm.
27224         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27225         it.
27226         * doc/functions/memmem.texi: New file.
27227         * doc/gnulib.texi (Function Substitutes): Add memmem.
27228         Reported by Bruno Haible.
27229
27230 2008-01-04  Bruno Haible  <bruno@clisp.org>
27231
27232         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27233         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27234         gl_HEADER_STRING_H_DEFAULTS.
27235
27236 2008-01-04  Eric Blake  <ebb9@byu.net>
27237
27238         Shorten duration of memmem test.
27239         * tests/test-memmem.c (main): Use alarm to declare failure if test
27240         is taking too long.
27241         Reported by Ralf Wildenhues.
27242
27243 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27244
27245         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27246         string, needed by strerror.
27247
27248 2008-01-03  Colin Watson  <cjwatson@debian.org>
27249             Bruno Haible  <bruno@clisp.org>
27250
27251         * doc/gnulib-tool.texi (Localization): New section.
27252
27253 2008-01-02  Bruno Haible  <bruno@clisp.org>
27254
27255         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27256         variables to 'unsigned char *' type.
27257         Reported by Paul Eggert.
27258
27259 2008-01-02  Jim Meyering  <jim@meyering.net>
27260
27261         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27262
27263 2007-12-31  Jim Meyering  <jim@meyering.net>
27264
27265         Avoid use of private FTS type name.
27266         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27267
27268 2007-12-30  Karl Berry  <karl@gnu.org>
27269
27270         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27271         work around defect in Texinfo and/or the standalone Info browser.
27272
27273 2007-12-30  Bruno Haible  <bruno@clisp.org>
27274
27275         Unify 5 copies of the KMP code.
27276         * lib/str-kmp.h: New file.
27277         * lib/c-strcasestr.c: Include str-kmp.h.
27278         (knuth_morris_pratt): Remove function.
27279         (c_strcasestr): Update.
27280         * lib/c-strstr.c: Include str-kmp.h.
27281         (knuth_morris_pratt): Remove function.
27282         (c_strcasestr): Update.
27283         * lib/mbscasestr.c: Include str-kmp.h.
27284         (knuth_morris_pratt_unibyte): Remove function.
27285         * lib/mbsstr.c: Include str-kmp.h.
27286         (knuth_morris_pratt_unibyte): Remove function.
27287         * lib/strcasestr.c: Include str-kmp.h.
27288         (knuth_morris_pratt): Remove function.
27289         (strcasestr): Update.
27290         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27291         * modules/c-strstr (Files): Likewise.
27292         * modules/mbscasestr (Files): Likewise.
27293         * modules/mbsstr (Files): Likewise.
27294         * modules/strcasestr (Files): Likewise.
27295         Suggested by Paul Eggert.
27296
27297 2007-12-30  Bruno Haible  <bruno@clisp.org>
27298
27299         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27300         defined.
27301
27302 2007-12-30  Bruno Haible  <bruno@clisp.org>
27303
27304         * lib/xmalloca.h: Include xalloc.h.
27305         (xnmalloca): New macro.
27306
27307 2007-12-30  Bruno Haible  <bruno@clisp.org>
27308
27309         * lib/malloca.h (nmalloca): New macro.
27310         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27311         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27312         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27313         knuth_morris_pratt_multibyte): Likewise.
27314         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27315         knuth_morris_pratt_multibyte): Likewise.
27316         * lib/memmem.c (knuth_morris_pratt): Likewise.
27317         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27318
27319 2007-12-25  Bruno Haible  <bruno@clisp.org>
27320
27321         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27322         * lib/glob.c: Don't include openat.h.
27323         (link_exists2_p): Add back the code that deals with the
27324         !GLOB_ALTDIRFUNC case.
27325         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27326         let it do the filename concatenation.
27327         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27328         * modules/glob (Depends-on): Remove openat.
27329
27330 2007-12-31  Bruno Haible  <bruno@clisp.org>
27331
27332         * modules/dirfd (License): Change to LGPLv2+.
27333         Approved by Jim Meyering.
27334
27335 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27336
27337         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27338         when multiplying M by sizeof (size_t).
27339
27340 2007-12-10  Martin Lambers  <marlam@marlam.de>
27341
27342         Override getpagesize on mingw.
27343         * lib/getpagesize.c: New file.
27344         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27345         * modules/getpagesize (Files): Add lib/getpagesize.c.
27346         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27348         REPLACE_GETPAGESIZE.
27349         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27350
27351 2007-12-25  Bruno Haible  <bruno@clisp.org>
27352
27353         * modules/localcharset (Notice): New field.
27354         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27355         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27356
27357 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27358             Bruno Haible  <bruno@clisp.org>
27359
27360         Avoid using the syntax symbol() in formatted documentation.
27361         * MODULES.html.sh (func_module): When replacing symbol() with a
27362         hyperlink, remove the parentheses. Show an error if some remain.
27363         Recognize and render the '...' syntax.
27364         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27365         Rework. Add paragraph about GCC's inlining.
27366         * doc/alloca.texi: Likewise.
27367         * doc/error.texi: Remove parentheses from symbol reference.
27368         * doc/gnulib-intro.texi: Likewise.
27369         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27370         * modules/fnmatch (Description): Reword to say "the ... function".
27371         * modules/full-read (Description): Likewise.
27372         * modules/full-write (Description): Likewise.
27373         * modules/safe-read (Description): Likewise.
27374         * modules/safe-write (Description): Likewise.
27375         * modules/strchrnul (Description): Likewise.
27376         * modules/trim (Description): Likewise.
27377         * modules/error (Description): Remove parentheses from symbol
27378         references.
27379         * modules/verror (Description): Likewise.
27380         Reported by Karl Berry.
27381
27382 2007-12-25  Bruno Haible  <bruno@clisp.org>
27383
27384         Fixup after 2007-10-16 commit.
27385         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27386
27387 2007-12-24  Bruno Haible  <bruno@clisp.org>
27388
27389         Make --enable-relocatable work with DESTDIR.
27390         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27391         to compute installdir from destprog.
27392         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27393         also set the RELOC_DESTDIR variable.
27394         Reported by Левашев Иван <octagram@bluebottle.com>.
27395
27396 2007-12-24  Bruno Haible  <bruno@clisp.org>
27397
27398         Fix link error due to xalloc_die().
27399         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27400         of xreadlink.
27401         * lib/relocwrapper.c: Update comments.
27402         * build-aux/install-reloc: Remove xreadlink.c from file list.
27403         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27404         xreadlink.c.
27405         Reported by Левашев Иван <octagram@bluebottle.com>.
27406
27407 2007-12-24  Bruno Haible  <bruno@clisp.org>
27408
27409         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27410         * lib/setenv.h: Remove file.
27411         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27412         lib/setenv.h.
27413         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27414         (Depends-on): Add stdlib.
27415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27416         gl_FUNC_UNSETENV.
27417         (Include): Replace setenv.h with <stdlib.h>.
27418         * modules/unsetenv: New file.
27419         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27420         * lib/unsetenv.c: Include <stdlib.h> first.
27421         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27422         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27423         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27424         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27425         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27426         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27428         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27429         * doc/functions/unsetenv.texi: Update.
27430         * modules/xsetenv (Depends-on): Add unsetenv.
27431         * modules/getdate (Depends-on): Likewise.
27432         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27433         * lib/xsetenv.c: Don't include setenv.h.
27434         * lib/getdate.y: Likewise.
27435         * lib/relocwrapper.c: Likewise.
27436         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27437         (Depends-on): Add stdlib.
27438         * NEWS: Mention the changes.
27439         Reported by Левашев Иван <octagram@bluebottle.com>.
27440
27441 2007-12-23  Bruno Haible  <bruno@clisp.org>
27442
27443         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27444         indentation.
27445
27446 2007-12-23  Bruno Haible  <bruno@clisp.org>
27447
27448         * lib/c-strcasestr.c: Add more comments.
27449         * lib/c-strstr.c: Likewise.
27450         * lib/mbscasestr.c: Likewise.
27451         * lib/mbsstr.c: Likewise.
27452         * lib/strcasestr.c: Likewise.
27453         * lib/memmem.c: Likewise.
27454
27455 2007-12-23  Bruno Haible  <bruno@clisp.org>
27456
27457         * tests/test-memmem.c: Include <string.h> first.
27458
27459 2007-12-22  Bruno Haible  <bruno@clisp.org>
27460
27461         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27462         the contents of $testsbase.
27463         Reported by Ralf Wildenhues.
27464
27465 2007-12-22  Bruno Haible  <bruno@clisp.org>
27466
27467         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27468         two variables local_ldadd_before, local_ldadd_last.
27469
27470 2007-12-20  Eric Blake  <ebb9@byu.net>
27471
27472         Work around circular library issue when cross-compiling.
27473         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27474         that progname.o does not need to pull in rpl_memcmp.
27475
27476 2007-12-19  Eric Blake  <ebb9@byu.net>
27477
27478         Fix memmem to avoid O(n^2) worst-case complexity.
27479         * lib/memmem.c (knuth_morris_pratt): New function.
27480         (memmem): Use it if first few naive iterations fail.
27481         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27482         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27483         * modules/memchr (License): Likewise.
27484         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27485         malloca.
27486         * tests/test-memmem.c: Rewrite, borrowing ideas from
27487         test-mbsstr1.c; the old version wouldn't even compile!
27488         * modules/memmem-tests: New file.
27489         * lib/string.in.h (rpl_memmem): Add declaration.
27490         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27492         REPLACE_MEMMEM.
27493
27494 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27495
27496         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27497         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27498         before any system include files, and undef after them all.  This
27499         should fix a problem on VMS reported by John E. Malmberg in
27500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27501
27502 2007-12-17  Eric Blake  <ebb9@byu.net>
27503
27504         Revert addition of verify, for BSD/OS.
27505         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27506         can't handle large files, for the sake of obsolete platforms.
27507         * modules/fseeko (Depends-on): Remove verify.
27508         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27509         * doc/functions/ftello.texi (ftello): Likewise.
27510         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27511         Reported by Larry Jones.
27512
27513 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27514
27515         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27516         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27517
27518 2007-12-17  Jim Meyering  <meyering@redhat.com>
27519
27520         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27521         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27522         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27523         * modules/getcwd (Depends-on): Add openat.
27524         Reported by Petr Salinger.
27525
27526 2007-12-17  Bruno Haible  <bruno@clisp.org>
27527
27528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27529         avoid a segmentation fault of the configure test on x86_64 systems.
27530
27531 2007-12-15  Jim Meyering  <meyering@redhat.com>
27532
27533         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27534
27535 2007-12-13  Eric Blake  <ebb9@byu.net>
27536
27537         Another fseek test.
27538         * tests/test-fseek.c (main): Also test ungetc handling.
27539         * tests/test-fseeko.c (main): Likewise.
27540         * modules/fseeko (Depends-on): Add verify.
27541         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27542         large.
27543         Reported by Larry Jones.
27544
27545         Fix fseeko on mingw.
27546         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27547         seek.
27548
27549         Beef up fseek tests.
27550         * tests/test-fseek.c (main): Also test eof handling.
27551         * tests/test-fseeko.c (main): Likewise.
27552         Reported by Larry Jones.
27553
27554 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27555
27556         Fix fseeko on BSD-based platforms.
27557         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27558         successful seek.
27559
27560 2007-12-12  Eric Blake  <ebb9@byu.net>
27561
27562         Allow circular dependency of separate libtests.a
27563         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27564         when use_libtests.
27565
27566 2007-12-11  Eric Blake  <ebb9@byu.net>
27567
27568         Fix bug with -0.0L in previous patch.
27569         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27570         * tests/test-isnan.c (main): Also test on zeroes.
27571         * tests/test-isnanf.c (main): Likewise.
27572         * tests/test-isnanl.h (main): Likewise.
27573
27574         Detect pseudo-denormals on x86 even when cross-compiling.
27575         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27576         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27577         invalid bit patterns that happen to satisfy ==.
27578
27579         Avoid link failures with separate libtests.a.
27580         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27581         last, to satisfy circular dependencies.
27582
27583 2007-12-11  Eric Blake  <ebb9@byu.net>
27584         and Bruno Haible  <bruno@clisp.org>
27585
27586         Fix OpenBSD 4.0 <float.h> handling of long double.
27587         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27588         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27589         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27590
27591 2007-12-11  Jim Meyering  <meyering@redhat.com>
27592
27593         * users.txt: Add libvirt.
27594
27595         Support versions of autoconf prior to 2.59c.
27596         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27597         if it is not already defined.
27598
27599 2007-12-09  Bruno Haible  <bruno@clisp.org>
27600
27601         Let 'gnulib-tool --import' collect sources needed for the tests in
27602         tests/ rather than in lib/.
27603         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27604         argument. If true, add rules to generate libtests.a, and put libtests.a
27605         into $(LDADD). Consider source files in subdirectories and set
27606         uses_subdirs.
27607         (func_emit_initmacro_start, func_emit_initmacro_end,
27608         func_emit_initmacro_done): Pass all arguments explicitly.
27609         (func_import): Determine two module lists main_modules,
27610         testsrelated_modules. Determine use_libtests. Determine two variables
27611         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27612         instead of just sed_transform_lib_file. Determine two variables
27613         main_files and testsrelated_files. Compute 'files' as the union of
27614         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27615         func_add_or_update. In the generated gnulib-comp.m4, collect the
27616         object files for tests/ in different variables than those for lib/.
27617         Substitute LIBTESTS_LIBDEPS.
27618         (func_create_testdir): Combine the uses_subdirs results from
27619         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27620
27621 2007-12-09  Bruno Haible  <bruno@clisp.org>
27622
27623         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27624         the build-aux directory.
27625
27626 2007-12-09  Bruno Haible  <bruno@clisp.org>
27627
27628         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27629         introduced on 2006-09-09.
27630
27631 2007-12-07  Jim Meyering  <meyering@redhat.com>
27632
27633         Let these macros work also with autoconf-2.59.
27634         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27635         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27636         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27637
27638 2007-12-06  Jim Meyering  <meyering@redhat.com>
27639
27640         Avoid a configure-time syntax error in gl_FUNC_ACL.
27641         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
27642         function in each branch, before testing the cache variable.
27643
27644 2007-12-04  Eric Blake  <ebb9@byu.net>
27645
27646         Make scripts executable.
27647         * build-aux/config.guess: Add execute permissions.
27648         * build-aux/config.sub: Likewise.
27649         * build-aux/gendocs.sh: Likewise.
27650
27651         Fix frexp on mingw.
27652         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
27653         cross-compiling.
27654         * doc/functions/frexp.texi (frexp): Document the bug.
27655
27656         Make cygwin fseeko check more reliable.
27657         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27658         version numbers, rather than unrelated feature check.
27659         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27660         * doc/functions/ftello.texi (ftello): Likewise.
27661         Reported by Bruno Haible.
27662
27663         * m4/strerror.m4: Bump version number.
27664
27665 2007-12-03  Bruno Haible  <bruno@clisp.org>
27666
27667         * doc/functions/mprotect.texi: Mention the mingw problem.
27668
27669 2007-12-03  Eric Blake  <ebb9@byu.net>
27670
27671         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27672         REPLACE_STRERROR is initialized before this macro.
27673
27674 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27675
27676         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27677         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27678         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27679         put -lsec in even for programs other than 'ls'.  This fixes a problem
27680         for gettext reported by Bruno Haible in
27681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27682         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27683         Add support for Solaris 10.  This isn't efficient, but should get the
27684         job done for now.
27685
27686 2007-12-03  James Youngman  <jay@gnu.org>
27687
27688         * doc/regexprops-generic.texi: change "an close-group" to "a
27689         close-group" and "illegal" to "not allowed".
27690
27691 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27692
27693         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27694         pr_byname.h. Needed for the rare case when the maintainer has done
27695         "make maintainer-clean" in the source directory and then attempts a
27696         build outside the source directory.
27697         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27698         scripts_byname.h.
27699
27700 2007-12-02  Martin Lambers <marlam@marlam.de>
27701             Bruno Haible  <bruno@clisp.org>
27702
27703         * lib/getpagesize.h: Remove file.
27704         * lib/unistd.in.h: Include declaration of getpagesize here.
27705         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27706         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27707         HAVE_SYS_PARAM_H.
27708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27709         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27710         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27711         (Depends-on): Add unistd.
27712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27713         (Include): Use <unistd.h> instead of getpagesize.h.
27714         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27715         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27716         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27717         gl_GETPAGESIZE invocation, already handled by module dependency.
27718         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27719
27720 2007-12-02  Bruno Haible  <bruno@clisp.org>
27721
27722         * modules/strings-tests: New file.
27723         * tests/test-strings.c: New file.
27724
27725         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27726         * lib/strings.in.h: New file.
27727         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27728         * m4/strings_h.m4: New file.
27729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27730         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27731         * modules/strings: New file.
27732         * modules/string (Makefile.am): Update.
27733         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27734         Reported by Karl Berry.
27735
27736 2007-12-01  Eric Blake  <ebb9@byu.net>
27737
27738         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27739         accomodate fix in cygwin 1.5.25.
27740
27741 2007-12-01  Jim Meyering  <meyering@redhat.com>
27742
27743         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27744         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27745         that would inhibit utf8-optimization of a regexp containing line-
27746         or buffer-anchors, e.g., `^', `$'.
27747
27748 2007-11-30  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27751         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27752         glthread_recursive_lock_init.
27753         * lib/lock.c (glthread_recursive_lock_init)
27754         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27755         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27756
27757 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27758
27759         New function qset_acl, like set_acl but with syscall semantics.
27760         * lib/acl.h (qset_acl): New decl.
27761         * lib/acl.c (qset_acl): New function.
27762         (set_acl): Use new function.  Use more-consistent diagnostics.
27763
27764 2007-11-28  Jim Meyering  <meyering@redhat.com>
27765
27766         * modules/physmem (License): Change from GPL to LGPLv2+.
27767
27768 2007-11-26  Bruno Haible  <bruno@clisp.org>
27769
27770         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27771         'long double' type has excess precision.
27772         Reported by Jim Meyering in
27773         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27774
27775 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27776
27777         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27778         Sync from <http://gnu.org/licenses>.
27779         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27780         with license text from same location.
27781         * doc/maintain.texi, doc/standards.texi:  Sync from
27782         <http://savannah.gnu.org/projects/gnustandards>.
27783
27784 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
27785         and Jim Meyering  <meyering@redhat.com>
27786
27787         Adjust getdate' grammar to accept a slightly more regular language.
27788         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27789         Before, the former was rejected.
27790         * lib/getdate.y (digits_to_date_time): New function, factored
27791         out of ...
27792         (number): ...here.  Just call digits_to_date_time.
27793         (hybrid): New non-terminal to handle an <unsigned number,
27794         signed relative offset> sequence consistently.
27795
27796 2007-11-18  Jim Meyering  <meyering@redhat.com>
27797
27798         Pull my changes from coreutils:
27799         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27800         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27801         use of $gnulib_tool_option_extras, so that it's separated from the
27802         preceding argument.
27803
27804         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27805         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27806         parent destination directories before copying a file into place.
27807
27808 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27809
27810         bootstrap: work also with 4-argument variant of AC_INIT
27811         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27812
27813 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27814
27815         Port test-getaddrinfo to Solaris.
27816         Problem reported by Bruno Haible in
27817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27818         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27819         explanation of setting 'hints'.
27820         Don't reject an implementation merely because it returns EAI_SERVICE.
27821         (EAI_SERVICE): Define to 0 if not defined.
27822
27823 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27824
27825         The license of gnu-make and posix-shell is now "GPLed build tool".
27826         * modules/gnu-make (License): Likewise.
27827         * modules/posix-shell (License): Likewise.
27828
27829         New module posix-shell, for determining a POSIX shell
27830         or perhaps something that is close enough to a POSIX shell.
27831         * m4/posix-shell.m4: New file.
27832         * modules/posix-shell: New file.
27833
27834         * MODULES.html.sh: Mention new module.
27835
27836         New module gnu-make, for determining whether we're using GNU Make.
27837         * m4/gnu-make.m4: New file.
27838         * modules/gnu-make: New file.
27839         * MODULES.html.sh: Mention new module.
27840
27841 2007-11-14  Jim Meyering  <meyering@redhat.com>
27842
27843         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27844         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27845         use this macro to create a function _definition_.
27846         Remove useless "#undef ARGMATCH_DIE".
27847
27848 2007-11-14  Bruno Haible  <bruno@clisp.org>
27849
27850         * lib/config.charset: Update for OpenBSD 4.1.
27851         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27852
27853 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27854
27855         Document 64-bit #if problems in stdint.texi.
27856         * doc/headers/stdint.texi (stdint.h): Mention problems with
27857         64-bit-#if, and how to work around them.
27858
27859         Don't insist on 'long long int' support in the preprocessor.  It
27860         breaks too many things.  For example, PRIdMAX still uses a 'long
27861         long int' format with the latest Sun compiler, even though
27862         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27863         preprocessor problem.  This causes the latest coreutils to dump
27864         core on Solaris 10 sparc with the Sun C compiler.
27865         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27866         the troublesome expressions at configure-time, not at #if-time.
27867         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27868         preprocessor.
27869         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27870         compile-time C checks, done at 'configure'-time.
27871         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27872         * modules/inttypes (Makefile): Substitute the new symbols that
27873         gl_INTTYPES_H now generates.
27874         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27875
27876 2007-11-12  Bruno Haible  <bruno@clisp.org>
27877
27878         Tests for Unicode character classification functions.
27879
27880         * modules/unictype/bidicategory-byname-tests: New file.
27881         * modules/unictype/bidicategory-name-tests: New file.
27882         * modules/unictype/bidicategory-of-tests: New file.
27883         * modules/unictype/bidicategory-test-tests: New file.
27884         * modules/unictype/block-list-tests: New file.
27885         * modules/unictype/block-of-tests: New file.
27886         * modules/unictype/block-test-tests: New file.
27887         * modules/unictype/category-C-tests: New file.
27888         * modules/unictype/category-Cc-tests: New file.
27889         * modules/unictype/category-Cf-tests: New file.
27890         * modules/unictype/category-Cn-tests: New file.
27891         * modules/unictype/category-Co-tests: New file.
27892         * modules/unictype/category-Cs-tests: New file.
27893         * modules/unictype/category-L-tests: New file.
27894         * modules/unictype/category-Ll-tests: New file.
27895         * modules/unictype/category-Lm-tests: New file.
27896         * modules/unictype/category-Lo-tests: New file.
27897         * modules/unictype/category-Lt-tests: New file.
27898         * modules/unictype/category-Lu-tests: New file.
27899         * modules/unictype/category-M-tests: New file.
27900         * modules/unictype/category-Mc-tests: New file.
27901         * modules/unictype/category-Me-tests: New file.
27902         * modules/unictype/category-Mn-tests: New file.
27903         * modules/unictype/category-N-tests: New file.
27904         * modules/unictype/category-Nd-tests: New file.
27905         * modules/unictype/category-Nl-tests: New file.
27906         * modules/unictype/category-No-tests: New file.
27907         * modules/unictype/category-P-tests: New file.
27908         * modules/unictype/category-Pc-tests: New file.
27909         * modules/unictype/category-Pd-tests: New file.
27910         * modules/unictype/category-Pe-tests: New file.
27911         * modules/unictype/category-Pf-tests: New file.
27912         * modules/unictype/category-Pi-tests: New file.
27913         * modules/unictype/category-Po-tests: New file.
27914         * modules/unictype/category-Ps-tests: New file.
27915         * modules/unictype/category-S-tests: New file.
27916         * modules/unictype/category-Sc-tests: New file.
27917         * modules/unictype/category-Sk-tests: New file.
27918         * modules/unictype/category-Sm-tests: New file.
27919         * modules/unictype/category-So-tests: New file.
27920         * modules/unictype/category-Z-tests: New file.
27921         * modules/unictype/category-Zl-tests: New file.
27922         * modules/unictype/category-Zp-tests: New file.
27923         * modules/unictype/category-Zs-tests: New file.
27924         * modules/unictype/category-and-not-tests: New file.
27925         * modules/unictype/category-and-tests: New file.
27926         * modules/unictype/category-byname-tests: New file.
27927         * modules/unictype/category-name-tests: New file.
27928         * modules/unictype/category-none-tests: New file.
27929         * modules/unictype/category-of-tests: New file.
27930         * modules/unictype/category-or-tests: New file.
27931         * modules/unictype/category-test-withtable-tests: New file.
27932         * modules/unictype/combining-class-tests: New file.
27933         * modules/unictype/ctype-alnum-tests: New file.
27934         * modules/unictype/ctype-alpha-tests: New file.
27935         * modules/unictype/ctype-blank-tests: New file.
27936         * modules/unictype/ctype-cntrl-tests: New file.
27937         * modules/unictype/ctype-digit-tests: New file.
27938         * modules/unictype/ctype-graph-tests: New file.
27939         * modules/unictype/ctype-lower-tests: New file.
27940         * modules/unictype/ctype-print-tests: New file.
27941         * modules/unictype/ctype-punct-tests: New file.
27942         * modules/unictype/ctype-space-tests: New file.
27943         * modules/unictype/ctype-upper-tests: New file.
27944         * modules/unictype/ctype-xdigit-tests: New file.
27945         * modules/unictype/decimal-digit-tests: New file.
27946         * modules/unictype/digit-tests: New file.
27947         * modules/unictype/mirror-tests: New file.
27948         * modules/unictype/numeric-tests: New file.
27949         * modules/unictype/property-alphabetic-tests: New file.
27950         * modules/unictype/property-ascii-hex-digit-tests: New file.
27951         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27952         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27953         * modules/unictype/property-bidi-block-separator-tests: New file.
27954         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27955         * modules/unictype/property-bidi-common-separator-tests: New file.
27956         * modules/unictype/property-bidi-control-tests: New file.
27957         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27958         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27959         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27960         * modules/unictype/property-bidi-european-digit-tests: New file.
27961         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27962         * modules/unictype/property-bidi-left-to-right-tests: New file.
27963         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27964         * modules/unictype/property-bidi-other-neutral-tests: New file.
27965         * modules/unictype/property-bidi-pdf-tests: New file.
27966         * modules/unictype/property-bidi-segment-separator-tests: New file.
27967         * modules/unictype/property-bidi-whitespace-tests: New file.
27968         * modules/unictype/property-byname-tests: New file.
27969         * modules/unictype/property-combining-tests: New file.
27970         * modules/unictype/property-composite-tests: New file.
27971         * modules/unictype/property-currency-symbol-tests: New file.
27972         * modules/unictype/property-dash-tests: New file.
27973         * modules/unictype/property-decimal-digit-tests: New file.
27974         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27975         * modules/unictype/property-deprecated-tests: New file.
27976         * modules/unictype/property-diacritic-tests: New file.
27977         * modules/unictype/property-extender-tests: New file.
27978         * modules/unictype/property-format-control-tests: New file.
27979         * modules/unictype/property-grapheme-base-tests: New file.
27980         * modules/unictype/property-grapheme-extend-tests: New file.
27981         * modules/unictype/property-grapheme-link-tests: New file.
27982         * modules/unictype/property-hex-digit-tests: New file.
27983         * modules/unictype/property-hyphen-tests: New file.
27984         * modules/unictype/property-id-continue-tests: New file.
27985         * modules/unictype/property-id-start-tests: New file.
27986         * modules/unictype/property-ideographic-tests: New file.
27987         * modules/unictype/property-ids-binary-operator-tests: New file.
27988         * modules/unictype/property-ids-trinary-operator-tests: New file.
27989         * modules/unictype/property-ignorable-control-tests: New file.
27990         * modules/unictype/property-iso-control-tests: New file.
27991         * modules/unictype/property-join-control-tests: New file.
27992         * modules/unictype/property-left-of-pair-tests: New file.
27993         * modules/unictype/property-line-separator-tests: New file.
27994         * modules/unictype/property-logical-order-exception-tests: New file.
27995         * modules/unictype/property-lowercase-tests: New file.
27996         * modules/unictype/property-math-tests: New file.
27997         * modules/unictype/property-non-break-tests: New file.
27998         * modules/unictype/property-not-a-character-tests: New file.
27999         * modules/unictype/property-numeric-tests: New file.
28000         * modules/unictype/property-other-alphabetic-tests: New file.
28001         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28002         * modules/unictype/property-other-grapheme-extend-tests: New file.
28003         * modules/unictype/property-other-id-continue-tests: New file.
28004         * modules/unictype/property-other-id-start-tests: New file.
28005         * modules/unictype/property-other-lowercase-tests: New file.
28006         * modules/unictype/property-other-math-tests: New file.
28007         * modules/unictype/property-other-uppercase-tests: New file.
28008         * modules/unictype/property-paired-punctuation-tests: New file.
28009         * modules/unictype/property-paragraph-separator-tests: New file.
28010         * modules/unictype/property-pattern-syntax-tests: New file.
28011         * modules/unictype/property-pattern-white-space-tests: New file.
28012         * modules/unictype/property-private-use-tests: New file.
28013         * modules/unictype/property-punctuation-tests: New file.
28014         * modules/unictype/property-quotation-mark-tests: New file.
28015         * modules/unictype/property-radical-tests: New file.
28016         * modules/unictype/property-sentence-terminal-tests: New file.
28017         * modules/unictype/property-soft-dotted-tests: New file.
28018         * modules/unictype/property-space-tests: New file.
28019         * modules/unictype/property-terminal-punctuation-tests: New file.
28020         * modules/unictype/property-test-tests: New file.
28021         * modules/unictype/property-titlecase-tests: New file.
28022         * modules/unictype/property-unassigned-code-value-tests: New file.
28023         * modules/unictype/property-unified-ideograph-tests: New file.
28024         * modules/unictype/property-uppercase-tests: New file.
28025         * modules/unictype/property-variation-selector-tests: New file.
28026         * modules/unictype/property-white-space-tests: New file.
28027         * modules/unictype/property-xid-continue-tests: New file.
28028         * modules/unictype/property-xid-start-tests: New file.
28029         * modules/unictype/property-zero-width-tests: New file.
28030         * modules/unictype/scripts-tests: New file.
28031         * modules/unictype/syntax-c-ident-tests: New file.
28032         * modules/unictype/syntax-c-whitespace-tests: New file.
28033         * modules/unictype/syntax-java-ident-tests: New file.
28034         * modules/unictype/syntax-java-whitespace-tests: New file.
28035         * tests/unictype/test-bidi_byname.c: New file.
28036         * tests/unictype/test-bidi_name.c: New file.
28037         * tests/unictype/test-bidi_of.c: New file.
28038         * tests/unictype/test-bidi_test.c: New file.
28039         * tests/unictype/test-block_list.c: New file.
28040         * tests/unictype/test-block_of.c: New file.
28041         * tests/unictype/test-block_test.c: New file.
28042         * tests/unictype/test-categ_and.c: New file.
28043         * tests/unictype/test-categ_and_not.c: New file.
28044         * tests/unictype/test-categ_byname.c: New file.
28045         * tests/unictype/test-categ_name.c: New file.
28046         * tests/unictype/test-categ_none.c: New file.
28047         * tests/unictype/test-categ_of.c: New file.
28048         * tests/unictype/test-categ_or.c: New file.
28049         * tests/unictype/test-categ_test_withtable.c: New file.
28050         * tests/unictype/test-combining.c: New file.
28051         * tests/unictype/test-decdigit.c: New file.
28052         * tests/unictype/test-digit.c: New file.
28053         * tests/unictype/test-mirror.c: New file.
28054         * tests/unictype/test-numeric.c: New file.
28055         * tests/unictype/test-pr_byname.c: New file.
28056         * tests/unictype/test-pr_test.c: New file.
28057         * tests/unictype/test-predicate-part1.h: New file.
28058         * tests/unictype/test-predicate-part2.h: New file.
28059         * tests/unictype/test-scripts.c: New file.
28060         * tests/unictype/test-sy_c_ident.c: New file.
28061         * tests/unictype/test-sy_java_ident.c: New file.
28062
28063         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28064         for Unicode 5.0.0.
28065         * tests/unictype/test-categ_Cc.c: Likewise.
28066         * tests/unictype/test-categ_Cf.c: Likewise.
28067         * tests/unictype/test-categ_Cn.c: Likewise.
28068         * tests/unictype/test-categ_Co.c: Likewise.
28069         * tests/unictype/test-categ_Cs.c: Likewise.
28070         * tests/unictype/test-categ_L.c: Likewise.
28071         * tests/unictype/test-categ_Ll.c: Likewise.
28072         * tests/unictype/test-categ_Lm.c: Likewise.
28073         * tests/unictype/test-categ_Lo.c: Likewise.
28074         * tests/unictype/test-categ_Lt.c: Likewise.
28075         * tests/unictype/test-categ_Lu.c: Likewise.
28076         * tests/unictype/test-categ_M.c: Likewise.
28077         * tests/unictype/test-categ_Mc.c: Likewise.
28078         * tests/unictype/test-categ_Me.c: Likewise.
28079         * tests/unictype/test-categ_Mn.c: Likewise.
28080         * tests/unictype/test-categ_N.c: Likewise.
28081         * tests/unictype/test-categ_Nd.c: Likewise.
28082         * tests/unictype/test-categ_Nl.c: Likewise.
28083         * tests/unictype/test-categ_No.c: Likewise.
28084         * tests/unictype/test-categ_P.c: Likewise.
28085         * tests/unictype/test-categ_Pc.c: Likewise.
28086         * tests/unictype/test-categ_Pd.c: Likewise.
28087         * tests/unictype/test-categ_Pe.c: Likewise.
28088         * tests/unictype/test-categ_Pf.c: Likewise.
28089         * tests/unictype/test-categ_Pi.c: Likewise.
28090         * tests/unictype/test-categ_Po.c: Likewise.
28091         * tests/unictype/test-categ_Ps.c: Likewise.
28092         * tests/unictype/test-categ_S.c: Likewise.
28093         * tests/unictype/test-categ_Sc.c: Likewise.
28094         * tests/unictype/test-categ_Sk.c: Likewise.
28095         * tests/unictype/test-categ_Sm.c: Likewise.
28096         * tests/unictype/test-categ_So.c: Likewise.
28097         * tests/unictype/test-categ_Z.c: Likewise.
28098         * tests/unictype/test-categ_Zl.c: Likewise.
28099         * tests/unictype/test-categ_Zp.c: Likewise.
28100         * tests/unictype/test-categ_Zs.c: Likewise.
28101         * tests/unictype/test-ctype_alnum.c: Likewise.
28102         * tests/unictype/test-ctype_alpha.c: Likewise.
28103         * tests/unictype/test-ctype_blank.c: Likewise.
28104         * tests/unictype/test-ctype_cntrl.c: Likewise.
28105         * tests/unictype/test-ctype_digit.c: Likewise.
28106         * tests/unictype/test-ctype_graph.c: Likewise.
28107         * tests/unictype/test-ctype_lower.c: Likewise.
28108         * tests/unictype/test-ctype_print.c: Likewise.
28109         * tests/unictype/test-ctype_punct.c: Likewise.
28110         * tests/unictype/test-ctype_space.c: Likewise.
28111         * tests/unictype/test-ctype_upper.c: Likewise.
28112         * tests/unictype/test-ctype_xdigit.c: Likewise.
28113         * tests/unictype/test-decdigit.h: Likewise.
28114         * tests/unictype/test-digit.h: Likewise.
28115         * tests/unictype/test-numeric.h: Likewise.
28116         * tests/unictype/test-pr_alphabetic.c: Likewise.
28117         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28118         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28119         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28120         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28121         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28122         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28123         * tests/unictype/test-pr_bidi_control.c: Likewise.
28124         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28125         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28126         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28127         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28128         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28129         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28130         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28131         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28132         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28133         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28134         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28135         * tests/unictype/test-pr_combining.c: Likewise.
28136         * tests/unictype/test-pr_composite.c: Likewise.
28137         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28138         * tests/unictype/test-pr_dash.c: Likewise.
28139         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28140         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28141         * tests/unictype/test-pr_deprecated.c: Likewise.
28142         * tests/unictype/test-pr_diacritic.c: Likewise.
28143         * tests/unictype/test-pr_extender.c: Likewise.
28144         * tests/unictype/test-pr_format_control.c: Likewise.
28145         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28146         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28147         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28148         * tests/unictype/test-pr_hex_digit.c: Likewise.
28149         * tests/unictype/test-pr_hyphen.c: Likewise.
28150         * tests/unictype/test-pr_id_continue.c: Likewise.
28151         * tests/unictype/test-pr_id_start.c: Likewise.
28152         * tests/unictype/test-pr_ideographic.c: Likewise.
28153         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28154         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28155         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28156         * tests/unictype/test-pr_iso_control.c: Likewise.
28157         * tests/unictype/test-pr_join_control.c: Likewise.
28158         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28159         * tests/unictype/test-pr_line_separator.c: Likewise.
28160         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28161         * tests/unictype/test-pr_lowercase.c: Likewise.
28162         * tests/unictype/test-pr_math.c: Likewise.
28163         * tests/unictype/test-pr_non_break.c: Likewise.
28164         * tests/unictype/test-pr_not_a_character.c: Likewise.
28165         * tests/unictype/test-pr_numeric.c: Likewise.
28166         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28167         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28168         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28169         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28170         * tests/unictype/test-pr_other_id_start.c: Likewise.
28171         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28172         * tests/unictype/test-pr_other_math.c: Likewise.
28173         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28174         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28175         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28176         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28177         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28178         * tests/unictype/test-pr_private_use.c: Likewise.
28179         * tests/unictype/test-pr_punctuation.c: Likewise.
28180         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28181         * tests/unictype/test-pr_radical.c: Likewise.
28182         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28183         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28184         * tests/unictype/test-pr_space.c: Likewise.
28185         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28186         * tests/unictype/test-pr_titlecase.c: Likewise.
28187         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28188         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28189         * tests/unictype/test-pr_uppercase.c: Likewise.
28190         * tests/unictype/test-pr_variation_selector.c: Likewise.
28191         * tests/unictype/test-pr_white_space.c: Likewise.
28192         * tests/unictype/test-pr_xid_continue.c: Likewise.
28193         * tests/unictype/test-pr_xid_start.c: Likewise.
28194         * tests/unictype/test-pr_zero_width.c: Likewise.
28195         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28196         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28197
28198 2007-11-12  Bruno Haible  <bruno@clisp.org>
28199
28200         Unicode character classification functions.
28201         * lib/unictype.h: New file.
28202         * modules/unictype/base: New file.
28203         * modules/unictype/category-L: New file.
28204         * modules/unictype/category-Lu: New file.
28205         * modules/unictype/category-Ll: New file.
28206         * modules/unictype/category-Lt: New file.
28207         * modules/unictype/category-Lm: New file.
28208         * modules/unictype/category-Lo: New file.
28209         * modules/unictype/category-M: New file.
28210         * modules/unictype/category-Mn: New file.
28211         * modules/unictype/category-Mc: New file.
28212         * modules/unictype/category-Me: New file.
28213         * modules/unictype/category-N: New file.
28214         * modules/unictype/category-Nd: New file.
28215         * modules/unictype/category-Nl: New file.
28216         * modules/unictype/category-No: New file.
28217         * modules/unictype/category-P: New file.
28218         * modules/unictype/category-Pc: New file.
28219         * modules/unictype/category-Pd: New file.
28220         * modules/unictype/category-Ps: New file.
28221         * modules/unictype/category-Pe: New file.
28222         * modules/unictype/category-Pi: New file.
28223         * modules/unictype/category-Pf: New file.
28224         * modules/unictype/category-Po: New file.
28225         * modules/unictype/category-S: New file.
28226         * modules/unictype/category-Sm: New file.
28227         * modules/unictype/category-Sc: New file.
28228         * modules/unictype/category-Sk: New file.
28229         * modules/unictype/category-So: New file.
28230         * modules/unictype/category-Z: New file.
28231         * modules/unictype/category-Zs: New file.
28232         * modules/unictype/category-Zl: New file.
28233         * modules/unictype/category-Zp: New file.
28234         * modules/unictype/category-C: New file.
28235         * modules/unictype/category-Cc: New file.
28236         * modules/unictype/category-Cf: New file.
28237         * modules/unictype/category-Cs: New file.
28238         * modules/unictype/category-Co: New file.
28239         * modules/unictype/category-Cn: New file.
28240         * modules/unictype/category-or: New file.
28241         * modules/unictype/category-of: New file.
28242         * modules/unictype/category-test: New file.
28243         * modules/unictype/category-test-withtable: New file.
28244         * modules/unictype/category-byname: New file.
28245         * modules/unictype/category-none: New file.
28246         * modules/unictype/category-and: New file.
28247         * modules/unictype/category-and-not: New file.
28248         * modules/unictype/category-name: New file.
28249         * modules/unictype/combining-class: New file.
28250         * modules/unictype/category-all: New file.
28251         * modules/unictype/bidicategory-all: New file.
28252         * modules/unictype/bidicategory-byname: New file.
28253         * modules/unictype/bidicategory-name: New file.
28254         * modules/unictype/bidicategory-of: New file.
28255         * modules/unictype/bidicategory-test: New file.
28256         * modules/unictype/decimal-digit: New file.
28257         * modules/unictype/digit: New file.
28258         * modules/unictype/numeric: New file.
28259         * modules/unictype/mirror: New file.
28260         * modules/unictype/property-white-space: New file.
28261         * modules/unictype/property-alphabetic: New file.
28262         * modules/unictype/property-other-alphabetic: New file.
28263         * modules/unictype/property-not-a-character: New file.
28264         * modules/unictype/property-default-ignorable-code-point: New file.
28265         * modules/unictype/property-other-default-ignorable-code-point: New
28266         file.
28267         * modules/unictype/property-deprecated: New file.
28268         * modules/unictype/property-logical-order-exception: New file.
28269         * modules/unictype/property-variation-selector: New file.
28270         * modules/unictype/property-private-use: New file.
28271         * modules/unictype/property-unassigned-code-value: New file.
28272         * modules/unictype/property-uppercase: New file.
28273         * modules/unictype/property-other-uppercase: New file.
28274         * modules/unictype/property-lowercase: New file.
28275         * modules/unictype/property-other-lowercase: New file.
28276         * modules/unictype/property-titlecase: New file.
28277         * modules/unictype/property-soft-dotted: New file.
28278         * modules/unictype/property-id-start: New file.
28279         * modules/unictype/property-other-id-start: New file.
28280         * modules/unictype/property-id-continue: New file.
28281         * modules/unictype/property-other-id-continue: New file.
28282         * modules/unictype/property-xid-start: New file.
28283         * modules/unictype/property-xid-continue: New file.
28284         * modules/unictype/property-pattern-white-space: New file.
28285         * modules/unictype/property-pattern-syntax: New file.
28286         * modules/unictype/property-join-control: New file.
28287         * modules/unictype/property-grapheme-base: New file.
28288         * modules/unictype/property-grapheme-extend: New file.
28289         * modules/unictype/property-other-grapheme-extend: New file.
28290         * modules/unictype/property-grapheme-link: New file.
28291         * modules/unictype/property-bidi-control: New file.
28292         * modules/unictype/property-bidi-left-to-right: New file.
28293         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28294         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28295         * modules/unictype/property-bidi-european-digit: New file.
28296         * modules/unictype/property-bidi-eur-num-separator: New file.
28297         * modules/unictype/property-bidi-eur-num-terminator: New file.
28298         * modules/unictype/property-bidi-arabic-digit: New file.
28299         * modules/unictype/property-bidi-common-separator: New file.
28300         * modules/unictype/property-bidi-block-separator: New file.
28301         * modules/unictype/property-bidi-segment-separator: New file.
28302         * modules/unictype/property-bidi-whitespace: New file.
28303         * modules/unictype/property-bidi-non-spacing-mark: New file.
28304         * modules/unictype/property-bidi-boundary-neutral: New file.
28305         * modules/unictype/property-bidi-pdf: New file.
28306         * modules/unictype/property-bidi-embedding-or-override: New file.
28307         * modules/unictype/property-bidi-other-neutral: New file.
28308         * modules/unictype/property-hex-digit: New file.
28309         * modules/unictype/property-ascii-hex-digit: New file.
28310         * modules/unictype/property-ideographic: New file.
28311         * modules/unictype/property-unified-ideograph: New file.
28312         * modules/unictype/property-radical: New file.
28313         * modules/unictype/property-ids-binary-operator: New file.
28314         * modules/unictype/property-ids-trinary-operator: New file.
28315         * modules/unictype/property-zero-width: New file.
28316         * modules/unictype/property-space: New file.
28317         * modules/unictype/property-non-break: New file.
28318         * modules/unictype/property-iso-control: New file.
28319         * modules/unictype/property-format-control: New file.
28320         * modules/unictype/property-dash: New file.
28321         * modules/unictype/property-hyphen: New file.
28322         * modules/unictype/property-punctuation: New file.
28323         * modules/unictype/property-line-separator: New file.
28324         * modules/unictype/property-paragraph-separator: New file.
28325         * modules/unictype/property-quotation-mark: New file.
28326         * modules/unictype/property-sentence-terminal: New file.
28327         * modules/unictype/property-terminal-punctuation: New file.
28328         * modules/unictype/property-currency-symbol: New file.
28329         * modules/unictype/property-math: New file.
28330         * modules/unictype/property-other-math: New file.
28331         * modules/unictype/property-paired-punctuation: New file.
28332         * modules/unictype/property-left-of-pair: New file.
28333         * modules/unictype/property-combining: New file.
28334         * modules/unictype/property-composite: New file.
28335         * modules/unictype/property-decimal-digit: New file.
28336         * modules/unictype/property-numeric: New file.
28337         * modules/unictype/property-diacritic: New file.
28338         * modules/unictype/property-extender: New file.
28339         * modules/unictype/property-ignorable-control: New file.
28340         * modules/unictype/property-test: New file.
28341         * modules/unictype/property-byname: New file.
28342         * modules/unictype/property-all: New file.
28343         * modules/unictype/scripts: New file.
28344         * modules/unictype/scripts-all: New file.
28345         * modules/unictype/block-of: New file.
28346         * modules/unictype/block-test: New file.
28347         * modules/unictype/block-list: New file.
28348         * modules/unictype/block-all: New file.
28349         * modules/unictype/syntax-c-whitespace: New file.
28350         * modules/unictype/syntax-java-whitespace: New file.
28351         * modules/unictype/syntax-c-ident: New file.
28352         * modules/unictype/syntax-java-ident: New file.
28353         * modules/unictype/ctype-alnum: New file.
28354         * modules/unictype/ctype-alpha: New file.
28355         * modules/unictype/ctype-cntrl: New file.
28356         * modules/unictype/ctype-digit: New file.
28357         * modules/unictype/ctype-graph: New file.
28358         * modules/unictype/ctype-lower: New file.
28359         * modules/unictype/ctype-print: New file.
28360         * modules/unictype/ctype-punct: New file.
28361         * modules/unictype/ctype-space: New file.
28362         * modules/unictype/ctype-upper: New file.
28363         * modules/unictype/ctype-xdigit: New file.
28364         * modules/unictype/ctype-blank: New file.
28365         * lib/unictype/bidi_byname.c: New file.
28366         * lib/unictype/bidi_name.c: New file.
28367         * lib/unictype/bidi_of.c: New file.
28368         * lib/unictype/bidi_test.c: New file.
28369         * lib/unictype/bitmap.h: New file.
28370         * lib/unictype/block_test.c: New file.
28371         * lib/unictype/blocks.c: New file.
28372         * lib/unictype/categ_C.c: New file.
28373         * lib/unictype/categ_Cc.c: New file.
28374         * lib/unictype/categ_Cf.c: New file.
28375         * lib/unictype/categ_Cn.c: New file.
28376         * lib/unictype/categ_Co.c: New file.
28377         * lib/unictype/categ_Cs.c: New file.
28378         * lib/unictype/categ_L.c: New file.
28379         * lib/unictype/categ_Ll.c: New file.
28380         * lib/unictype/categ_Lm.c: New file.
28381         * lib/unictype/categ_Lo.c: New file.
28382         * lib/unictype/categ_Lt.c: New file.
28383         * lib/unictype/categ_Lu.c: New file.
28384         * lib/unictype/categ_M.c: New file.
28385         * lib/unictype/categ_Mc.c: New file.
28386         * lib/unictype/categ_Me.c: New file.
28387         * lib/unictype/categ_Mn.c: New file.
28388         * lib/unictype/categ_N.c: New file.
28389         * lib/unictype/categ_Nd.c: New file.
28390         * lib/unictype/categ_Nl.c: New file.
28391         * lib/unictype/categ_No.c: New file.
28392         * lib/unictype/categ_P.c: New file.
28393         * lib/unictype/categ_Pc.c: New file.
28394         * lib/unictype/categ_Pd.c: New file.
28395         * lib/unictype/categ_Pe.c: New file.
28396         * lib/unictype/categ_Pf.c: New file.
28397         * lib/unictype/categ_Pi.c: New file.
28398         * lib/unictype/categ_Po.c: New file.
28399         * lib/unictype/categ_Ps.c: New file.
28400         * lib/unictype/categ_S.c: New file.
28401         * lib/unictype/categ_Sc.c: New file.
28402         * lib/unictype/categ_Sk.c: New file.
28403         * lib/unictype/categ_Sm.c: New file.
28404         * lib/unictype/categ_So.c: New file.
28405         * lib/unictype/categ_Z.c: New file.
28406         * lib/unictype/categ_Zl.c: New file.
28407         * lib/unictype/categ_Zp.c: New file.
28408         * lib/unictype/categ_Zs.c: New file.
28409         * lib/unictype/categ_and.c: New file.
28410         * lib/unictype/categ_and_not.c: New file.
28411         * lib/unictype/categ_byname.c: New file.
28412         * lib/unictype/categ_name.c: New file.
28413         * lib/unictype/categ_none.c: New file.
28414         * lib/unictype/categ_of.c: New file.
28415         * lib/unictype/categ_or.c: New file.
28416         * lib/unictype/categ_test.c: New file.
28417         * lib/unictype/combining.c: New file.
28418         * lib/unictype/ctype_alnum.c: New file.
28419         * lib/unictype/ctype_alpha.c: New file.
28420         * lib/unictype/ctype_blank.c: New file.
28421         * lib/unictype/ctype_cntrl.c: New file.
28422         * lib/unictype/ctype_digit.c: New file.
28423         * lib/unictype/ctype_graph.c: New file.
28424         * lib/unictype/ctype_lower.c: New file.
28425         * lib/unictype/ctype_print.c: New file.
28426         * lib/unictype/ctype_punct.c: New file.
28427         * lib/unictype/ctype_space.c: New file.
28428         * lib/unictype/ctype_upper.c: New file.
28429         * lib/unictype/ctype_xdigit.c: New file.
28430         * lib/unictype/decdigit.c: New file.
28431         * lib/unictype/digit.c: New file.
28432         * lib/unictype/identsyntaxmap.h: New file.
28433         * lib/unictype/mirror.c: New file.
28434         * lib/unictype/numeric.c: New file.
28435         * lib/unictype/pr_alphabetic.c: New file.
28436         * lib/unictype/pr_ascii_hex_digit.c: New file.
28437         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28438         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28439         * lib/unictype/pr_bidi_block_separator.c: New file.
28440         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28441         * lib/unictype/pr_bidi_common_separator.c: New file.
28442         * lib/unictype/pr_bidi_control.c: New file.
28443         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28444         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28445         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28446         * lib/unictype/pr_bidi_european_digit.c: New file.
28447         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28448         * lib/unictype/pr_bidi_left_to_right.c: New file.
28449         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28450         * lib/unictype/pr_bidi_other_neutral.c: New file.
28451         * lib/unictype/pr_bidi_pdf.c: New file.
28452         * lib/unictype/pr_bidi_segment_separator.c: New file.
28453         * lib/unictype/pr_bidi_whitespace.c: New file.
28454         * lib/unictype/pr_byname.c: New file.
28455         * lib/unictype/pr_byname.gperf: New file.
28456         * lib/unictype/pr_combining.c: New file.
28457         * lib/unictype/pr_composite.c: New file.
28458         * lib/unictype/pr_currency_symbol.c: New file.
28459         * lib/unictype/pr_dash.c: New file.
28460         * lib/unictype/pr_decimal_digit.c: New file.
28461         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28462         * lib/unictype/pr_deprecated.c: New file.
28463         * lib/unictype/pr_diacritic.c: New file.
28464         * lib/unictype/pr_extender.c: New file.
28465         * lib/unictype/pr_format_control.c: New file.
28466         * lib/unictype/pr_grapheme_base.c: New file.
28467         * lib/unictype/pr_grapheme_extend.c: New file.
28468         * lib/unictype/pr_grapheme_link.c: New file.
28469         * lib/unictype/pr_hex_digit.c: New file.
28470         * lib/unictype/pr_hyphen.c: New file.
28471         * lib/unictype/pr_id_continue.c: New file.
28472         * lib/unictype/pr_id_start.c: New file.
28473         * lib/unictype/pr_ideographic.c: New file.
28474         * lib/unictype/pr_ids_binary_operator.c: New file.
28475         * lib/unictype/pr_ids_trinary_operator.c: New file.
28476         * lib/unictype/pr_ignorable_control.c: New file.
28477         * lib/unictype/pr_iso_control.c: New file.
28478         * lib/unictype/pr_join_control.c: New file.
28479         * lib/unictype/pr_left_of_pair.c: New file.
28480         * lib/unictype/pr_line_separator.c: New file.
28481         * lib/unictype/pr_logical_order_exception.c: New file.
28482         * lib/unictype/pr_lowercase.c: New file.
28483         * lib/unictype/pr_math.c: New file.
28484         * lib/unictype/pr_non_break.c: New file.
28485         * lib/unictype/pr_not_a_character.c: New file.
28486         * lib/unictype/pr_numeric.c: New file.
28487         * lib/unictype/pr_other_alphabetic.c: New file.
28488         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28489         * lib/unictype/pr_other_grapheme_extend.c: New file.
28490         * lib/unictype/pr_other_id_continue.c: New file.
28491         * lib/unictype/pr_other_id_start.c: New file.
28492         * lib/unictype/pr_other_lowercase.c: New file.
28493         * lib/unictype/pr_other_math.c: New file.
28494         * lib/unictype/pr_other_uppercase.c: New file.
28495         * lib/unictype/pr_paired_punctuation.c: New file.
28496         * lib/unictype/pr_paragraph_separator.c: New file.
28497         * lib/unictype/pr_pattern_syntax.c: New file.
28498         * lib/unictype/pr_pattern_white_space.c: New file.
28499         * lib/unictype/pr_private_use.c: New file.
28500         * lib/unictype/pr_punctuation.c: New file.
28501         * lib/unictype/pr_quotation_mark.c: New file.
28502         * lib/unictype/pr_radical.c: New file.
28503         * lib/unictype/pr_sentence_terminal.c: New file.
28504         * lib/unictype/pr_soft_dotted.c: New file.
28505         * lib/unictype/pr_space.c: New file.
28506         * lib/unictype/pr_terminal_punctuation.c: New file.
28507         * lib/unictype/pr_test.c: New file.
28508         * lib/unictype/pr_titlecase.c: New file.
28509         * lib/unictype/pr_unassigned_code_value.c: New file.
28510         * lib/unictype/pr_unified_ideograph.c: New file.
28511         * lib/unictype/pr_uppercase.c: New file.
28512         * lib/unictype/pr_variation_selector.c: New file.
28513         * lib/unictype/pr_white_space.c: New file.
28514         * lib/unictype/pr_xid_continue.c: New file.
28515         * lib/unictype/pr_xid_start.c: New file.
28516         * lib/unictype/pr_zero_width.c: New file.
28517         * lib/unictype/scripts.c: New file.
28518         * lib/unictype/sy_c_ident.c: New file.
28519         * lib/unictype/sy_c_whitespace.c: New file.
28520         * lib/unictype/sy_java_ident.c: New file.
28521         * lib/unictype/sy_java_whitespace.c: New file.
28522
28523         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28524         Unicode 5.0.0.
28525         * lib/unictype/blocks.h: Likewise.
28526         * lib/unictype/categ_C.h: Likewise.
28527         * lib/unictype/categ_Cc.h: Likewise.
28528         * lib/unictype/categ_Cf.h: Likewise.
28529         * lib/unictype/categ_Cn.h: Likewise.
28530         * lib/unictype/categ_Co.h: Likewise.
28531         * lib/unictype/categ_Cs.h: Likewise.
28532         * lib/unictype/categ_L.h: Likewise.
28533         * lib/unictype/categ_Ll.h: Likewise.
28534         * lib/unictype/categ_Lm.h: Likewise.
28535         * lib/unictype/categ_Lo.h: Likewise.
28536         * lib/unictype/categ_Lt.h: Likewise.
28537         * lib/unictype/categ_Lu.h: Likewise.
28538         * lib/unictype/categ_M.h: Likewise.
28539         * lib/unictype/categ_Mc.h: Likewise.
28540         * lib/unictype/categ_Me.h: Likewise.
28541         * lib/unictype/categ_Mn.h: Likewise.
28542         * lib/unictype/categ_N.h: Likewise.
28543         * lib/unictype/categ_Nd.h: Likewise.
28544         * lib/unictype/categ_Nl.h: Likewise.
28545         * lib/unictype/categ_No.h: Likewise.
28546         * lib/unictype/categ_P.h: Likewise.
28547         * lib/unictype/categ_Pc.h: Likewise.
28548         * lib/unictype/categ_Pd.h: Likewise.
28549         * lib/unictype/categ_Pe.h: Likewise.
28550         * lib/unictype/categ_Pf.h: Likewise.
28551         * lib/unictype/categ_Pi.h: Likewise.
28552         * lib/unictype/categ_Po.h: Likewise.
28553         * lib/unictype/categ_Ps.h: Likewise.
28554         * lib/unictype/categ_S.h: Likewise.
28555         * lib/unictype/categ_Sc.h: Likewise.
28556         * lib/unictype/categ_Sk.h: Likewise.
28557         * lib/unictype/categ_Sm.h: Likewise.
28558         * lib/unictype/categ_So.h: Likewise.
28559         * lib/unictype/categ_Z.h: Likewise.
28560         * lib/unictype/categ_Zl.h: Likewise.
28561         * lib/unictype/categ_Zp.h: Likewise.
28562         * lib/unictype/categ_Zs.h: Likewise.
28563         * lib/unictype/categ_of.h: Likewise.
28564         * lib/unictype/combining.h: Likewise.
28565         * lib/unictype/ctype_alnum.h: Likewise.
28566         * lib/unictype/ctype_alpha.h: Likewise.
28567         * lib/unictype/ctype_blank.h: Likewise.
28568         * lib/unictype/ctype_cntrl.h: Likewise.
28569         * lib/unictype/ctype_digit.h: Likewise.
28570         * lib/unictype/ctype_graph.h: Likewise.
28571         * lib/unictype/ctype_lower.h: Likewise.
28572         * lib/unictype/ctype_print.h: Likewise.
28573         * lib/unictype/ctype_punct.h: Likewise.
28574         * lib/unictype/ctype_space.h: Likewise.
28575         * lib/unictype/ctype_upper.h: Likewise.
28576         * lib/unictype/ctype_xdigit.h: Likewise.
28577         * lib/unictype/decdigit.h: Likewise.
28578         * lib/unictype/digit.h: Likewise.
28579         * lib/unictype/mirror.h: Likewise.
28580         * lib/unictype/numeric.h: Likewise.
28581         * lib/unictype/pr_alphabetic.h: Likewise.
28582         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28583         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28584         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28585         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28586         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28587         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28588         * lib/unictype/pr_bidi_control.h: Likewise.
28589         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28590         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28591         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28592         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28593         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28594         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28595         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28596         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28597         * lib/unictype/pr_bidi_pdf.h: Likewise.
28598         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28599         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28600         * lib/unictype/pr_combining.h: Likewise.
28601         * lib/unictype/pr_composite.h: Likewise.
28602         * lib/unictype/pr_currency_symbol.h: Likewise.
28603         * lib/unictype/pr_dash.h: Likewise.
28604         * lib/unictype/pr_decimal_digit.h: Likewise.
28605         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28606         * lib/unictype/pr_deprecated.h: Likewise.
28607         * lib/unictype/pr_diacritic.h: Likewise.
28608         * lib/unictype/pr_extender.h: Likewise.
28609         * lib/unictype/pr_format_control.h: Likewise.
28610         * lib/unictype/pr_grapheme_base.h: Likewise.
28611         * lib/unictype/pr_grapheme_extend.h: Likewise.
28612         * lib/unictype/pr_grapheme_link.h: Likewise.
28613         * lib/unictype/pr_hex_digit.h: Likewise.
28614         * lib/unictype/pr_hyphen.h: Likewise.
28615         * lib/unictype/pr_id_continue.h: Likewise.
28616         * lib/unictype/pr_id_start.h: Likewise.
28617         * lib/unictype/pr_ideographic.h: Likewise.
28618         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28619         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28620         * lib/unictype/pr_ignorable_control.h: Likewise.
28621         * lib/unictype/pr_iso_control.h: Likewise.
28622         * lib/unictype/pr_join_control.h: Likewise.
28623         * lib/unictype/pr_left_of_pair.h: Likewise.
28624         * lib/unictype/pr_line_separator.h: Likewise.
28625         * lib/unictype/pr_logical_order_exception.h: Likewise.
28626         * lib/unictype/pr_lowercase.h: Likewise.
28627         * lib/unictype/pr_math.h: Likewise.
28628         * lib/unictype/pr_non_break.h: Likewise.
28629         * lib/unictype/pr_not_a_character.h: Likewise.
28630         * lib/unictype/pr_numeric.h: Likewise.
28631         * lib/unictype/pr_other_alphabetic.h: Likewise.
28632         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28633         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28634         * lib/unictype/pr_other_id_continue.h: Likewise.
28635         * lib/unictype/pr_other_id_start.h: Likewise.
28636         * lib/unictype/pr_other_lowercase.h: Likewise.
28637         * lib/unictype/pr_other_math.h: Likewise.
28638         * lib/unictype/pr_other_uppercase.h: Likewise.
28639         * lib/unictype/pr_paired_punctuation.h: Likewise.
28640         * lib/unictype/pr_paragraph_separator.h: Likewise.
28641         * lib/unictype/pr_pattern_syntax.h: Likewise.
28642         * lib/unictype/pr_pattern_white_space.h: Likewise.
28643         * lib/unictype/pr_private_use.h: Likewise.
28644         * lib/unictype/pr_punctuation.h: Likewise.
28645         * lib/unictype/pr_quotation_mark.h: Likewise.
28646         * lib/unictype/pr_radical.h: Likewise.
28647         * lib/unictype/pr_sentence_terminal.h: Likewise.
28648         * lib/unictype/pr_soft_dotted.h: Likewise.
28649         * lib/unictype/pr_space.h: Likewise.
28650         * lib/unictype/pr_terminal_punctuation.h: Likewise.
28651         * lib/unictype/pr_titlecase.h: Likewise.
28652         * lib/unictype/pr_unassigned_code_value.h: Likewise.
28653         * lib/unictype/pr_unified_ideograph.h: Likewise.
28654         * lib/unictype/pr_uppercase.h: Likewise.
28655         * lib/unictype/pr_variation_selector.h: Likewise.
28656         * lib/unictype/pr_white_space.h: Likewise.
28657         * lib/unictype/pr_xid_continue.h: Likewise.
28658         * lib/unictype/pr_xid_start.h: Likewise.
28659         * lib/unictype/pr_zero_width.h: Likewise.
28660         * lib/unictype/scripts.h: Likewise.
28661         * lib/unictype/scripts_byname.gperf: Likewise.
28662         * lib/unictype/sy_c_ident.h: Likewise.
28663         * lib/unictype/sy_c_whitespace.h: Likewise.
28664         * lib/unictype/sy_java_ident.h: Likewise.
28665         * lib/unictype/sy_java_whitespace.h: Likewise.
28666
28667         * lib/unictype/Makefile: New file.
28668         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28669         glibc.
28670         * lib/unictype/3level.h: New file, copied from glibc.
28671         * lib/unictype/3levelbit.h: New file.
28672
28673 2007-11-11  Bruno Haible  <bruno@clisp.org>
28674
28675         * modules/gperf: New file.
28676         * modules/iconv_open (Depends-on): Add it.
28677         (Makefile.am): Remove the GPERF definition.
28678
28679 2007-11-11  Bruno Haible  <bruno@clisp.org>
28680
28681         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28682         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28683
28684 2007-11-11  Bruno Haible  <bruno@clisp.org>
28685
28686         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28687         (usage): Remove function.
28688
28689 2007-11-11  Bruno Haible  <bruno@clisp.org>
28690
28691         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28692         gl_FUNC_CEILF_LIBS.
28693         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28694         gl_FUNC_CEIL_LIBS.
28695         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28696         gl_FUNC_CEILL_LIBS.
28697         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28698         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28699         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28700
28701 2007-11-11  Bruno Haible  <bruno@clisp.org>
28702
28703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28704         roundf were declared but do not exist on functions.
28705         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28706         roundl were declared but do not exist on functions.
28707         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28708         HAVE_FLOORL_AND_CEILL, respectively.
28709         Needed for Sun C on Solaris 10.
28710
28711 2007-11-11  Bruno Haible  <bruno@clisp.org>
28712
28713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28714         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28715         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28716         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28718         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28719         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28720         HAVE_DECL_ROUNDF.
28721         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28722         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28724         of HAVE_DECL_ROUND*.
28725         * modules/math (Makefile.am): Update.
28726
28727 2007-11-10  Bruno Haible  <bruno@clisp.org>
28728
28729         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28730         ptrdiff_t as m4/intl.m4.
28731
28732 2007-11-10  Jim Meyering  <meyering@redhat.com>
28733
28734         Avoid link failure for the argmatch test.
28735         * tests/test-argmatch.c (usage): Define function to avoid a link
28736         failure: argmatch_die requires a usage function.
28737
28738 2007-11-09  Bruno Haible  <bruno@clisp.org>
28739
28740         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28741         * doc/functions/vsnprintf.texi: Likewise.
28742         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28743         with a size argument < 2.
28744
28745 2007-11-09  Bruno Haible  <bruno@clisp.org>
28746
28747         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28748         buffer. Fixes an inefficiency introduced on 2007-11-03.
28749
28750 2007-11-09  Bruno Haible  <bruno@clisp.org>
28751
28752         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28753         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28754
28755 2007-11-08  Jim Meyering  <meyering@redhat.com>
28756
28757         Change cache variable name prefix "jm_" to "gl_" everywhere.
28758         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28759         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28760         * m4/uptime.m4: s/gl_/jm_/
28761
28762 2007-11-07  Bruno Haible  <bruno@clisp.org>
28763
28764         Update to GNU gettext 0.17.
28765         * m4/intl.m4: Update to GNU gettext 0.17.
28766         * m4/po.m4: Likewise.
28767         * modules/gettext (Files): Remove m4/ulonglong.m4.
28768         (configure.ac): Require gettext infrastructure from version 0.17.
28769
28770 2007-11-06  Bruno Haible  <bruno@clisp.org>
28771
28772         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28773         symbolic values are not defined in a public header.
28774         * lib/freadable.c (freadable) [QNX]: Likewise.
28775         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28776         * lib/freading.c (freading) [QNX]: Likewise.
28777         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28778         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28779         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28780         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28781         Reported by Alain Magloire.
28782
28783         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28784
28785 2007-11-05  Bruno Haible  <bruno@clisp.org>
28786
28787         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28788         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28789         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28790         Reported by Eric Blake.
28791
28792 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28793             Bruno Haible  <bruno@clisp.org>
28794
28795         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28796         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28797         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28798         (malloc): Undefine also before including <stdlib.h>.
28799         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28800         Needed on OSF/1 4.0.
28801
28802 2007-11-05  Jim Meyering  <meyering@redhat.com>
28803
28804         git-version-gen: sync from coreutils.
28805         * build-aux/git-version-gen: Add comments.
28806         Change the first '-' to '.' in the snapshot version string,
28807         e.g., 6.9-377-08144 -> 6.9.377-08144
28808         Remove first parameter.
28809         Don't declare a version "-dirty" merely because a time
28810         stamp has changed.
28811
28812 2007-11-04  Bruno Haible  <bruno@clisp.org>
28813
28814         * lib/lock.h: Protect all macro definitions containing an 'if'
28815         statement through a "do { ... } while (0)".
28816         * lib/tls.h: Likewise.
28817
28818 2007-11-04  Bruno Haible  <bruno@clisp.org>
28819
28820         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28821
28822 2007-11-04  Bruno Haible  <bruno@clisp.org>
28823
28824         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28825         * modules/fprintf-posix (Depends-on): Add nocrash.
28826         * modules/snprintf-posix (Depends-on): Likewise.
28827         * modules/sprintf-posix (Depends-on): Likewise.
28828         * modules/vasnprintf-posix (Depends-on): Likewise.
28829         * modules/vasprintf-posix (Depends-on): Likewise.
28830         * modules/vfprintf-posix (Depends-on): Likewise.
28831         * modules/vsnprintf-posix (Depends-on): Likewise.
28832         * modules/vsprintf-posix (Depends-on): Likewise.
28833         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28834         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28835         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28836         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28837         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28838         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28839         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28840
28841 2007-11-04  Bruno Haible  <bruno@clisp.org>
28842
28843         * modules/nocrash: New file.
28844         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28845         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28846
28847 2007-11-04  Bruno Haible  <bruno@clisp.org>
28848
28849         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28850         precision handling.
28851         * tests/test-vasprintf-posix.c (test_function): Likewise.
28852         * tests/test-snprintf-posix.h (test_function): Likewise.
28853         * tests/test-sprintf-posix.h (test_function): Likewise.
28854
28855         Fix *printf behaviour for large precisions on mingw and BeOS.
28856         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28857         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28858         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28859         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28861         gl_PRINTF_PRECISION and test its result. Invoke
28862         gl_PREREQ_VASNPRINTF_PRECISION.
28863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28865         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28866         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28867         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28868         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28869         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28870         * doc/functions/fprintf.texi: Update.
28871         * doc/functions/printf.texi: Update.
28872         * doc/functions/snprintf.texi: Update.
28873         * doc/functions/sprintf.texi: Update.
28874         * doc/functions/vfprintf.texi: Update.
28875         * doc/functions/vprintf.texi: Update.
28876         * doc/functions/vsnprintf.texi: Update.
28877         * doc/functions/vsprintf.texi: Update.
28878
28879 2007-11-04  Bruno Haible  <bruno@clisp.org>
28880
28881         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28882
28883 2007-11-04  Bruno Haible  <bruno@clisp.org>
28884
28885         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28886         Reported by Sylvain Beucler <beuc@gnu.org>.
28887
28888 2007-11-03  Bruno Haible  <bruno@clisp.org>
28889
28890         * tests/test-fprintf-posix2.sh: New file.
28891         * tests/test-fprintf-posix2.c: New file.
28892         * modules/fprintf-posix-tests (Files): Add them.
28893         (TESTS): Add test-fprintf-posix2.sh.
28894         (configure.ac): Check for getrlimit and setrlimit.
28895         (check_PROGRAMS): Add test-fprintf-posix2.
28896
28897         * tests/test-printf-posix2.sh: New file.
28898         * tests/test-printf-posix2.c: New file.
28899         * modules/printf-posix-tests (Files): Add them.
28900         (TESTS): Add test-printf-posix2.sh.
28901         (configure.ac): Check for getrlimit and setrlimit.
28902         (check_PROGRAMS): Add test-printf-posix2.
28903
28904         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28905         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28906         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28907         (decode_double): New function, copied from decode_long_double.
28908         (scale10_round_decimal_decoded): New function, extracted from
28909         scale10_round_decimal_long_double.
28910         (scale10_round_decimal_long_double): Use it.
28911         (scale10_round_decimal_double): New function.
28912         (floorlog10): New function.
28913         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28915         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28917         gl_PRINTF_ENOMEM and test its result. Invoke
28918         gl_PREREQ_VASNPRINTF_ENOMEM.
28919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28920         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28921         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28922         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28923         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28926         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28927         * modules/snprintf-posix (Depends-on): Likewise.
28928         * modules/sprintf-posix (Depends-on): Likewise.
28929         * modules/vasnprintf-posix (Depends-on): Likewise.
28930         * modules/vasprintf-posix (Depends-on): Likewise.
28931         * modules/vfprintf-posix (Depends-on): Likewise.
28932         * modules/vsnprintf-posix (Depends-on): Likewise.
28933         * modules/vsprintf-posix (Depends-on): Likewise.
28934         * doc/functions/fprintf.texi: Update.
28935         * doc/functions/printf.texi: Update.
28936         * doc/functions/snprintf.texi: Update.
28937         * doc/functions/sprintf.texi: Update.
28938         * doc/functions/vfprintf.texi: Update.
28939         * doc/functions/vprintf.texi: Update.
28940         * doc/functions/vsnprintf.texi: Update.
28941         * doc/functions/vsprintf.texi: Update.
28942
28943 2007-11-03  Bruno Haible  <bruno@clisp.org>
28944
28945         * modules/frexp-nolibm-tests: New file.
28946
28947         * modules/frexp-nolibm: New file.
28948         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28949
28950 2007-11-03  Bruno Haible  <bruno@clisp.org>
28951
28952         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28953         value is C99 compliant.
28954         Needed for OSF/1 5.1.
28955
28956 2007-11-03  Bruno Haible  <bruno@clisp.org>
28957
28958         Fix out-of-memory handling of vasnprintf.
28959         * lib/printf-parse.c: Include <errno.h>.
28960         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28961         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28962         is already set.
28963
28964 2007-11-02  Eric Blake  <ebb9@byu.net>
28965
28966         Fix tests on cygwin.
28967         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28968
28969 2007-11-01  Bruno Haible  <bruno@clisp.org>
28970
28971         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28972         warning.
28973         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28974         needed for POSIX compatibility.
28975
28976 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28977
28978         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28979         for compatibility with GNU.
28980
28981 2007-11-01  Bruno Haible  <bruno@clisp.org>
28982
28983         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28984         (putenv): Renamed from rpl_putenv. Change argument type from
28985         'const char *' to 'char *'.
28986         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28987         of defining putenv in config.h, just set REPLACE_PUTENV.
28988         * modules/putenv (Depends-on): Add stdlib.
28989         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28990         (Include): Use <stdlib.h>.
28991         * lib/stdlib.in.h (putenv): New declaration.
28992         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28993         REPLACE_PUTENV.
28994         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28995         REPLACE_PUTENV.
28996         Needed for MacOS X 10.5.0.
28997         Reported by Peter O'Gorman <peter@pogma.com>.
28998
28999 2007-11-01  Jim Meyering  <meyering@redhat.com>
29000
29001         Treat an empty date string exactly like "0".
29002         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29003         if the remaining date string (to be parsed) is empty, use "0".
29004         Reported by Mischa Molhoek and discussed in this thread:
29005         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29006
29007 2007-10-31  Bruno Haible  <bruno@clisp.org>
29008
29009         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29010         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29011         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29012         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29013         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29014         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29015
29016 2007-10-31  Bruno Haible  <bruno@clisp.org>
29017
29018         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29019         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29020         (AC_TYPE_LONG_LONG_INT): Use it.
29021         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29022         it as well.
29023         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29024         to m4/longlong.m4.
29025         * modules/stdint (Files): Remove m4/ulonglong.m4.
29026         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29027         m4/ulonglong.m4.
29028         * modules/strtoumax (Files): Likewise.
29029
29030 2007-10-30  Bruno Haible  <bruno@clisp.org>
29031
29032         * modules/xvasprintf-posix: New file.
29033         Suggested by Eric Blake.
29034
29035 2007-10-30  Bruno Haible  <bruno@clisp.org>
29036
29037         * modules/xprintf-posix-tests: New file.
29038         * tests/test-xprintf-posix.sh: New file.
29039         * tests/test-xprintf-posix.c: New file.
29040         * tests/test-xfprintf-posix.c: New file.
29041
29042         * modules/xprintf-posix: New file.
29043
29044 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29045
29046         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29047         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29048         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29049
29050 2007-10-29  Bruno Haible  <bruno@clisp.org>
29051
29052         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29053         contain the special marker '_cv_'.
29054         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29055         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29056         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29057         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29058         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29059         Reported by Ralf Wildenhues.
29060
29061 2007-10-29  Bruno Haible  <bruno@clisp.org>
29062
29063         * gnulib-tool (func_import): When --lgpl is not specified, set
29064         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29065         GPLv3.
29066         Reported by Simon Josefsson.
29067
29068 2007-10-28  Bruno Haible  <bruno@clisp.org>
29069
29070         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29071         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29072         HAVE_DECL_ISFINITE.
29073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29074         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29075         HAVE_DECL_ISFINITE.
29076
29077 2007-10-28  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29080         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29081
29082 2007-10-28  Bruno Haible  <bruno@clisp.org>
29083
29084         Fix link errors with Sun C 5.0 on Solaris 10.
29085         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29086         function is declared but not present in the compiler's libm.
29087         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29088         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29089         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29090         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29091         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29092         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29093         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29095         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29096         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29097         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29098         HAVE_DECL_FLOORL.
29099
29100 2007-10-28  Bruno Haible  <bruno@clisp.org>
29101
29102         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29103         gl_FUNC_FLOORL. Cache the result.
29104         (gl_FUNC_FLOORL): Use it.
29105         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29106         gl_FUNC_CEILL. Cache the result.
29107         (gl_FUNC_CEILL): Use it.
29108
29109         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29110         gl_FUNC_FLOOR. Cache the result.
29111         (gl_FUNC_FLOOR): Use it.
29112         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29113         gl_FUNC_CEIL. Cache the result.
29114         (gl_FUNC_CEIL): Use it.
29115
29116         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29117         gl_FUNC_FLOORF. Cache the result.
29118         (gl_FUNC_FLOORF): Use it.
29119         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29120         gl_FUNC_CEILF. Cache the result.
29121         (gl_FUNC_CEILF): Use it.
29122
29123 2007-10-28  Bruno Haible  <bruno@clisp.org>
29124
29125         * gnulib-tool: Allow specifying the LGPL version number through
29126         --lgpl=2 or --lgpl=3.
29127         (func_usage): Document --lgpl with argument.
29128         Handle --lgpl=... arguments.
29129         (func_import): Recognize also gl_LGPL calls with an argument. When
29130         --lgpl=2 is used and the module's license is just LGPL, report an
29131         error. Set sed_transform_lib_file according to the lgpl variable. In
29132         the generated files, use --lgpl or gl_LGPL invocations with argument,
29133         if necessary.
29134         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29135         an LGPv2+ license.
29136         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29137         gl_LGPL macro.
29138
29139 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29140             Bruno Haible  <bruno@clisp.org>
29141
29142         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29143         (u16_uctomb_aux): Likewise.
29144         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29145         !HAVE_INLINE.
29146         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29147
29148 2007-10-28  Bruno Haible  <bruno@clisp.org>
29149
29150         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29151         Invoke AM_GETTEXT_OPTION if it exists.
29152         * modules/vasprintf: Likewise.
29153         * modules/verror: Likewise.
29154         * modules/xprintf: Likewise.
29155         * modules/xvasprintf: Likewise.
29156
29157 2007-10-27  Ben Pfaff  <blp@gnu.org>
29158
29159         * lib/math.in.h: Define isfinite macro and prototypes for
29160         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29161         implementations.
29162         * m4/math_h.m4: New substitutions for isfinite module.
29163         * lib/isfinite.c: New file.
29164         * m4/isfinite.m4: New file.
29165         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29166         * modules/isfinite: New file.
29167         * modules/isfinite-tests: New file.
29168         * tests/tests-isfinite.c: New file.
29169         * doc/functions/isfinite.texi: Mention isfinite module.
29170         * MODULES.html.sh: Mention new module.
29171
29172 2007-10-27  Ben Pfaff  <blp@gnu.org>
29173
29174         Ralf Wildenhues reported that Tru64 4.0D declares the round
29175         functions but does not have definitions.
29176         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29177         cannot be found in any library, set the output variable to
29178         "missing" instead of "".
29179         * m4/round.m4: Also use our substitute if we cannot find round in
29180         any library, even if it is declared.
29181         * m4/roundf.m4: Likewise for roundf.
29182         * m4/roundl.m4: Likewise for roundl.
29183         * lib/math.in.h: Undefine roundf, round, roundl before defining
29184         their replacements, to allow for hypothetical systems where these
29185         may be defined as macros but not available in libraries.
29186
29187 2007-10-27  Bruno Haible  <bruno@clisp.org>
29188
29189         * doc/gnulib.texi: Invoke @firstparagraphindent.
29190         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29191         changes in gnulib.
29192         (Source changes): New section.
29193
29194 2007-10-26  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29197         borrowed from autoconf.
29198
29199 2007-10-26  Bruno Haible  <bruno@clisp.org>
29200
29201         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29202         strerror returned the empty string. Needed on HP-UX 11.00.
29203
29204 2007-10-24  Micah Cowan  <micah@cowan.name>
29205
29206         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29207         * build-aux/bootstrap: Remove support for now-unnecessary option,
29208         --cvs-user, and envvars CVS_USER, CVS_RSH.
29209
29210 2007-10-24  Jim Meyering  <meyering@redhat.com>
29211
29212         Avoid diagnostics from sha1sum when there is no cached checksum.
29213         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29214         if the po.s1 file hasn't been created yet.
29215
29216         * build-aux/bootstrap: Sync from coreutils:
29217         2007-10-24  Jim Meyering  <meyering@redhat.com>
29218         Get gnulib from the git repository, not from an obsolete cvs one.
29219         * build-aux/bootstrap: Suggestion from Micah Cowan.
29220         2007-10-04  Jim Meyering  <jim@meyering.net>
29221         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29222         (update_po_files): Work also when there are no .po files in po/.
29223
29224 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * README: Append ".git" to git and cg examples.
29227         Problem reported by Benoit Sigoure.
29228
29229 2007-10-23  Micah Cowan  <micah@cowan.name>
29230
29231         * users.txt: Add wget.
29232
29233 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29234
29235         Fix linking of some unistdio tests on FreeBSD.
29236         * modules/unistdio/u16-vsnprintf-tests
29237         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29238         * modules/unistdio/u16-vsprintf-tests
29239         (test_u16_vsnprintf1_LDADD): Likewise.
29240         * modules/unistdio/u32-vsnprintf-tests
29241         (test_u32_vsnprintf1_LDADD): Likewise.
29242         * modules/unistdio/u32-vsprintf-tests
29243         (test_u32_vsprintf1_LDADD): Likewise.
29244         * modules/unistdio/u8-vsnprintf-tests
29245         (test_u8_vsnprintf1_LDADD): Likewise.
29246         * modules/unistdio/u8-vsprintf-tests
29247         (test_u8_vsprintf1_LDADD): Likewise.
29248         * modules/unistdio/ulc-vsnprintf-tests
29249         (test_ulc_vsnprintf1_LDADD): Likewise.
29250         * modules/unistdio/ulc-vsprintf-tests
29251         (test_ulc_vsprintf1_LDADD): Likewise.
29252
29253         Fix linking of some uniconv tests on FreeBSD.
29254         * modules/uniconv/u16-conv-from-enc-tests
29255         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29256         * modules/uniconv/u16-conv-to-enc-tests
29257         (test_u16_conv_to_enc_LDADD): Likewise.
29258         * modules/uniconv/u16-strconv-from-enc-tests
29259         (test_u16_strconv_from_enc_LDADD): Likewise.
29260         * modules/uniconv/u16-strconv-to-enc-tests
29261         (test_u16_strconv_to_enc_LDADD): Likewise.
29262         * modules/uniconv/u32-conv-from-enc-tests
29263         (test_u32_conv_from_enc_LDADD): Likewise.
29264         * modules/uniconv/u32-conv-to-enc-tests
29265         (test_u32_conv_to_enc_LDADD): Likewise.
29266         * modules/uniconv/u32-strconv-from-enc-tests
29267         (test_u32_strconv_from_enc_LDADD): Likewise.
29268         * modules/uniconv/u32-strconv-to-enc-tests
29269         (test_u32_strconv_to_enc_LDADD): Likewise.
29270         * modules/uniconv/u8-conv-from-enc-tests
29271         (test_u8_conv_from_enc_LDADD): Likewise.
29272         * modules/uniconv/u8-conv-to-enc-tests
29273         (test_u8_conv_to_enc_LDADD): Likewise.
29274         * modules/uniconv/u8-strconv-from-enc-tests
29275         (test_u8_strconv_from_enc_LDADD): Likewise.
29276         * modules/uniconv/u8-strconv-to-enc-tests
29277         (test_u8_strconv_to_enc_LDADD): Likewise.
29278
29279 2007-10-22  Bruno Haible  <bruno@clisp.org>
29280
29281         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29282         size.
29283
29284 2007-10-22  Eric Blake  <ebb9@byu.net>
29285
29286         Tweak x*printf documentation.
29287         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29288         variable name and comments.
29289         Suggested by Bruno Haible.
29290
29291 2007-10-22  Bruno Haible  <bruno@clisp.org>
29292
29293         * lib/acl.c (copy_acl): Fix file name in comment.
29294
29295 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29296
29297         Fix Tru64 problem with stdbool.h.
29298         * lib/stdbool.in.h (false, true):
29299         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29300         Don't declare as an enum in this situation; it runs afoul of Tru64.
29301         Problem reported by Steven M. Schweda in
29302         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29303
29304 2007-10-22  Eric Blake  <ebb9@byu.net>
29305
29306         Also wrap vf?printf.
29307         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29308         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29309         (xvprintf, xvfprintf): New functions.
29310
29311 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29312
29313         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29314         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29315
29316         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29317         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29318
29319 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29320
29321         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29322         by Bruno Haible.
29323
29324 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29325
29326         * lib/getloadavg.c
29327         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29328         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29329
29330         * tests/test-i-ring.c: Work for C89.
29331
29332 2007-10-22  Bruno Haible  <bruno@clisp.org>
29333
29334         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29335         -1u, in preprocessor expression, so that we don't test for the bug
29336         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29338
29339 2007-10-22  Eric Blake  <ebb9@byu.net>
29340
29341         * tests/test-yesno.sh: Silence stderr during test.
29342
29343 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29344
29345         * modules/crypto/gc-camellia: New file.
29346
29347         * m4/gc-camellia.m4: New file.
29348
29349         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29350
29351         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29352
29353 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29354
29355         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29356         --help to stdout.  Reported by sms@antinode.org (Steven
29357         M. Schweda).
29358
29359 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29360
29361         * users.txt: Fix link to libksba.
29362
29363 2007-10-21  Ben Pfaff  <blp@gnu.org>
29364
29365         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29366         round.c roundf implementation that depends on floorf and ceilf to
29367         be tested unconditionally.
29368
29369 2007-10-21  Ben Pfaff  <blp@gnu.org>
29370
29371         * m4/check-libm-func.m4: Removed.
29372         * m4/check-math-lib.m4: New file.
29373         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29374         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29375         definition and lack of AC_LIBOBJ([roundf]).
29376         * m4/roundl.m4: Ditto, and similarly for roundl.
29377         * modules/round: Reference new m4 file.
29378         * modules/roundf: Ditto.
29379         * modules/roundl: Ditto.
29380         * tests/test-round2.c (main): Use ROUND instead of round.
29381         Bug report from Bruno Haible.
29382
29383 2007-10-21  Bruno Haible  <bruno@clisp.org>
29384
29385         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29386         context.
29387
29388 2007-10-21  Bruno Haible  <bruno@clisp.org>
29389
29390         * tests/test-wcwidth.c (main): Allow negative result for some control
29391         characters.
29392
29393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29394         Needed on OSF/1 5.1.
29395
29396 2007-10-21  Bruno Haible  <bruno@clisp.org>
29397
29398         * tests/test-floorf1.c: Include isnanf.h.
29399         (main): Use isnanf() instead of isnan().
29400         * tests/test-ceilf1.c: Include isnanf.h.
29401         (main): Use isnanf() instead of isnan().
29402         * tests/test-truncf1.c: Include isnanf.h.
29403         (main): Use isnanf() instead of isnan().
29404         * tests/test-roundf1.c: Include isnanf.h.
29405         (main): Use isnanf() instead of isnan().
29406
29407 2007-10-21  Eric Blake  <ebb9@byu.net>
29408
29409         * users.txt: Update URL for m4.
29410
29411 2007-10-21  Bruno Haible  <bruno@clisp.org>
29412
29413         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29414
29415 2007-10-21  Bruno Haible  <bruno@clisp.org>
29416
29417         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29418         Git's management files if the CVS files are not present.
29419
29420 2007-10-20  Bruno Haible  <bruno@clisp.org>
29421
29422         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29423         gcc-3.4.x.
29424
29425 2007-10-20  Ben Pfaff  <blp@gnu.org>
29426
29427         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29428         implementations.
29429         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29430         * lib/round.c: New file.
29431         * lib/roundf.c: New file.
29432         * lib/roundl.c: New file.
29433         * m4/round.m4: New file.
29434         * m4/roundf.m4: New file.
29435         * m4/roundl.m4: New file.
29436         * m4/check-libm-func-m4: New file.
29437         * modules/math: Replace round, roundf, roundl related @VARS@ in
29438         math.in.h.
29439         * modules/round: New file.
29440         * modules/round-tests: New file.
29441         * modules/roundf: New file.
29442         * modules/roundf-tests: New file.
29443         * modules/roundl: New file.
29444         * modules/roundl-tests: New file.
29445         * tests/test-round1.c: New file.
29446         * tests/test-round2.c: New file.
29447         * tests/test-roundf1.c: New file.
29448         * tests/test-roundf2.c: New file.
29449         * tests/test-roundl.c: New file.
29450         * doc/functions/round.texi: Mention round module.
29451         * doc/functions/roundf.texi: Mention roundf module.
29452         * doc/functions/roundl.texi: Mention roundl module.
29453         * MODULES.html.sh: Mention new modules.
29454         Thanks to Bruno Haible for suggestions.
29455
29456 2007-10-20  Jim Meyering  <meyering@redhat.com>
29457
29458         * lib/xprintf.c: Include <config.h> unconditionally.
29459
29460         Change xprintf's license to GPL.
29461         * modules/xprintf (License): s/LGPL/GPL/, since this module
29462         depends on modules (exit and exitfail) which are GPL.
29463         Suggestion from Bruno Haible.
29464
29465         xprintf fixes.
29466         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29467         Use a clearer diagnostic.
29468         Patch from Bruno Haible.
29469
29470 2007-10-20  Bruno Haible  <bruno@clisp.org>
29471
29472         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29473         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29474         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29475
29476 2007-10-20  Bruno Haible  <bruno@clisp.org>
29477
29478         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29479         precision in the comparison result > x - 1 or similar.
29480         * tests/test-ceilf2.c (correct_result_p): Likewise.
29481         * tests/test-truncf2.c (correct_result_p): Likewise.
29482         * tests/test-trunc2.c (correct_result_p): Likewise.
29483         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29484
29485 2007-10-20  Bruno Haible  <bruno@clisp.org>
29486
29487         * modules/ceil: New file.
29488         * m4/ceil.m4: New file.
29489         * doc/functions/ceil.texi: Mention the 'ceil' module.
29490
29491 2007-10-20  Bruno Haible  <bruno@clisp.org>
29492
29493         * modules/floor: New file.
29494         * m4/floor.m4: New file.
29495         * doc/functions/floor.texi: Mention the 'floor' module.
29496
29497 2007-10-20  Bruno Haible  <bruno@clisp.org>
29498
29499         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29500         of %a.
29501         * modules/floorf-tests (Depends-on): Likewise.
29502         * modules/truncf-tests (Depends-on): Likewise.
29503         * modules/trunc-tests (Depends-on): Likewise.
29504         Reported by Ben Pfaff.
29505
29506 2007-10-19  Jim Meyering  <meyering@redhat.com>
29507
29508         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29509         Don't bother testing specific errno values.  Just test ferror.
29510
29511         New module: xprintf
29512         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29513
29514 2007-10-19  Bruno Haible  <bruno@clisp.org>
29515
29516         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29517         syntax.
29518         * modules/javaexec (Makefile.am): Likewise.
29519         * modules/relocatable-prog (Makefile.am): Likewise.
29520         Suggested by Jim Meyering.
29521
29522 2007-10-18  Bruno Haible  <bruno@clisp.org>
29523
29524         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29525         Reported by Jim Meyering.
29526
29527 2007-10-18  Eric Blake  <ebb9@byu.net>
29528
29529         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29530
29531 2007-10-18  Bruno Haible  <bruno@clisp.org>
29532
29533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29534         the format string into writable memory. Needed in Fortify conditions.
29535
29536 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29537             Bruno Haible  <bruno@clisp.org>
29538
29539         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29540         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29541         * modules/trim (Depends-on): Add mbchar.
29542         (configure.ac): Add gl_FUNC_MBRTOWC.
29543         (Makefile.am): Augment lib_SOURCES.
29544
29545 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29546
29547         Modify glob.c to use fstatat and dirfd, to simplify it.
29548         Suggested by Eric Blake.
29549         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29550         Don't include <stdbool.h>; not used.
29551         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29552         (link_exists_p): Simplify implementation, since we can now assume
29553         dirfd and fstatat.
29554         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29555
29556 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29557
29558         * gnulib-tool (func_get_dependencies): Fix sed script to
29559         match only tests.
29560
29561 2007-10-17  Bruno Haible  <bruno@clisp.org>
29562
29563         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29564         allow locale names without encoding suffix.
29565         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29566         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29567
29568 2007-10-16  Bruno Haible  <bruno@clisp.org>
29569
29570         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29571         * lib/getgroups.c (getgroups): Likewise.
29572         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29573
29574 2007-10-16  Bruno Haible  <bruno@clisp.org>
29575
29576         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29577         * modules/malloc-posix (License): Likewise.
29578         * modules/realloc-posix (License): Likewise.
29579         * modules/calloc-posix (License): Likewise.
29580         * modules/intprops (License): Change from GPL to LGPL, with
29581         Paul Eggert's approval.
29582
29583 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29584
29585         Merge glibc changes into lib/glob.c.
29586
29587         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29588         2007-10-15 04:59:03 UTC.  Here are the changes:
29589
29590         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29591
29592         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29593
29594         * lib/glob.c: Add some branch prediction throughout.
29595
29596         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29597
29598         [BZ #5103]
29599         * lib/glob.c (glob): Recognize patterns starting \/.
29600
29601         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29602
29603         [BZ #3996]
29604         * lib/glob.c (attribute_hidden): Define if not defined.
29605         (glob): Unescape dirname, filename or username when needed and not
29606         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29607         is NULL.  Handle unescaped [ in pattern without closing ].
29608         Don't pass GLOB_CHECK down to recursive glob for directories.
29609         (__glob_pattern_type): New function.
29610         (__glob_pattern_p): Implement using __glob_pattern_type.
29611         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29612         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29613         Remove unreachable code.
29614
29615         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29616
29617         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29618         explain why there are no leaks.
29619
29620         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29621
29622         [BZ #3253]
29623         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29624         time, rather allocate increasingly bigger arrays of pointers, if
29625         possible with alloca, if too large with malloc.
29626
29627 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29628
29629         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29630         Problem reported by H.Merijn Brand in
29631         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29632         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29633         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29634
29635 2007-10-15  Bruno Haible  <bruno@clisp.org>
29636
29637         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29638         with explicit rpl_ prefix.
29639         * lib/fopen.c (fopen): Likewise.
29640         * lib/freopen.c (freopen): Likewise.
29641         * lib/iconv.c (iconv): Likewise.
29642         * lib/iconv_close.c (iconv_close): Likewise.
29643
29644 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29645
29646         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
29647
29648 2007-10-15  Bruno Haible  <bruno@clisp.org>
29649
29650         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
29651         <stddef.h> instead of <stdlib.h> since we only need NULL.
29652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29653
29654 2007-10-15  Bruno Haible  <bruno@clisp.org>
29655
29656         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29657         Replace paragraph talking about LIBOBJS.
29658         Reported by Colin Watson <cjwatson@debian.org>.
29659
29660 2007-10-15  Bruno Haible  <bruno@clisp.org>
29661
29662         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29663         <stdlib.h> before using NULL.
29664
29665 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29666
29667         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29668         Reported by Albert Chin <china@thewrittenword.com>.
29669
29670 2007-10-14  Bruno Haible  <bruno@clisp.org>
29671
29672         * modules/iconv_open-utf-tests: New file.
29673         * tests/test-iconv-utf.c: New file.
29674
29675         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29676         * modules/iconv_open-utf: New file.
29677         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29678         (iconv, iconv_close): New declarations.
29679         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29680         be defined.
29681         (iconv_open): Add special handling of conversion between UTF-8 and
29682         UTF-{16,32}{BE,LE}.
29683         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29684         * lib/iconv_close.c: New file.
29685         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29686         gl_FUNC_ICONV_OPEN.
29687         (gl_FUNC_ICONV_OPEN): Use it.
29688         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29689         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29690         and REPLACE_ICONV_UTF.
29691         * modules/iconv_open (Depends-on): Add c-strcase.
29692         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29693         ICONV_CONST.
29694         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29695
29696 2007-10-13  Albert Chin  <china@thewrittenword.com>
29697             Bruno Haible  <bruno@clisp.org>
29698
29699         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29700         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29701
29702 2007-10-13  Bruno Haible  <bruno@clisp.org>
29703
29704         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29705         defined, use the ISO C99 inline semantics.
29706         * lib/argp.h (ARGP_EI): Likewise.
29707
29708 2007-10-13  Bruno Haible  <bruno@clisp.org>
29709
29710         Handle 'inline' change in gcc 4.3.0.
29711         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29712         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29713         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29714         argp_fmtstream_point): Disable 'extern' declaration if the function
29715         definition is going to be provided inline.
29716         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29717         semantics, not the ISO C99 inline semantics.
29718         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29719         'extern' declaration if the function definition is going to be provided
29720         inline.
29721         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29722         the GNU C inline semantics, not the ISO C99 inline semantics. With
29723         GCC 4.2, avoid a warning.
29724
29725 2007-10-13  Bruno Haible  <bruno@clisp.org>
29726
29727         * lib/freading.h (freading): Enable the use of __freading for
29728         glibc >= 2.7.
29729         * lib/freading.c (freading): Likewise.
29730
29731 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29732
29733         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29734         "warning: C99 inline functions are not supported; using GNU89".
29735
29736 2007-10-12  Bruno Haible  <bruno@clisp.org>
29737
29738         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29739         of 2.
29740         * tests/test-ceilf2.c: New file.
29741         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29742
29743         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29744         * modules/ceilf-tests: Update.
29745
29746 2007-10-12  Bruno Haible  <bruno@clisp.org>
29747
29748         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29749         of 2.
29750         * tests/test-floorf2.c: New file.
29751         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29752
29753         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29754         * modules/floorf-tests: Update.
29755
29756 2007-10-12  Bruno Haible  <bruno@clisp.org>
29757
29758         * tests/test-trunc2.c: New file.
29759         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29760
29761         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29762         * modules/trunc-tests: Update.
29763
29764 2007-10-12  Bruno Haible  <bruno@clisp.org>
29765
29766         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29767         of 2.
29768         * tests/test-truncf2.c: New file.
29769         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29770
29771         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29772         * modules/truncf-tests: Update.
29773
29774 2007-10-11  Eric Blake  <ebb9@byu.net>
29775
29776         Don't claim strerror is broken on Interix.
29777         * doc/functions/strerror.texi (strerror): Known broken systems are
29778         now Solaris 8, and not Interix.
29779         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29780         Interix on cross-compile.
29781         Reported by Martin Koeppe in
29782         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29783
29784 2007-10-11  Bruno Haible  <bruno@clisp.org>
29785
29786         * modules/i-ring-tests: New file.
29787         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29788         instead of assert.
29789
29790 2007-10-11  Bruno Haible  <bruno@clisp.org>
29791
29792         * modules/filenamecat-tests: New file.
29793         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29794         * lib/filenamecat.c: Remove test code.
29795
29796 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29797
29798         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29799
29800         * lib/strerror.c: Include <string.h> always, to test interface,
29801         and to remove the need for the dummy.
29802         Include intprops.h to compute width instead of doing it ourselves
29803         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29804         (strerror): Define it to return NULL if there's no system strerror.
29805         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29806         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29807         ancient pre-strerror Unix systems well any more.  Saying "unknown
29808         system error" is enough.
29809         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29810         simpler strerror.c implementation.
29811         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29812         Simplify the tests to reflect the simpler strerror implementation.
29813         * modules/strerror (Depends-on): Add intprops.
29814
29815 2007-10-09  Eric Blake  <ebb9@byu.net>
29816
29817         Silence test-fpending.
29818         * modules/fpending-tests (Files): Add wrapper script.
29819         * tests/test-fpending.sh: New file.
29820
29821 2007-10-09  Bruno Haible  <bruno@clisp.org>
29822
29823         * MODULES.html.sh (func_module): Don't create a hyperlink for
29824         function names like 'printf_frexp'.
29825         (Misc): Add crc, memxor.
29826         (Characteristics of floating types): New section.
29827         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29828         isnanf-nolibm, signbit, trunc, truncf, truncl.
29829         (Enhancements for ISO C 99 functions): New subsection Input/output.
29830         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29831         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29832         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29833         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29834         (Enhancements for POSIX:2001 functions): Add chdir-long.
29835         (File system functions): Add areadlink, chdir-safer, read-file.
29836         Remove cycle-check.
29837         (File system as inode set): New section.
29838         (Date and time): Add gethrxtime.
29839         (Multithreading): Add openmp.
29840         (Internationalization functions): Add localename.
29841         (Unicode string functions): Add unistr/u*-mbsnlen.
29842         (Support for maintaining and releasing projects): Add git-version-gen.
29843         (Lone files): Remove directories.
29844
29845 2007-10-08  Ben Pfaff  <blp@gnu.org>
29846
29847         * lib/xmalloca.h: Fix typo in comment.
29848
29849 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29850
29851         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29852         when avoiding problems with integer overflow.  Use a portable test
29853         instead.
29854
29855 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29856
29857         * modules/dummy (License): Change to LGPLv2+.
29858         * modules/float (License): Likewise
29859         * modules/realloc (License): Likewise
29860         * modules/stdlib (License): Likewise
29861
29862 2007-10-07  Bruno Haible  <bruno@clisp.org>
29863
29864         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29865         * floor.c (TWO_MANT_DIG): Likewise.
29866         * ceil.c (TWO_MANT_DIG): Likewise.
29867         Reported by Ben Pfaff.
29868
29869 2007-10-07  Bruno Haible  <bruno@clisp.org>
29870
29871         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29872         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29873         * lib/frexp.c (FUNC): Likewise.
29874         * lib/printf-frexp.h (printf_frexp): Likewise.
29875         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29876         * lib/printf-frexp.c (FUNC): Likewise.
29877         Suggested by Jim Meyering.
29878
29879 2007-10-07  Jim Meyering  <meyering@redhat.com>
29880
29881         Make xnanosleep's integer overflow test more robust.
29882         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29883         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29884
29885 2007-10-07  Bruno Haible  <bruno@clisp.org>
29886
29887         * NEWS: Mention the license change.
29888
29889         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29890         abbreviations in the modules files.
29891
29892         Change copyright notice from GPLv2+ to GPLv3+.
29893         * README: Change copyright notice.
29894         * MODULES.html.sh: Likewise.
29895         * build-aux/bootstrap.conf: Likewise.
29896         * build-aux/config.libpath: Likewise.
29897         * build-aux/csharpcomp.sh.in: Likewise.
29898         * build-aux/csharpexec.sh.in: Likewise.
29899         * build-aux/install-reloc: Likewise.
29900         * build-aux/javacomp.sh.in: Likewise.
29901         * build-aux/javaexec.sh.in: Likewise.
29902         * build-aux/ldd.sh.in: Likewise.
29903         * build-aux/reloc-ldflags: Likewise.
29904         * build-aux/relocatable.sh.in: Likewise.
29905         * build-aux/x-to-1.in: Likewise.
29906         * check-module: Likewise.
29907         * config/srclistvars.sh: Likewise.
29908         * gnulib-tool: Likewise.
29909         * lib/acl-internal.h: Likewise.
29910         * lib/acl.c: Likewise.
29911         * lib/acl.h: Likewise.
29912         * lib/acl_entries.c: Likewise.
29913         * lib/areadlink-with-size.c: Likewise.
29914         * lib/areadlink.c: Likewise.
29915         * lib/areadlink.h: Likewise.
29916         * lib/argmatch.c: Likewise.
29917         * lib/argmatch.h: Likewise.
29918         * lib/argp-ba.c: Likewise.
29919         * lib/argp-eexst.c: Likewise.
29920         * lib/argp-fmtstream.c: Likewise.
29921         * lib/argp-fmtstream.h: Likewise.
29922         * lib/argp-fs-xinl.c: Likewise.
29923         * lib/argp-help.c: Likewise.
29924         * lib/argp-namefrob.h: Likewise.
29925         * lib/argp-parse.c: Likewise.
29926         * lib/argp-pin.c: Likewise.
29927         * lib/argp-pv.c: Likewise.
29928         * lib/argp-pvh.c: Likewise.
29929         * lib/argp-xinl.c: Likewise.
29930         * lib/argp.h: Likewise.
29931         * lib/at-func.c: Likewise.
29932         * lib/atanl.c: Likewise.
29933         * lib/backupfile.c: Likewise.
29934         * lib/backupfile.h: Likewise.
29935         * lib/basename.c: Likewise.
29936         * lib/binary-io.h: Likewise.
29937         * lib/byteswap.in.h: Likewise.
29938         * lib/c-stack.c: Likewise.
29939         * lib/c-stack.h: Likewise.
29940         * lib/c-strcasestr.c: Likewise.
29941         * lib/c-strcasestr.h: Likewise.
29942         * lib/c-strstr.c: Likewise.
29943         * lib/c-strstr.h: Likewise.
29944         * lib/c-strtod.c: Likewise.
29945         * lib/calloc.c: Likewise.
29946         * lib/canon-host.c: Likewise.
29947         * lib/canon-host.h: Likewise.
29948         * lib/canonicalize-lgpl.c: Likewise.
29949         * lib/canonicalize.c: Likewise.
29950         * lib/canonicalize.h: Likewise.
29951         * lib/ceil.c: Likewise.
29952         * lib/ceilf.c: Likewise.
29953         * lib/ceill.c: Likewise.
29954         * lib/chdir-long.c: Likewise.
29955         * lib/chdir-long.h: Likewise.
29956         * lib/chdir-safer.c: Likewise.
29957         * lib/chdir-safer.h: Likewise.
29958         * lib/chown.c: Likewise.
29959         * lib/classpath.c: Likewise.
29960         * lib/classpath.h: Likewise.
29961         * lib/clean-temp.c: Likewise.
29962         * lib/clean-temp.h: Likewise.
29963         * lib/cloexec.c: Likewise.
29964         * lib/close-stream.c: Likewise.
29965         * lib/closein.c: Likewise.
29966         * lib/closein.h: Likewise.
29967         * lib/closeout.c: Likewise.
29968         * lib/closeout.h: Likewise.
29969         * lib/concat-filename.c: Likewise.
29970         * lib/copy-file.c: Likewise.
29971         * lib/copy-file.h: Likewise.
29972         * lib/count-one-bits.h: Likewise.
29973         * lib/crc.c: Likewise.
29974         * lib/crc.h: Likewise.
29975         * lib/creat-safer.c: Likewise.
29976         * lib/csharpcomp.c: Likewise.
29977         * lib/csharpcomp.h: Likewise.
29978         * lib/csharpexec.c: Likewise.
29979         * lib/csharpexec.h: Likewise.
29980         * lib/cycle-check.c: Likewise.
29981         * lib/cycle-check.h: Likewise.
29982         * lib/diacrit.c: Likewise.
29983         * lib/diacrit.h: Likewise.
29984         * lib/diffseq.h: Likewise.
29985         * lib/dirchownmod.c: Likewise.
29986         * lib/dirent.in.h: Likewise.
29987         * lib/dirfd.c: Likewise.
29988         * lib/dirfd.h: Likewise.
29989         * lib/dirname.c: Likewise.
29990         * lib/dirname.h: Likewise.
29991         * lib/dummy.c: Likewise.
29992         * lib/dup-safer.c: Likewise.
29993         * lib/dup2.c: Likewise.
29994         * lib/eealloc.h: Likewise.
29995         * lib/error.c: Likewise.
29996         * lib/error.h: Likewise.
29997         * lib/euidaccess.c: Likewise.
29998         * lib/exclude.c: Likewise.
29999         * lib/exclude.h: Likewise.
30000         * lib/execute.c: Likewise.
30001         * lib/execute.h: Likewise.
30002         * lib/exitfail.c: Likewise.
30003         * lib/exitfail.h: Likewise.
30004         * lib/expl.c: Likewise.
30005         * lib/fatal-signal.c: Likewise.
30006         * lib/fatal-signal.h: Likewise.
30007         * lib/fbufmode.c: Likewise.
30008         * lib/fbufmode.h: Likewise.
30009         * lib/fchdir.c: Likewise.
30010         * lib/fchmodat.c: Likewise.
30011         * lib/fchownat.c: Likewise.
30012         * lib/fcntl--.h: Likewise.
30013         * lib/fcntl-safer.h: Likewise.
30014         * lib/fcntl.in.h: Likewise.
30015         * lib/fd-safer.c: Likewise.
30016         * lib/fflush.c: Likewise.
30017         * lib/file-has-acl.c: Likewise.
30018         * lib/file-set.c: Likewise.
30019         * lib/file-type.c: Likewise.
30020         * lib/file-type.h: Likewise.
30021         * lib/fileblocks.c: Likewise.
30022         * lib/filemode.c: Likewise.
30023         * lib/filemode.h: Likewise.
30024         * lib/filename.h: Likewise.
30025         * lib/filenamecat.c: Likewise.
30026         * lib/filenamecat.h: Likewise.
30027         * lib/findprog.c: Likewise.
30028         * lib/findprog.h: Likewise.
30029         * lib/float.in.h: Likewise.
30030         * lib/floor.c: Likewise.
30031         * lib/floorf.c: Likewise.
30032         * lib/floorl.c: Likewise.
30033         * lib/fopen-safer.c: Likewise.
30034         * lib/fopen.c: Likewise.
30035         * lib/fpending.c: Likewise.
30036         * lib/fpending.h: Likewise.
30037         * lib/fprintf.c: Likewise.
30038         * lib/fprintftime.h: Likewise.
30039         * lib/fpucw.h: Likewise.
30040         * lib/fpurge.c: Likewise.
30041         * lib/fpurge.h: Likewise.
30042         * lib/freadable.c: Likewise.
30043         * lib/freadable.h: Likewise.
30044         * lib/freadahead.c: Likewise.
30045         * lib/freadahead.h: Likewise.
30046         * lib/freading.c: Likewise.
30047         * lib/freading.h: Likewise.
30048         * lib/free.c: Likewise.
30049         * lib/freopen.c: Likewise.
30050         * lib/frexp.c: Likewise.
30051         * lib/frexpl.c: Likewise.
30052         * lib/fseek.c: Likewise.
30053         * lib/fseterr.c: Likewise.
30054         * lib/fseterr.h: Likewise.
30055         * lib/fstatat.c: Likewise.
30056         * lib/fstrcmp.c: Likewise.
30057         * lib/fstrcmp.h: Likewise.
30058         * lib/fsusage.c: Likewise.
30059         * lib/fsusage.h: Likewise.
30060         * lib/ftell.c: Likewise.
30061         * lib/ftello.c: Likewise.
30062         * lib/fts-cycle.c: Likewise.
30063         * lib/fts.c: Likewise.
30064         * lib/fts_.h: Likewise.
30065         * lib/full-read.c: Likewise.
30066         * lib/full-read.h: Likewise.
30067         * lib/full-write.c: Likewise.
30068         * lib/full-write.h: Likewise.
30069         * lib/fwritable.c: Likewise.
30070         * lib/fwritable.h: Likewise.
30071         * lib/fwriteerror.c: Likewise.
30072         * lib/fwriteerror.h: Likewise.
30073         * lib/fwriting.c: Likewise.
30074         * lib/fwriting.h: Likewise.
30075         * lib/gcd.c: Likewise.
30076         * lib/gcd.h: Likewise.
30077         * lib/getcwd.c: Likewise.
30078         * lib/getdate.h: Likewise.
30079         * lib/getdate.y: Likewise.
30080         * lib/getdomainname.c: Likewise.
30081         * lib/getdomainname.h: Likewise.
30082         * lib/getgroups.c: Likewise.
30083         * lib/gethostname.c: Likewise.
30084         * lib/gethrxtime.c: Likewise.
30085         * lib/gethrxtime.h: Likewise.
30086         * lib/getloadavg.c: Likewise.
30087         * lib/getndelim2.c: Likewise.
30088         * lib/getndelim2.h: Likewise.
30089         * lib/getnline.c: Likewise.
30090         * lib/getnline.h: Likewise.
30091         * lib/getopt.c: Likewise.
30092         * lib/getopt.in.h: Likewise.
30093         * lib/getopt1.c: Likewise.
30094         * lib/getopt_int.h: Likewise.
30095         * lib/getpagesize.h: Likewise.
30096         * lib/getsubopt.c: Likewise.
30097         * lib/gettime.c: Likewise.
30098         * lib/getugroups.c: Likewise.
30099         * lib/getugroups.h: Likewise.
30100         * lib/getusershell.c: Likewise.
30101         * lib/gl_anyavltree_list1.h: Likewise.
30102         * lib/gl_anyavltree_list2.h: Likewise.
30103         * lib/gl_anyhash_list1.h: Likewise.
30104         * lib/gl_anyhash_list2.h: Likewise.
30105         * lib/gl_anylinked_list1.h: Likewise.
30106         * lib/gl_anylinked_list2.h: Likewise.
30107         * lib/gl_anyrbtree_list1.h: Likewise.
30108         * lib/gl_anyrbtree_list2.h: Likewise.
30109         * lib/gl_anytree_list1.h: Likewise.
30110         * lib/gl_anytree_list2.h: Likewise.
30111         * lib/gl_anytree_oset.h: Likewise.
30112         * lib/gl_anytreehash_list1.h: Likewise.
30113         * lib/gl_anytreehash_list2.h: Likewise.
30114         * lib/gl_array_list.c: Likewise.
30115         * lib/gl_array_list.h: Likewise.
30116         * lib/gl_array_oset.c: Likewise.
30117         * lib/gl_array_oset.h: Likewise.
30118         * lib/gl_avltree_list.c: Likewise.
30119         * lib/gl_avltree_list.h: Likewise.
30120         * lib/gl_avltree_oset.c: Likewise.
30121         * lib/gl_avltree_oset.h: Likewise.
30122         * lib/gl_avltreehash_list.c: Likewise.
30123         * lib/gl_avltreehash_list.h: Likewise.
30124         * lib/gl_carray_list.c: Likewise.
30125         * lib/gl_carray_list.h: Likewise.
30126         * lib/gl_linked_list.c: Likewise.
30127         * lib/gl_linked_list.h: Likewise.
30128         * lib/gl_linkedhash_list.c: Likewise.
30129         * lib/gl_linkedhash_list.h: Likewise.
30130         * lib/gl_list.c: Likewise.
30131         * lib/gl_list.h: Likewise.
30132         * lib/gl_oset.c: Likewise.
30133         * lib/gl_oset.h: Likewise.
30134         * lib/gl_rbtree_list.c: Likewise.
30135         * lib/gl_rbtree_list.h: Likewise.
30136         * lib/gl_rbtree_oset.c: Likewise.
30137         * lib/gl_rbtree_oset.h: Likewise.
30138         * lib/gl_rbtreehash_list.c: Likewise.
30139         * lib/gl_rbtreehash_list.h: Likewise.
30140         * lib/gl_sublist.c: Likewise.
30141         * lib/gl_sublist.h: Likewise.
30142         * lib/group-member.c: Likewise.
30143         * lib/group-member.h: Likewise.
30144         * lib/hard-locale.c: Likewise.
30145         * lib/hard-locale.h: Likewise.
30146         * lib/hash-pjw.c: Likewise.
30147         * lib/hash-pjw.h: Likewise.
30148         * lib/hash-triple.c: Likewise.
30149         * lib/hash.c: Likewise.
30150         * lib/hash.h: Likewise.
30151         * lib/human.c: Likewise.
30152         * lib/human.h: Likewise.
30153         * lib/i-ring.c: Likewise.
30154         * lib/i-ring.h: Likewise.
30155         * lib/idcache.c: Likewise.
30156         * lib/imaxabs.c: Likewise.
30157         * lib/imaxdiv.c: Likewise.
30158         * lib/inet_pton.c: Likewise.
30159         * lib/inet_pton.h: Likewise.
30160         * lib/intprops.h: Likewise.
30161         * lib/inttostr.c: Likewise.
30162         * lib/inttostr.h: Likewise.
30163         * lib/inttypes.in.h: Likewise.
30164         * lib/isapipe.c: Likewise.
30165         * lib/isdir.c: Likewise.
30166         * lib/isnan.c: Likewise.
30167         * lib/isnan.h: Likewise.
30168         * lib/isnanf.c: Likewise.
30169         * lib/isnanf.h: Likewise.
30170         * lib/isnanl-nolibm.h: Likewise.
30171         * lib/isnanl.c: Likewise.
30172         * lib/isnanl.h: Likewise.
30173         * lib/javacomp.c: Likewise.
30174         * lib/javacomp.h: Likewise.
30175         * lib/javaexec.c: Likewise.
30176         * lib/javaexec.h: Likewise.
30177         * lib/javaversion.c: Likewise.
30178         * lib/javaversion.h: Likewise.
30179         * lib/javaversion.java: Likewise.
30180         * lib/lbrkprop.h: Likewise.
30181         * lib/lchmod.h: Likewise.
30182         * lib/lchown.c: Likewise.
30183         * lib/ldexpl.c: Likewise.
30184         * lib/linebreak.c: Likewise.
30185         * lib/linebreak.h: Likewise.
30186         * lib/linebuffer.c: Likewise.
30187         * lib/linebuffer.h: Likewise.
30188         * lib/locale.in.h: Likewise.
30189         * lib/logl.c: Likewise.
30190         * lib/long-options.c: Likewise.
30191         * lib/long-options.h: Likewise.
30192         * lib/lstat.c: Likewise.
30193         * lib/lstat.h: Likewise.
30194         * lib/math.in.h: Likewise.
30195         * lib/mbchar.c: Likewise.
30196         * lib/mbchar.h: Likewise.
30197         * lib/mbfile.h: Likewise.
30198         * lib/mbiter.h: Likewise.
30199         * lib/mbscasecmp.c: Likewise.
30200         * lib/mbscasestr.c: Likewise.
30201         * lib/mbschr.c: Likewise.
30202         * lib/mbscspn.c: Likewise.
30203         * lib/mbslen.c: Likewise.
30204         * lib/mbsncasecmp.c: Likewise.
30205         * lib/mbsnlen.c: Likewise.
30206         * lib/mbspbrk.c: Likewise.
30207         * lib/mbspcasecmp.c: Likewise.
30208         * lib/mbsrchr.c: Likewise.
30209         * lib/mbssep.c: Likewise.
30210         * lib/mbsspn.c: Likewise.
30211         * lib/mbsstr.c: Likewise.
30212         * lib/mbstok_r.c: Likewise.
30213         * lib/mbswidth.c: Likewise.
30214         * lib/mbswidth.h: Likewise.
30215         * lib/mbuiter.h: Likewise.
30216         * lib/memcasecmp.c: Likewise.
30217         * lib/memcasecmp.h: Likewise.
30218         * lib/memchr.c: Likewise.
30219         * lib/memcmp.c: Likewise.
30220         * lib/memcoll.c: Likewise.
30221         * lib/memcoll.h: Likewise.
30222         * lib/memcpy.c: Likewise.
30223         * lib/memrchr.c: Likewise.
30224         * lib/mkancesdirs.c: Likewise.
30225         * lib/mkdir-p.c: Likewise.
30226         * lib/mkdir-p.h: Likewise.
30227         * lib/mkdir.c: Likewise.
30228         * lib/mkdirat.c: Likewise.
30229         * lib/mkdtemp.c: Likewise.
30230         * lib/mkstemp-safer.c: Likewise.
30231         * lib/mkstemp.c: Likewise.
30232         * lib/modechange.c: Likewise.
30233         * lib/modechange.h: Likewise.
30234         * lib/mountlist.c: Likewise.
30235         * lib/mountlist.h: Likewise.
30236         * lib/mpsort.c: Likewise.
30237         * lib/nanosleep.c: Likewise.
30238         * lib/obstack.c: Likewise.
30239         * lib/obstack.h: Likewise.
30240         * lib/open-safer.c: Likewise.
30241         * lib/open.c: Likewise.
30242         * lib/openat-die.c: Likewise.
30243         * lib/openat-priv.h: Likewise.
30244         * lib/openat-proc.c: Likewise.
30245         * lib/openat.c: Likewise.
30246         * lib/openat.h: Likewise.
30247         * lib/pagealign_alloc.c: Likewise.
30248         * lib/pagealign_alloc.h: Likewise.
30249         * lib/physmem.c: Likewise.
30250         * lib/physmem.h: Likewise.
30251         * lib/pipe-safer.c: Likewise.
30252         * lib/pipe.c: Likewise.
30253         * lib/pipe.h: Likewise.
30254         * lib/posixtm.c: Likewise.
30255         * lib/posixtm.h: Likewise.
30256         * lib/posixver.c: Likewise.
30257         * lib/printf-frexp.c: Likewise.
30258         * lib/printf-frexp.h: Likewise.
30259         * lib/printf-frexpl.c: Likewise.
30260         * lib/printf-frexpl.h: Likewise.
30261         * lib/printf.c: Likewise.
30262         * lib/progname.c: Likewise.
30263         * lib/progname.h: Likewise.
30264         * lib/progreloc.c: Likewise.
30265         * lib/putenv.c: Likewise.
30266         * lib/quote.c: Likewise.
30267         * lib/quote.h: Likewise.
30268         * lib/quotearg.c: Likewise.
30269         * lib/quotearg.h: Likewise.
30270         * lib/raise.c: Likewise.
30271         * lib/readline.c: Likewise.
30272         * lib/readline.h: Likewise.
30273         * lib/readlink.c: Likewise.
30274         * lib/readtokens.c: Likewise.
30275         * lib/readtokens.h: Likewise.
30276         * lib/readtokens0.c: Likewise.
30277         * lib/readtokens0.h: Likewise.
30278         * lib/readutmp.c: Likewise.
30279         * lib/readutmp.h: Likewise.
30280         * lib/realloc.c: Likewise.
30281         * lib/relocwrapper.c: Likewise.
30282         * lib/rename-dest-slash.c: Likewise.
30283         * lib/rename.c: Likewise.
30284         * lib/rmdir.c: Likewise.
30285         * lib/rpmatch.c: Likewise.
30286         * lib/safe-read.c: Likewise.
30287         * lib/safe-read.h: Likewise.
30288         * lib/safe-write.c: Likewise.
30289         * lib/safe-write.h: Likewise.
30290         * lib/same-inode.h: Likewise.
30291         * lib/same.c: Likewise.
30292         * lib/same.h: Likewise.
30293         * lib/save-cwd.c: Likewise.
30294         * lib/save-cwd.h: Likewise.
30295         * lib/savedir.c: Likewise.
30296         * lib/savedir.h: Likewise.
30297         * lib/savewd.c: Likewise.
30298         * lib/savewd.h: Likewise.
30299         * lib/search.in.h: Likewise.
30300         * lib/setenv.c: Likewise.
30301         * lib/setenv.h: Likewise.
30302         * lib/settime.c: Likewise.
30303         * lib/sh-quote.c: Likewise.
30304         * lib/sh-quote.h: Likewise.
30305         * lib/sig2str.c: Likewise.
30306         * lib/sig2str.h: Likewise.
30307         * lib/signal.in.h: Likewise.
30308         * lib/signbitd.c: Likewise.
30309         * lib/signbitf.c: Likewise.
30310         * lib/signbitl.c: Likewise.
30311         * lib/sigprocmask.c: Likewise.
30312         * lib/sincosl.c: Likewise.
30313         * lib/sleep.c: Likewise.
30314         * lib/sprintf.c: Likewise.
30315         * lib/sqrtl.c: Likewise.
30316         * lib/stat-time.h: Likewise.
30317         * lib/stdio--.h: Likewise.
30318         * lib/stdio-safer.h: Likewise.
30319         * lib/stdlib--.h: Likewise.
30320         * lib/stdlib-safer.h: Likewise.
30321         * lib/stdlib.in.h: Likewise.
30322         * lib/stpcpy.c: Likewise.
30323         * lib/stpncpy.c: Likewise.
30324         * lib/strchrnul.c: Likewise.
30325         * lib/strcspn.c: Likewise.
30326         * lib/strerror.c: Likewise.
30327         * lib/strftime.c: Likewise.
30328         * lib/strftime.h: Likewise.
30329         * lib/striconveh.c: Likewise.
30330         * lib/striconveh.h: Likewise.
30331         * lib/striconveha.c: Likewise.
30332         * lib/striconveha.h: Likewise.
30333         * lib/stripslash.c: Likewise.
30334         * lib/strnlen1.c: Likewise.
30335         * lib/strnlen1.h: Likewise.
30336         * lib/strtod.c: Likewise.
30337         * lib/strtoimax.c: Likewise.
30338         * lib/strtok_r.c: Likewise.
30339         * lib/strtol.c: Likewise.
30340         * lib/strtoll.c: Likewise.
30341         * lib/strtoul.c: Likewise.
30342         * lib/strtoull.c: Likewise.
30343         * lib/sysexits.in.h: Likewise.
30344         * lib/tempname.c: Likewise.
30345         * lib/tempname.h: Likewise.
30346         * lib/timespec.h: Likewise.
30347         * lib/tls.c: Likewise.
30348         * lib/tls.h: Likewise.
30349         * lib/tmpdir.c: Likewise.
30350         * lib/tmpdir.h: Likewise.
30351         * lib/tmpfile-safer.c: Likewise.
30352         * lib/tmpfile.c: Likewise.
30353         * lib/trigl.c: Likewise.
30354         * lib/trigl.h: Likewise.
30355         * lib/trim.c: Likewise.
30356         * lib/trim.h: Likewise.
30357         * lib/trunc.c: Likewise.
30358         * lib/truncf.c: Likewise.
30359         * lib/truncl.c: Likewise.
30360         * lib/tsearch.c: Likewise.
30361         * lib/unicodeio.c: Likewise.
30362         * lib/unicodeio.h: Likewise.
30363         * lib/unistd--.h: Likewise.
30364         * lib/unistd-safer.h: Likewise.
30365         * lib/unistdio/ulc-fprintf.c: Likewise.
30366         * lib/unistdio/ulc-vfprintf.c: Likewise.
30367         * lib/unlinkdir.c: Likewise.
30368         * lib/unlinkdir.h: Likewise.
30369         * lib/unlocked-io.h: Likewise.
30370         * lib/unsetenv.c: Likewise.
30371         * lib/userspec.c: Likewise.
30372         * lib/utime.c: Likewise.
30373         * lib/utimecmp.c: Likewise.
30374         * lib/utimecmp.h: Likewise.
30375         * lib/utimens.c: Likewise.
30376         * lib/verify.h: Likewise.
30377         * lib/verror.c: Likewise.
30378         * lib/verror.h: Likewise.
30379         * lib/version-etc-fsf.c: Likewise.
30380         * lib/version-etc.c: Likewise.
30381         * lib/version-etc.h: Likewise.
30382         * lib/vfprintf.c: Likewise.
30383         * lib/vprintf.c: Likewise.
30384         * lib/vsprintf.c: Likewise.
30385         * lib/w32spawn.h: Likewise.
30386         * lib/wait-process.c: Likewise.
30387         * lib/wait-process.h: Likewise.
30388         * lib/wcwidth.c: Likewise.
30389         * lib/write-any-file.c: Likewise.
30390         * lib/xalloc-die.c: Likewise.
30391         * lib/xalloc.h: Likewise.
30392         * lib/xasprintf.c: Likewise.
30393         * lib/xgetcwd.c: Likewise.
30394         * lib/xgetcwd.h: Likewise.
30395         * lib/xgetdomainname.c: Likewise.
30396         * lib/xgetdomainname.h: Likewise.
30397         * lib/xgethostname.c: Likewise.
30398         * lib/xmalloc.c: Likewise.
30399         * lib/xmalloca.c: Likewise.
30400         * lib/xmalloca.h: Likewise.
30401         * lib/xmemcoll.c: Likewise.
30402         * lib/xnanosleep.c: Likewise.
30403         * lib/xreadlink.c: Likewise.
30404         * lib/xreadlink.h: Likewise.
30405         * lib/xsetenv.c: Likewise.
30406         * lib/xsetenv.h: Likewise.
30407         * lib/xstriconv.c: Likewise.
30408         * lib/xstriconv.h: Likewise.
30409         * lib/xstrndup.c: Likewise.
30410         * lib/xstrndup.h: Likewise.
30411         * lib/xstrtod.c: Likewise.
30412         * lib/xstrtod.h: Likewise.
30413         * lib/xstrtol-error.c: Likewise.
30414         * lib/xstrtol.c: Likewise.
30415         * lib/xstrtol.h: Likewise.
30416         * lib/xtime.h: Likewise.
30417         * lib/xvasprintf.c: Likewise.
30418         * lib/xvasprintf.h: Likewise.
30419         * lib/yesno.c: Likewise.
30420         * lib/yesno.h: Likewise.
30421         * posix-modules: Likewise.
30422         * tests/test-alloca-opt.c: Likewise.
30423         * tests/test-arcfour.c: Likewise.
30424         * tests/test-arctwo.c: Likewise.
30425         * tests/test-argmatch.c: Likewise.
30426         * tests/test-argp-2.sh: Likewise.
30427         * tests/test-argp.c: Likewise.
30428         * tests/test-arpa_inet.c: Likewise.
30429         * tests/test-array_list.c: Likewise.
30430         * tests/test-array_oset.c: Likewise.
30431         * tests/test-atexit.c: Likewise.
30432         * tests/test-avltree_list.c: Likewise.
30433         * tests/test-avltree_oset.c: Likewise.
30434         * tests/test-avltreehash_list.c: Likewise.
30435         * tests/test-base64.c: Likewise.
30436         * tests/test-binary-io.c: Likewise.
30437         * tests/test-byteswap.c: Likewise.
30438         * tests/test-c-ctype.c: Likewise.
30439         * tests/test-c-strcasecmp.c: Likewise.
30440         * tests/test-c-strcasestr.c: Likewise.
30441         * tests/test-c-strncasecmp.c: Likewise.
30442         * tests/test-c-strstr.c: Likewise.
30443         * tests/test-canonicalize-lgpl.c: Likewise.
30444         * tests/test-canonicalize.c: Likewise.
30445         * tests/test-carray_list.c: Likewise.
30446         * tests/test-ceilf.c: Likewise.
30447         * tests/test-ceill.c: Likewise.
30448         * tests/test-count-one-bits.c: Likewise.
30449         * tests/test-crc.c: Likewise.
30450         * tests/test-dirname.c: Likewise.
30451         * tests/test-fbufmode.c: Likewise.
30452         * tests/test-fcntl.c: Likewise.
30453         * tests/test-fflush.c: Likewise.
30454         * tests/test-floorf.c: Likewise.
30455         * tests/test-floorl.c: Likewise.
30456         * tests/test-fopen.c: Likewise.
30457         * tests/test-fprintf-posix.c: Likewise.
30458         * tests/test-fprintf-posix.h: Likewise.
30459         * tests/test-fpurge.c: Likewise.
30460         * tests/test-freadable.c: Likewise.
30461         * tests/test-freadahead.c: Likewise.
30462         * tests/test-freading.c: Likewise.
30463         * tests/test-freopen.c: Likewise.
30464         * tests/test-frexp.c: Likewise.
30465         * tests/test-frexpl.c: Likewise.
30466         * tests/test-fseek.c: Likewise.
30467         * tests/test-fseeko.c: Likewise.
30468         * tests/test-fseterr.c: Likewise.
30469         * tests/test-fstrcmp.c: Likewise.
30470         * tests/test-ftell.c: Likewise.
30471         * tests/test-ftello.c: Likewise.
30472         * tests/test-fwritable.c: Likewise.
30473         * tests/test-fwriting.c: Likewise.
30474         * tests/test-getaddrinfo.c: Likewise.
30475         * tests/test-getpass.c: Likewise.
30476         * tests/test-gettimeofday.c: Likewise.
30477         * tests/test-hmac-md5.c: Likewise.
30478         * tests/test-hmac-sha1.c: Likewise.
30479         * tests/test-iconv.c: Likewise.
30480         * tests/test-iconvme.c: Likewise.
30481         * tests/test-inttypes.c: Likewise.
30482         * tests/test-isnan.c: Likewise.
30483         * tests/test-isnanf.c: Likewise.
30484         * tests/test-isnanl-nolibm.c: Likewise.
30485         * tests/test-isnanl.c: Likewise.
30486         * tests/test-isnanl.h: Likewise.
30487         * tests/test-ldexpl.c: Likewise.
30488         * tests/test-linked_list.c: Likewise.
30489         * tests/test-linkedhash_list.c: Likewise.
30490         * tests/test-locale.c: Likewise.
30491         * tests/test-localename.c: Likewise.
30492         * tests/test-lock.c: Likewise.
30493         * tests/test-lseek.c: Likewise.
30494         * tests/test-malloca.c: Likewise.
30495         * tests/test-math.c: Likewise.
30496         * tests/test-mbscasecmp.c: Likewise.
30497         * tests/test-mbscasestr1.c: Likewise.
30498         * tests/test-mbscasestr2.c: Likewise.
30499         * tests/test-mbscasestr3.c: Likewise.
30500         * tests/test-mbscasestr4.c: Likewise.
30501         * tests/test-mbschr.c: Likewise.
30502         * tests/test-mbscspn.c: Likewise.
30503         * tests/test-mbsncasecmp.c: Likewise.
30504         * tests/test-mbspbrk.c: Likewise.
30505         * tests/test-mbspcasecmp.c: Likewise.
30506         * tests/test-mbsrchr.c: Likewise.
30507         * tests/test-mbsspn.c: Likewise.
30508         * tests/test-mbsstr1.c: Likewise.
30509         * tests/test-mbsstr2.c: Likewise.
30510         * tests/test-mbsstr3.c: Likewise.
30511         * tests/test-md5.c: Likewise.
30512         * tests/test-memmem.c: Likewise.
30513         * tests/test-netinet_in.c: Likewise.
30514         * tests/test-open.c: Likewise.
30515         * tests/test-printf-frexp.c: Likewise.
30516         * tests/test-printf-frexpl.c: Likewise.
30517         * tests/test-printf-posix.c: Likewise.
30518         * tests/test-printf-posix.h: Likewise.
30519         * tests/test-rbtree_list.c: Likewise.
30520         * tests/test-rbtree_oset.c: Likewise.
30521         * tests/test-rbtreehash_list.c: Likewise.
30522         * tests/test-read-file.c: Likewise.
30523         * tests/test-rijndael.c: Likewise.
30524         * tests/test-search.c: Likewise.
30525         * tests/test-signbit.c: Likewise.
30526         * tests/test-sleep.c: Likewise.
30527         * tests/test-snprintf-posix.c: Likewise.
30528         * tests/test-snprintf-posix.h: Likewise.
30529         * tests/test-snprintf.c: Likewise.
30530         * tests/test-sprintf-posix.c: Likewise.
30531         * tests/test-sprintf-posix.h: Likewise.
30532         * tests/test-stat-time.c: Likewise.
30533         * tests/test-stdbool.c: Likewise.
30534         * tests/test-stdint.c: Likewise.
30535         * tests/test-stdio.c: Likewise.
30536         * tests/test-stdlib.c: Likewise.
30537         * tests/test-stpncpy.c: Likewise.
30538         * tests/test-strcasestr.c: Likewise.
30539         * tests/test-striconv.c: Likewise.
30540         * tests/test-striconveh.c: Likewise.
30541         * tests/test-striconveha.c: Likewise.
30542         * tests/test-string.c: Likewise.
30543         * tests/test-sys_select.c: Likewise.
30544         * tests/test-sys_socket.c: Likewise.
30545         * tests/test-sys_stat.c: Likewise.
30546         * tests/test-sys_time.c: Likewise.
30547         * tests/test-sysexits.c: Likewise.
30548         * tests/test-time.c: Likewise.
30549         * tests/test-tls.c: Likewise.
30550         * tests/test-trunc.c: Likewise.
30551         * tests/test-truncf.c: Likewise.
30552         * tests/test-truncl.c: Likewise.
30553         * tests/test-unistd.c: Likewise.
30554         * tests/test-vasnprintf-posix.c: Likewise.
30555         * tests/test-vasnprintf-posix2.c: Likewise.
30556         * tests/test-vasnprintf.c: Likewise.
30557         * tests/test-vasprintf-posix.c: Likewise.
30558         * tests/test-vasprintf.c: Likewise.
30559         * tests/test-verify.c: Likewise.
30560         * tests/test-vfprintf-posix.c: Likewise.
30561         * tests/test-vprintf-posix.c: Likewise.
30562         * tests/test-vsnprintf-posix.c: Likewise.
30563         * tests/test-vsnprintf.c: Likewise.
30564         * tests/test-vsprintf-posix.c: Likewise.
30565         * tests/test-wchar.c: Likewise.
30566         * tests/test-wctype.c: Likewise.
30567         * tests/test-wcwidth.c: Likewise.
30568         * tests/test-xstrtol.c: Likewise.
30569         * tests/test-xvasprintf.c: Likewise.
30570         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30571         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30572         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30573         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30574         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30575         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30576         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30577         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30578         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30579         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30580         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30581         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30582         * tests/uniname/test-uninames.c: Likewise.
30583         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30584         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30585         * tests/unistdio/test-u16-printf1.h: Likewise.
30586         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30587         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30588         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30589         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30590         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30591         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30592         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30593         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30594         * tests/unistdio/test-u32-printf1.h: Likewise.
30595         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30596         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30597         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30598         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30599         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30600         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30601         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30602         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30603         * tests/unistdio/test-u8-printf1.h: Likewise.
30604         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30605         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30606         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30607         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30608         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30609         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30610         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30611         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30612         * tests/unistdio/test-ulc-printf1.h: Likewise.
30613         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30614         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30615         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30616         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30617         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30618         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30619         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30620         * tests/uniwidth/test-u16-width.c: Likewise.
30621         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30622         * tests/uniwidth/test-u32-width.c: Likewise.
30623         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30624         * tests/uniwidth/test-u8-width.c: Likewise.
30625         * tests/uniwidth/test-uc_width.c: Likewise.
30626         * config/srclist-update: Likewise.
30627         (fixlicense): Update to GPLv3+.
30628
30629         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30630         * tests/test-tsearch.c: Change copyright notice.
30631
30632         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30633         * lib/c-strcaseeq.h: Change copyright notice.
30634         * lib/streq.h: Likewise.
30635         * lib/uniconv.h: Likewise.
30636         * lib/uniconv/u-conv-from-enc.h: Likewise.
30637         * lib/uniconv/u-conv-to-enc.h: Likewise.
30638         * lib/uniconv/u-strconv-from-enc.h: Likewise.
30639         * lib/uniconv/u-strconv-to-enc.h: Likewise.
30640         * lib/uniconv/u16-conv-from-enc.c: Likewise.
30641         * lib/uniconv/u16-conv-to-enc.c: Likewise.
30642         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
30643         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
30644         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
30645         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
30646         * lib/uniconv/u32-conv-from-enc.c: Likewise.
30647         * lib/uniconv/u32-conv-to-enc.c: Likewise.
30648         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
30649         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
30650         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
30651         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
30652         * lib/uniconv/u8-conv-from-enc.c: Likewise.
30653         * lib/uniconv/u8-conv-to-enc.c: Likewise.
30654         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
30655         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
30656         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30657         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30658         * lib/uniname.h: Likewise.
30659         * lib/uniname/uniname.c: Likewise.
30660         * lib/unistdio.h: Likewise.
30661         * lib/unistdio/u-asnprintf.h: Likewise.
30662         * lib/unistdio/u-asprintf.h: Likewise.
30663         * lib/unistdio/u-printf-args.c: Likewise.
30664         * lib/unistdio/u-printf-args.h: Likewise.
30665         * lib/unistdio/u-printf-parse.h: Likewise.
30666         * lib/unistdio/u-snprintf.h: Likewise.
30667         * lib/unistdio/u-sprintf.h: Likewise.
30668         * lib/unistdio/u-vasprintf.h: Likewise.
30669         * lib/unistdio/u-vsnprintf.h: Likewise.
30670         * lib/unistdio/u-vsprintf.h: Likewise.
30671         * lib/unistdio/u16-asnprintf.c: Likewise.
30672         * lib/unistdio/u16-asprintf.c: Likewise.
30673         * lib/unistdio/u16-printf-parse.c: Likewise.
30674         * lib/unistdio/u16-snprintf.c: Likewise.
30675         * lib/unistdio/u16-sprintf.c: Likewise.
30676         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30677         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30678         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30679         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30680         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30681         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30682         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30683         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30684         * lib/unistdio/u16-vasnprintf.c: Likewise.
30685         * lib/unistdio/u16-vasprintf.c: Likewise.
30686         * lib/unistdio/u16-vsnprintf.c: Likewise.
30687         * lib/unistdio/u16-vsprintf.c: Likewise.
30688         * lib/unistdio/u32-asnprintf.c: Likewise.
30689         * lib/unistdio/u32-asprintf.c: Likewise.
30690         * lib/unistdio/u32-printf-parse.c: Likewise.
30691         * lib/unistdio/u32-snprintf.c: Likewise.
30692         * lib/unistdio/u32-sprintf.c: Likewise.
30693         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30694         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30695         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30696         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30697         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30698         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30699         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30700         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30701         * lib/unistdio/u32-vasnprintf.c: Likewise.
30702         * lib/unistdio/u32-vasprintf.c: Likewise.
30703         * lib/unistdio/u32-vsnprintf.c: Likewise.
30704         * lib/unistdio/u32-vsprintf.c: Likewise.
30705         * lib/unistdio/u8-asnprintf.c: Likewise.
30706         * lib/unistdio/u8-asprintf.c: Likewise.
30707         * lib/unistdio/u8-printf-parse.c: Likewise.
30708         * lib/unistdio/u8-snprintf.c: Likewise.
30709         * lib/unistdio/u8-sprintf.c: Likewise.
30710         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30711         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30712         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30713         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30714         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30715         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30716         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30717         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30718         * lib/unistdio/u8-vasnprintf.c: Likewise.
30719         * lib/unistdio/u8-vasprintf.c: Likewise.
30720         * lib/unistdio/u8-vsnprintf.c: Likewise.
30721         * lib/unistdio/u8-vsprintf.c: Likewise.
30722         * lib/unistdio/ulc-asnprintf.c: Likewise.
30723         * lib/unistdio/ulc-asprintf.c: Likewise.
30724         * lib/unistdio/ulc-printf-parse.c: Likewise.
30725         * lib/unistdio/ulc-snprintf.c: Likewise.
30726         * lib/unistdio/ulc-sprintf.c: Likewise.
30727         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30728         * lib/unistdio/ulc-vasprintf.c: Likewise.
30729         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30730         * lib/unistdio/ulc-vsprintf.c: Likewise.
30731         * lib/unistr.h: Likewise.
30732         * lib/unistr/u-cpy-alloc.h: Likewise.
30733         * lib/unistr/u-cpy.h: Likewise.
30734         * lib/unistr/u-endswith.h: Likewise.
30735         * lib/unistr/u-move.h: Likewise.
30736         * lib/unistr/u-set.h: Likewise.
30737         * lib/unistr/u-startswith.h: Likewise.
30738         * lib/unistr/u-stpcpy.h: Likewise.
30739         * lib/unistr/u-stpncpy.h: Likewise.
30740         * lib/unistr/u-strcat.h: Likewise.
30741         * lib/unistr/u-strcpy.h: Likewise.
30742         * lib/unistr/u-strcspn.h: Likewise.
30743         * lib/unistr/u-strdup.h: Likewise.
30744         * lib/unistr/u-strlen.h: Likewise.
30745         * lib/unistr/u-strncat.h: Likewise.
30746         * lib/unistr/u-strncpy.h: Likewise.
30747         * lib/unistr/u-strnlen.h: Likewise.
30748         * lib/unistr/u-strpbrk.h: Likewise.
30749         * lib/unistr/u-strspn.h: Likewise.
30750         * lib/unistr/u-strstr.h: Likewise.
30751         * lib/unistr/u-strtok.h: Likewise.
30752         * lib/unistr/u16-check.c: Likewise.
30753         * lib/unistr/u16-chr.c: Likewise.
30754         * lib/unistr/u16-cmp.c: Likewise.
30755         * lib/unistr/u16-cpy-alloc.c: Likewise.
30756         * lib/unistr/u16-cpy.c: Likewise.
30757         * lib/unistr/u16-endswith.c: Likewise.
30758         * lib/unistr/u16-mblen.c: Likewise.
30759         * lib/unistr/u16-mbsnlen.c: Likewise.
30760         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30761         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30762         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30763         * lib/unistr/u16-mbtouc.c: Likewise.
30764         * lib/unistr/u16-mbtoucr.c: Likewise.
30765         * lib/unistr/u16-move.c: Likewise.
30766         * lib/unistr/u16-next.c: Likewise.
30767         * lib/unistr/u16-prev.c: Likewise.
30768         * lib/unistr/u16-set.c: Likewise.
30769         * lib/unistr/u16-startswith.c: Likewise.
30770         * lib/unistr/u16-stpcpy.c: Likewise.
30771         * lib/unistr/u16-stpncpy.c: Likewise.
30772         * lib/unistr/u16-strcat.c: Likewise.
30773         * lib/unistr/u16-strchr.c: Likewise.
30774         * lib/unistr/u16-strcmp.c: Likewise.
30775         * lib/unistr/u16-strcpy.c: Likewise.
30776         * lib/unistr/u16-strcspn.c: Likewise.
30777         * lib/unistr/u16-strdup.c: Likewise.
30778         * lib/unistr/u16-strlen.c: Likewise.
30779         * lib/unistr/u16-strmblen.c: Likewise.
30780         * lib/unistr/u16-strmbtouc.c: Likewise.
30781         * lib/unistr/u16-strncat.c: Likewise.
30782         * lib/unistr/u16-strncmp.c: Likewise.
30783         * lib/unistr/u16-strncpy.c: Likewise.
30784         * lib/unistr/u16-strnlen.c: Likewise.
30785         * lib/unistr/u16-strpbrk.c: Likewise.
30786         * lib/unistr/u16-strrchr.c: Likewise.
30787         * lib/unistr/u16-strspn.c: Likewise.
30788         * lib/unistr/u16-strstr.c: Likewise.
30789         * lib/unistr/u16-strtok.c: Likewise.
30790         * lib/unistr/u16-to-u32.c: Likewise.
30791         * lib/unistr/u16-to-u8.c: Likewise.
30792         * lib/unistr/u16-uctomb-aux.c: Likewise.
30793         * lib/unistr/u16-uctomb.c: Likewise.
30794         * lib/unistr/u32-check.c: Likewise.
30795         * lib/unistr/u32-chr.c: Likewise.
30796         * lib/unistr/u32-cmp.c: Likewise.
30797         * lib/unistr/u32-cpy-alloc.c: Likewise.
30798         * lib/unistr/u32-cpy.c: Likewise.
30799         * lib/unistr/u32-endswith.c: Likewise.
30800         * lib/unistr/u32-mblen.c: Likewise.
30801         * lib/unistr/u32-mbsnlen.c: Likewise.
30802         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30803         * lib/unistr/u32-mbtouc.c: Likewise.
30804         * lib/unistr/u32-mbtoucr.c: Likewise.
30805         * lib/unistr/u32-move.c: Likewise.
30806         * lib/unistr/u32-next.c: Likewise.
30807         * lib/unistr/u32-prev.c: Likewise.
30808         * lib/unistr/u32-set.c: Likewise.
30809         * lib/unistr/u32-startswith.c: Likewise.
30810         * lib/unistr/u32-stpcpy.c: Likewise.
30811         * lib/unistr/u32-stpncpy.c: Likewise.
30812         * lib/unistr/u32-strcat.c: Likewise.
30813         * lib/unistr/u32-strchr.c: Likewise.
30814         * lib/unistr/u32-strcmp.c: Likewise.
30815         * lib/unistr/u32-strcpy.c: Likewise.
30816         * lib/unistr/u32-strcspn.c: Likewise.
30817         * lib/unistr/u32-strdup.c: Likewise.
30818         * lib/unistr/u32-strlen.c: Likewise.
30819         * lib/unistr/u32-strmblen.c: Likewise.
30820         * lib/unistr/u32-strmbtouc.c: Likewise.
30821         * lib/unistr/u32-strncat.c: Likewise.
30822         * lib/unistr/u32-strncmp.c: Likewise.
30823         * lib/unistr/u32-strncpy.c: Likewise.
30824         * lib/unistr/u32-strnlen.c: Likewise.
30825         * lib/unistr/u32-strpbrk.c: Likewise.
30826         * lib/unistr/u32-strrchr.c: Likewise.
30827         * lib/unistr/u32-strspn.c: Likewise.
30828         * lib/unistr/u32-strstr.c: Likewise.
30829         * lib/unistr/u32-strtok.c: Likewise.
30830         * lib/unistr/u32-to-u16.c: Likewise.
30831         * lib/unistr/u32-to-u8.c: Likewise.
30832         * lib/unistr/u32-uctomb.c: Likewise.
30833         * lib/unistr/u8-check.c: Likewise.
30834         * lib/unistr/u8-chr.c: Likewise.
30835         * lib/unistr/u8-cmp.c: Likewise.
30836         * lib/unistr/u8-cpy-alloc.c: Likewise.
30837         * lib/unistr/u8-cpy.c: Likewise.
30838         * lib/unistr/u8-endswith.c: Likewise.
30839         * lib/unistr/u8-mblen.c: Likewise.
30840         * lib/unistr/u8-mbsnlen.c: Likewise.
30841         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30842         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30843         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30844         * lib/unistr/u8-mbtouc.c: Likewise.
30845         * lib/unistr/u8-mbtoucr.c: Likewise.
30846         * lib/unistr/u8-move.c: Likewise.
30847         * lib/unistr/u8-next.c: Likewise.
30848         * lib/unistr/u8-prev.c: Likewise.
30849         * lib/unistr/u8-set.c: Likewise.
30850         * lib/unistr/u8-startswith.c: Likewise.
30851         * lib/unistr/u8-stpcpy.c: Likewise.
30852         * lib/unistr/u8-stpncpy.c: Likewise.
30853         * lib/unistr/u8-strcat.c: Likewise.
30854         * lib/unistr/u8-strchr.c: Likewise.
30855         * lib/unistr/u8-strcmp.c: Likewise.
30856         * lib/unistr/u8-strcpy.c: Likewise.
30857         * lib/unistr/u8-strcspn.c: Likewise.
30858         * lib/unistr/u8-strdup.c: Likewise.
30859         * lib/unistr/u8-strlen.c: Likewise.
30860         * lib/unistr/u8-strmblen.c: Likewise.
30861         * lib/unistr/u8-strmbtouc.c: Likewise.
30862         * lib/unistr/u8-strncat.c: Likewise.
30863         * lib/unistr/u8-strncmp.c: Likewise.
30864         * lib/unistr/u8-strncpy.c: Likewise.
30865         * lib/unistr/u8-strnlen.c: Likewise.
30866         * lib/unistr/u8-strpbrk.c: Likewise.
30867         * lib/unistr/u8-strrchr.c: Likewise.
30868         * lib/unistr/u8-strspn.c: Likewise.
30869         * lib/unistr/u8-strstr.c: Likewise.
30870         * lib/unistr/u8-strtok.c: Likewise.
30871         * lib/unistr/u8-to-u16.c: Likewise.
30872         * lib/unistr/u8-to-u32.c: Likewise.
30873         * lib/unistr/u8-uctomb-aux.c: Likewise.
30874         * lib/unistr/u8-uctomb.c: Likewise.
30875         * lib/unitypes.h: Likewise.
30876         * lib/uniwidth.h: Likewise.
30877         * lib/uniwidth/cjk.h: Likewise.
30878         * lib/uniwidth/u16-strwidth.c: Likewise.
30879         * lib/uniwidth/u16-width.c: Likewise.
30880         * lib/uniwidth/u32-strwidth.c: Likewise.
30881         * lib/uniwidth/u32-width.c: Likewise.
30882         * lib/uniwidth/u8-strwidth.c: Likewise.
30883         * lib/uniwidth/u8-width.c: Likewise.
30884         * lib/uniwidth/width.c: Likewise.
30885
30886 2007-10-07  Bruno Haible  <bruno@clisp.org>
30887
30888         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30889         The file is still under LGPL (see modules/inttypes).
30890
30891 2007-10-06  Bruno Haible  <bruno@clisp.org>
30892
30893         * modules/trunc (Dependencies): Add 'extensions'.
30894         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30895         Reported by Ben Pfaff <blp@gnu.org>.
30896
30897 2007-10-06  Bruno Haible  <bruno@clisp.org>
30898
30899         * modules/freopen-tests: New file.
30900         * tests/test-freopen.c: New file.
30901
30902         * modules/fopen-tests: New file.
30903         * tests/test-fopen.c: New file.
30904
30905         * modules/fopen: New file.
30906         * lib/fopen.c: New file.
30907         * m4/fopen.m4: New file.
30908         * modules/freopen: New file.
30909         * lib/freopen.c: New file.
30910         * m4/freopen.m4: New file.
30911         * lib/stdio.in.h (fopen, freopen): New declarations.
30912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30913         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30914         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30915         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30916         * doc/functions/fopen.texi: Mention the 'fopen' module.
30917         * doc/functions/freopen.texi: Mention the 'freopen' module.
30918
30919 2007-10-06  Bruno Haible  <bruno@clisp.org>
30920
30921         * modules/open-tests: New file.
30922         * tests/test-open.c: New file.
30923
30924         * modules/open: New file.
30925         * lib/open.c: New file.
30926         * m4/open.m4: New file.
30927         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30928         lib/open.c does.
30929         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30930         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30931         macros.
30932         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30933         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30934         REPLACE_OPEN.
30935         * doc/functions/open.texi: Mention the 'open' module.
30936
30937 2007-10-04  Bruno Haible  <bruno@clisp.org>
30938
30939         * modules/ceill-tests: New file.
30940         * tests/test-ceill.c: New file.
30941
30942         * modules/ceill: New file.
30943         * lib/ceill.c: Replace entire file.
30944         * m4/ceill.m4: New file.
30945         * lib/math.in.h (ceill): Replace declaration.
30946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30947         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30948         * doc/functions/ceill.texi: Mention the 'ceill' module.
30949         * modules/mathl (Files): Remove lib/ceill.c.
30950         (Depends-on): Add ceill.
30951
30952 2007-10-04  Bruno Haible  <bruno@clisp.org>
30953
30954         * modules/ceilf-tests: New file.
30955         * tests/test-ceilf.c: New file.
30956
30957         * modules/ceilf: New file.
30958         * lib/ceil.c: New file.
30959         * lib/ceilf.c: New file.
30960         * m4/ceilf.m4: New file.
30961         * lib/math.in.h (ceilf): New declaration.
30962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30963         HAVE_DECL_CEILF.
30964         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30965         HAVE_DECL_CEILF.
30966         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30967
30968 2007-10-04  Bruno Haible  <bruno@clisp.org>
30969
30970         * modules/floorl-tests: New file.
30971         * tests/test-floorl.c: New file.
30972
30973         * modules/floorl: New file.
30974         * lib/floorl.c: Replace entire file.
30975         * m4/floorl.m4: New file.
30976         * lib/math.in.h (floorl): Replace declaration.
30977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30978         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30979         * doc/functions/floorl.texi: Mention the 'floorl' module.
30980         * modules/mathl (Files): Remove lib/floorl.c.
30981         (Depends-on): Add floorl.
30982
30983 2007-10-04  Bruno Haible  <bruno@clisp.org>
30984
30985         * modules/floorf-tests: New file.
30986         * tests/test-floorf.c: New file.
30987
30988         * modules/floorf: New file.
30989         * lib/floor.c: New file.
30990         * lib/floorf.c: New file.
30991         * m4/floorf.m4: New file.
30992         * lib/math.in.h (floorf): New declaration.
30993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30994         HAVE_DECL_FLOORF.
30995         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30996         HAVE_DECL_FLOORF.
30997         * doc/functions/floorf.texi: Mention the 'floorf' module.
30998
30999 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31000             Bruno Haible  <bruno@clisp.org>
31001
31002         Advertise for the Git server instead of the CVS server.
31003         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31004         repository instead of the CVS one.
31005         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31006         about all VCS systems generically.
31007         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31008
31009 2007-10-04  Bruno Haible  <bruno@clisp.org>
31010
31011         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31012         means.
31013         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31014
31015 2007-10-04  Bruno Haible  <bruno@clisp.org>
31016
31017         * modules/truncl-tests: New file.
31018         * tests/test-truncl.c: New file.
31019
31020         * modules/truncl: New file.
31021         * lib/truncl.c: New file.
31022         * m4/truncl.m4: New file.
31023         * lib/math.in.h (truncl): New declaration.
31024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31025         HAVE_DECL_TRUNCL.
31026         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31027         HAVE_DECL_TRUNCL.
31028         * doc/functions/truncl.texi: Mention the 'truncl' module.
31029
31030 2007-10-04  Bruno Haible  <bruno@clisp.org>
31031
31032         * modules/truncf-tests: New file.
31033         * tests/test-truncf.c: New file.
31034
31035         * modules/truncf: New file.
31036         * lib/trunc.c: Make paramerizable through USE_* macros.
31037         * lib/truncf.c: New file.
31038         * m4/truncf.m4: New file.
31039         * lib/math.in.h (truncf): New declaration.
31040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31041         HAVE_DECL_TRUNCF.
31042         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31043         HAVE_DECL_TRUNCF.
31044         * doc/functions/truncf.texi: Mention the 'truncf' module.
31045
31046 2007-10-03  Bruno Haible  <bruno@clisp.org>
31047
31048         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31049         augmentation also for tests modules.
31050         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31051         * modules/atexit-tests (Makefile.am): Likewise.
31052         * modules/binary-io-tests (Makefile.am): Likewise.
31053         * modules/c-strcase-tests (Makefile.am): Likewise.
31054         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31055         * modules/canonicalize-tests (Makefile.am): Likewise.
31056         * modules/closein-tests (Makefile.am): Likewise.
31057         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31058         * modules/freadahead-tests (Makefile.am): Likewise.
31059         * modules/fseek-tests (Makefile.am): Likewise.
31060         * modules/fseeko-tests (Makefile.am): Likewise.
31061         * modules/ftell-tests (Makefile.am): Likewise.
31062         * modules/ftello-tests (Makefile.am): Likewise.
31063         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31064         * modules/isnanl-tests (Makefile.am): Likewise.
31065         * modules/lseek-tests (Makefile.am): Likewise.
31066         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31067         * modules/mbscasestr-tests (Makefile.am): Likewise.
31068         * modules/mbschr-tests (Makefile.am): Likewise.
31069         * modules/mbscspn-tests (Makefile.am): Likewise.
31070         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31071         * modules/mbspbrk-tests (Makefile.am): Likewise.
31072         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31073         * modules/mbsrchr-tests (Makefile.am): Likewise.
31074         * modules/mbsspn-tests (Makefile.am): Likewise.
31075         * modules/mbsstr-tests (Makefile.am): Likewise.
31076         * modules/printf-posix-tests (Makefile.am): Likewise.
31077         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31078         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31079         * modules/tsearch-tests (Makefile.am): Likewise.
31080         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31081         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31082         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31083         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31084         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31085         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31086         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31087         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31088         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31089         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31090         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31091         * modules/xstrtol-tests (Makefile.am): Likewise.
31092         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31093         * modules/yesno-tests (Makefile.am): Likewise.
31094
31095 2007-10-03  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/trunc-tests: New file.
31098         * tests/test-trunc.c: New file.
31099
31100         * modules/trunc: New file.
31101         * lib/trunc.c: New file.
31102         * m4/trunc.m4: New file.
31103         * lib/math.in.h (trunc): New declaration.
31104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31105         HAVE_DECL_TRUNC.
31106         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31107         HAVE_DECL_TRUNC.
31108         * doc/functions/trunc.texi: Mention the 'trunc' module.
31109
31110 2007-10-03  Bruno Haible  <bruno@clisp.org>
31111
31112         * tests/test-fpending.c: New file, mostly copied
31113         from coreutils/lib/t-fpending.c.
31114         * modules/fpending-tests: New file.
31115
31116 2007-10-03  Bruno Haible  <bruno@clisp.org>
31117
31118         Port the stdio extensions to QNX (untested).
31119         * lib/fseterr.c (fseterr): Add support for QNX.
31120         * lib/fbufmode.c (fbufmode): Likewise.
31121         * lib/freadable.c (freadable): Likewise.
31122         * lib/fwritable.c (fwritable): Likewise.
31123         * lib/freading.c (freading): Likewise.
31124         * lib/fwriting.c (fwriting): Likewise.
31125         * lib/freadahead.c (freadahed): Likewise.
31126         * lib/fpurge.c (fpurge): Likewise.
31127         * lib/fseeko.c (rpl_fseeko): Likewise.
31128
31129 2007-10-03  Bruno Haible  <bruno@clisp.org>
31130             Jim Meyering  <jim@meyering.net>
31131             Eric Blake  <ebb9@byu.net>
31132
31133         * doc/relocatable.texi: Use @command instead of @program.
31134
31135 2007-10-02  Jim Meyering  <jim@meyering.net>
31136
31137         Perform one more "_.h" -> ".in.h" substitution.
31138         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31139         instead of unistd_.h here, too.
31140
31141 2007-10-01  Bruno Haible  <bruno@clisp.org>
31142
31143         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31144         Needed for the alloca-opt module.
31145
31146 2007-09-30  Bruno Haible  <bruno@clisp.org>
31147
31148         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31149         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31150         alloca_.h.
31151         * lib/argz.in.h: Renamed from lib/argz_.h.
31152         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31153         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31154         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31155         byteswap_.h.
31156         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31157         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31158         dirent_.h.
31159         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31160         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31161         fcntl_.h.
31162         * lib/float.in.h: Renamed from lib/float_.h.
31163         * modules/float (Files, Makefile.am): Use float.in.h instead of
31164         float_.h.
31165         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31166         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31167         fnmatch_.h.
31168         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31169         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31170         getopt_.h.
31171         * lib/glob.in.h: Renamed from lib/glob_.h.
31172         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31173         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31174         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31175         iconv_.h.
31176         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31177         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31178         inttypes_.h.
31179         * lib/locale.in.h: Renamed from lib/locale_.h.
31180         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31181         locale_.h.
31182         * lib/math.in.h: Renamed from lib/math_.h.
31183         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31184         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31185         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31186         of netinet_in_.h. Add dependency.
31187         * lib/poll.in.h: Renamed from lib/poll_.h.
31188         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31189         * lib/search.in.h: Renamed from lib/search_.h.
31190         * modules/search (Files, Makefile.am): Use search.in.h instead of
31191         search_.h.
31192         * lib/signal.in.h: Renamed from lib/signal_.h.
31193         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31194         _signal.h.
31195         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31196         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31197         stdbool_.h.
31198         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31199         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31200         stdint_.h.
31201         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31202         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31203         stdio_.h.
31204         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31205         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31206         stdlib_.h.
31207         * lib/string.in.h: Renamed from lib/string_.h.
31208         * modules/string (Files, Makefile.am): Use string.in.h instead of
31209         string_.h.
31210         * doc/gnulib-tool.texi (Initial import): Update.
31211         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31212         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31213         of sys_select_.h. Add dependency.
31214         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31215         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31216         of sys_socket_.h.
31217         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31218         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31219         sys_stat_.h.
31220         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31221         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31222         sys_time_.h.
31223         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31224         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31225         sysexits_.h.
31226         * lib/time.in.h: Renamed from lib/time_.h.
31227         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31228         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31229         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31230         unistd_.h.
31231         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31232         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31233         wchar_.h.
31234         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31235         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31236         wctype_.h.
31237         * build-aux/bootstrap (slurp): Update.
31238         * lib/.cppi-disable: Update.
31239
31240 2007-09-30  Bruno Haible  <bruno@clisp.org>
31241
31242         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31243         Needed on BeOS.
31244
31245 2007-09-30  Bruno Haible  <bruno@clisp.org>
31246
31247         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31248
31249 2007-09-29  Bruno Haible  <bruno@clisp.org>
31250
31251         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31252
31253 2007-09-29  Bruno Haible  <bruno@clisp.org>
31254
31255         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31256         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31257         * build-aux/install-reloc: Compile also areadlink.c.
31258         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31259
31260 2007-09-29  Bruno Haible  <bruno@clisp.org>
31261
31262         * gnulib-tool (func_emit_initmacro_done): Indentation.
31263
31264 2007-09-29  Bruno Haible  <bruno@clisp.org>
31265
31266         * README: Add CVS checkout update instructions.
31267         Info from Bob Proulx <bob@proulx.com>.
31268
31269 2007-09-28  Eric Blake  <ebb9@byu.net>
31270
31271         Provide move-if-change.
31272         * build-aux/move-if-change: New file, based on best practice
31273         rather than any canonical upstream location.
31274
31275 2007-09-28  Jim Meyering  <jim@meyering.net>
31276
31277         Fix canonicalize loop-detection corner case.
31278         Do not attempt to stat the symlink values stored via seen_triple.
31279         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31280         on linux-2.6.18, (but not 2.6.22).
31281         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31282         triple_compare.  The former compares dev,ino,filename, while the latter
31283         would actually stat dirname(filename) when dev and ino were equal.
31284         * lib/hash-triple.c: Install <string.h>.
31285         (STREQ): Define.
31286         (triple_compare_ino_str): New function.
31287         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31288
31289 2007-09-28  Eric Blake  <ebb9@byu.net>
31290
31291         Enforce that AC_REPLACE_FUNCS files exist.
31292         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31293         override check for typos.
31294
31295         Fix test-closein on Solaris 10.
31296         * tests/test-closein.c (main): Don't assume stdin can be inherited
31297         closed on all systems.
31298         * tests/test-closein.sh: Likewise.
31299         Reported by Piotr Tarnowski.
31300
31301 2007-09-28  Jim Meyering  <jim@meyering.net>
31302
31303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31304
31305 2007-09-27  Jim Meyering  <jim@meyering.net>
31306
31307         canonicalize: Avoid a false-positive cycle failure.
31308         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31309         Sort.  Remove cycle-check.
31310         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31311         not cycle-check.h.
31312         (seen_triple): New function.
31313         (canonicalize_filename_mode): Use it instead of cycle-check.
31314         * tests/test-canonicalize.c: Add a test for this bug.
31315         * tests/test-canonicalize.sh: Set up and run the test.
31316
31317         New module, file-set, from coreutils.
31318         * modules/file-set: Define it.
31319         * lib/file-set.c, lib/file-set.h: Implement.
31320
31321         New module, hash-triple, from coreutils.
31322         * modules/hash-triple: Define it.
31323         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31324
31325 2007-09-25  Eric Blake  <ebb9@byu.net>
31326
31327         Fix strerror on Interix.
31328         * lib/string_.h (strerror): Declare replacement.
31329         * doc/functions/strerror.texi (strerror): Document the Interix
31330         shortcoming.
31331         * modules/string (Makefile.am): Support new hooks.
31332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31333         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31334         gl_FUNC_STRERROR_SEPARATE.
31335         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31336         * lib/strerror.c (rpl_strerror): Provide replacement.
31337         * modules/strerror (Depends-on): Add string.
31338         (configure.ac): Detect use of module.
31339         * tests/test-strerror.c: New file.
31340         * modules/strerror-tests: New test module.
31341         * modules/argp (Depends-on): Add strerror.
31342         * modules/error (Depends-on): Likewise.
31343         Reported by Martin Koeppe.
31344
31345 2007-09-24  Bruno Haible  <bruno@clisp.org>
31346
31347         * README: Update git instructions.
31348
31349 2007-09-24  Eric Blake  <ebb9@byu.net>
31350
31351         Revert fpending breakage from 2007-09-08.
31352         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31353         __fpending.c.
31354
31355 2007-09-24  Jim Meyering  <jim@meyering.net>
31356
31357         filenamecat.c: Add a test.
31358         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31359         showing how the function works when DIR is the empty string.
31360
31361 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31362
31363         * tests/test-canonicalize.sh: Turn on executable bit.
31364
31365 2007-09-19  Eric Blake  <ebb9@byu.net>
31366
31367         * README: Update CVS instructions.
31368
31369 2007-09-18  Bruno Haible  <bruno@clisp.org>
31370
31371         * modules/areadlink: New file.
31372         * lib/areadlink.h (areadlink): New declaration.
31373         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31374
31375 2007-09-17  Jim Meyering  <jim@meyering.net>
31376
31377         * lib/savewd.c (ESTALE) [!defined]: Define.
31378         Reported to be required on Interix by Martin Koeppe.
31379
31380 2007-09-17  Bruno Haible  <bruno@clisp.org>
31381
31382         * gnulib-tool (func_version): Use $version.
31383
31384 2007-09-16  Bruno Haible  <bruno@clisp.org>
31385
31386         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31387         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31388         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31389         Reported by Greg Schafer <gschafer@zip.com.au>.
31390
31391 2007-09-15  Bruno Haible  <bruno@clisp.org>
31392
31393         * gnulib-tool (sed): Try a little harder to make bash understand the
31394         alias.
31395         Reported by Bruce Korb <bruce.korb@gmail.com>.
31396
31397 2007-09-13  Eric Blake  <ebb9@byu.net>
31398
31399         * ChangeLog: Remove conflict markers.
31400
31401 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31402
31403         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31404         Reported by Bruno Haible <bruno@clisp.org>.
31405
31406 2007-09-12  Bruno Haible  <bruno@clisp.org>
31407
31408         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31409         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31410         is not defined.
31411
31412 2007-09-12  Eric Blake  <ebb9@byu.net>
31413
31414         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31415         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31416         Autoconf definition.
31417         * modules/euidaccess (Depends-on): Add extensions, for
31418         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31419         * modules/fnmatch (Depends-on): Likewise.
31420         * modules/getaddrinfo (Depends-on): Likewise.
31421         * modules/getdelim (Depends-on): Likewise.
31422         * modules/getline (Depends-on): Likewise.
31423         * modules/getsubopt (Depends-on): Likewise.
31424         * modules/gettext (Depends-on): Likewise.
31425         * modules/group-member (Depends-on): Likewise.
31426         * modules/mbchar (Depends-on): Likewise.
31427         * modules/memmem (Depends-on): Likewise.
31428         * modules/mempcpy (Depends-on): Likewise.
31429         * modules/memrchr (Depends-on): Likewise.
31430         * modules/pagealign_alloc (Depends-on): Likewise.
31431         * modules/readutmp (Depends-on): Likewise.
31432         * modules/stpcpy (Depends-on): Likewise.
31433         * modules/stpncpy (Depends-on): Likewise.
31434         * modules/strchrnul (Depends-on): Likewise.
31435         * modules/strndup (Depends-on): Likewise.
31436         * modules/strsep (Depends-on): Likewise.
31437         * modules/strverscmp (Depends-on): Likewise.
31438         * modules/vasprintf (Depends-on): Likewise.
31439         * modules/wcwidth (Depends-on): Likewise.
31440         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31441         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31442         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31443         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31444         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31445         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31446         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31447         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31448         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31449         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31451         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31452         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31454         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31455         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31456         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31457         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31458         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31459         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31461         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31462         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31463         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31464         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31466         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31467         so that lock.m4 can be used in gettext without extensions module.
31468
31469 2007-09-11  Bruno Haible  <bruno@clisp.org>
31470
31471         * m4/isc-posix.m4: Remove file.
31472         Suggested by Eric Blake.
31473
31474 2007-09-11  Eric Blake  <ebb9@byu.net>
31475
31476         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31477
31478 2007-09-10  Bruno Haible  <bruno@clisp.org>
31479
31480         * posix-modules: Fix typo in error message.
31481         Reported by Matt <mkraai@beckman.com>.
31482
31483 2007-09-09  Bruno Haible  <bruno@clisp.org>
31484
31485         * doc/functions/getdelim.texi: Update list of platforms lacking the
31486         function.
31487         * doc/functions/getline.texi: Likewise.
31488
31489 2007-09-09  Jim Meyering  <jim@meyering.net>
31490
31491         * lib/hash.c (hash_initialize): Detect calloc failure.
31492         Reported by Bruno Haible.
31493
31494 2007-09-09  Bruno Haible  <bruno@clisp.org>
31495
31496         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31497         malloc or realloc fails.
31498
31499 2007-09-09  Bruno Haible  <bruno@clisp.org>
31500
31501         * modules/getcwd (Depends-on): Add malloc-posix.
31502         * modules/glob (Depends-on): Likewise.
31503         * modules/putenv (Depends-on): Likewise.
31504         * modules/strdup (Depends-on): Likewise.
31505         * modules/getdelim (Depends-on): Add realloc-posix.
31506         * modules/read-file (Depends-on): Likewise.
31507
31508 2007-09-09  Bruno Haible  <bruno@clisp.org>
31509
31510         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31511         (gl_FUNC_MALLOC_POSIX): Require it.
31512         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31513         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31514         * modules/realloc (Files): Add m4/malloc.m4.
31515         * modules/calloc (Files): Likewise.
31516
31517 2007-09-09  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/malloc-posix: New file.
31520         * modules/malloc (Depends-on): Add malloc-posix.
31521         * lib/malloc.c: Include errno.h.
31522         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31523         and a POSIX-compatible malloc into a single function. Set ENOMEM
31524         when returning NULL.
31525         * m4/malloc.m4: New file.
31526         * doc/functions/malloc.texi: Mention the malloc-posix module.
31527         * lib/stdlib_.h (malloc): New declaration.
31528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31529         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31530         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31531         and HAVE_MALLOC_POSIX.
31532
31533 2007-09-09  Bruno Haible  <bruno@clisp.org>
31534
31535         * modules/realloc-posix: New file.
31536         * modules/realloc (Depends-on): Add realloc-posix.
31537         * lib/realloc.c: Include errno.h.
31538         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31539         and a POSIX-compatible realloc into a single function. Set ENOMEM
31540         when returning NULL.
31541         * m4/realloc.m4: New file.
31542         * doc/functions/realloc.texi: Mention the realloc-posix module.
31543         * lib/stdlib_.h (realloc): New declaration.
31544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31545         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31546         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31547         and HAVE_REALLOC_POSIX.
31548
31549 2007-09-09  Bruno Haible  <bruno@clisp.org>
31550
31551         * modules/calloc-posix: New file.
31552         * modules/calloc (Depends-on): Add calloc-posix.
31553         * lib/calloc.c: Include errno.h.
31554         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31555         and a POSIX-compatible calloc into a single function. Set ENOMEM
31556         when returning NULL.
31557         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31558         * doc/functions/calloc.texi: Mention the calloc-posix module.
31559         * lib/stdlib_.h (calloc): New declaration.
31560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31561         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31562         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31563         and HAVE_CALLOC_POSIX.
31564
31565 2007-09-09  Bruno Haible  <bruno@clisp.org>
31566
31567         Allow for modules to show an arbitrary notice.
31568         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31569         * gnulib-tool: New option --extract-notice.
31570         (func_usage): Document it.
31571         (sed_extract_prog): Update.
31572         (func_get_notice): New function.
31573         (func_modules_notice): New function.
31574         (func_import, func_create_testdir): Invoke it.
31575         Suggested by Jim Meyering.
31576
31577 2007-09-09  Bruno Haible  <bruno@clisp.org>
31578
31579         * gnulib-tool: New options --verbose, --quiet.
31580         (func_usage): Document them.
31581         (verbose): New variable.
31582         (func_execute_command): New function.
31583         (func_import): Don't show the module list and the file list if
31584         $verbose < 0.
31585         (func_create_testdir): Likewise. Use func_execute_command.
31586         (func_create_megatestdir): Use func_execute_command.
31587
31588 2007-09-08  Bruno Haible  <bruno@clisp.org>
31589
31590         * gnulib-tool (func_import): Prefer rsync over wget when available,
31591         for fetching the PO files.
31592
31593 2007-09-08  Bruno Haible  <bruno@clisp.org>
31594
31595         * posix-modules: New file. Portions copied from gnulib-tool.
31596         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31597
31598 2007-09-08  Jim Meyering  <jim@meyering.net>
31599
31600         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31601         * lib/fpending.h: Rename from __fpending.h.
31602         * lib/fpending.c: Rename from __fpending.c.
31603         Include "fpending.h", not "__fpending.h".
31604         * lib/__fpending.h, lib/__fpending.c: Remove files.
31605         * modules/fpending (Files): Reflect new file names.
31606         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31607
31608 2007-09-08  Bruno Haible  <bruno@clisp.org>
31609
31610         * m4/inttypes-h.m4: Remove stub file.
31611
31612 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31613
31614         * doc/headers/stdint.texi: Discuss #include_next issue.
31615
31616 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31617
31618         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31619
31620 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31621
31622         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31623         in variable name.
31624
31625 2007-09-03  Jim Meyering  <jim@meyering.net>
31626
31627         New module: git-version-gen.
31628         * modules/git-version-gen: New file.
31629
31630         Import changes from coreutils for bootstrap script.
31631
31632         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31633
31634         bootstrap: uses rsync to download the .po files
31635         * build-aux/bootstrap (po_download_command_format): New global.
31636         (download_po_files): Use rsync.
31637         (update_po_files): Don't remove .po files after download,
31638         so future rsync runs can take advantage of the copies.
31639
31640         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
31641
31642         Solve the unnecessary-.po-file-regeneration problem once and for all.
31643         * build-aux/bootstrap (download_po_files): New function, renamed from
31644         get_translations.  Now, downloads, but doesn't update LINGUAS.
31645         (update_po_files): New function.
31646
31647         bootstrap: Ignore more.
31648         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
31649         uniwidth to e.g., lib/.gitignore.
31650         (slurp): Handle the sys_stat_.h -> sys mapping, too.
31651
31652         * build-aux/bootstrap: New setting: vc_ignore.
31653         (insert_sorted_if_absent): Create $file if absent.
31654         Adapt to new, possibly empty, list: $vc_ignore.
31655
31656         bootstrap: generate more ignorable names
31657         * build-aux/bootstrap (slurp): When generating ignorable names,
31658         also map .sin to .sed, .gperf to .c, and .y to .c.
31659
31660 2007-09-03  Jim Meyering  <jim@meyering.net>
31661
31662         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31663         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31664
31665 2007-09-02  Bruno Haible  <bruno@clisp.org>
31666
31667         Fix mis-recognition of 'mcs' on QNX 6.
31668         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31669         output contains the string "Mono".
31670         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31671         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31672
31673 2007-09-01  Bruno Haible  <bruno@clisp.org>
31674
31675         Fix collision between uniwidth/* and linebreak modules.
31676         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31677         u32_width): Remove declarations.
31678         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31679         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31680         streq3, streq2, streq1, streq0): Remove functions.
31681         (STREQ): Remove macro.
31682         (is_cjk_encoding): Remove function.
31683         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31684         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31685         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31686         * NEWS: Document the change.
31687
31688 2007-09-01  Bruno Haible  <bruno@clisp.org>
31689
31690         * lib/streq.h: Add double-inclusion guard.
31691
31692 2007-09-01  Karl Berry  <karl@gnu.org>
31693
31694         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31695
31696 2007-08-28  Jim Meyering  <jim@meyering.net>
31697
31698         Rename mreadlink_with_size to areadlink_with_size.
31699         * NEWS: Document the change.
31700         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31701         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31702         * lib/mreadlink.h: Rename this to...
31703         * lib/areadlink.h: ...this.
31704         * modules/mreadlink-with-size: Rename this to...
31705         * modules/areadlink-with-size: ...this.
31706         * lib/canonicalize.c: Reflect the renaming.
31707         * modules/canonicalize: Likewise.
31708
31709 2007-08-26  Bruno Haible  <bruno@clisp.org>
31710
31711         * gnulib-tool (func_import): When deciding which files to remove,
31712         consider also dangling symbolic links.
31713         Reported by Eric Blake.
31714
31715 2007-08-26  Bruno Haible  <bruno@clisp.org>
31716
31717         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31718
31719 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31720
31721         * lib/readline.c: Don't include getline.h, the prototype is now
31722         found in stdio.h.
31723
31724 2007-08-23  Jim Meyering  <jim@meyering.net>
31725
31726         Getdelim touchup.
31727         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31728         around the funlockfile call, since funlockfile never sets errno.
31729         Don't set errno upon failed realloc.
31730
31731 2007-08-22  Eric Blake  <ebb9@byu.net>
31732
31733         Getline touchups.
31734         * lib/getdelim.c (getdelim): Revert regression that required *n to
31735         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31736         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31737         getdelim, rather than whether implementation is missing.
31738         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31739         * lib/stdio_.h (getline): Also declare if replacement is
31740         required.
31741         * doc/functions/getdelim.texi: New file.
31742         * doc/functions/getline.texi: Likewise.
31743         * doc/gnulib.texi (Function Substitutes): Add new files.
31744         Reported by Bruno Haible.
31745
31746 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31747
31748         * users.txt: Add Guile.
31749
31750 2007-08-22  Eric Blake  <ebb9@byu.net>
31751
31752         * tests/test-getdelim.c (main): Use remove, not unlink.
31753         * tests/test-getline.c (main): Likewise.
31754
31755         Move getline and getdelim into stdio.h, per POSIX 200x.
31756         * modules/getline (Files): Remove getline.h.
31757         (Depends-on): Add stdio.
31758         (configure.ac): Add module indicator.
31759         * modules/getdelim (Files): Remove getdelim.h.
31760         (Depends-on): Add stdio.
31761         (configure.ac): Add module indicator.
31762         * modules/stdio (Makefile.am): Work with new indicators.
31763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31764         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31765         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31766         * lib/getdelim.h: Delete.
31767         * lib/getline.h: Delete.
31768         * lib/stdio_.h (getdelim, getline): Declare.
31769         * modules/getdelim-tests: New module.
31770         * modules/getline-tests: Likewise.
31771         * tests/test-getdelim.c: New file.
31772         * tests/test-getline.c: Likewise.
31773         * NEWS: Document the change.
31774         * lib/getline.c: Update choice of header.
31775         * lib/csharpcomp.c: Likewise.
31776         * lib/getpass.c: Likewise.
31777         * lib/javacomp.c: Likewise.
31778         * lib/javaversion.c: Likewise.
31779         * lib/yesno.c: Likewise.
31780         * lib/getdelim.c: Likewise.
31781         (getdelim): Set errno on failure, and avoid memory leak.
31782
31783 2007-08-19  Bruno Haible  <bruno@clisp.org>
31784
31785         * modules/closein (Depends-on): Add freadahead.
31786         * lib/closein.c: Include freadahead.h.
31787         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31788         is zero.
31789
31790 2007-08-19  Bruno Haible  <bruno@clisp.org>
31791
31792         * modules/freadahead-tests: New file.
31793         * tests/test-freadahead.sh: New file.
31794         * tests/test-freadahead.c: New file.
31795
31796         * modules/freadahead: New file.
31797         * lib/freadahead.h: New file.
31798         * lib/freadahead.c: New file.
31799         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31800         fbufmode, fpurge, freadable, fwritable.
31801
31802 2007-08-19  Eric Blake  <ebb9@byu.net>
31803
31804         Test yesno in combination with closein.
31805         * lib/yesno.c (yesno): Document use of stdin.
31806         * modules/yesno-tests (Files): New module.
31807         * tests/test-yesno.c (main): New file.
31808         * tests/test-yesno.sh: Likewise.
31809
31810 2007-08-19  Bruno Haible  <bruno@clisp.org>
31811
31812         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31813         * lib/fseeko.c (rpl_fseeko): Likewise.
31814         * lib/fseterr.c (fseterr): Likewise.
31815
31816 2007-08-19  Bruno Haible  <bruno@clisp.org>
31817
31818         * tests/test-lseek.c (main): Disable a test for BeOS.
31819         * doc/functions/lseek.texi: Document the BeOS bug.
31820
31821 2007-08-19  Bruno Haible  <bruno@clisp.org>
31822             Eric Blake  <ebb9@byu.net>
31823
31824         * lib/lseek.c: Include <sys/stat.h>.
31825         (rpl_lseek): Add workaround code also for Unix platforms.
31826         Needed for BeOS.
31827         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31828         * doc/functions/lseek.texi: Document BeOS definiency.
31829
31830 2007-08-18  Bruno Haible  <bruno@clisp.org>
31831
31832         * modules/fstrcmp-tests: New file.
31833         * tests/test-fstrcmp.c: New file.
31834
31835 2007-08-18  Bruno Haible  <bruno@clisp.org>
31836
31837         * modules/fstrcmp: New file, from GNU gettext with modifications.
31838         * lib/fstrcmp.h: New file, from GNU gettext.
31839         * lib/fstrcmp.c: New file, from GNU gettext.
31840         * MODULES.html.sh (String handling): Add fstrcmp.
31841
31842 2007-08-18  Bruno Haible  <bruno@clisp.org>
31843
31844         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31845         'bool'.
31846         (diag, compareseq): Remove const from the ctxt argument.
31847         (USE_HEURISTIC): Undefine at the end.
31848
31849 2007-08-18  Jim Meyering  <jim@meyering.net>
31850
31851         New file: lib/idcache.h
31852         * NEWS: Mention the addition.
31853         * modules/idcache (Files): Add lib/idcache.h
31854         * lib/idcache.c: Include "idcache.h".
31855         Don't include <sys/types.h>.
31856         Add a FIXME comment.
31857         Move file-scoped "static" declarations to the top.
31858         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31859
31860 2007-08-17  Bruno Haible  <bruno@clisp.org>
31861         and Paul Eggert  <eggert@cs.ucla.edu>
31862
31863         * MODULES.html.sh: Add diffseq.
31864         * modules/diffseq: New file.
31865         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31866         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31867
31868 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31869
31870         Import changes from coreutils for bootstrap script.
31871
31872         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31873
31874         * build-aux/bootstrap (slurp): Work even in environments where
31875         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31876         current code does not slurp files whose names start with ".", and
31877         this looks like it might be a troublesome area.
31878
31879         2007-07-11  Jim Meyering  <jim@meyering.net>
31880
31881         If there's a GPL vN copyright comment, require that N == 3.
31882
31883         2007-07-08  Jim Meyering  <jim@meyering.net>
31884
31885         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31886         * build-aux/bootstrap (mam_template): Move definition out of loop.
31887
31888         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31889
31890         * build-aux/bootstrap (symlink_to_dir): Rename function from
31891         symlink_to_gnulib.  Add a directory parameter.  Update all
31892         callers.
31893         (cp_mark_as_generated): Also check for -- and link to -- files in
31894         gl/.
31895
31896         2007-07-08  Jim Meyering  <jim@meyering.net>
31897
31898         Adapt to deeper hierarchy in gnulib.
31899         * build-aux/bootstrap (symlink_to_dir): If the destination
31900         directory doesn't exist, create it. This is required at least for
31901         "lib/uniwidth/cjk.h".
31902
31903         2007-05-15  Jim Meyering  <jim@meyering.net>
31904
31905         * build-aux/bootstrap: Now that generated Makefile.am files
31906         are no longer under version control, they must be created at
31907         bootstrap time.
31908
31909 2007-08-14  Ben Pfaff  <blp@gnu.org>
31910
31911         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31912
31913 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31914
31915         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31916         given the changes below.
31917         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31918         even on hosts that have padding bits beyond the supported 64.
31919
31920 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31921
31922         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31923         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31924         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31925         depends on it.
31926         (xstrtol_error): Remove.
31927         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31928         but with a different signature.
31929         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31930         * lib/xstrtol-error.c: Include exitfail.h.
31931         (xstrtol_fatal): New function, with a different signature from the
31932         old xstrtol_error, so that the caller need not worry about passing
31933         in an exit status, or about storage management of the option argument.
31934         (xstrtol_error): Now a static function.  Redo signature to
31935         implement xstrtol_fatal.  Output the correct number of hyphens in
31936         front of the option so that the caller need not worry about
31937         storage management.
31938         (N_): New macro.
31939         (_): Remove; not used now.
31940         * modules/xstrtol: Depend on getopt.
31941         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31942         of old STRTOL_FATAL_ERROR macro.
31943         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31944         of test program.
31945         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31946         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31947
31948 2007-08-08  Eric Blake  <ebb9@byu.net>
31949
31950         * lib/xstrtol-error.c: Add missing include.
31951
31952         Move xstrtol messages into gnulib domain, when --pobase is used.
31953         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31954         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31955         * modules/xstrtol (Files): Distribute new file.
31956         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31957         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31958         * tests/test-xstrtol.c: ...into new file.
31959         * tests/test-xstrtoul.c: Also test xstrtoul.
31960         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31961         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31962         * tests/test-xstrtol.sh: Drive the tests.
31963         * tests/test-xstrtoimax.sh: Likewise.
31964         * tests/test-xstrtoumax.sh: Likewise.
31965         * modules/xstrtol-tests: New module.
31966         * modules/xstrtoimax-tests: Likewise.
31967         * modules/xstrtoumax-tests: Likewise.
31968
31969 2007-08-08  Jim Meyering  <jim@meyering.net>
31970
31971         New function: mfile_name_concat.
31972         * lib/filenamecat.c (mfile_name_concat): New function, just like
31973         file_name_concat, but return NULL upon failure rather than exiting
31974         with a diagnostic.
31975         * lib/filenamecat.h: Declare it.
31976
31977 2007-08-07  Bruno Haible  <bruno@clisp.org>
31978
31979         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31980         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31981         warning from gcc.
31982         Reported by Eric Blake.
31983
31984 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31985
31986         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31987         * modules/crypto/arcfour (License): Likewise.
31988         * modules/crypto/des-tests (License): Likewise.
31989         * modules/crypto/gc-arctwo-tests (License): Likewise.
31990         * modules/crypto/gc-des-tests (License): Likewise.
31991         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31992         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31993         * modules/crypto/gc-md2-tests (License): Likewise.
31994         * modules/crypto/gc-md4-tests (License): Likewise.
31995         * modules/crypto/gc-md5-tests (License): Likewise.
31996         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31997         * modules/crypto/gc-rijndael-tests (License): Likewise.
31998         * modules/crypto/gc-sha1-tests (License): Likewise.
31999         * modules/crypto/gc-tests (License): Likewise.
32000         * modules/crypto/hmac-md5 (License): Likewise.
32001         * modules/crypto/hmac-sha1 (License): Likewise.
32002         * modules/crypto/md2-tests (License): Likewise.
32003         * modules/crypto/md4-tests (License): Likewise.
32004         * modules/crypto/md5 (License): Likewise.
32005         * modules/crypto/rijndael (License): Likewise.
32006         * modules/crypto/sha1 (License): Likewise.
32007         * modules/memxor (License): Likewise.
32008
32009 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32010         and Bruno Haible  <bruno@clisp.org>
32011
32012         * NEWS: Describe interface changes to human, xstrtol.
32013         * lib/human.h: Include <xstrtol.h>.
32014         (human_options): Return enum strtol_error, not int.  Remove
32015         bool arg; take int * instead.
32016         * lib/human.c: Don't include "gettext.h".
32017         (_): Remove; no longer used.
32018         Don't include <xstrtol.h>, since human.h does it.
32019         (human_options): Adjust to abovementioned interface changes.
32020         Do not report error to stderr; that's now the caller's
32021         responsibility.
32022         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32023         interface change.
32024         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32025         Str, Argument_type_string.  All uses changed.  Put " argument"
32026         in diagnostics to make them clearer.  Change wording of suffix
32027         message for clarity.
32028         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32029         Argument_type_string.
32030         (STRTOL_FATAL_WARN): Remove; no longer used.
32031         * modules/human (Depends-on): Remove gettext-h.
32032
32033 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32034
32035         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32036
32037 2007-07-31  Bruno Haible  <bruno@clisp.org>
32038
32039         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32040         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32041         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32042
32043 2007-07-31  Bruno Haible  <bruno@clisp.org>
32044
32045         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32046         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32047
32048 2007-07-30  Bruno Haible  <bruno@clisp.org>
32049
32050         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32051         * modules/c-ctype (License): Likewise.
32052         * modules/c-strcase (License): Likewise.
32053         * modules/check-version (License): Likewise.
32054         * modules/iconv (License): Likewise.
32055         * modules/iconv_open (License): Likewise.
32056         * modules/read-file (License): Likewise.
32057         * modules/striconv (License): Likewise.
32058         * modules/strverscmp (License): Likewise.
32059         * modules/vasprintf (License): Likewise.
32060         * modules/crypto/des (License): Likewise.
32061         * modules/crypto/gc (License): Likewise.
32062         * modules/crypto/gc-arcfour (License): Likewise.
32063         * modules/crypto/gc-arctwo (License): Likewise.
32064         * modules/crypto/gc-des (License): Likewise.
32065         * modules/crypto/gc-hmac-md5 (License): Likewise.
32066         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32067         * modules/crypto/gc-md2 (License): Likewise.
32068         * modules/crypto/gc-md4 (License): Likewise.
32069         * modules/crypto/gc-md5 (License): Likewise.
32070         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32071         * modules/crypto/gc-random (License): Likewise.
32072         * modules/crypto/gc-rijndael (License): Likewise.
32073         * modules/crypto/gc-sha1 (License): Likewise.
32074         * modules/crypto/md2 (License): Likewise.
32075         * modules/crypto/md4 (License): Likewise.
32076
32077 2007-07-30  Jim Meyering  <jim@meyering.net>
32078
32079         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32080         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32081         it has valid stat data.  This bug would cause du not to count the
32082         sizes of inaccessible directories.
32083         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32084         in <http://bugzilla.redhat.com/250077>.
32085
32086 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32087             Bruno Haible  <bruno@clisp.org>
32088
32089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32090         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32091         #include_next, gives a diagnostic about it, but reports no error in
32092         the exit code.
32093         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32094
32095 2007-07-24  Ben Pfaff  <blp@gnu.org>
32096
32097         Improve name: "count-one-bits" is better than "popcount".
32098         * MODULES.html.sh: Update name.
32099         * lib/popcount.h: Renamed lib/count-one-bits.h.
32100         (popcount): Renamed count_one_bits.
32101         (popcountl): Renamed count_one_bits_l.
32102         (popcountll): Renamed count_one_bits_ll.
32103         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32104         * modules/popcount: Renamed module/count-one-bits.
32105         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32106         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32107
32108 2007-07-23  Ben Pfaff  <blp@gnu.org>
32109
32110         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32111         better code generation, and add U to large constants to avoid
32112         warnings, in non-GCC case.
32113         Suggested by Bruno Haible.
32114
32115 2007-07-23  Ben Pfaff  <blp@gnu.org>
32116
32117         * lib/popcount.h: Use verify_true instead of if...abort.
32118         * modules/popcount: Depend on verify module.
32119         Suggested by Jim Meyering.
32120
32121 2007-07-23  Bruno Haible  <bruno@clisp.org>
32122
32123         * gnulib-tool (func_import): Create a .cvsignore file also when the
32124         directory is not yet in CVS but the toplevel directory is. When
32125         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32126         Reported by Karl Berry.
32127
32128 2007-07-22  Ben Pfaff  <blp@gnu.org>
32129
32130         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32131         case.
32132         Suggested by Eric Blake.
32133
32134 2007-07-22  Ben Pfaff  <blp@gnu.org>
32135
32136         New module: popcount.
32137         * MODULES.html.sh: Add popcount.
32138         * modules/popcount: New file.
32139         * modules/popcount-tests: New file.
32140         * tests/test-popcount.c: New file.
32141         * lib/popcount.h: New file.
32142         * m4/popcount.m4: New file.
32143
32144 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32145
32146         * build-aux/announce-gen: Update to GPLv3.
32147
32148         * build-aux/config.guess: Update from config.
32149
32150 2007-07-21  Bruno Haible  <bruno@clisp.org>
32151
32152         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32153         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32154
32155 2007-07-20  Jim Meyering  <jim@meyering.net>
32156
32157         * check-module: Diagnose a self-dependency.
32158
32159 2007-07-19  Bruno Haible  <bruno@clisp.org>
32160
32161         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32162         empty.
32163         Reported by Eric Blake.
32164
32165 2007-07-18  Bruno Haible  <bruno@clisp.org>
32166
32167         * gnulib-tool: New options --po-base, --po-domain.
32168         (func_usage): Document them.
32169         (pobase, po_domain): New variables.
32170         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32171         DEFAULT_TEXT_DOMAIN.
32172         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32173         (func_import): Consider pobase and po_domain. Create a po/ directory.
32174         (func_create_testdir): Set pobase and po_domain to empty.
32175         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32176         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32177
32178 2007-07-18  Bruno Haible  <bruno@clisp.org>
32179
32180         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32181         EXTRA_DIST augmentation for files in build-aux/.
32182
32183 2007-07-16  Bruno Haible  <bruno@clisp.org>
32184
32185         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32186         * modules/getdelim (License): Likewise.
32187
32188 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32189
32190         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32191         * modules/d-type (License): Likewise.
32192         * modules/extensions (License): Likewise.
32193         * modules/fnmatch (License): Likewise.
32194         * modules/fseeko (License): Likewise.
32195         * modules/getaddrinfo (License): Likewise.
32196         * modules/getline (License): Likewise.
32197         * modules/getlogin_r (License): Likewise.
32198         * modules/getpass (License): Likewise.
32199         * modules/gettimeofday (License): Likewise.
32200         * modules/glob (License): Likewise.
32201         * modules/inet_ntop (License): Likewise.
32202         * modules/malloc (License): Likewise.
32203         * modules/malloca (License): Likewise.
32204         * modules/memmem (License): Likewise.
32205         * modules/mempcpy (License): Likewise.
32206         * modules/memset (License): Likewise.
32207         * modules/minmax (License): Likewise.
32208         * modules/mktime (License): Likewise.
32209         * modules/netinet_in (License): Likewise.
32210         * modules/pathmax (License): Likewise.
32211         * modules/poll (License): Likewise.
32212         * modules/regex (License): Likewise.
32213         * modules/snprintf (License): Likewise.
32214         * modules/stdbool (License): Likewise.
32215         * modules/stdint (License): Likewise.
32216         * modules/stdio (License): Likewise.
32217         * modules/strcase (License): Likewise.
32218         * modules/strcasestr (License): Likewise.
32219         * modules/strdup (License): Likewise.
32220         * modules/string (License): Likewise.
32221         * modules/strndup (License): Likewise.
32222         * modules/strnlen (License): Likewise.
32223         * modules/strpbrk (License): Likewise.
32224         * modules/strptime (License): Likewise.
32225         * modules/strsep (License): Likewise.
32226         * modules/sys_select (License): Likewise.
32227         * modules/sys_socket (License): Likewise.
32228         * modules/sys_stat (License): Likewise.
32229         * modules/sys_time (License): Likewise.
32230         * modules/time (License): Likewise.
32231         * modules/time_r (License): Likewise.
32232         * modules/timegm (License): Likewise.
32233         * modules/unistd (License): Likewise.
32234         * modules/vsnprintf (License): Likewise.
32235         * modules/wctype (License): Likewise.
32236
32237 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32238
32239         * modules/argz (License): LGPLv2+.
32240
32241 2007-07-15  Karl Berry  <karl@gnu.org>
32242
32243         * doc/gnulib.texi: revise node structure per new fdl.texi.
32244
32245 2007-07-14  Bruno Haible  <bruno@clisp.org>
32246
32247         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32248         the output file.
32249         * lib/uniname/uninames.h: Regenerated.
32250
32251 2007-07-14  Karl Berry  <karl@gnu.org>
32252
32253         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32254         omitting sectioning and index commands.
32255
32256 2007-07-13  Bruno Haible  <bruno@clisp.org>
32257
32258         New gnulib-tool option --more-symlinks.
32259         * gnulib-tool (func_usage): Document --more-symlinks.
32260         (do_copyrights): New variable.
32261         Recognize option --more-symlinks.
32262         (func_import): Don't add a copyright notice transform to
32263         sed_transform_lib_file if do_copyrights is empty.
32264
32265 2007-07-13  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/vasnprintf.c (decimal_point_char): Define also if
32268         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32269         && !NEED_PRINTF_DIRECTIVE_A.
32270         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32271         Gary V. Vaughan <gary@gnu.org>.
32272
32273 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         * lib/inttypes_.h: Undo previous change, since it was fixed
32276         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32277
32278 2007-07-13  Bruno Haible  <bruno@clisp.org>
32279
32280         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32281         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32282
32283 2007-07-13  Jim Meyering  <jim@meyering.net>
32284
32285         df: Don't fail for Tru64's "file-on-file mount".
32286         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32287         so we fall through and use statfs instead.  Details here:
32288         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32289         Reported by Albert Chin.
32290
32291 2007-07-13  Bruno Haible  <bruno@clisp.org>
32292
32293         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32294         * modules/configmake (License): Likewise.
32295         * modules/gettext (License): Likewise.
32296         * modules/gettext-h (License): Likewise.
32297         * modules/include_next (License): Likewise.
32298         * modules/link-warning (License): Likewise.
32299         * modules/localcharset (License): Likewise.
32300         * modules/localename (License): Likewise.
32301         * modules/lock (License): Likewise.
32302         * modules/relocatable-lib-lgpl (License): Likewise.
32303         * modules/size_max (License): Likewise.
32304         * modules/vasnprintf (License): Likewise.
32305         * modules/wchar (License): Likewise.
32306         * modules/xsize (License): Likewise.
32307
32308 2007-07-13  Bruno Haible  <bruno@clisp.org>
32309
32310         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32311         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32312
32313 2007-07-12  Bruno Haible  <bruno@clisp.org>
32314
32315         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32316         in the modules files.
32317
32318 2007-07-11  Karl Berry  <karl@gnu.org>
32319
32320         * MODULES.html.sh (func_module): use
32321          sed -e '\|^'"${includefile}"'$|d'
32322          instead of /.../d, to avoid errors on $includefile's containing /.
32323
32324 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32325
32326         * gnulib-tool (func_import): Avoid duplication of --avoid
32327         statements
32328         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32329         names to `_' in variable names.
32330
32331 2007-07-10  Eric Blake  <ebb9@byu.net>
32332
32333         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32334         * NEWS: Document this change.
32335
32336 2007-07-08  Bruno Haible  <bruno@clisp.org>
32337
32338         Update to Unicode 5.0.
32339         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32340         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32341         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32342         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32343         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32344         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32345         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32346         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32347         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32348         U+10A3F, U+1D242..U+1D244.
32349         (nonspacing_table_ind): Update.
32350         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32351         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32352
32353 2007-07-08  Bruno Haible  <bruno@clisp.org>
32354
32355         Update to Unicode 5.0.
32356         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32357         code transform. Extend the name index field of unicode_name_to_code and
32358         unicode_code_to_name from 16 to 24 bits.
32359         * lib/uniname/uniname.c (unicode_character_name,
32360         unicode_name_character): Add the range 0x12xxx to the code transform.
32361         * lib/uniname/uninames.h: Regenerated.
32362         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32363
32364 2007-07-07  Bruno Haible  <bruno@clisp.org>
32365
32366         * modules/wcwidth-tests: New file.
32367         * tests/test-wcwidth.c: New file.
32368
32369         Work around MacOS X wcwidth() bug.
32370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32371         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32372         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32373         original wcwidth in non-UTF-8 locales.
32374         * modules/wcwidth (Depends-on): Add localcharset, streq,
32375         uniwidth/width.
32376         * doc/functions/wcwidth.texi: Update.
32377
32378 2007-07-07  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32381         (wcwidth): New declaration.
32382         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32383         macros.
32384         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32385         here. Prepare for creating <wchar.h> unconditionally.
32386         * modules/wchar (Depends-on): Add link-warning.
32387         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32388         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32389         * lib/wcwidth.h: Remove file.
32390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32391         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32392         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32393         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32394         (Include): Replace wcwidth.h with <wchar.h>.
32395         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32396         * lib/mbchar.h: Don't include wcwidth.h.
32397         * lib/mbswidth.c: Likewise.
32398         * NEWS: Mention the change.
32399
32400 2007-07-07  Bruno Haible  <bruno@clisp.org>
32401
32402         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32403         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32404         definition with an external declaration.
32405         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32406         defined as a function. Remove AC_C_INLINE requirement.
32407         * modules/wcwidth (Files): Add lib/wcwidth.c.
32408         (Makefile.am): Remove redundant statement.
32409
32410 2007-07-07  Bruno Haible  <bruno@clisp.org>
32411
32412         * MODULES.html.sh (Unicode string functions): Add the new modules.
32413
32414         * tests/uniwidth/test-u32-strwidth.c: New file.
32415         * modules/uniwidth/u32-strwidth-tests: New file.
32416
32417         * lib/uniwidth/u32-strwidth.c: New file.
32418         * modules/uniwidth/u32-strwidth: New file.
32419
32420         * tests/uniwidth/test-u16-strwidth.c: New file.
32421         * modules/uniwidth/u16-strwidth-tests: New file.
32422
32423         * lib/uniwidth/u16-strwidth.c: New file.
32424         * modules/uniwidth/u16-strwidth: New file.
32425
32426         * tests/uniwidth/test-u8-strwidth.c: New file.
32427         * modules/uniwidth/u8-strwidth-tests: New file.
32428
32429         * lib/uniwidth/u8-strwidth.c: New file.
32430         * modules/uniwidth/u8-strwidth: New file.
32431
32432         * tests/uniwidth/test-u32-width.c: New file.
32433         * modules/uniwidth/u32-width-tests: New file.
32434
32435         * lib/uniwidth/u32-width.c: New file.
32436         * modules/uniwidth/u32-width: New file.
32437
32438         * tests/uniwidth/test-u16-width.c: New file.
32439         * modules/uniwidth/u16-width-tests: New file.
32440
32441         * lib/uniwidth/u16-width.c: New file.
32442         * modules/uniwidth/u16-width: New file.
32443
32444         * tests/uniwidth/test-u8-width.c: New file.
32445         * modules/uniwidth/u8-width-tests: New file.
32446
32447         * lib/uniwidth/u8-width.c: New file.
32448         * modules/uniwidth/u8-width: New file.
32449
32450         * tests/uniwidth/test-uc_width.c: New file.
32451         * modules/uniwidth/width-tests: New file.
32452
32453         * lib/uniwidth/width.c: New file, from GNU libiconv.
32454         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32455         * modules/uniwidth/width: New file.
32456
32457         * lib/uniwidth.h: New file, from GNU libiconv.
32458         * modules/uniwidth/base: New file.
32459
32460 2007-07-07  Bruno Haible  <bruno@clisp.org>
32461
32462         * lib/uniname.h: New file, from GNU gettext.
32463         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32464         * lib/uniname/uninames.h: New file, from GNU gettext.
32465         * lib/uniname/uniname.c: New file, from GNU gettext.
32466         * tests/uniname/test-uninames.sh: New file.
32467         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32468         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32469         * modules/uniname/base: New file.
32470         * modules/uniname/uniname: New file.
32471         * modules/uniname/uniname-tests: New file.
32472         * MODULES.html.sh (Unicode string functions): Add the new modules.
32473
32474 2007-07-06  Bruno Haible  <bruno@clisp.org>
32475
32476         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32477
32478 2007-07-06  Bruno Haible  <bruno@clisp.org>
32479
32480         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32481         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32482         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32483         include <sys/time.h>.
32484         Reported by Eric Blake.
32485
32486 2007-07-06  Eric Blake  <ebb9@byu.net>
32487
32488         Fix testing canonicalize on cygwin.
32489         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32490         Revert patch from 2007-06-19.
32491         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32492         canonicalize module is also in use.
32493         * tests/test-canonicalize.c: New file.
32494         * tests/test-canonicalize.sh: Likewise.
32495         * modules/canonicalize-tests: Likewise.
32496
32497 2007-07-06  Jim Meyering  <jim@meyering.net>
32498
32499         * lib/getugroups.c (getugroups): Detect getgrent failure.
32500         Adjust comment to reflect reality: this function may return -1.
32501
32502 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32503
32504         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32505         the new TP address.
32506         (usage): Fix typo
32507         (gnulib_mk): New variable.
32508
32509 2007-07-05  Jim Meyering  <jim@meyering.net>
32510
32511         Don't let endgrent clobber errno, no matter how improbable.
32512         * lib/getugroups.c (getugroups): Save and restore errno around
32513         endgrent call.
32514
32515         Close the group DB even when failing with 2^31 or more members.
32516         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32517
32518 2007-07-04  Jim Meyering  <jim@meyering.net>
32519
32520         * lib/getugroups.h: New file.
32521         * lib/getugroups.c: Include "getugroups.h".
32522         Remove uses of "register" keyword.
32523         Move local variable, "cp", down into scope where used.
32524         Give "username" parameter the "const" attribute.
32525         * modules/getugroups (Files): Add lib/getugroups.h
32526
32527 2007-07-04  Karl Berry  <karl@gnu.org>
32528
32529         * MODULES.html.sh (func_all_modules): Complete rename of
32530         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32531
32532 2007-07-02  Bruno Haible  <bruno@clisp.org>
32533
32534         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32535         mode, when inttypes.h comes from gnulib.
32536         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32537
32538 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32539
32540         * NEWS: Mention lgpl module name change.
32541
32542         * modules/lgpl-2.1: Renamed from lgpl.
32543
32544         * NEWS: Mention gpl module name change.
32545
32546         * modules/gpl-3.0: New file, based on gpl-2.0.
32547
32548         * modules/gpl-2.0: Renamed from gpl.
32549
32550         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32551         doc/gpl-2.0.texi.
32552
32553 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32554
32555         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32556         #define __STDC_LIMIT_MACROS temporarily while including
32557         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32558         Problem reported by Joel E. Denny in
32559         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32560
32561 2007-07-01  Bruno Haible  <bruno@clisp.org>
32562
32563         * lib/unistdio.h: New file.
32564         * lib/unistdio/u-asnprintf.h: New file.
32565         * lib/unistdio/u-asprintf.h: New file.
32566         * lib/unistdio/u-printf-args.c: New file.
32567         * lib/unistdio/u-printf-args.h: New file.
32568         * lib/unistdio/u-printf-parse.h: New file.
32569         * lib/unistdio/u-snprintf.h: New file.
32570         * lib/unistdio/u-sprintf.h: New file.
32571         * lib/unistdio/u-vasprintf.h: New file.
32572         * lib/unistdio/u-vsnprintf.h: New file.
32573         * lib/unistdio/u-vsprintf.h: New file.
32574         * lib/unistdio/ulc-asnprintf.c: New file.
32575         * lib/unistdio/ulc-asprintf.c: New file.
32576         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32577         * lib/unistdio/ulc-printf-parse.c: New file.
32578         * lib/unistdio/ulc-snprintf.c: New file.
32579         * lib/unistdio/ulc-sprintf.c: New file.
32580         * lib/unistdio/ulc-vasnprintf.c: New file.
32581         * lib/unistdio/ulc-vasprintf.c: New file.
32582         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32583         * lib/unistdio/ulc-vsnprintf.c: New file.
32584         * lib/unistdio/ulc-vsprintf.c: New file.
32585         * lib/unistdio/u8-asnprintf.c: New file.
32586         * lib/unistdio/u8-asprintf.c: New file.
32587         * lib/unistdio/u8-printf-parse.c: New file.
32588         * lib/unistdio/u8-snprintf.c: New file.
32589         * lib/unistdio/u8-sprintf.c: New file.
32590         * lib/unistdio/u8-vasnprintf.c: New file.
32591         * lib/unistdio/u8-vasprintf.c: New file.
32592         * lib/unistdio/u8-vsnprintf.c: New file.
32593         * lib/unistdio/u8-vsprintf.c: New file.
32594         * lib/unistdio/u8-u8-asnprintf.c: New file.
32595         * lib/unistdio/u8-u8-asprintf.c: New file.
32596         * lib/unistdio/u8-u8-snprintf.c: New file.
32597         * lib/unistdio/u8-u8-sprintf.c: New file.
32598         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32599         * lib/unistdio/u8-u8-vasprintf.c: New file.
32600         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32601         * lib/unistdio/u8-u8-vsprintf.c: New file.
32602         * lib/unistdio/u16-asnprintf.c: New file.
32603         * lib/unistdio/u16-asprintf.c: New file.
32604         * lib/unistdio/u16-printf-parse.c: New file.
32605         * lib/unistdio/u16-snprintf.c: New file.
32606         * lib/unistdio/u16-sprintf.c: New file.
32607         * lib/unistdio/u16-vasnprintf.c: New file.
32608         * lib/unistdio/u16-vasprintf.c: New file.
32609         * lib/unistdio/u16-vsnprintf.c: New file.
32610         * lib/unistdio/u16-vsprintf.c: New file.
32611         * lib/unistdio/u16-u16-asnprintf.c: New file.
32612         * lib/unistdio/u16-u16-asprintf.c: New file.
32613         * lib/unistdio/u16-u16-snprintf.c: New file.
32614         * lib/unistdio/u16-u16-sprintf.c: New file.
32615         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32616         * lib/unistdio/u16-u16-vasprintf.c: New file.
32617         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32618         * lib/unistdio/u16-u16-vsprintf.c: New file.
32619         * lib/unistdio/u32-asnprintf.c: New file.
32620         * lib/unistdio/u32-asprintf.c: New file.
32621         * lib/unistdio/u32-printf-parse.c: New file.
32622         * lib/unistdio/u32-snprintf.c: New file.
32623         * lib/unistdio/u32-sprintf.c: New file.
32624         * lib/unistdio/u32-vasnprintf.c: New file.
32625         * lib/unistdio/u32-vasprintf.c: New file.
32626         * lib/unistdio/u32-vsnprintf.c: New file.
32627         * lib/unistdio/u32-vsprintf.c: New file.
32628         * lib/unistdio/u32-u32-asnprintf.c: New file.
32629         * lib/unistdio/u32-u32-asprintf.c: New file.
32630         * lib/unistdio/u32-u32-snprintf.c: New file.
32631         * lib/unistdio/u32-u32-sprintf.c: New file.
32632         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32633         * lib/unistdio/u32-u32-vasprintf.c: New file.
32634         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32635         * lib/unistdio/u32-u32-vsprintf.c: New file.
32636         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32637         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32638         * tests/unistdio/test-ulc-printf1.h: New file.
32639         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
32640         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
32641         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
32642         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
32643         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
32644         * tests/unistdio/test-ulc-vasprintf1.c: New file.
32645         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
32646         * tests/unistdio/test-ulc-vsprintf1.c: New file.
32647         * tests/unistdio/test-u8-asnprintf1.c: New file.
32648         * tests/unistdio/test-u8-asnprintf1.h: New file.
32649         * tests/unistdio/test-u8-printf1.h: New file.
32650         * tests/unistdio/test-u8-vasnprintf1.c: New file.
32651         * tests/unistdio/test-u8-vasnprintf2.c: New file.
32652         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
32653         * tests/unistdio/test-u8-vasnprintf3.c: New file.
32654         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
32655         * tests/unistdio/test-u8-vasprintf1.c: New file.
32656         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32657         * tests/unistdio/test-u8-vsprintf1.c: New file.
32658         * tests/unistdio/test-u16-asnprintf1.c: New file.
32659         * tests/unistdio/test-u16-asnprintf1.h: New file.
32660         * tests/unistdio/test-u16-printf1.h: New file.
32661         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32662         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32663         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32664         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32665         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32666         * tests/unistdio/test-u16-vasprintf1.c: New file.
32667         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32668         * tests/unistdio/test-u16-vsprintf1.c: New file.
32669         * tests/unistdio/test-u32-asnprintf1.c: New file.
32670         * tests/unistdio/test-u32-asnprintf1.h: New file.
32671         * tests/unistdio/test-u32-printf1.h: New file.
32672         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32673         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32674         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32675         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32676         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32677         * tests/unistdio/test-u32-vasprintf1.c: New file.
32678         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32679         * tests/unistdio/test-u32-vsprintf1.c: New file.
32680         * modules/unistdio/base: New file.
32681         * modules/unistdio/u-printf-args: New file.
32682         * modules/unistdio/ulc-asnprintf: New file.
32683         * modules/unistdio/ulc-asprintf: New file.
32684         * modules/unistdio/ulc-fprintf: New file.
32685         * modules/unistdio/ulc-printf-parse: New file.
32686         * modules/unistdio/ulc-snprintf: New file.
32687         * modules/unistdio/ulc-sprintf: New file.
32688         * modules/unistdio/ulc-vasnprintf: New file.
32689         * modules/unistdio/ulc-vasprintf: New file.
32690         * modules/unistdio/ulc-vfprintf: New file.
32691         * modules/unistdio/ulc-vsnprintf: New file.
32692         * modules/unistdio/ulc-vsprintf: New file.
32693         * modules/unistdio/u8-asnprintf: New file.
32694         * modules/unistdio/u8-asprintf: New file.
32695         * modules/unistdio/u8-printf-parse: New file.
32696         * modules/unistdio/u8-snprintf: New file.
32697         * modules/unistdio/u8-sprintf: New file.
32698         * modules/unistdio/u8-vasnprintf: New file.
32699         * modules/unistdio/u8-vasprintf: New file.
32700         * modules/unistdio/u8-vsnprintf: New file.
32701         * modules/unistdio/u8-vsprintf: New file.
32702         * modules/unistdio/u8-u8-asnprintf: New file.
32703         * modules/unistdio/u8-u8-asprintf: New file.
32704         * modules/unistdio/u8-u8-snprintf: New file.
32705         * modules/unistdio/u8-u8-sprintf: New file.
32706         * modules/unistdio/u8-u8-vasnprintf: New file.
32707         * modules/unistdio/u8-u8-vasprintf: New file.
32708         * modules/unistdio/u8-u8-vsnprintf: New file.
32709         * modules/unistdio/u8-u8-vsprintf: New file.
32710         * modules/unistdio/u16-asnprintf: New file.
32711         * modules/unistdio/u16-asprintf: New file.
32712         * modules/unistdio/u16-printf-parse: New file.
32713         * modules/unistdio/u16-snprintf: New file.
32714         * modules/unistdio/u16-sprintf: New file.
32715         * modules/unistdio/u16-vasnprintf: New file.
32716         * modules/unistdio/u16-vasprintf: New file.
32717         * modules/unistdio/u16-vsnprintf: New file.
32718         * modules/unistdio/u16-vsprintf: New file.
32719         * modules/unistdio/u16-u16-asnprintf: New file.
32720         * modules/unistdio/u16-u16-asprintf: New file.
32721         * modules/unistdio/u16-u16-snprintf: New file.
32722         * modules/unistdio/u16-u16-sprintf: New file.
32723         * modules/unistdio/u16-u16-vasnprintf: New file.
32724         * modules/unistdio/u16-u16-vasprintf: New file.
32725         * modules/unistdio/u16-u16-vsnprintf: New file.
32726         * modules/unistdio/u16-u16-vsprintf: New file.
32727         * modules/unistdio/u32-asnprintf: New file.
32728         * modules/unistdio/u32-asprintf: New file.
32729         * modules/unistdio/u32-printf-parse: New file.
32730         * modules/unistdio/u32-snprintf: New file.
32731         * modules/unistdio/u32-sprintf: New file.
32732         * modules/unistdio/u32-vasnprintf: New file.
32733         * modules/unistdio/u32-vasprintf: New file.
32734         * modules/unistdio/u32-vsnprintf: New file.
32735         * modules/unistdio/u32-vsprintf: New file.
32736         * modules/unistdio/u32-u32-asnprintf: New file.
32737         * modules/unistdio/u32-u32-asprintf: New file.
32738         * modules/unistdio/u32-u32-snprintf: New file.
32739         * modules/unistdio/u32-u32-sprintf: New file.
32740         * modules/unistdio/u32-u32-vasnprintf: New file.
32741         * modules/unistdio/u32-u32-vasprintf: New file.
32742         * modules/unistdio/u32-u32-vsnprintf: New file.
32743         * modules/unistdio/u32-u32-vsprintf: New file.
32744         * modules/unistdio/ulc-asnprintf-tests: New file.
32745         * modules/unistdio/ulc-vasnprintf-tests: New file.
32746         * modules/unistdio/ulc-vasprintf-tests: New file.
32747         * modules/unistdio/ulc-vsnprintf-tests: New file.
32748         * modules/unistdio/ulc-vsprintf-tests: New file.
32749         * modules/unistdio/u8-asnprintf-tests: New file.
32750         * modules/unistdio/u8-vasnprintf-tests: New file.
32751         * modules/unistdio/u8-vasprintf-tests: New file.
32752         * modules/unistdio/u8-vsnprintf-tests: New file.
32753         * modules/unistdio/u8-vsprintf-tests: New file.
32754         * modules/unistdio/u16-asnprintf-tests: New file.
32755         * modules/unistdio/u16-vasnprintf-tests: New file.
32756         * modules/unistdio/u16-vasprintf-tests: New file.
32757         * modules/unistdio/u16-vsnprintf-tests: New file.
32758         * modules/unistdio/u16-vsprintf-tests: New file.
32759         * modules/unistdio/u32-asnprintf-tests: New file.
32760         * modules/unistdio/u32-vasnprintf-tests: New file.
32761         * modules/unistdio/u32-vasprintf-tests: New file.
32762         * modules/unistdio/u32-vsnprintf-tests: New file.
32763         * modules/unistdio/u32-vsprintf-tests: New file.
32764         * MODULES.html.sh (Unicode string functions): Add the new modules.
32765
32766 2007-07-01  Bruno Haible  <bruno@clisp.org>
32767
32768         * lib/sprintf.c (sprintf): Limit the available length estimation,
32769         to avoid address wraparound.
32770         * lib/vsprintf.c (vsprintf): Likewise.
32771         * modules/sprintf-posix (Dependencies): Add stdint.
32772         * modules/vsprintf-posix (Dependencies): Likewise.
32773
32774 2007-07-01  Bruno Haible  <bruno@clisp.org>
32775
32776         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32777         Windows PATH as well. Conservative double-quoting. Comments.
32778
32779 2007-07-01  Bruno Haible  <bruno@clisp.org>
32780             Eric Blake  <ebb9@byu.net>
32781             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32782
32783         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32784         empty components in $PATH, denoting '.'.
32785
32786 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32787
32788         * gnulib-tool: Fix indentation.
32789         (func_create_megatestdir): Likewise.
32790         Report by Bruno Haible.
32791
32792 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32793
32794         Sync from Automake.
32795         * build-aux/gnupload: Fix shell portability issues with for loops.
32796         Report by Karl Berry.
32797
32798 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32799
32800         * build-aux/maint.mk (POURL): Use translationproject.org.
32801
32802 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32803             Bruno Haible  <bruno@clisp.org>
32804
32805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32806         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32807         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32808         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32809         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32810
32811 2007-06-27  Bruno Haible  <bruno@clisp.org>
32812
32813         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32814         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32815
32816 2007-06-26  Karl Berry  <karl@gnu.org>
32817
32818         * MODULES.html.sh: remove xreadlink-with-size.
32819
32820 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32821
32822         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32823         method that I hope also handles the double-include problem noted
32824         by Bruno Haible in
32825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32826
32827 2007-06-23  Bruno Haible  <bruno@clisp.org>
32828
32829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32830         Don't let the 'mostlyclean' target fail if the last subdirectory could
32831         not be removed.
32832         Reported by Karl Berry.
32833
32834 2007-06-23  Bruno Haible  <bruno@clisp.org>
32835
32836         * gnulib-tool (echo): Add a speedier workaround for ksh.
32837         * tests/test-echo.sh: Likewise.
32838
32839 2007-06-23  Bruno Haible  <bruno@clisp.org>
32840
32841         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32842         * tests/test-echo.sh: Likewise.
32843
32844 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32845
32846         * gnulib-tool (IFS): Initialize early, so we don't set it to
32847         empty later.
32848         (self_abspathname): Rewrite algorithm to set it, reindent.
32849         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32850         (func_create_megatestdir): Merge some sed scripts.
32851
32852 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32853
32854         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32855         exposed by Sun Studio 11 cc on Solaris 8.
32856
32857 2007-06-22  Bruno Haible  <bruno@clisp.org>
32858
32859         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32860         backslashes.
32861         * tests/test-echo.sh: New file.
32862
32863 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32864
32865         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32866         simplify `sed_replace_build_aux' scripts, they are portable but
32867         echoing them with `echo' is not.
32868         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32869
32870 2007-06-21  Karl Berry  <karl@gnu.org>
32871
32872         * config/srclist.txt: guess we can't handle the licenses via
32873         srclist at the moment.
32874
32875 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32876
32877         * MODULES.html.sh: Add include_next.
32878         * modules/include_next: New file.
32879
32880 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32881
32882         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32883         INCLUDE_NEXT.
32884         (gl_CHECK_NEXT_HEADERS): New macro.
32885         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32886         the obsolescent gl_ABSOLUTE_HEADER.
32887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32888         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32889         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32890         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32891         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32892         * m4/math_h.m4 (gl_MATH_H): Likewise.
32893         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32894         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32895         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32896         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32897         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32898         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32900         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32901         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32902         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32904         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32905         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32906         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32907         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32908         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32909         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32910         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32911         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32912         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32913         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32914         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32915         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32916         * lib/float_.h: Likewise.
32917         * lib/inttypes_.h: Likewise.
32918         * lib/math_.h: Likewise.
32919         * lib/search_.h: Likewise.
32920         * lib/signal_.h: Likewise.
32921         * lib/stdint_.h: Likewise.
32922         * lib/stdio_.h: Likewise.
32923         * lib/stdlib_.h: Likewise.
32924         * lib/string_.h: Likewise.
32925         * lib/sys_stat_.h: Likewise.
32926         * lib/sys_time_.h: Likewise.
32927         * lib/time_.h: Likewise.
32928         * lib/unistd_.h: Likewise.
32929         * lib/wchar_.h: Likewise.
32930         * lib/wctype_.h: Likewise.
32931         * lib/dirent_.h: Likewise.
32932         * lib/iconv_.h: Likewise.
32933         * lib/locale_.h: Likewise.
32934         * lib/netinet_in_.h: Likewise.
32935         * lib/sys_select_.h: Likewise.
32936         * lib/sys_socket_.h: Likewise.
32937         * lib/sysexits_.h: Likewise.
32938         * modules/fcntl (Depends-on): Depend on include_next, not
32939         absolute_header.
32940         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32941         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32942         * modules/fchdir: Likewise.
32943         * modules/float: Likewise.
32944         * modules/iconv_open: Likewise.
32945         * modules/inttypes: Likewise.
32946         * modules/locale: Likewise.
32947         * modules/math: Likewise.
32948         * modules/netinet_in: Likewise.
32949         * modules/search: Likewise.
32950         * modules/signal: Likewise.
32951         * modules/stdint: Likewise.
32952         * modules/stdio: Likewise.
32953         * modules/stdlib: Likewise.
32954         * modules/string: Likewise.
32955         * modules/sys_select: Likewise.
32956         * modules/sys_socket: Likewise.
32957         * modules/sys_stat: Likewise.
32958         * modules/sys_time: Likewise.
32959         * modules/sysexits: Likewise.
32960         * modules/time: Likewise.
32961         * modules/unistd: Likewise.
32962         * modules/wchar: Likewise.
32963         * modules/wctype: Likewise.
32964         * modules/sys_stat: Change maintainer to "all".
32965         * modules/unistd: Likewise.
32966
32967 2007-06-20  Karl Berry  <karl@gnu.org>
32968
32969         * config/srclist.txt: track www changes in license files.
32970
32971 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32972
32973         * build-aux/bootstrap: Remove stray dot.
32974         Make sure build_aux settings are honored when linking
32975         gnulib_extra_files.
32976
32977 2007-06-19  Eric Blake  <ebb9@byu.net>
32978
32979         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32980         Allow compilation on cygwin.
32981
32982 2007-06-19  Jim Meyering  <jim@meyering.net>
32983
32984         xreadlink-with-size: Remove module.  No longer used.
32985         Ex-callers now use xreadlink or mreadlink-with-size.
32986         * modules/xreadlink-with-size: Remove module.
32987         * lib/xreadlink-with-size.c: Remove file.
32988         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32989         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32990         just before the function definition *is* accurate.
32991
32992         Eliminate one way canonicalize_filename_mode could exit.
32993         * lib/canonicalize.c (canonicalize_filename_mode):
32994         Use mreadlink_with_size, not xreadlink_with_size.
32995
32996 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32997
32998         Detect porting problems to FreeBSD/arm, which has time_t wider than
32999         long int.  Original problem reported for GNU diff by Xin Li in
33000         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33001         * modules/getdate (Depends-on): Add intprops, verify.
33002         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33003         is an integer type no wider than long int.
33004
33005 2007-06-18  Jim Meyering  <jim@meyering.net>
33006
33007         New module: mreadlink-with-size.
33008         * MODULES.html.sh: Add mreadlink-with-size.
33009         * modules/mreadlink-with-size: New module
33010         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33011         not xreadlink-with-size.
33012         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33013
33014 2007-06-16  Bruno Haible  <bruno@clisp.org>
33015
33016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33017         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33018         Reported by Gary V. Vaughan <gary@gnu.org>.
33019
33020 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33021
33022         Revamp lchown so that it lives in unistd.h where it belongs.
33023         * lib/lchown.h: Remove.
33024         * lib/dirchownmod.c: Don't include lib/lchown.h.
33025         * lib/fchownat.c: Likewise.
33026         * lib/openat.c: Likewise.
33027         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33028         does not follow symlinks.
33029         (EOPNOTSUPP): Define if not defined.
33030         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33031         is defined to 0.
33032         (lchown): New decl.
33033         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33034         Do not check for lchown decl.
33035         Set REPLACE_LCHOWN.
33036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33037         REPLACE_LCHOWN.
33038         * modules/chown: Make it clear it follows symlinks.
33039         * modules/lchown: Make it clear it doesn't follow symlinks.
33040         (Files): Remove lib/lchown.h
33041         (Depends-on): Add unistd.
33042         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33043         (Include): Include <unistd.h>, not "lchown.h".
33044         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33045         REPLACE_LCHOWN.
33046
33047 2007-06-15  Jim Meyering  <jim@meyering.net>
33048
33049         Change license (GPL to LGPL) of fsusage and dependents.
33050         * modules/fsusage (License): Change to LGPL.
33051         * modules/full-read (License): Likewise.
33052         * modules/full-write (License): Likewise.
33053         * modules/safe-read (License): Likewise.
33054         * modules/safe-write (License): Likewise.
33055
33056 2007-06-14  Ben Pfaff  <blp@gnu.org>
33057
33058         Missing part of allocsa -> malloca transition.
33059         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33060         gl_MALLOCA.
33061
33062 2007-06-12  Bruno Haible  <bruno@clisp.org>
33063
33064         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33065         to ia64, x86_64, i386.
33066         Reported by Eric Blake.
33067
33068 2007-06-12  Bruno Haible  <bruno@clisp.org>
33069
33070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33071         cross-compiling to x86_64.
33072
33073 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33074
33075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33076         glitch reported by Ralf Wildenhues in
33077         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33078
33079         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33080         Vin Shelton.
33081
33082 2007-06-11  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33085         replacement string.
33086         Reported by Eric Blake.
33087
33088 2007-06-10  Bruno Haible  <bruno@clisp.org>
33089
33090         Prepare vasnprintf code for use with Unicode strings.
33091         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33092         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33093         TYPE_U32_STRING.
33094         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33095         a_u32_string variants.
33096         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33097         * lib/printf-args.c: Don't include config.h and the specification
33098         header if PRINTF_FETCHARGS is already defined.
33099         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33100         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33101         TYPE_U16_STRING, TYPE_U32_STRING.
33102         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33103         u16_directive, u16_directives, u32_directive, u32_directives): New
33104         types.
33105         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33106         New declarations.
33107         * lib/printf-parse.c: Don't include config.h and the specification
33108         header if PRINTF_PARSE is already defined. Eliminate the set of
33109         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33110         them now. Include c-ctype.h.
33111         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33112         directive and CHAR_T_ONLY_ASCII.
33113         * lib/vasnprintf.c: Don't include config.h and the specification header
33114         if VASNPRINTF is already defined.
33115         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33116         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33117         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33118         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33119         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33120         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33121         code accordingly.
33122         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33123         pad_ourselves also in this case, with the 'c' and 's' directives, and
33124         with a different notion of "width".
33125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33126
33127 2007-06-10  Bruno Haible  <bruno@clisp.org>
33128
33129         * modules/unistr/u32-mbsnlen: New file.
33130         * lib/unistr/u32-mbsnlen.c: New file.
33131
33132         * modules/unistr/u16-mbsnlen: New file.
33133         * lib/unistr/u16-mbsnlen.c: New file.
33134
33135         * modules/unistr/u8-mbsnlen: New file.
33136         * lib/unistr/u8-mbsnlen.c: New file.
33137
33138         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33139         declarations.
33140
33141 2007-06-10  Bruno Haible  <bruno@clisp.org>
33142
33143         * lib/string_.h (mbsnlen): New declaration.
33144         * lib/mbsnlen.c: New file.
33145         * m4/mbsnlen.m4: New file.
33146         * modules/mbsnlen: New file.
33147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33148         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33149         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33150
33151 2007-06-10  Bruno Haible  <bruno@clisp.org>
33152
33153         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33154
33155 2007-06-10  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33158         * lib/mbuiter.h: Likewise.
33159
33160 2007-06-10  Bruno Haible  <bruno@clisp.org>
33161
33162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33163         declaration.
33164
33165 2007-06-10  Karl Berry  <karl@gnu.org>
33166
33167         * config/srclist.txt: remove gettext entries, Bruno prefers
33168         to update individually.
33169
33170 2007-06-10  Bruno Haible  <bruno@clisp.org>
33171
33172         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33173         'maxlen'. Ensure only length + width bytes are allocated, not
33174         length + 1 + width.
33175
33176 2007-06-09  Bruno Haible  <bruno@clisp.org>
33177
33178         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33179         (CHAR_T): Remove macro.
33180         (VASNPRINTF): Update.
33181
33182 2007-06-09  Bruno Haible  <bruno@clisp.org>
33183
33184         * MODULES.html.sh (Unicode string functions): Add the new modules.
33185
33186         * modules/uniconv/u32-conv-to-enc: New file.
33187         * lib/uniconv/u32-conv-to-enc.c: New file.
33188         * modules/uniconv/u32-conv-to-enc-tests: New file.
33189         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33190
33191         * modules/uniconv/u16-conv-to-enc: New file.
33192         * lib/uniconv/u16-conv-to-enc.c: New file.
33193         * lib/uniconv/u-conv-to-enc.h: New file.
33194         * modules/uniconv/u16-conv-to-enc-tests: New file.
33195         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33196
33197         * modules/uniconv/u8-conv-to-enc: New file.
33198         * lib/uniconv/u8-conv-to-enc.c: New file.
33199         * modules/uniconv/u8-conv-to-enc-tests: New file.
33200         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33201
33202         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33203         u32_conv_to_encoding): New declarations.
33204
33205 2007-06-09  Bruno Haible  <bruno@clisp.org>
33206
33207         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33208
33209 2007-06-09  Bruno Haible  <bruno@clisp.org>
33210
33211         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33212         * modules/malloca: Renamed from modules/allocsa, updated.
33213         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33214         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33215         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33216         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33217         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33218         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33219         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33220         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33221         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33222         * modules/c-strcasestr (Depends-on): Update.
33223         * lib/c-strcasestr.c: Update.
33224         * modules/c-strstr (Depends-on): Update.
33225         * lib/c-strstr.c: Update.
33226         * modules/canonicalize-lgpl (Depends-on): Update.
33227         * lib/canonicalize-lgpl.c: Update.
33228         * modules/clean-temp (Depends-on): Update.
33229         * lib/clean-temp.c: Update.
33230         * modules/csharpcomp (Depends-on): Update.
33231         * lib/csharpcomp.c: Update.
33232         * modules/csharpexec (Depends-on): Update.
33233         * lib/csharpexec.c: Update.
33234         * modules/javacomp (Depends-on): Update.
33235         * lib/javacomp.c: Update.
33236         * modules/javaexec (Depends-on): Update.
33237         * lib/javaexec.c: Update.
33238         * modules/mbscasestr (Depends-on): Update.
33239         * lib/mbscasestr.c: Update.
33240         * modules/mbsstr (Depends-on): Update.
33241         * lib/mbsstr.c: Update.
33242         * modules/setenv (Depends-on): Update.
33243         * lib/setenv.c: Update.
33244         * modules/strcasestr (Depends-on): Update.
33245         * lib/strcasestr.c: Update.
33246         * modules/striconveha (Depends-on): Update.
33247         * lib/striconveha.c: Update.
33248         * modules/relocatable-prog-wrapper (Files): Update.
33249         * lib/relocwrapper.c: Update.
33250         * build-aux/install-reloc: Update.
33251         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33252
33253 2007-06-08  Bruno Haible  <bruno@clisp.org>
33254
33255         Port to uClibc.
33256         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33257         * lib/fpurge.c (fpurge): Likewise.
33258         * lib/freading.c (freading): Likewise.
33259         * lib/fseeko.c (rpl_fseeko): Likewise.
33260         * lib/fseterr.c (fseterr): Likewise.
33261         * lib/fwriting.c (fwriting): Likewise.
33262         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33263
33264 2007-06-08  Bruno Haible  <bruno@clisp.org>
33265
33266         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33267         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33268         * modules/gettext (Files): Add m4/intlmacosx.m4.
33269
33270 2007-06-07  Bruno Haible  <bruno@clisp.org>
33271
33272         * modules/localename-tests: New file.
33273         * tests/test-localename.c: New file.
33274
33275         New module 'localename'.
33276         * lib/localename.h: New file.
33277         * lib/localename.c: New file, from GNU gettext.
33278         * m4/localename.m4: New file.
33279         * modules/localename: New file.
33280
33281 2007-06-07  Bruno Haible  <bruno@clisp.org>
33282
33283         Work around the lack of <wchar.h> on some builds of uClibc.
33284         * doc/headers/wchar.texi: Update.
33285         * lib/wchar_.h: Include <wchar.h> only if it exists.
33286         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33287         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33288         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33289         doesn't exist.
33290         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33291         * modules/mbfile (Depends-on): Add wchar.
33292         * modules/mbiter (Depends-on): Likewise.
33293         * modules/mbuiter (Depends-on): Likewise.
33294         Reported by Simon Josefsson.
33295
33296 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33297
33298         Work around problem reported by Steven M. Schweda in
33299         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33300         Tru64 5.1B with the Compaq compiler environment installed declares
33301         an 'isblank' function but does not define it in the C library.
33302         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33303         * lib/regex_internal.h (isblank): Likewise.
33304         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33305         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33306
33307 2007-06-05  Bruno Haible  <bruno@clisp.org>
33308
33309         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33310         ia64.
33311         * modules/printf-safe: New file.
33312         * modules/fprintf-posix (Depends-on): Add printf-safe.
33313         * modules/printf-posix (Depends-on): Likewise.
33314         * modules/snprintf-posix (Depends-on): Likewise.
33315         * modules/sprintf-posix (Depends-on): Likewise.
33316         * modules/vasnprintf-posix (Depends-on): Likewise.
33317         * modules/vasprintf-posix (Depends-on): Likewise.
33318         * modules/vfprintf-posix (Depends-on): Likewise.
33319         * modules/vprintf-posix (Depends-on): Likewise.
33320         * modules/vsnprintf-posix (Depends-on): Likewise.
33321         * modules/vsprintf-posix (Depends-on): Likewise.
33322         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33323         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33324         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33325         "no" on i386, x86_64, ia64.
33326         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33327         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33328         on i386, x86_64, ia64.
33329         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33330         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33331         on i386, x86_64, ia64.
33332         * tests/test-vasnprintf-posix.c: Include float.h.
33333         (LDBL80_WORDS): New macro.
33334         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33335         on i386, x86_64, ia64.
33336         * tests/test-vasprintf-posix.c: Include float.h.
33337         (LDBL80_WORDS): New macro.
33338         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33339         on i386, x86_64, ia64.
33340         * tests/test-snprintf-posix.c: Include float.h.
33341         * tests/test-sprintf-posix.c: Likewise.
33342         * tests/test-vsnprintf-posix.c: Likewise.
33343         * tests/test-vsprintf-posix.c: Likewise.
33344
33345 2007-06-05  Bruno Haible  <bruno@clisp.org>
33346
33347         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33348         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33349         non-IEEE numbers on i386, x86_64, ia64.
33350         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33351         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33352         * tests/test-isnanl.h: Include float.h.
33353         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33354
33355 2007-06-05  Bruno Haible  <bruno@clisp.org>
33356
33357         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33358         also the %a / %A. Handle the %a / %A code before this extra handling.
33359
33360 2007-06-05  Bruno Haible  <bruno@clisp.org>
33361
33362         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33363         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33364
33365 2007-06-05  Bruno Haible  <bruno@clisp.org>
33366
33367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33368         typo in variable name.
33369
33370 2007-06-05  Eric Blake  <ebb9@byu.net>
33371
33372         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33373         Reported by Simon Josefsson.
33374
33375 2007-06-04  Bruno Haible  <bruno@clisp.org>
33376
33377         Avoid test failures on some PowerPC platforms.
33378         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33379         Define differently for PowerPC.
33380         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33381         Reported by Gary V. Vaughan <gary@gnu.org>.
33382
33383 2007-06-02  Bruno Haible  <bruno@clisp.org>
33384
33385         Fix test-stdint failure on FreeBSD/ia64.
33386         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33387         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33388         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33389         * doc/headers/stdint.texi: Update.
33390
33391 2007-06-01  Bruno Haible  <bruno@clisp.org>
33392
33393         * tests/test-binary-io.c (main): Pass a third argument to open().
33394         Reported by Gary V. Vaughan <gary@gnu.org>.
33395
33396 2007-06-01  Bruno Haible  <bruno@clisp.org>
33397
33398         * doc/functions/frexpl.texi: Update for mingw.
33399
33400 2007-06-01  Bruno Haible  <bruno@clisp.org>
33401
33402         * tests/test-lseek.c (main): Disable test of errno for invalid third
33403         argument.
33404         * doc/functions/lseek.texi: Update.
33405         Reported by Gary V. Vaughan <gary@gnu.org>.
33406
33407 2007-05-28  Bruno Haible  <bruno@clisp.org>
33408
33409         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33410
33411 2007-05-31  Eric Blake  <ebb9@byu.net>
33412
33413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33414         cross compiling.
33415
33416 2007-05-30  Eric Blake  <ebb9@byu.net>
33417         and Bruno Haible  <bruno@clisp.org>
33418
33419         Work around mingw test failures exposed by m4-1.4.9b.
33420         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33421         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33422         moment.
33423
33424 2007-05-30  Bruno Haible  <bruno@clisp.org>
33425
33426         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33427         assuming that they are closed. Needed on HP-UX 11.
33428
33429 2007-05-29  Bruno Haible  <bruno@clisp.org>
33430
33431         Fix a problem with #include_next.
33432         * lib/dirent_.h: Split the double-inclusion guard.
33433         * lib/fcntl_.h: Likewise.
33434         * lib/float_.h: Likewise.
33435         * lib/iconv_.h: Likewise.
33436         * lib/inttypes_.h: Likewise.
33437         * lib/locale_.h: Likewise.
33438         * lib/math_.h: Likewise.
33439         * lib/netinet_in_.h: Likewise.
33440         * lib/search_.h: Likewise.
33441         * lib/signal_.h: Likewise.
33442         * lib/stdint_.h: Likewise.
33443         * lib/stdio_.h: Likewise.
33444         * lib/stdlib_.h: Likewise.
33445         * lib/string_.h: Likewise.
33446         * lib/sys_select_.h: Likewise.
33447         * lib/sys_socket_.h: Likewise.
33448         * lib/sys_stat_.h: Likewise.
33449         * lib/sys_time_.h: Likewise.
33450         * lib/sysexits_.h: Likewise.
33451         * lib/time_.h: Likewise.
33452         * lib/unistd_.h: Likewise.
33453         * lib/wchar_.h: Likewise.
33454         * lib/wctype_.h: Likewise.
33455
33456 2007-05-29  Bruno Haible  <bruno@clisp.org>
33457
33458         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33459         for the moment.
33460
33461 2007-05-29  Bruno Haible  <bruno@clisp.org>
33462
33463         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33464         invocation.
33465         Reported by Eric Blake.
33466
33467 2007-05-29  Bruno Haible  <bruno@clisp.org>
33468
33469         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33470         compiling case.
33471
33472 2007-05-29  Eric Blake  <ebb9@byu.net>
33473             Bruno Haible  <bruno@clisp.org>
33474
33475         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33476         cross compiles.
33477
33478 2007-05-28  Eric Blake  <ebb9@byu.net>
33479
33480         * modules/closein-tests (test_closein_LDADD): Support test on
33481         cygwin with libtool.
33482
33483 2007-05-28  Bruno Haible  <bruno@clisp.org>
33484
33485         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33486         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33487         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33488         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33489         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33490         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33491         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33492         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33493         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33494
33495 2007-05-28  Eric Blake  <ebb9@byu.net>
33496
33497         Unconditionally include <config.h> in unit tests.
33498         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33499         * tests/test-allocsa.c, tests/test-arcfour.c,
33500         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33501         tests/test-array_list.c, tests/test-array_oset.c,
33502         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33503         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33504         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33505         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33506         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33507         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33508         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33509         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33510         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33511         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33512         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33513         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33514         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33515         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33516         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33517         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33518         test-md5.c, test-memmem.c, test-printf-posix.c,
33519         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33520         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33521         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33522         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33523         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33524         test-vasnprintf-posix2.c, test-vasnprintf.c,
33525         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33526         test-vfprintf-posix.c, test-vprintf-posix.c,
33527         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33528         test-xvasprintf.c: Likewise.
33529
33530 2007-05-28  Bruno Haible  <bruno@clisp.org>
33531
33532         * gnulib-tool (func_import): Remember the --with-tests command-line
33533         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33534         Reported by Eric Blake.
33535
33536 2007-05-28  Bruno Haible  <bruno@clisp.org>
33537
33538         * modules/ftell-tests: New file.
33539         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33540         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33541
33542         * lib/ftell.c: New file.
33543         * modules/ftell: New file.
33544         * m4/ftell.m4: New file.
33545         * doc/functions/ftell.texi: Update.
33546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33547         REPLACE_FTELL.
33548         * lib/stdio_.h (rpl_ftell): New declaration.
33549         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33550         REPLACE_FTELL.
33551
33552 2007-05-28  Eric Blake  <ebb9@byu.net>
33553
33554         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33555
33556 2007-05-28  Bruno Haible  <bruno@clisp.org>
33557
33558         * modules/fseek-tests: New file.
33559         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33560         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33561
33562         * lib/fseek.c: New file.
33563         * modules/fseek: New file.
33564         * m4/fseek.m4: New file.
33565         * doc/functions/fseek.texi: Update.
33566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33567         REPLACE_FSEEK.
33568         * lib/stdio_.h (rpl_fseek): New declaration.
33569         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33570         REPLACE_FSEEK.
33571
33572 2007-05-28  Bruno Haible  <bruno@clisp.org>
33573
33574         * lib/stdio_.h (fflush): More comments.
33575
33576 2007-05-28  Bruno Haible  <bruno@clisp.org>
33577
33578         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33579         runtime test.
33580
33581 2007-05-28  Eric Blake  <ebb9@byu.net>
33582
33583         Improve lseek module.
33584         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33585         * lib/unistd_.h (lseek): Scale back link warning message.
33586         * tests/test-lseek.c: Beef up test.
33587         * tests/test-lseek.sh: Exercise more facets of lseek.
33588         Reported by Bruno Haible.
33589
33590 2007-05-28  Bruno Haible  <bruno@clisp.org>
33591
33592         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33593         to define.
33594
33595 2007-05-27  Bruno Haible  <bruno@clisp.org>
33596
33597         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33598
33599 2007-05-27  Bruno Haible  <bruno@clisp.org>
33600
33601         * modules/openmp: New file.
33602         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33603         Noah Misch.
33604
33605 2007-05-26  Bruno Haible  <bruno@clisp.org>
33606
33607         * modules/chdir-long (Depends-on): Add fchdir.
33608         * modules/chdir-safer (Depends-on): Likewise.
33609         * modules/fts (Depends-on): Likewise.
33610         * modules/fts-lgpl (Depends-on): Likewise.
33611         * modules/openat (Depends-on): Likewise.
33612         * modules/savewd (Depends-on): Likewise.
33613
33614 2007-05-24  Eric Blake  <ebb9@byu.net>
33615
33616         Fix lseek on mingw.
33617         * modules/lseek: New module.
33618         * m4/lseek.m4: New file.
33619         * lib/lseek.c: New file.
33620         * modules/lseek-tests: New file.
33621         * tests/test-lseek.c: New file.
33622         * tests/test-lseek.sh: New file.
33623         * MODULES.html.sh: Document lseek module.
33624         * modules/fflush (Depends-on): Add lseek, fseeko.
33625         * modules/fseeko (Depends-on): Likewise.
33626         * modules/ftello (Depends-on): Likewise.
33627         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33628         broken.
33629         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33630         broken.
33631         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33632         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33633         * lib/ftello.c (rpl_ftello): Likewise.
33634         * tests/test-fseeko.c (main): Test this.
33635         * tests/test-fseeko.sh: Likewise.
33636         * tests/test-ftello.c (main): Likewise.
33637         * tests/test-ftello.sh: Likewise.
33638         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
33639         implies replacing fseek.
33640         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
33641         HAVE_FTELLO.
33642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
33643         * modules/unistd (Makefile.am): Likewise.
33644         * lib/unistd_.h (lseek): Declare a replacement.
33645         * doc/functions/lseek.texi (lseek): Document this fix.
33646         * doc/functions/fseek.texi (fseek): Likewise.
33647         * doc/functions/ftell.texi (ftell): Likewise.
33648
33649 2007-05-24  Bruno Haible  <bruno@clisp.org>
33650
33651         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
33652         in the printed representation of a NaN.
33653         * tests/test-vasprintf-posix.c (test_function): Likewise.
33654         * tests/test-snprintf-posix.h (test_function): Likewise.
33655         * tests/test-sprintf-posix.h (test_function): Likewise.
33656         Reported by Eric Blake.
33657
33658 2007-05-23  Eric Blake  <ebb9@byu.net>
33659
33660         Fix fseeko/ftello on cygwin 1.5.24.
33661         * doc/functions/fseeko.texi (fseeko): Document the fix.
33662         * doc/functions/ftello.texi (ftello): Document the fix.
33663         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33664         * doc/functions/stdout.text (stdout): New file.
33665         * doc/functions/stderr.text (stderr): New file.
33666         * doc/gnulib.texi (Function Substitutes): Use new files.
33667         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33668         prior to 1.7.0.
33669         * tests/test-ftello.c (main): Likewise for ftello.
33670         * tests/test-fseeko.sh: New file.
33671         * tests/test-ftello.sh: New file.
33672         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33673         with seekable stdin.
33674         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33676         (gl_REPLACE_FSEEKO): New macro.
33677         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33678         * modules/fseeko (Files): Distribute fseeko.c.
33679         * modules/ftello (Files): Distribute ftello.c.
33680         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33681         mode.
33682         * lib/ftello.c (rpl_ftello): New file.
33683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33684         fseeko, ftello.
33685         (gl_STDIN_LARGE_OFFSET): New macro.
33686         * modules/stdio (Makefile.am): Perform the replacement.
33687         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33688
33689 2007-05-23  Bruno Haible  <bruno@clisp.org>
33690
33691         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33692         GNULIB_POSIXCHECK is defined.
33693
33694 2007-05-21  Bruno Haible  <bruno@clisp.org>
33695
33696         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33697         Check also the output for NaN arguments. When cross-compiling, guess
33698         no on IRIX.
33699         * lib/vasnprintf.c: Update comments.
33700         * tests/test-vasnprintf-posix.c (strisnan): New function.
33701         (test_function): Use it.
33702         * tests/test-vasprintf-posix.c (strisnan): New function.
33703         (test_function): Use it.
33704         * tests/test-snprintf-posix.h (strisnan): New function.
33705         (test_function): Use it.
33706         * tests/test-sprintf-posix.h (strisnan): New function.
33707         (test_function): Use it.
33708         Reported by Eric Blake.
33709
33710 2007-05-20  Bruno Haible  <bruno@clisp.org>
33711
33712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33713         numbers that fails on BeOS.
33714         * doc/functions/frexpl.texi: Update.
33715
33716 2007-05-20  Jim Meyering  <jim@meyering.net>
33717
33718         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33719         forced upon us by glibc-2.6.
33720
33721 2007-05-20  Bruno Haible  <bruno@clisp.org>
33722
33723         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33724         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33725         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33726         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33727         NEED_PRINTF_INFINITE.
33728         (is_infinitel): New function.
33729         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33731         gl_PREREQ_VASNPRINTF_INFINITE.
33732         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33734         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33735         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33736         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33737         gl_PREREQ_VASNPRINTF_INFINITE.
33738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33745         * doc/functions/fprintf.texi: Update.
33746         * doc/functions/printf.texi: Update.
33747         * doc/functions/snprintf.texi: Update.
33748         * doc/functions/sprintf.texi: Update.
33749         * doc/functions/vfprintf.texi: Update.
33750         * doc/functions/vprintf.texi: Update.
33751         * doc/functions/vsnprintf.texi: Update.
33752         * doc/functions/vsprintf.texi: Update.
33753
33754 2007-05-20  Bruno Haible  <bruno@clisp.org>
33755
33756         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33757         was not found in libc.
33758         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33759
33760 2007-05-20  Bruno Haible  <bruno@clisp.org>
33761
33762         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33763         printed as "-nan" instead of "nan".
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         Needed for HP-UX 11.
33768
33769 2007-05-20  Jim Meyering  <jim@meyering.net>
33770
33771         Fix buggy test for the fchownat-deref bug.
33772         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33773         symlink required for the run-test.  Without it, this test would
33774         always declare that fchownat doesn't work, and client code would
33775         unnecessarily use the replacement function with fixed libc.
33776         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33777         Reported by Greg Schafer.
33778
33779 2007-05-19  Bruno Haible  <bruno@clisp.org>
33780
33781         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33782         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33783         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33784         Needed for IRIX 6.5 and Solaris 2.5.1.
33785
33786 2007-05-19  Bruno Haible  <bruno@clisp.org>
33787
33788         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33789         (test_function): Skip tests involving -0.0 on platforms where
33790         -0.0 = 0.0.
33791         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33792         (test_function): Skip tests involving -0.0 on platforms where
33793         -0.0 = 0.0.
33794         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33795         (test_function): Skip tests involving -0.0 on platforms where
33796         -0.0 = 0.0.
33797         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33798         (test_function): Skip tests involving -0.0 on platforms where
33799         -0.0 = 0.0.
33800         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33801         tests.
33802         * tests/test-printf-posix.h (test_function): Likewise.
33803         * tests/test-printf-posix.output: Remove all -0.0 related results.
33804         Needed for IRIX 6.5.
33805
33806 2007-05-19  Bruno Haible  <bruno@clisp.org>
33807
33808         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33809         printed as "nan0x7fffffff" instead of "nan".
33810         * tests/test-vasprintf-posix.c (test_function): Likewise.
33811         * tests/test-snprintf-posix.h (test_function): Likewise.
33812         * tests/test-sprintf-posix.h (test_function): Likewise.
33813         * tests/test-fprintf-posix.h (NaN): Remove macro.
33814         (test_function): Remove all NaN related tests.
33815         * tests/test-printf-posix.h (NaN): Remove macro.
33816         (test_function): Remove all NaN related tests.
33817         * tests/test-printf-posix.output: Remove all NaN related results.
33818         Needed for IRIX 6.5.
33819
33820 2007-05-19  Bruno Haible  <bruno@clisp.org>
33821
33822         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33823         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33824
33825 2007-05-19  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/float_.h: New file.
33828         * m4/float_h.m4: New file.
33829         * modules/float: New file.
33830         * modules/isnanl (Dependencies): Add float.
33831         * modules/isnanl-nolibm (Dependencies): Likewise.
33832         * modules/mathl (Dependencies): Likewise.
33833         * modules/printf-frexpl (Dependencies): Likewise.
33834         * modules/signbit (Dependencies): Likewise.
33835         * modules/vasnprintf (Dependencies): Likewise.
33836         * doc/headers/float.texi: Update.
33837
33838 2007-05-19  Jim Meyering  <jim@meyering.net>
33839
33840         * lib/utimens.c (gl_futimens): Rename from futimens,
33841         now that glibc-2.6 declares futimens.
33842         * lib/utimens.h: Likewise.
33843
33844 2007-05-19  Bruno Haible  <bruno@clisp.org>
33845
33846         Avoid test failures on mingw.
33847         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33848         * tests/test-printf-posix.sh: Likewise.
33849         * tests/test-vfprintf-posix.sh: Likewise.
33850         * tests/test-vprintf-posix.sh: Likewise.
33851
33852 2007-05-19  Bruno Haible  <bruno@clisp.org>
33853
33854         Fix *printf result for NaN, Inf, -0.0 on mingw.
33855         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33856         * lib/vasnprintf.c: Include math.h and isnan.h.
33857         (is_infinite_or_zero): New function.
33858         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33859         values in the %f, %F, %e, %E, %g, %G directives.
33860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33861         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33862         gl_PRINTF_INFINITE and test its result. Invoke
33863         gl_PREREQ_VASNPRINTF_INFINITE.
33864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33871         * doc/functions/fprintf.texi: Update.
33872         * doc/functions/printf.texi: Update.
33873         * doc/functions/snprintf.texi: Update.
33874         * doc/functions/sprintf.texi: Update.
33875         * doc/functions/vfprintf.texi: Update.
33876         * doc/functions/vprintf.texi: Update.
33877         * doc/functions/vsnprintf.texi: Update.
33878         * doc/functions/vsprintf.texi: Update.
33879
33880 2007-05-19  Bruno Haible  <bruno@clisp.org>
33881
33882         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33883         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33884         Instead of multiplying with 10^k, set extra_zeroes to k.
33885         (scale10_round_long_double): Remove function.
33886
33887 2007-05-18  Bruno Haible  <bruno@clisp.org>
33888
33889         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33890         introduced on 2007-05-06.
33891
33892 2007-05-18  Bruno Haible  <bruno@clisp.org>
33893
33894         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33895         %g directives.
33896         * tests/test-vasprintf-posix.c (test_function): Likewise.
33897         * tests/test-snprintf-posix.h (test_function): Likewise.
33898         * tests/test-sprintf-posix.h (test_function): Likewise.
33899
33900 2007-05-18  Bruno Haible  <bruno@clisp.org>
33901
33902         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33903         (strmatch): New function.
33904         (test_function): Test the %f directive on numbers of various exponents.
33905         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33906         (strmatch): New function.
33907         (test_function): Test the %f directive on numbers of various exponents.
33908         * tests/test-snprintf-posix.h (strmatch): New function.
33909         (test_function): Test the %f directive on numbers of various exponents.
33910         * tests/test-sprintf-posix.h (strmatch): New function.
33911         (test_function): Test the %f directive on numbers of various exponents.
33912         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33913         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33914         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33915         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33916
33917 2007-05-18  Bruno Haible  <bruno@clisp.org>
33918
33919         Add support for 'long double' number output.
33920         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33921         * lib/vasnprintf.c: Include math.h and float+.h.
33922         (mp_limb_t): New type.
33923         (GMP_LIMB_BITS): New macro.
33924         (mp_twolimb_t): New type.
33925         (GMP_TWOLIMB_BITS): New macro.
33926         (mpn_t): New type.
33927         (multiply, divide, convert_to_decimal, decode_long_double,
33928         scale10_round_long_double, scale10_round_decimal_long_double,
33929         floorlog10l): New functions.
33930         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33931         for the %f, %F, %e, %E, %g, %G directives.
33932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33933         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33934         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33935         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33937         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33938         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33939         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33940         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33941         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33942         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33943         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33944         * modules/snprintf-posix (Depends-on): Likewise.
33945         * modules/sprintf-posix (Depends-on): Likewise.
33946         * modules/vasnprintf-posix (Depends-on): Likewise.
33947         * modules/vasprintf-posix (Depends-on): Likewise.
33948         * modules/vfprintf-posix (Depends-on): Likewise.
33949         * modules/vsnprintf-posix (Depends-on): Likewise.
33950         * modules/vsprintf-posix (Depends-on): Likewise.
33951         * modules/vasnprintf (Files): Add lib/float+.h.
33952         * doc/functions/fprintf.texi: Update.
33953         * doc/functions/printf.texi: Update.
33954         * doc/functions/snprintf.texi: Update.
33955         * doc/functions/sprintf.texi: Update.
33956         * doc/functions/vfprintf.texi: Update.
33957         * doc/functions/vprintf.texi: Update.
33958         * doc/functions/vsnprintf.texi: Update.
33959         * doc/functions/vsprintf.texi: Update.
33960
33961 2007-05-18  Bruno Haible  <bruno@clisp.org>
33962
33963         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33964
33965 2007-05-18  Bruno Haible  <bruno@clisp.org>
33966
33967         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33968         for printing 64-bit integers. Needed for mingw.
33969
33970 2007-05-18  Bruno Haible  <bruno@clisp.org>
33971
33972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33973         gl_FUNC_FREXPL_WORKS.
33974         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33975
33976 2007-05-18  Bruno Haible  <bruno@clisp.org>
33977
33978         * modules/frexpl-nolibm-tests: New file.
33979
33980         * modules/frexpl-nolibm: New file.
33981         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33982
33983 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33984
33985         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33986         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33987         GCC 4.2, which otherwise issues a lot of warnings.
33988         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33989         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33990         Likewise.
33991         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33992         * modules/iconv_open (iconv.h): Likewise.
33993         * modules/locale (locale.h): Likewise.
33994         * modules/netinet_in (netinet/in.h): Likewise.
33995         * modules/sys_select (sys_select.h): Likewise.
33996         * modules/sys_socket (sys/socket.h): Likewise.
33997         * modules/sys_stat (sys/stat.h): Likewise.
33998         * modules/sysexits (sysexits.h): Likewise.
33999         * modules/unistd (unistd.h): Likewise.
34000
34001 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34002
34003         * modules/closein-tests (Makefile.am): Distribute
34004         `test-closein.sh'.
34005
34006 2007-05-17  Bruno Haible  <bruno@clisp.org>
34007
34008         * tests/test-printf-posix.output: Renamed from
34009         tests/test-fprintf-posix.out.
34010         * modules/fprintf-posix-tests: Update.
34011         * modules/printf-posix-tests: Update.
34012         * modules/vfprintf-posix-tests: Update.
34013         * modules/vprintf-posix-tests: Update.
34014         * tests/test-fprintf-posix.sh: Update.
34015         * tests/test-printf-posix.sh: Update.
34016         * tests/test-vfprintf-posix.sh: Update.
34017         * tests/test-vprintf-posix.sh: Update.
34018         Reported by Ralf Wildenhues.
34019
34020 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34023         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34024         GCC 4.2, which otherwise issues a lot of warnings.
34025         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34026         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34027         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34028         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34029         it should no longer be needed.
34030         * lib/string_.h: Likewise.
34031         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34032         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34033         * modules/inttypes (inttypes.h): Likewise.
34034         * modules/math (math.h): Likewise.
34035         * modules/search (search.h): Likewise.
34036         * modules/signal (signal.h): Likewise.
34037         * modules/stdint (stdint.h): Likewise.
34038         * modules/stdio (stdio.h): Likewise.
34039         * modules/stdlib (stdlib.h): Likewise.
34040         * modules/string (string.h): Likewise.
34041         * modules/sys_time (sys/time.h): Likewise.
34042         * modules/time (time.h): Likewise.
34043         * modules/wchar (wchar.h): Likewise.
34044         * modules/wctype (wtype.h): Likewise.
34045
34046 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34047
34048         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34049
34050 2007-05-13  Bruno Haible  <bruno@clisp.org>
34051
34052         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34053         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34054         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34055         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34056         (gl_PREREQ_STRTOK_R): Don't require it here.
34057
34058 2007-05-13  Bruno Haible  <bruno@clisp.org>
34059
34060         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34061         when used in C++ mode.
34062
34063 2007-05-12  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/linebuffer.h: Tweak doc.
34066         * lib/linebuffer.c: Likewise.
34067
34068 2007-05-12  James Youngman  <jay@gnu.org>
34069
34070         * lib/linebuffer.c (readlinebuffer_delim): New function,
34071         like readlinebuffer, but use a caller-specified delimiter.
34072         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34073         as the delimiter.
34074         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34075
34076 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34077
34078         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34079         * modules/openat (Files): Remove openat-die.c.
34080         (Depends-on): Add openat-die.
34081         * modules/openat-die: New module.
34082
34083 2007-05-06  Bruno Haible  <bruno@clisp.org>
34084
34085         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34086         Update with info about Cygwin.
34087         * doc/functions/fprintf.texi: Update.
34088         * doc/functions/printf.texi: Update.
34089         * doc/functions/snprintf.texi: Update.
34090         * doc/functions/sprintf.texi: Update.
34091         * doc/functions/vfprintf.texi: Update.
34092         * doc/functions/vprintf.texi: Update.
34093         * doc/functions/vsnprintf.texi: Update.
34094         * doc/functions/vsprintf.texi: Update.
34095         Reported by Eric Blake.
34096
34097 2007-05-06  Bruno Haible  <bruno@clisp.org>
34098
34099         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34100         padding ourselves for the floating-point directives.
34101         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34104         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34105         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34106         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34109         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34110         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34111         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34112         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34113         * tests/test-snprintf-posix.h (test_function): Also check the width
34114         and some flags in the %f directive.
34115         * tests/test-sprintf-posix.h (test_function): Likewise.
34116         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34117         * tests/test-vasprintf-posix.c (test_function): Likewise.
34118         * doc/functions/fprintf.texi: Update.
34119         * doc/functions/printf.texi: Update.
34120         * doc/functions/snprintf.texi: Update.
34121         * doc/functions/sprintf.texi: Update.
34122         * doc/functions/vfprintf.texi: Update.
34123         * doc/functions/vprintf.texi: Update.
34124         * doc/functions/vsnprintf.texi: Update.
34125         * doc/functions/vsprintf.texi: Update.
34126
34127 2007-05-06  Bruno Haible  <bruno@clisp.org>
34128
34129         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34130         pass the ' flag character to sprintf or snprintf.
34131         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34134         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34135         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34143         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34144         flag.
34145         * tests/test-sprintf-posix.h (test_function): Likewise.
34146         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34147         * tests/test-vasprintf-posix.c (test_function): Likewise.
34148         * doc/functions/fprintf.texi: Update.
34149         * doc/functions/printf.texi: Update.
34150         * doc/functions/snprintf.texi: Update.
34151         * doc/functions/sprintf.texi: Update.
34152         * doc/functions/vfprintf.texi: Update.
34153         * doc/functions/vprintf.texi: Update.
34154         * doc/functions/vsnprintf.texi: Update.
34155         * doc/functions/vsprintf.texi: Update.
34156
34157 2007-05-01  Bruno Haible  <bruno@clisp.org>
34158
34159         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34160
34161 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34162
34163         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34164         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34165
34166 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34167
34168         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34169         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34170         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34171
34172 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34173
34174         * lib/argp-help.c (struct hol_entry): New member `ord'.
34175         (HOL_ENTRY_PTRCMP): Use ord for comparison
34176         (hol_sort): Initialize ord.
34177
34178 2007-05-01  Bruno Haible  <bruno@clisp.org>
34179
34180         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34181         Reported by Eric Blake.
34182         * doc/gnulib.texi (Function Substitutes): Update.
34183
34184 2007-05-01  Bruno Haible  <bruno@clisp.org>
34185
34186         * doc/functions.texi: Remove file, now redundant through
34187         doc/functions/*.texi.
34188
34189 2007-05-01  Bruno Haible  <bruno@clisp.org>
34190
34191         * modules/argp (Depends-on): Add sleep.
34192
34193 2007-05-01  Bruno Haible  <bruno@clisp.org>
34194
34195         * modules/sleep-tests: New file.
34196         * tests/test-sleep.c: New file.
34197
34198         * modules/sleep: New file.
34199         * lib/sleep.c: New file.
34200         * m4/sleep.m4: New file.
34201         * lib/unistd_.h (sleep): New declaration.
34202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34203         HAVE_SLEEP.
34204         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34205         * doc/functions/sleep.texi: Document the sleep module.
34206
34207 2007-05-01  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/sigprocmask.h: Remove file.
34210         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34211         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34212         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34213         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34214         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34215         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34216         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34217         HAVE_SIGSET_T as a shell variable.
34218         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34219         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34220         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34221         (Depends-on): Add signal. Remove verify.
34222         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34223         (Include): Mention <signal.h> instead of sigprocmask.h.
34224         * NEWS: Mention the change.
34225         * lib/fatal-signal.c: Don't include sigprocmask.h.
34226
34227 2007-05-01  Bruno Haible  <bruno@clisp.org>
34228
34229         * modules/signal: New file.
34230         * lib/signal_.h: New file.
34231         * m4/signal_h.m4: New file.
34232
34233 2007-05-01  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34236         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34237         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34238         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34239
34240 2007-05-01  Bruno Haible  <bruno@clisp.org>
34241
34242         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34243         configure time.
34244         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34245         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34246         * modules/sys_stat (Makefile.am): Substitute their values into
34247         sys/stat.h.
34248
34249 2007-05-01  Bruno Haible  <bruno@clisp.org>
34250
34251         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34252         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34253         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34254
34255 2007-05-01  Bruno Haible  <bruno@clisp.org>
34256
34257         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34258         'assert' module here.
34259
34260 2007-05-01  Bruno Haible  <bruno@clisp.org>
34261
34262         * doc/functions/*.texi: New files.
34263         * doc/functions/google-ranking.txt: New file.
34264         * doc/gnulib.texi (Function Substitutes): New chapter.
34265         (ctime, inet_ntoa): Remove sections.
34266         * doc/ctime.texi: Remove file.
34267         * doc/inet_ntoa.texi: Remove file.
34268         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34269         dependencies.
34270         (%.info): New rule, specifying a --reference-limit.
34271
34272 2007-05-01  Bruno Haible  <bruno@clisp.org>
34273
34274         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34275
34276 2007-05-01  Bruno Haible  <bruno@clisp.org>
34277
34278         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34279         the portability of 'mkdir' to mingw systems.
34280
34281 2007-05-01  Bruno Haible  <bruno@clisp.org>
34282
34283         * doc/headers/google-ranking.txt: New file.
34284
34285 2007-04-30  Eric Blake  <ebb9@byu.net>
34286
34287         Prefer fseeko to fseek.
34288         * modules/getpass (Depends-on): Add fseeko.
34289         * lib/getpass.c (getpass): Use fseeko, not fseek.
34290
34291 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34292
34293         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34294         assumes the sorting is stable, while most qsort implementations
34295         are not.  Use argument addresses to ensure they never compare as
34296         equal.
34297
34298         * tests/test-argp-2.sh (usage-indent test): Fix output
34299         (func_compare): Restore diff options
34300         * tests/test-argp.c: Restore #include "progname.h"
34301
34302 2007-04-29  Bruno Haible  <bruno@clisp.org>
34303
34304         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34305         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34306         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34308         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34309         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34310         (TESTS, check_PROGRAMS): Add test-snprintf.
34311         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34312         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34313         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34314         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34315         assertions that fail on HP-UX, OSF/1, or IRIX.
34316         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34317
34318 2007-04-29  Bruno Haible  <bruno@clisp.org>
34319
34320         * MODULES.html.sh (posix_functions): Remove 'contents'.
34321
34322 2007-04-29  Karl Berry  <karl@gnu.org>
34323
34324         * config/srclist.txt (gendocs_template_min): new entry.
34325
34326 2007-04-29  Bruno Haible  <bruno@clisp.org>
34327
34328         Work around fpurge bug on BSD systems.
34329         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34330         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34331         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34332         fpurge to rpl_fpurge if the system already has this function.
34333         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34334         the case where the system already has this function. Correct invariants
34335         on BSD systems.
34336         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34337         BSD systems.
34338
34339 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34340
34341         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34342         proposed by Sven Verdoolaege.
34343
34344         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34345         options.
34346         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34347         (usage and help tests): Update
34348
34349 2007-04-29  Bruno Haible  <bruno@clisp.org>
34350
34351         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34352         Print more information in case of failure. Disable a test on BeOS.
34353
34354 2007-04-29  Bruno Haible  <bruno@clisp.org>
34355
34356         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34357         This helps debugging on systems on which no gdb is available.
34358
34359 2007-04-29  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/freading.h: Improve comments.
34362         * lib/fwriting.h: Likewise.
34363         * tests/test-freading.c (main): Don't check freading immediately after
34364         repositioning. Needed for glibc.
34365
34366 2007-04-29  Bruno Haible  <bruno@clisp.org>
34367
34368         * lib/freading.c (freading): Trivial simplification.
34369
34370 2007-04-28  Bruno Haible  <bruno@clisp.org>
34371
34372         * tests/test-fwriting.c (main): Also test the interaction between
34373         fflush and fwriting.
34374         * modules/fwriting-tests (Depends-on): Add fflush.
34375
34376         * tests/test-freading.c (main): Also test the interaction between
34377         fflush and freading.
34378         * modules/freading-tests (Depends-on): Add fflush.
34379
34380 2007-04-28  Bruno Haible  <bruno@clisp.org>
34381
34382         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34383         fseeko and ftello.
34384         Suggested by Eric Blake.
34385
34386 2007-04-28  Jim Meyering  <jim@meyering.net>
34387
34388         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34389         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34390         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34391
34392 2007-04-27  Eric Blake  <ebb9@byu.net>
34393
34394         * doc/headers/assert.texi (assert.h): Document assert module use.
34395
34396 2007-04-27  Bruno Haible  <bruno@clisp.org>
34397
34398         * doc/headers/*.texi: New files.
34399         * doc/gnulib.texi (Header File Substitutes): New chapter.
34400         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34401         dependencies.
34402         (standards.info ,standards.html, standards.dvi): Update dependencies.
34403         (mostlyclean, clean): New targets.
34404
34405 2007-04-27  Bruno Haible  <bruno@clisp.org>
34406
34407         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34408         * modules/sysexits (Files, Makefile.am): Update.
34409
34410         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34411         * modules/sys_socket (Files, Makefile.am): Update.
34412
34413         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34414         * modules/sys_stat (Files, Makefile.am): Update.
34415
34416 2007-04-27  Eric Blake  <ebb9@byu.net>
34417
34418         * lib/freading.h: Improve comments.
34419         * lib/fwriting.h: Likewise.
34420         * lib/fflush.c: Likewise.
34421
34422         Fix closein for mingw.
34423         * modules/closein-tests: Add tests for closein.
34424         * tests/test-closein.c: New file.
34425         * tests/test-closein.sh: Likewise.
34426         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34427         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34428
34429 2007-04-27  Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34432         version is < 6.
34433         * lib/math_.h [__DECC]: Likewise.
34434         * lib/stdio_.h [__DECC]: Likewise.
34435         * lib/stdlib_.h [__DECC]: Likewise.
34436         * lib/string_.h [__DECC]: Likewise.
34437         * lib/time_.h [__DECC]: Likewise.
34438         * lib/wchar_.h [__DECC]: Likewise.
34439         * lib/wctype_.h [__DECC]: Likewise.
34440
34441 2007-04-27  Bruno Haible  <bruno@clisp.org>
34442
34443         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34444
34445 2007-04-27  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/fflush.c: Add comments.
34448         * modules/fpurge-tests (Depends-on): Add fflush.
34449         * modules/freadable-tests (Depends-on): Likewise.
34450         * modules/fwritable-tests (Depends-on): Likewise.
34451
34452 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34453
34454         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34455         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34456         Report by Bruno Haible <bruno@clisp.org>.
34457
34458 2007-04-26  Eric Blake  <ebb9@byu.net>
34459
34460         Fix fflush on mingw.
34461         * modules/fflush (Depends-on): Add freading.
34462         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34463         but unread data.
34464
34465 2007-04-26  Eric Blake  <ebb9@byu.net>
34466         and Bruno Haible  <bruno@clisp.org>
34467
34468         Implement freading and fwriting.
34469         * lib/freading.c: New file.
34470         * lib/freading.h: Likewise.
34471         * m4/freading.m4: Likewise.
34472         * modules/freading: Likewise.
34473         * modules/freading-tests: Likewise.
34474         * tests/test-freading.c: Likewise.
34475         * lib/fwriting.c: New file.
34476         * lib/fwriting.h: Likewise.
34477         * m4/fwriting.m4: Likewise.
34478         * modules/fwriting: Likewise.
34479         * modules/fwriting-tests: Likewise.
34480         * tests/test-fwriting.c: Likewise.
34481         * MODULES.html.sh (File stream based Input/Output): Mention them.
34482
34483 2007-04-26  Bruno Haible  <bruno@clisp.org>
34484
34485         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34486         'long' when we assume it.
34487         Suggested by Eric Blake.
34488
34489 2007-04-26  Bruno Haible  <bruno@clisp.org>
34490
34491         Ensure fseeko, ftello are declared on glibc systems.
34492         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34493         * modules/fseeko (configure.ac-early): Likewise.
34494         * modules/ftello (configure.ac-early): Likewise.
34495         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34496         AC_FUNC_FSEEKO for this.
34497         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34498         (gl_CHECK_FSEEKO): Remove macro.
34499
34500 2007-04-26  Bruno Haible  <bruno@clisp.org>
34501
34502         * tests/test-fflush.c (main): Also check the ftell result after
34503         fflush and fseek/fseeko.
34504         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34505         file descriptor position cache in the stream.
34506         * lib/fseeko.c (rpl_fseeko): Likewise.
34507
34508 2007-04-26  Bruno Haible  <bruno@clisp.org>
34509
34510         * modules/fflush-tests (Depends-on): Add fseeko.
34511
34512 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34513             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34514
34515         * lib/argz_.h: ensure error_t definition is obtained in same
34516         mechanism system argz.h would have.
34517         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34518         argz facilities are known bad.  Err on the side of caution if
34519         cross-compiling.
34520
34521 2007-04-25  Eric Blake  <ebb9@byu.net>
34522
34523         * lib/fpurge.c (includes): Use stdlib.h for free.
34524         * tests/test-fflush.c (main): Also test fflush-fseeko.
34525
34526 2007-04-25  Bruno Haible  <bruno@clisp.org>
34527
34528         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34529         * lib/fseeko.c: New file.
34530         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34531         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34532         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34533         gl_FUNC_FSEEKO.
34534         (gl_FUNC_FSEEKO): Invoke it.
34535         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34536         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34537         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34538
34539 2007-04-25  Bruno Haible  <bruno@clisp.org>
34540
34541         * modules/fflush (Depends-on): Add ftello.
34542
34543 2007-04-25  Bruno Haible  <bruno@clisp.org>
34544
34545         * modules/ftello-tests: New file.
34546         * tests/test-ftello.c: New file.
34547
34548         * modules/ftello: New file.
34549         * m4/ftello.m4: New file.
34550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34551         HAVE_FTELLO.
34552         * lib/stdio_.h (ftello): New declaration.
34553         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34554         HAVE_FTELLO.
34555
34556 2007-04-25  Bruno Haible  <bruno@clisp.org>
34557
34558         * modules/fseeko-tests: New file.
34559         * tests/test-fseeko.c: New file.
34560
34561         * modules/fseeko: New file.
34562         * m4/fseeko.m4: New file.
34563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34564         HAVE_FSEEKO.
34565         * lib/stdio_.h (fseeko): New declaration.
34566         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34567         HAVE_FSEEKO.
34568
34569 2007-04-25  Bruno Haible  <bruno@clisp.org>
34570
34571         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34572
34573 2007-04-25  Bruno Haible  <bruno@clisp.org>
34574
34575         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34576         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34577         * tests/test-unistd.c: Likewise.
34578         * tests/test-fcntl.c: Likewise.
34579
34580 2007-04-23  Eric Blake  <ebb9@byu.net>
34581
34582         * lib/fflush.c: Fix missing include.
34583         Reported by Bruno Haible.
34584
34585 2007-04-23  Bruno Haible  <bruno@clisp.org>
34586
34587         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34588         Reported by Eric Blake.
34589
34590 2007-04-23  Bruno Haible  <bruno@clisp.org>
34591
34592         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34593
34594 2007-04-23  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34597
34598 2007-04-23  Bruno Haible  <bruno@clisp.org>
34599
34600         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34601         Needed on HP-UX 11.
34602
34603 2007-04-16  Eric Blake  <ebb9@byu.net>
34604
34605         Make fflush rely on fpurge.
34606         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34607         open coding all variants.
34608         * modules/fflush (Depends-on): Add fpurge and unistd.
34609         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34610         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34611
34612         Fix --with-tests compilation on cygwin.
34613         * modules/argmatch-tests (Makefile.am): List gnulib library first
34614         in LDADD.
34615         * modules/argp-tests (Makefile.am): Likewise.
34616         * modules/array-list-tests (Makefile.am): Likewise.
34617         * modules/array-oset-tests (Makefile.am): Likewise.
34618         * modules/avltree-list-tests (Makefile.am): Likewise.
34619         * modules/avltree-oset-tests (Makefile.am): Likewise.
34620         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34621         * modules/carray-list-tests (Makefile.am): Likewise.
34622         * modules/dirname-tests (Makefile.am): Likewise.
34623         * modules/frexp-tests (Makefile.am): Likewise.
34624         * modules/isnanl-tests (Makefile.am): Likewise.
34625         * modules/linked-list-tests (Makefile.am): Likewise.
34626         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34627         * modules/lock-tests (Makefile.am): Likewise.
34628         * modules/rbtree-list-tests (Makefile.am): Likewise.
34629         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34630         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34631         * modules/tls-tests (Makefile.am): Likewise.
34632         * modules/tsearch-tests (Makefile.am): Likewise.
34633         * modules/xvasprintf-tests (Makefile.am): Likewise.
34634
34635         Fix fpurge for cygwin.
34636         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34637         value.
34638         * modules/fpurge-tests (Depends-on): Clean up trash.
34639
34640 2007-04-16  Simon Josefsson  <simon@josefsson.org>
34641
34642         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
34643
34644         * m4/autobuild.m4: Re-indent.
34645
34646 2007-04-13  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/fpurge-tests: New file.
34649         * tests/test-fpurge.c: New file.
34650
34651         * modules/fpurge: New file.
34652         * lib/fpurge.h: New file.
34653         * lib/fpurge.c: New file.
34654         * m4/fpurge.m4: New file.
34655
34656 2007-04-13  Bruno Haible  <bruno@clisp.org>
34657
34658         * modules/fbufmode-tests: New file.
34659         * tests/test-fbufmode.c: New file.
34660
34661         * modules/fbufmode: New file.
34662         * lib/fbufmode.h: New file.
34663         * lib/fbufmode.c: New file.
34664         * m4/fbufmode.m4: New file.
34665
34666 2007-04-13  Bruno Haible  <bruno@clisp.org>
34667
34668         * modules/fwritable-tests: New file.
34669         * tests/test-fwritable.c: New file.
34670
34671         * modules/fwritable: New file.
34672         * lib/fwritable.h: New file.
34673         * lib/fwritable.c: New file.
34674         * m4/fwritable.m4: New file.
34675
34676 2007-04-13  Bruno Haible  <bruno@clisp.org>
34677
34678         * modules/freadable-tests: New file.
34679         * tests/test-freadable.c: New file.
34680
34681         * modules/freadable: New file.
34682         * lib/freadable.h: New file.
34683         * lib/freadable.c: New file.
34684         * m4/freadable.m4: New file.
34685
34686 2007-04-13  Bruno Haible  <bruno@clisp.org>
34687
34688         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34689         MOSTLYCLEANFILES.
34690
34691 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34692
34693         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34694         gzip bootstrap.conf to avoid dragging in i18n machinery.
34695         (gnulib_tool_option): Use it.
34696
34697 2007-04-13  Bruno Haible  <bruno@clisp.org>
34698
34699         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34700         %F directives.
34701         * tests/test-vasprintf-posix.c (test_function): Likewise.
34702         * tests/test-snprintf-posix.h (test_function): Likewise.
34703         * tests/test-sprintf-posix.h (test_function): Likewise.
34704         * tests/test-fprintf-posix.h (test_function): Likewise.
34705         * tests/test-printf-posix.h (test_function): Likewise.
34706         * tests/test-fprintf-posix.out: Likewise.
34707
34708 2007-04-13  Bruno Haible  <bruno@clisp.org>
34709
34710         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34711         * modules/tls-tests (configure.ac): Likewise.
34712         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34713
34714 2007-04-13  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/tls.c (glthread_tls_get): Fix return type.
34717         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34718
34719 2007-04-12  Eric Blake  <ebb9@byu.net>
34720
34721         * modules/gettime (Depends-on): Remove gettime.
34722         Reported by Dmitry V. Levin.
34723
34724 2007-04-12  Bruno Haible  <bruno@clisp.org>
34725
34726         * modules/fflush (Include): Mention <stdio.h>.
34727         * modules/strtoimax (Include): Mention <inttypes.h>.
34728         * modules/strtoumax (Include): Likewise.
34729
34730 2007-04-12  Eric Blake  <ebb9@byu.net>
34731
34732         * .cvsignore: New file.
34733         * .gitignore: Likewise.
34734
34735 2007-04-12  Bruno Haible  <bruno@clisp.org>
34736
34737         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34738         not before, since $(LDADD) often contains libgnu.a.
34739         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34740         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34741         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34742         Needed on Cygwin.
34743
34744 2007-04-12  Eric Blake  <ebb9@byu.net>
34745
34746         Work around glibc's failure to flush stdin on fclose.
34747         * lib/closein.c (close_stdin): Flush stdin before closing.
34748
34749         Work around glibc's failure to reset seekable stdin on exit.
34750         * modules/closein: New module.
34751         * lib/closein.c: New file.
34752         * lib/closein.h: Likewise.
34753         * m4/closein.m4: Likewise.
34754         * MODULES.html.sh (File stream based Input/Output): Document it.
34755
34756 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34757
34758         * gnulib-tool: Rename generated 'autobuild' script to
34759         'do-autobuild' in --create-megatestdir output.
34760
34761         * doc/gnulib.texi (Build robot for gnulib): Fix.
34762
34763 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34764
34765         * modules/sysexits (Depends-on): Add absolute-header.
34766
34767 2007-04-12  Eric Blake  <ebb9@byu.net>
34768
34769         No need to preserve errno on success.
34770         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34771         Reported by Bruno Haible.
34772
34773 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34774
34775         * MODULES.html.sh (Support for maintaining and releasing
34776         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34777
34778 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34779
34780         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34781
34782 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34783
34784         * modules/autobuild: New module.
34785
34786         * m4/autobuild.m4: New file.
34787
34788 2007-04-11  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34791         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34792         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34797         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34801         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34802         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34804         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34805         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34807         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34808         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34809         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34810         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34811         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34812         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34813         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34814         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34815         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34816         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34817         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34818         Reported by Eric Blake.
34819
34820 2007-04-11  Bruno Haible  <bruno@clisp.org>
34821
34822         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34823
34824 2007-04-10  Bruno Haible  <bruno@clisp.org>
34825
34826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34827         for NaN and Infinity. Needed on FreeBSD 6.1.
34828         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34829         regarding results for "%010a" of Infinity and NaN.
34830         * tests/test-vasprintf-posix.c (test_function): Likewise.
34831         * tests/test-snprintf-posix.h (test_function): Likewise.
34832         * tests/test-sprintf-posix.h (test_function): Likewise.
34833         * tests/test-fprintf-posix.h (test_function): Likewise.
34834         * tests/test-printf-posix.h (test_function): Likewise.
34835         * tests/test-fprintf-posix.out: Likewise.
34836
34837 2007-04-10  Bruno Haible  <bruno@clisp.org>
34838
34839         * modules/locale-tests: New file.
34840         * tests/test-locale.c: New file.
34841
34842         * modules/locale: New file.
34843         * lib/locale_.h: New file.
34844         * m4/locale_h.m4: New file.
34845
34846 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34847             Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34850         be determined, test for availability of the copysignf, copysign,
34851         copysignl functions.
34852         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34853         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34854         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34855
34856 2007-04-09  Eric Blake  <ebb9@byu.net>
34857
34858         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34859         * modules/stdio (Makefile.am): Support fflush.
34860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34861         * modules/fflush: New file.
34862         * lib/fflush.c: Likewise.
34863         * m4/fflush.m4: Likewise.
34864         * modules/fflush-tests: New test.
34865         * tests/test-fflush.c: Likewise.
34866         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34867
34868 2007-04-06  Bruno Haible  <bruno@clisp.org>
34869
34870         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34871         (VASNPRINTF): Use signbit for faster determination whether to print a
34872         minus sign.
34873         * modules/vasnprintf (Files): Remove lib/float+.h.
34874         * modules/fprintf-posix (Depends-on): Add signbit.
34875         * modules/snprintf-posix (Depends-on): Likewise.
34876         * modules/sprintf-posix (Depends-on): Likewise.
34877         * modules/vasnprintf-posix (Depends-on): Likewise.
34878         * modules/vasprintf-posix (Depends-on): Likewise.
34879         * modules/vfprintf-posix (Depends-on): Likewise.
34880         * modules/vsnprintf-posix (Depends-on): Likewise.
34881         * modules/vsprintf-posix (Depends-on): Likewise.
34882
34883 2007-04-06  Bruno Haible  <bruno@clisp.org>
34884
34885         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34886         * tests/test-frexpl.c (main): Likewise.
34887         * tests/test-ldexpl.c (main): Likewise.
34888         * modules/frexp-tests (Depends-on): Add signbit.
34889         * modules/frexpl-tests (Depdends-on): Likewise.
34890         * modules/ldexpl-tests (Depdends-on): Likewise.
34891
34892 2007-04-06  Bruno Haible  <bruno@clisp.org>
34893
34894         * modules/signbit-tests: New file.
34895         * tests/test-signbit.c: New file.
34896
34897         * modules/signbit: New file.
34898         * lib/signbitf.c: New file.
34899         * lib/signbitd.c: New file.
34900         * lib/signbitl.c: New file.
34901         * m4/signbit.m4: New file.
34902         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34903         (signbit): New macro.
34904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34905         REPLACE_SIGNBIT.
34906         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34907         REPLACE_FREXPL into math.h.
34908
34909 2007-04-06  Bruno Haible  <bruno@clisp.org>
34910
34911         * modules/isnanf-nolibm-tests: New file.
34912         * tests/test-isnanf.c: New file.
34913
34914         * modules/isnanf-nolibm: New file.
34915         * lib/isnanf.h: New file.
34916         * lib/isnanf.c: New file.
34917         * lib/isnan.c: Consider the USE_FLOAT macro.
34918         * m4/isnanf.m4: New file.
34919
34920 2007-04-06  Bruno Haible  <bruno@clisp.org>
34921
34922         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34923         (Link): New section.
34924
34925         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34926
34927 2007-04-06  Bruno Haible  <bruno@clisp.org>
34928
34929         Assume the 'long double' type.
34930         * m4/longdouble.m4: Remove file.
34931         * config/srclist.txt: Don't mention longdouble.m4.
34932         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34933         * lib/float+.h: Likewise.
34934         * lib/frexp.c: Likewise.
34935         * lib/printf-args.h: Likewise.
34936         * lib/printf-args.c: Likewise.
34937         * lib/printf-frexp.c: Likewise.
34938         * lib/printf-parse.c: Likewise.
34939         * lib/vasnprintf.c: Likewise.
34940         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34941         * m4/intl.m4: Likewise.
34942         * m4/isnanl.m4: Likewise.
34943         * m4/printf.m4: Likewise.
34944         * m4/printf-frexpl.m4: Likewise.
34945         * m4/vasnprintf.m4: Likewise.
34946         * modules/allocsa (Files): Remove m4/longdouble.m4.
34947         * modules/gettext (Files): Likewise.
34948         * modules/relocatable-prog-wrapper (Files): Likewise.
34949         * modules/vasnprintf (Files): Likewise.
34950         * modules/isnanl (Files): Likewise.
34951         (Include): Simplify.
34952         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34953         (Include): Simplify.
34954         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34955         (Include): Simplify.
34956         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34957         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34958         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34959         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34960         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34961         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34962         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34963         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34964         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34965         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34966         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34967         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34968         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34969         * tests/test-isnanl.c: Likewise.
34970         * tests/test-snprintf-posix.h: Likewise.
34971         * tests/test-sprintf-posix.h: Likewise.
34972         * tests/test-vasnprintf-posix.c: Likewise.
34973         * tests/test-vasnprintf-posix2.c: Likewise.
34974         * tests/test-vasprintf-posix.c: Likewise.
34975
34976 2007-04-06  Bruno Haible  <bruno@clisp.org>
34977
34978         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34979         * lib/math_.h [__DECC]: Include the overridden include file through
34980         #include_next, outside the double-inclusion guard.
34981         * lib/stdio_.h [__DECC]: Likewise.
34982         * lib/stdlib_.h [__DECC]: Likewise.
34983         * lib/string_.h [__DECC]: Likewise.
34984         * lib/time_.h [__DECC]: Likewise.
34985         * lib/wchar_.h [__DECC]: Likewise.
34986         * lib/wctype_.h [__DECC]: Likewise.
34987         * lib/inttypes_.h [__DECC]: Likewise.
34988         Reported by Albert Chin <china@thewrittenword.com> in
34989         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34990
34991 2007-04-04  Eric Blake  <ebb9@byu.net>
34992
34993         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34994         1.5.x.
34995
34996 2007-04-04  Bruno Haible  <bruno@clisp.org>
34997
34998         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34999         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35000
35001 2007-04-04  Bruno Haible  <bruno@clisp.org>
35002
35003         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35004         results for "%010a" of Infinity and NaN.
35005         * tests/test-vasprintf-posix.c (test_function): Likewise.
35006         * tests/test-snprintf-posix.h (test_function): Likewise.
35007         * tests/test-sprintf-posix.h (test_function): Likewise.
35008         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35009         * tests/test-printf-posix.h (test_function): Likewise.
35010         * tests/test-fprintf-posix.out: Update.
35011         Needed for FreeBSD 6.1.
35012
35013 2007-04-04  Bruno Haible  <bruno@clisp.org>
35014
35015         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35016         directly used by the gnulib modules nor by gnulib-tool.
35017
35018 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35019
35020         * DEPENDENCIES: Give overall description of version dependency
35021         desirability.  Use more-typical names for apps.
35022         Add shell, coreutils, diffutils, grep, tar, gzip.
35023
35024 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35025
35026         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35027
35028 2007-04-04  Karl Berry  <karl@gnu.org>
35029
35030         * MODULES.html.sh (func_module): missing '.
35031
35032 2007-04-03  Bruno Haible  <bruno@clisp.org>
35033
35034         * modules/argmatch-tests (Makefile.am): New variable
35035         test_argmatch_LDADD.
35036         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35037         * modules/array-list-tests (Makefile.am): New variable
35038         test_array_list_LDADD.
35039         * modules/array-oset-tests (Makefile.am): New variable
35040         test_array_oset_LDADD.
35041         * modules/avltree-list-tests (Makefile.am): New variable
35042         test_avltree_list_LDADD.
35043         * modules/avltree-oset-tests (Makefile.am): New variable
35044         test_avltree_oset_LDADD.
35045         * modules/avltreehash-list-tests (Makefile.am): New variable
35046         test_avltreehash_list_LDADD.
35047         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35048         test_canonicalize_lgpl_LDADD.
35049         * modules/carray-list-tests (Makefile.am): New variable
35050         test_carray_list_LDADD.
35051         * modules/dirname-tests (Makefile.am): New variable
35052         test_dirname_LDADD.
35053         * modules/linked-list-tests (Makefile.am): New variable
35054         test_linked_list_LDADD.
35055         * modules/linkedhash-list-tests (Makefile.am): New variable
35056         test_linkedhash_list_LDADD.
35057         * modules/rbtree-list-tests (Makefile.am): New variable
35058         test_rbtree_list_LDADD.
35059         * modules/rbtree-oset-tests (Makefile.am): New variable
35060         test_rbtree_oset_LDADD.
35061         * modules/rbtreehash-list-tests (Makefile.am): New variable
35062         test_rbtreehash_list_LDADD.
35063         * modules/xvasprintf-tests (Makefile.am): New variable
35064         test_xvasprintf_LDADD.
35065         Reported by Eric Blake.
35066
35067 2007-04-03  Eric Blake  <ebb9@byu.net>
35068
35069         * DEPENDENCIES: Weaken m4 requirements.
35070
35071 2007-04-03  Bruno Haible  <bruno@clisp.org>
35072
35073         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35074         * modules/isnanl-tests (configure.ac): Likewise.
35075
35076 2007-04-03  Ben Pfaff  <blp@gnu.org>
35077
35078         * modules/iconv_open: Add $(srcdir)/ to source directory
35079         references in Makefile fragments that call gperf, to fix VPATH
35080         builds.
35081
35082 2007-04-03  Bruno Haible  <bruno@clisp.org>
35083
35084         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35085         * lib/ldexpl.c: Undo last change.
35086
35087 2007-04-03  Bruno Haible  <bruno@clisp.org>
35088
35089         * modules/printf-frexpl (Depends-on): Undo last change.
35090         (Files): Add m4/ldexpl.m4.
35091
35092 2007-04-03  Bruno Haible  <bruno@clisp.org>
35093
35094         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35095         * modules/isnanl (Link): New section.
35096
35097         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35098         * modules/frexp (Link): New section.
35099
35100         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35101         * modules/frexpl (Link): New section.
35102
35103         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35104         * modules/ldexpl (Link): New section.
35105
35106 2007-04-03  Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/TEMPLATE-EXTENDED: New file.
35109         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35110
35111 2007-04-03  Bruno Haible  <bruno@clisp.org>
35112
35113         * DEPENDENCIES: New file.
35114         Suggested by Simon Josefsson.
35115
35116 2007-04-03  Bruno Haible  <bruno@clisp.org>
35117
35118         * doc/gnulib.texi: Escape @.
35119
35120 2007-04-03  James Youngman  <jay@gnu.org>
35121         and Paul Eggert  <eggert@cs.ucla.edu>
35122
35123         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35124         birthtime on all systems that have birthtime, not just those which
35125         use st_birthtimensec rather than st_birthtim.  Putting zero in
35126         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35127         that the birth time is not available for files on an NFS mount.
35128
35129 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35130
35131         * modules/memxor: Move back from crypto/, suggested by Bruno.
35132         * modules/crypto/hmac-sha1: Fix memxor dependency.
35133
35134         * modules/crypto/gc: Moved from ../.
35135
35136 2007-04-02  Eric Blake  <ebb9@byu.net>
35137
35138         * lib/ldexpl.c (includes): Avoid libm.
35139
35140         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35141
35142 2007-04-02  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35145         on IRIX.
35146
35147 2007-04-02  Bruno Haible  <bruno@clisp.org>
35148
35149         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35150         x86 or x86_64 platforms running MacOS X.
35151         Reported by Ryan Schmidt <@ryandesign.com>.
35152
35153 2007-04-02  Bruno Haible  <bruno@clisp.org>
35154
35155         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35156         i386.
35157
35158 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35159
35160         * modules/crypto/arcfour: Moved from ../.
35161         * modules/crypto/arcfour-tests: Moved from ../.
35162         * modules/crypto/arctwo: Moved from ../.
35163         * modules/crypto/arctwo-tests: Moved from ../.
35164         * modules/crypto/des: Moved from ../.
35165         * modules/crypto/des-tests: Moved from ../.
35166         * modules/crypto/gc-arcfour: Moved from ../.
35167         * modules/crypto/gc-arcfour-tests: Moved from ../.
35168         * modules/crypto/gc-arctwo: Moved from ../.
35169         * modules/crypto/gc-arctwo-tests: Moved from ../.
35170         * modules/crypto/gc-des: Moved from ../.
35171         * modules/crypto/gc-des-tests: Moved from ../.
35172         * modules/crypto/gc-hmac-md5: Moved from ../.
35173         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35174         * modules/crypto/gc-hmac-sha1: Moved from ../.
35175         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35176         * modules/crypto/gc-md2: Moved from ../.
35177         * modules/crypto/gc-md2-tests: Moved from ../.
35178         * modules/crypto/gc-md4: Moved from ../.
35179         * modules/crypto/gc-md4-tests: Moved from ../.
35180         * modules/crypto/gc-md5: Moved from ../.
35181         * modules/crypto/gc-md5-tests: Moved from ../.
35182         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35183         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35184         * modules/crypto/gc-random: Moved from ../.
35185         * modules/crypto/gc-rijndael: Moved from ../.
35186         * modules/crypto/gc-rijndael-tests: Moved from ../.
35187         * modules/crypto/gc-sha1: Moved from ../.
35188         * modules/crypto/gc-sha1-tests: Moved from ../.
35189         * modules/crypto/gc-tests: Moved from ../.
35190         * modules/crypto/hmac-md5: Moved from ../.
35191         * modules/crypto/hmac-md5-tests: Moved from ../.
35192         * modules/crypto/hmac-sha1: Moved from ../.
35193         * modules/crypto/hmac-sha1-tests: Moved from ../.
35194         * modules/crypto/md2: Moved from ../.
35195         * modules/crypto/md2-tests: Moved from ../.
35196         * modules/crypto/md4: Moved from ../.
35197         * modules/crypto/md4-tests: Moved from ../.
35198         * modules/crypto/md5: Moved from ../.
35199         * modules/crypto/md5-tests: Moved from ../.
35200         * modules/crypto/memxor: Moved from ../.
35201         * modules/crypto/rijndael: Moved from ../.
35202         * modules/crypto/rijndael-tests: Moved from ../.
35203         * modules/crypto/sha1: Moved from ../.
35204
35205 2007-03-30  James Youngman  <jay@gnu.org>
35206
35207         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35208         rename() to change the ctime of a file (because ctime is unaffected
35209         by rename on jfs2 on AIX 5.1).
35210         (main): Start by doing cleanup, in case a previous run failed leaving
35211         test files behind.
35212
35213 2007-03-31  Bruno Haible  <bruno@clisp.org>
35214
35215         Support old proprietary implementations of iconv.
35216         * modules/iconv_open: New file.
35217         * lib/iconv_.h: New file.
35218         * m4/iconv_h.m4: New file.
35219         * lib/iconv_open.c: New file.
35220         * lib/iconv_open-aix.gperf: New file.
35221         * lib/iconv_open-hpux.gperf: New file.
35222         * lib/iconv_open-irix.gperf: New file.
35223         * lib/iconv_open-osf.gperf: New file.
35224         * m4/iconv_open.m4: New file.
35225         * modules/linebreak (Depends-on): Add iconv_open.
35226         * modules/striconv (Depends-on): Likewise.
35227         * modules/striconveh (Depends-on): Likewise.
35228         * modules/unicodeio (Depends-on): Likewise.
35229         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35230         (iconv_t)(-1).
35231         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35232         conversion if cd is (iconv_t)(-1).
35233         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35234         is not possible.
35235
35236 2007-03-31  Bruno Haible  <bruno@clisp.org>
35237
35238         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35239         work on Solaris either. Protect also second use of "autodetect_jp".
35240
35241 2007-03-31  Bruno Haible  <bruno@clisp.org>
35242
35243         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35244         the function is not present.
35245
35246 2007-03-31  Bruno Haible  <bruno@clisp.org>
35247
35248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35249         the function is not present.
35250
35251 2007-03-31  Bruno Haible  <bruno@clisp.org>
35252
35253         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35254         a bug in HP-UX iconv_open().
35255
35256 2007-03-31  Bruno Haible  <bruno@clisp.org>
35257
35258         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35259         (Mathematics <math.h>): New section, add fpieee.
35260         (Input/output <stdio.h>): Add fseterr.
35261         (Mathematics <math.h>): New section, add printf-frexp.
35262         (Container data structures): Add sublist.
35263         (Core language properties): Add fpucw, inline.
35264         (Functions for greatest-width integer types <inttypes.h>): Add
35265         imaxabs, imaxdiv, inttypes.
35266         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35267         isnanl-nolibm, ldexp.
35268         (Mathematics <math.h>): New section, add printf-frexpl.
35269         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35270         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35271         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35272         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35273         (Unicode string functions): Add unistr/u*-mbtoucr.
35274         (Java): Add javacomp-script, javaexec-script.
35275         (C#): Add csharpcomp-script, csharpexec-script.
35276         (Support for building libraries and executables): Add havelib,
35277         relocatable-*.
35278         (Support for maintaining and releasing projects): Renamed from
35279         'Support for maintaining and release projects'. Add announce-gen.
35280
35281 2007-03-31  Bruno Haible  <bruno@clisp.org>
35282
35283         * README: Talk primarily about git.
35284         (git and CVS): Renamed from CVS.
35285         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35286         gnulib is available through git.
35287         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35288
35289 2007-03-30  Bruno Haible  <bruno@clisp.org>
35290
35291         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35292         * lib/poll_.h: Likewise.
35293         * lib/stat_.h: Likewise.
35294         * lib/sys_time_.h: Likewise.
35295         * lib/sysexit_.h: Likewise.
35296         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35297         * lib/stdbool_.h: Likewise.
35298         * lib/byteswap_.h: Add double-inclusion guard.
35299
35300 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35301
35302         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35303
35304 2007-03-30  Karl Berry  <karl@gnu.org>
35305
35306         * config/srclist-update: double space after USA in the license
35307         substitution, since that's how it's usually (?) written.
35308
35309 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35310
35311         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35312         reported by Bruno Haible.
35313
35314 2007-03-29  Bruno Haible  <bruno@clisp.org>
35315
35316         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35317         a bug in AIX iconv().
35318
35319 2007-03-29  Bruno Haible  <bruno@clisp.org>
35320
35321         * modules/ldexpl-tests: New file.
35322         * tests/test-ldexpl.c: New file.
35323
35324 2007-03-29  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/ldexpl.c: Include fpucw.h.
35327         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35328         multiplication.
35329         * modules/ldexpl (Depends-on): Add fpucw.
35330
35331 2007-03-29  Bruno Haible  <bruno@clisp.org>
35332
35333         * modules/ldexpl: New file.
35334         * m4/ldexpl.m4: New file.
35335         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35336         set.
35337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35338         REPLACE_LDEXPL.
35339         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35340         REPLACE_LDEXPL.
35341         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35342         gl_FUNC_LDEXPL_WORKS.
35343         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35344         * modules/mathl (Files): Remove lib/ldexpl.c.
35345         (Depends-on): Add ldexpl.
35346
35347 2007-03-29  Bruno Haible  <bruno@clisp.org>
35348
35349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35350
35351 2007-03-29  Bruno Haible  <bruno@clisp.org>
35352
35353         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35354         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35355         and possibly also HP-UX.
35356         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35357         work on AIX, IRIX, HP-UX, OSF/1.
35358         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35359         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35360         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35361         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35362         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35363         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35364
35365 2007-03-29  Bruno Haible  <bruno@clisp.org>
35366
35367         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35368
35369 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35370
35371         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35372         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35373
35374 2007-03-29  Eric Blake  <ebb9@byu.net>
35375
35376         * lib/acl-internal.h: Remove redundant include.
35377         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35378         Cygwin when a file is locked.
35379
35380 2007-03-29  Bruno Haible  <bruno@clisp.org>
35381
35382         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35383         file.
35384         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35385
35386 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35387
35388         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35389         try to remove a parent directory if the child couldn't be removed
35390         (except for the first rmdir, which could fail because the child
35391         doesn't exist).  Problem reported by Jeff Blaine in
35392         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35393
35394 2007-03-28  Bruno Haible  <bruno@clisp.org>
35395
35396         * lib/striconveh.c (utf8conv_carefully): New function.
35397         (mem_cd_iconveh_internal): Invoke it.
35398
35399 2007-03-28  Bruno Haible  <bruno@clisp.org>
35400
35401         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35402         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35403         input.
35404         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35405         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35406         unistr/u8-uctomb.
35407
35408 2007-03-28  Bruno Haible  <bruno@clisp.org>
35409
35410         * modules/unistr/u8-mbtoucr: New file.
35411         * lib/unistr/u8-mbtoucr.c: New file.
35412         * modules/unistr/u16-mbtoucr: New file.
35413         * lib/unistr/u16-mbtoucr.c: New file.
35414         * modules/unistr/u16-mbtoucr: New file.
35415         * lib/unistr/u16-mbtoucr.c: New file.
35416         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35417
35418 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35419             Bruno Haible  <bruno@clisp.org>
35420
35421         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35422         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35423         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35424
35425         * m4/stdio_h.m4: Add stubs for vasprintf too.
35426
35427         * modules/stdio: Support vasprintf in sed command.
35428
35429         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35430         vasprintf.h.  Add stdio module indicator.
35431
35432         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35433         vasprintf.h.
35434
35435         * lib/vasprintf.h: File removed.
35436
35437         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35438         * lib/vasprintf.c: Ditto.
35439         * lib/xvasprintf.c: Ditto.
35440         * tests/test-vasprintf-posix.c: Ditto.
35441         * tests/test-vasprintf.c: Ditto.
35442
35443 2007-03-27  Bruno Haible  <bruno@clisp.org>
35444
35445         Make vasnprintf multithread-safe.
35446         * lib/vasnprintf.c (decimal_point_char): New function.
35447         (VASNPRINTF): Use it.
35448         Suggested by Simon Josefsson.
35449
35450 2007-03-27  Eric Blake  <ebb9@byu.net>
35451
35452         Support sub-second birthtime on cygwin.
35453         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35454         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35455         (get_stat_birthtime): Also work with st_birthtim.
35456
35457 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35458
35459         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35460         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35461         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35462         (get_stat_birthtime_ns): Simplify compile-time tests.
35463         (get_stat_birthtime): Change the API to look like
35464         get_stat_mtime etc., except return a negative tv_nsec on error.
35465         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35466         Don't check for "spare" fields.
35467         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35468         or for struct stat.st_birthtime, as these tests aren't used.
35469         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35470
35471 2007-03-27  Bruno Haible  <bruno@clisp.org>
35472
35473         * lib/stat-time.h: Include <sys/stat.h>.
35474
35475 2007-03-27  James Youngman  <jay@gnu.org>
35476
35477         * lib/stat-time.h (get_stat_birthtime): New function for
35478           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35479         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35480           and its variants.
35481         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35482         * modules/stat-time-test: New file.
35483         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35484
35485 2007-03-26  Bruno Haible  <bruno@clisp.org>
35486
35487         Better support of signalling NaNs.
35488         * lib/atanl.c: Include isnanl.h.
35489         (atanl): Perform test for NaN at the beginning of the function and
35490         through a call to isnanl.
35491         * lib/cosl.c: Include isnanl.h.
35492         (cosl): Perform test for NaN at the beginning of the function and
35493         through a call to isnanl.
35494         * lib/ldexpl.c: Include isnanl.h.
35495         (ldexpl): Perform test for NaN through a call to isnanl.
35496         * lib/logl.c: Include isnanl.h.
35497         (logl): Perform test for NaN at the beginning of the function and
35498         through a call to isnanl.
35499         * lib/sinl.c: Include isnanl.h.
35500         (sinl): Perform test for NaN at the beginning of the function and
35501         through a call to isnanl.
35502         * lib/sqrtl.c: Include isnanl.h.
35503         (sqrtl): Perform test for NaN at the beginning of the function and
35504         through a call to isnanl.
35505         * lib/tanl.c: Include isnanl.h.
35506         (tanl): Perform test for NaN at the beginning of the function and
35507         through a call to isnanl.
35508         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35509         * modules/mathl (Depends-on): Add isnanl.
35510
35511 2007-03-26  Eric Blake  <ebb9@byu.net>
35512
35513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35514         regression in logic sense of previous patch.
35515
35516 2007-03-26  Bruno Haible  <bruno@clisp.org>
35517
35518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35519         unportable shell command "if ! ...".
35520         Reported by Ralf Wildenhues.
35521
35522 2007-03-25  Bruno Haible  <bruno@clisp.org>
35523
35524         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35525         <sysexits.h> file, and only add EX_CONFIG.
35526         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35527         absolute file name and whether it is sufficient. Substitute also
35528         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35529         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35530         ABSOLUTE_SYSEXITS_H into sysexits.h.
35531
35532 2007-03-25  Bruno Haible  <bruno@clisp.org>
35533
35534         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35535         hints is NULL.
35536
35537 2007-03-25  Bruno Haible  <bruno@clisp.org>
35538
35539         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35540         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35541
35542 2007-03-25  Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/vasnprintf.c: Include langinfo.h.
35545         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35546         multithread-safe.
35547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35548         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35556         Reported by Simon Josefsson.
35557
35558 2007-03-25  Bruno Haible  <bruno@clisp.org>
35559
35560         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35561         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35562         * modules/vasnprintf (Depends-on): Add stdint.
35563
35564 2007-03-25  Bruno Haible  <bruno@clisp.org>
35565
35566         * modules/fpieee: New file.
35567         * m4/fpieee.m4: New file.
35568         * modules/isnan-nolibm (Depends-on): Add fpieee.
35569         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35570         * modules/isnanl (Depends-on): Add fpieee.
35571
35572 2007-03-25  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35575
35576 2007-03-25  Bruno Haible  <bruno@clisp.org>
35577
35578         Avoid test failures on IRIX 6.5.
35579         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35580         (main): Use it.
35581         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35582         macros.
35583         (main): Use them.
35584
35585 2007-03-25  Bruno Haible  <bruno@clisp.org>
35586
35587         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35588         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35589         exists but doesn't work.
35590         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35591         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35593         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35594
35595 2007-03-25  Bruno Haible  <bruno@clisp.org>
35596
35597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35598         returns inf. Needed on IRIX 6.5.
35599
35600 2007-03-25  Bruno Haible  <bruno@clisp.org>
35601
35602         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35603         (main): Use isnanl instead of x != x idiom.
35604         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35605
35606         * tests/test-frexp.c: Include isnan.h.
35607         (main): Use isnan instead of x != x idiom.
35608         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35609
35610 2007-03-25  Bruno Haible  <bruno@clisp.org>
35611
35612         * tests/test-frexp.c (NaN): New function/macro.
35613         (main): Use it instead of 0.0 / 0.0.
35614         * tests/test-isnan.c (NaN): New function/macro.
35615         (main): Use it instead of 0.0 / 0.0.
35616         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35617         (test_function): Use it instead of 0.0 / 0.0.
35618         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35619         (test_function): Use it instead of 0.0 / 0.0.
35620         * tests/test-snprintf-posix.h (NaN): New function/macro.
35621         (test_function): Use it instead of 0.0 / 0.0.
35622         * tests/test-sprintf-posix.h (NaN): New function/macro.
35623         (test_function): Use it instead of 0.0 / 0.0.
35624         * tests/test-fprintf-posix.h (NaN): New function/macro.
35625         (test_function): Use it instead of 0.0 / 0.0.
35626         * tests/test-printf-posix.h (NaN): New function/macro.
35627         (test_function): Use it instead of 0.0 / 0.0.
35628
35629         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35630
35631 2007-03-25  Bruno Haible  <bruno@clisp.org>
35632
35633         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35634
35635 2007-03-25  Bruno Haible  <bruno@clisp.org>
35636
35637         * lib/regexec.c (merge_state_with_log): Make static.
35638
35639 2007-03-25  Bruno Haible  <bruno@clisp.org>
35640
35641         * lib/trigl.c (kernel_rem_pio2): Make static.
35642
35643 2007-03-25  Bruno Haible  <bruno@clisp.org>
35644
35645         * lib/sincosl.c (sincosl_table): Make static.
35646
35647 2007-03-25  Bruno Haible  <bruno@clisp.org>
35648
35649         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
35650         if the compiler does not support C99.
35651
35652 2007-03-25  Bruno Haible  <bruno@clisp.org>
35653
35654         * modules/time (Makefile.am): Ensure all rule action lines start with a
35655         tab.
35656
35657 2007-03-24  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/tsearch-tests: New file.
35660         * tests/test-tsearch.sh: New file.
35661         * tests/test-tsearch.c: New file, mostly copied from glibc.
35662
35663         * modules/search-tests: New file.
35664         * tests/test-search.c: New file.
35665
35666         * modules/search: New file.
35667         * lib/search_.h: New file, incorporating lib/tsearch.h.
35668         * m4/search_h.m4: New file.
35669         * lib/tsearch.h: Remove file.
35670         * lib/tsearch.c: Include search.h instead of tsearch.h.
35671         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35672         HAVE_TSEARCH.
35673         * modules/tsearch (Files): Remove lib/tsearch.h.
35674         (Depends-on): Add search.
35675         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35676         (Include): Change tsearch.h into search.h.
35677
35678 2007-03-24  Bruno Haible  <bruno@clisp.org>
35679
35680         * modules/fpucw: New file.
35681         * lib/fpucw.h: New file.
35682         * lib/frexp.c: Include fpucw.h.
35683         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35684         (FUNC): Use them.
35685         * lib/printf-frexp.c: Include fpucw.h.
35686         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35687         (FUNC): Use them.
35688         * lib/vasnprintf.c: Include fpucw.h.
35689         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35690         'long double' calculations.
35691         * tests/test-frexpl.c: Include fpucw.h.
35692         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35693         * tests/test-printf-frexpl.c: Include fpucw.h.
35694         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35695         * modules/frexpl (Depends-on): Add fpucw.
35696         * modules/printf-frexpl (Depends-on): Likewise.
35697         * modules/fprintf-posix (Depends-on): Likewise.
35698         * modules/snprintf-posix (Depends-on): Likewise.
35699         * modules/sprintf-posix (Depends-on): Likewise.
35700         * modules/vasnprintf-posix (Depends-on): Likewise.
35701         * modules/vasprintf-posix (Depends-on): Likewise.
35702         * modules/vfprintf-posix (Depends-on): Likewise.
35703         * modules/vsnprintf-posix (Depends-on): Likewise.
35704         * modules/vsprintf-posix (Depends-on): Likewise.
35705         * modules/frexpl-tests (Depends-on): Likewise.
35706         * modules/printf-frexpl-tests (Depends-on): Likewise.
35707
35708 2007-03-24  Bruno Haible  <bruno@clisp.org>
35709
35710         * lib/float+.h: New file.
35711         * lib/isnan.c: Include float+.h.
35712         (SIZE): New macro.
35713         (FUNC): Compare only SIZE bytes of the value.
35714         * lib/vasnprintf.c: Include float+.h.
35715         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35716         SIZEOF_LDBL or SIZEOF_DBL bytes.
35717         * modules/isnan-nolibm (Files): Add lib/float+.h.
35718         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35719         * modules/isnanl (Files): Add lib/float+.h.
35720         * modules/vasnprintf (Files): Add lib/float+.h.
35721
35722 2007-03-24  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35725         include isnanl-nolibm.h.
35726
35727 2007-03-24  Bruno Haible  <bruno@clisp.org>
35728
35729         * tests/test-read-file.c (main): Don't produce spurious output for
35730         expected situations. Make the test fail if it encountered unexpected
35731         results.
35732
35733 2007-03-24  Bruno Haible  <bruno@clisp.org>
35734
35735         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35736         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35737
35738 2007-03-24  Bruno Haible  <bruno@clisp.org>
35739
35740         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35741
35742 2007-03-24  Bruno Haible  <bruno@clisp.org>
35743
35744         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35745         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35746
35747         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35748         * modules/utf8-ucs4: Turn into a symbolic link to module
35749         unistr/u8-mbtouc.
35750
35751         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35752         utf8-ucs4-unsafe.
35753         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35754         unistr/u8-mbtouc-unsafe.
35755
35756         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35757         * modules/utf16-ucs4: Turn into a symbolic link to module
35758         unistr/u16-mbtouc.
35759
35760         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35761         utf16-ucs4-unsafe.
35762         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35763         unistr/u16-mbtouc-unsafe.
35764
35765         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35766         * modules/ucs4-utf8: Turn into a symbolic link to module
35767         unistr/u8-ubtomb.
35768
35769         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35770         * modules/ucs4-utf16: Turn into a symbolic link to module
35771         unistr/u16-ubtomb.
35772
35773 2007-03-24  Bruno Haible  <bruno@clisp.org>
35774
35775         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35776         Enable the function only if HAVE_INLINE.
35777         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35778         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35779         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35780         Enable the function only if HAVE_INLINE.
35781         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35782         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35783         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35784         Enable the function only if HAVE_INLINE.
35785         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35786         Enable the function only if HAVE_INLINE.
35787         * modules/utf8-ucs4: Update.
35788         * modules/utf8-ucs4-unsafe: Update.
35789         * modules/utf16-ucs4: Update.
35790         * modules/utf16-ucs4-unsafe: Update.
35791         * modules/ucs4-utf8: Update.
35792         * modules/ucs4-utf16: Update.
35793
35794 2007-03-24  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/utf8-ucs4.h: Remove file.
35797         * lib/utf8-ucs4-unsafe.h: Remove file.
35798         * lib/utf16-ucs4.h: Remove file.
35799         * lib/utf16-ucs4-unsafe.h: Remove file.
35800         * lib/ucs4-utf8.h: Remove file.
35801         * lib/ucs4-utf16.h: Remove file.
35802         * lib/unistr.h: Include their previous contents.
35803         * m4/utf-ucs4.m4: Remove file.
35804         * m4/ucs4-utf.m4: Remove file.
35805         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35806         (Depends-on): Add unistr/base.
35807         (configure.ac): Remove gl_UTF_UCS4.
35808         (Makefile.am): Update.
35809         (Include): Change to unistr.h.
35810         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35811         (Depends-on): Add unistr/base.
35812         (configure.ac): Remove gl_UTF_UCS4.
35813         (Makefile.am): Update.
35814         (Include): Change to unistr.h.
35815         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35816         (Depends-on): Add unistr/base.
35817         (configure.ac): Remove gl_UTF_UCS4.
35818         (Makefile.am): Update.
35819         (Include): Change to unistr.h.
35820         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35821         (Depends-on): Add unistr/base.
35822         (configure.ac): Remove gl_UTF_UCS4.
35823         (Makefile.am): Update.
35824         (Include): Change to unistr.h.
35825         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35826         (Depends-on): Add unistr/base.
35827         (configure.ac): Remove gl_UCS4_UTF.
35828         (Makefile.am): Update.
35829         (Include): Change to unistr.h.
35830         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35831         (Depends-on): Add unistr/base.
35832         (configure.ac): Remove gl_UCS4_UTF.
35833         (Makefile.am): Update.
35834         (Include): Change to unistr.h.
35835         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35836         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35837         utf8-ucs4-unsafe.h.
35838         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35839         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35840         utf16-ucs4-unsafe.h.
35841         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35842         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35843         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35844         * lib/unistr/u8-strchr.c: Likewise.
35845         * lib/unistr/u8-strrchr.c: Likewise.
35846         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35847         * lib/unistr/u16-strchr.c: Likewise.
35848         * lib/unistr/u16-strrchr.c: Likewise.
35849         * lib/striconveh.c: Update.
35850         * lib/linebreak.c: Update.
35851
35852 2007-03-24  Bruno Haible  <bruno@clisp.org>
35853
35854         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35855         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35856
35857 2007-03-22  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35860
35861 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35862
35863         * MODULES.html.sh (File system functions): New module write-any-file.
35864         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35865         * m4/write-any-file.m4: New files.
35866
35867 2007-03-23  Eric Blake  <ebb9@byu.net>
35868
35869         * gnulib-tool: Rearrange space-tab sequences, since some editors
35870         like to eat them.
35871
35872 2007-03-23  Eric Blake  <ebb9@byu.net>
35873
35874         * lib/version-etc.c (version_etc_va): Update license wording to
35875         be more concise.  Recommended by Richard Stallman.
35876
35877 2007-03-22  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/poll.c (MSG_PEEK): New fallback definition.
35880
35881 2007-03-22  Bruno Haible  <bruno@clisp.org>
35882
35883         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35884         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35885         (main): Update.
35886         Fixes a compilation error on BeOS.
35887
35888 2007-03-22  Bruno Haible  <bruno@clisp.org>
35889
35890         * modules/frexpl-tests: New file.
35891         * tests/test-frexpl.c: New file.
35892
35893         * modules/frexpl: New file.
35894         * m4/frexpl.m4: New file.
35895         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35896         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35898         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35899         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35900         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35901
35902 2007-03-22  Bruno Haible  <bruno@clisp.org>
35903
35904         * lib/frexpl.c: Share code with lib/frexp.c.
35905         * modules/mathl (Files): Add lib/frexp.c.
35906         (Depends-on): Add isnanl-nolibm.
35907
35908 2007-03-22  Bruno Haible  <bruno@clisp.org>
35909
35910         * modules/printf-frexp (Files): Add m4/frexp.m4.
35911         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35912         only if the found frexp function actually works.
35913
35914 2007-03-22  Bruno Haible  <bruno@clisp.org>
35915
35916         * lib/frexp.c: Remove older implementation that uses divisions.
35917
35918 2007-03-21  Bruno Haible  <bruno@clisp.org>
35919
35920         * modules/frexp-tests: New file.
35921         * tests/test-frexp.c: New file.
35922
35923         * modules/frexp: New file.
35924         * lib/frexp.c: New file.
35925         * m4/frexp.m4: New file.
35926         * lib/math_.h (frexp): New declaration.
35927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35928         REPLACE_FREXP.
35929         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35930
35931 2007-03-21  Bruno Haible  <bruno@clisp.org>
35932
35933         * modules/isnanl-tests: New file.
35934         * tests/test-isnanl.c: New file.
35935
35936         * modules/isnanl: New file.
35937         * lib/isnanl.h: New file.
35938         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35939         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35940         gl_FUNC_ISNANL_WORKS.
35941         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35942         New macros.
35943
35944 2007-03-21  Bruno Haible  <bruno@clisp.org>
35945
35946         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35947         lib/isnanl.h.
35948         (Include): Update.
35949         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35950         * lib/vasnprintf.c: Update.
35951         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35952         tests/test-isnanl.h, remove tests/test-isnanl.c.
35953         (Makefile.am): Update.
35954         * tests/test-isnanl-nolibm.c: New file.
35955         * tests/test-isnanl.h: New file.
35956         * tests/test-isnanl.c: Remove file.
35957
35958 2007-03-21  Jim Meyering  <jim@meyering.net>
35959
35960         When trying to open ".", treat ESTALE like EACCES.
35961         * lib/savewd.c (savewd_save): Resort to forking not just upon
35962         failure with EACCES, but also when errno is ESTALE.
35963
35964 2007-03-20  Bruno Haible  <bruno@clisp.org>
35965
35966         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35967         Needed on AIX 5.1. Reported by Matthew Woehlke.
35968
35969 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35970
35971         Suggestions by Bruno Haible:
35972         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35973         our own.
35974         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35975         * modules/acl (Depends-on): Add gettext.
35976
35977 2007-03-19  Bruno Haible  <bruno@clisp.org>
35978
35979         * modules/iconvme: Remove file.
35980         * lib/iconvme.h: Remove file.
35981         * lib/iconvme.c: Remove file.
35982         * m4/iconvme.m4: Remove file.
35983
35984 2007-03-19  Bruno Haible  <bruno@clisp.org>
35985
35986         * doc/relocatable-maint.texi: Break long shell script line.
35987         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35988
35989 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35990
35991         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35992         handle file_has_acl.
35993         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35994         * lib/acl.c: Move header inclusions and related macro defns into
35995         lib/acl-internal.h.
35996         (S_ISLNK): Remove defn, since that's now done for us.
35997         (file_has_acl): Move to lib/file-has-acl.c.
35998         Call acl_trivial if available.  This is the crucial part of the fix.
35999         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36000         shared within the library.  Rewrite a bit, partly to make it compatible
36001         with the GNU coding style.
36002         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36003         Remove unnecessary double-quotes.
36004         Don't test for acl_to_text; the build will catch that.
36005         Replace acl_entries if it doesn't exist and it is needed.
36006         Check for -lsec and acl_trivial (as used on Solaris 10).
36007         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36008         lib/file-has-acl.c.
36009         (Depends-on): Add sys_stat, for S_ISLNK.
36010
36011 2007-03-19  Ben Pfaff  <blp@gnu.org>
36012
36013         * doc/gnulib.texi: Fix typos.
36014         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36015
36016 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36017
36018         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36019         If size is zero here, buf must be zero.
36020
36021 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36022
36023         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36024         <bruno@clisp.org>.
36025
36026 2007-03-18  Bruno Haible  <bruno@clisp.org>
36027
36028         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36029         Suggested by Eric Blake.
36030
36031 2007-03-18  Ben Pfaff  <blp@gnu.org>
36032
36033         * doc/relocatable.texi: Recommend using as prefix a directory
36034         that does not exist and will never be created.  Based on
36035         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36036         and others.
36037
36038 2007-03-17  Bruno Haible  <bruno@clisp.org>
36039
36040         * lib/fchownat.c: Include lchown.h.
36041
36042 2007-03-17  Bruno Haible  <bruno@clisp.org>
36043
36044         Fix endless loop when the given allocated size was > INT_MAX.
36045         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36046         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36047         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36048         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36049         * lib/sprintf.c (sprintf): Likewise.
36050
36051 2007-03-17  Bruno Haible  <bruno@clisp.org>
36052
36053         * tests/test-argp-2.sh (func_compare): Output a context diff.
36054
36055 2007-03-17  Bruno Haible  <bruno@clisp.org>
36056
36057         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36058         locale's decimal-point character.
36059
36060 2007-03-17  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36063         before comparing it. Needed because on some platforms (e.g. x86) a
36064         'long double' occupies less bytes than sizeof (long double).
36065
36066 2007-03-17  Bruno Haible  <bruno@clisp.org>
36067
36068         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36069         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36070         * tests/test-getaddrinfo.c (simple): Likewise.
36071         * tests/test-read-file.c (main): Likewise.
36072
36073 2007-03-17  Bruno Haible  <bruno@clisp.org>
36074
36075         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36076
36077 2007-03-17  Bruno Haible  <bruno@clisp.org>
36078
36079         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36080         unused variable.
36081
36082 2007-03-17  Bruno Haible  <bruno@clisp.org>
36083
36084         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36085         * tests/test-c-strncasecmp.c: Likewise.
36086
36087 2007-03-17  Bruno Haible  <bruno@clisp.org>
36088
36089         * modules/stdlib (Depends-on): Add unistd.
36090         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36091         Needed for MacOS X 10.3.
36092
36093 2007-03-17  Bruno Haible  <bruno@clisp.org>
36094
36095         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36096
36097 2007-03-17  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36100
36101 2007-03-17  Bruno Haible  <bruno@clisp.org>
36102
36103         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36104         to reflect files copied from gnulib (with or without modifications).
36105         Suggested by Jim Meyering.
36106
36107 2007-03-17  Eric Blake  <ebb9@byu.net>
36108
36109         * NEWS: Document stdlib change from 2007-02-18.
36110
36111 2007-03-17  Jim Meyering  <jim@meyering.net>
36112
36113         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36114         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36115         someone uses a name containing shell meta-characters.
36116         Reported by Alfred M. Szmidt.
36117
36118         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36119
36120 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36121
36122         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36123         and copy gettext configuration files only if configure.ac contains
36124         a use of AM_GNU_GETTEXT_VERSION.
36125
36126 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36127
36128         * build-aux/bootstrap (gnulib_name): New variable.
36129         (gnulib_tool_options): Use it.
36130
36131 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36132
36133         * tests/test-des.c: Use new namespace.
36134
36135 2007-03-15  Bruno Haible  <bruno@clisp.org>
36136
36137         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36138         Reported by James Youngman <jay@gnu.org>.
36139
36140 2007-03-15  Bruno Haible  <bruno@clisp.org>
36141
36142         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36143         declared prototype. Needed with cc on OSF/1 5.1.
36144
36145 2007-03-15  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36148         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36149         (struct gl_list_implementation): Add dispose_fn argument to the
36150         'create_empty', 'create' methods.
36151         (struct gl_list_impl_base): Add field 'dispose_fn'.
36152         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36153         argument.
36154         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36155         dispose_fn argument.
36156         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36157         dispose_fn on the dropped values.
36158         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36159         dispose_fn argument.
36160         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36161         dropped values.
36162         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36163         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36164         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36165         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36166         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36167         argument.
36168         (gl_tree_list_free): Call dispose_fn on the dropped values.
36169         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36170         the dropped values.
36171         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36172         Add dispose_fn argument.
36173         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36174         Call dispose_fn on the dropped values.
36175         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36176         Add dispose_fn argument.
36177         (gl_sublist_create): Initialize the 'dispose_fn' field.
36178         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36179         * tests/test-array_list.c (main): Update.
36180         * tests/test-carray_list.c (main): Update.
36181         * tests/test-avltree_list.c (main): Update.
36182         * tests/test-rbtree_list.c (main): Update.
36183         * tests/test-avltreehash_list.c (main): Update.
36184         * tests/test-rbtreehash_list.c (main): Update.
36185         * tests/test-linked_list.c (main): Update.
36186         * tests/test-linkedhash_list.c (main): Update.
36187         * tests/test-array_oset.c (main): Update.
36188
36189 2007-03-15  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36192         (gl_oset_create_empty): Add dispose_fn argument.
36193         (struct gl_oset_implementation): Add dispose_fn argument to
36194         'create_empty' method.
36195         (struct gl_oset_impl_base): Add dispose_fn field.
36196         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36197         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36198         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36199         values.
36200         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36201         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36202         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36203         dropped value.
36204         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36205         dropped value.
36206         * tests/test-array_oset.c (main): Update.
36207         * tests/test-avltree_oset.c (main): Update.
36208         * tests/test-rbtree_oset.c (main): Update.
36209         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36210
36211 2007-03-13  Bruno Haible  <bruno@clisp.org>
36212
36213         * tests/test-stdbool.c (i): Update after last patch.
36214
36215 2007-03-12  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36218         the iswprint macro. Needed on Solaris 2.5.1.
36219
36220 2007-03-12  Bruno Haible  <bruno@clisp.org>
36221
36222         * tests/test-printf-frexp.c (main): Declare x as volatile.
36223
36224 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36225
36226         * doc/gnulib.texi (Build robot for gnulib): New section.
36227
36228 2007-03-12  Jim Meyering  <jim@meyering.net>
36229
36230         * build-aux/bootstrap: New file.
36231         * build-aux/bootstrap.conf: New file, from coreutils.
36232
36233 2007-03-11  Bruno Haible  <bruno@clisp.org>
36234
36235         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36236
36237 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36238
36239         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36240         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36241         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36242
36243 2007-03-11  Bruno Haible  <bruno@clisp.org>
36244
36245         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36246         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36247
36248 2007-03-11  Bruno Haible  <bruno@clisp.org>
36249
36250         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36251         formula. Needed for SunPRO C 5.0.
36252
36253 2007-03-11  Bruno Haible  <bruno@clisp.org>
36254
36255         * modules/long-options (Depends-on): Add getopt.
36256
36257 2007-03-11  Bruno Haible  <bruno@clisp.org>
36258
36259         * modules/modechange (Depends-on): Add stdbool.
36260
36261 2007-03-11  Bruno Haible  <bruno@clisp.org>
36262
36263         * modules/i-ring (Depends-on): Add stdbool.
36264
36265 2007-03-11  Bruno Haible  <bruno@clisp.org>
36266
36267         * modules/gc-des (Depends-on): Add stdbool.
36268
36269 2007-03-11  Bruno Haible  <bruno@clisp.org>
36270
36271         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36272
36273 2007-03-11  Bruno Haible  <bruno@clisp.org>
36274
36275         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36276
36277 2007-03-11  Bruno Haible  <bruno@clisp.org>
36278
36279         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36280
36281 2007-03-11  Bruno Haible  <bruno@clisp.org>
36282
36283         * lib/vasnprintf.c (sprintf): Undefine.
36284
36285 2007-03-11  Bruno Haible  <bruno@clisp.org>
36286
36287         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36288         initializers in SunPRO C and Compaq C compilers.
36289
36290 2007-03-11  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36293         decrementing code ANSI C compliant.
36294
36295 2007-03-11  Bruno Haible  <bruno@clisp.org>
36296
36297         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36298         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36299
36300 2007-03-11  Bruno Haible  <bruno@clisp.org>
36301
36302         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36303         <stdbool.h> substitute doesn't pass.
36304
36305 2007-03-11  Bruno Haible  <bruno@clisp.org>
36306
36307         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36308
36309 2007-03-11  Bruno Haible  <bruno@clisp.org>
36310
36311         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36312         script, for submission to autobuild.josefsson.org.
36313
36314 2007-03-10  Bruno Haible  <bruno@clisp.org>
36315
36316         * modules/canonicalize-lgpl-tests: New file.
36317         * tests/test-canonicalize-lgpl.sh: New file.
36318         * tests/test-canonicalize-lgpl.c: New file.
36319
36320         * modules/c-strcase-tests: New file.
36321         * tests/test-c-strcase.sh: New file.
36322         * tests/test-c-strcasecmp.c: New file.
36323         * tests/test-c-strncasecmp.c: New file.
36324
36325         * modules/atexit-tests: New file.
36326         * tests/test-atexit.sh: New file.
36327         * tests/test-atexit.c: New file.
36328
36329 2007-03-10  Bruno Haible  <bruno@clisp.org>
36330
36331         * tests/test-binary-io.sh: Use temporary filenames that are not so
36332         likely to clash with those of other tests (in a parallel make).
36333         * tests/test-binary-io.c: Likewise.
36334
36335 2007-03-10  Bruno Haible  <bruno@clisp.org>
36336
36337         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36338         fallback; use #error instead.
36339         Suggested by Simon Josefsson.
36340
36341 2007-03-10  Bruno Haible  <bruno@clisp.org>
36342
36343         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36344         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36345         first and the last.
36346
36347 2007-03-10  Bruno Haible  <bruno@clisp.org>
36348
36349         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36350
36351 2007-03-10  Bruno Haible  <bruno@clisp.org>
36352
36353         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36354         "make distcheck".
36355         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36356         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36357         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36358
36359 2007-03-10  Bruno Haible  <bruno@clisp.org>
36360
36361         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36362         variable.
36363         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36364         variable.
36365
36366 2007-03-09  Eric Blake  <ebb9@byu.net>
36367         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36368
36369         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36370         types are not being provided by gnulib.
36371         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36372         types are supported.
36373
36374 2007-03-10  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/stdio_.h (__attribute__): New macro.
36377         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36378         vsprintf): Specify __attribute__ __format__ for GCC.
36379         Suggested by Eric Blake.
36380
36381 2007-03-09  Bruno Haible  <bruno@clisp.org>
36382
36383         * modules/printf-posix-tests: New file.
36384         * tests/test-printf-posix.sh: New file.
36385         * tests/test-printf-posix.c: New file.
36386
36387         * modules/printf-posix: New file.
36388         * lib/printf.c: New file.
36389         * m4/printf-posix-rpl.m4: New file.
36390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36391         REPLACE_PRINTF.
36392         * lib/stdio_.h (printf): New declaration.
36393         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36394         ____strfmon____): New macros.
36395         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36396         REPLACE_PRINTF.
36397
36398 2007-03-09  Bruno Haible  <bruno@clisp.org>
36399
36400         * tests/test-vasnprintf-posix2.sh: New file.
36401         * tests/test-vasnprintf-posix2.c: New file.
36402         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36403         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36404         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36405
36406         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36407         a locale dependent decimal point, rather than always '.'.
36408
36409 2007-03-09  Eric Blake  <ebb9@byu.net>
36410
36411         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36412         spite of platforms like Tandem/NSK that define it to -1.
36413
36414 2007-03-08  Bruno Haible  <bruno@clisp.org>
36415
36416         * modules/vprintf-posix-tests: New file.
36417         * tests/test-vprintf-posix.sh: New file.
36418         * tests/test-vprintf-posix.c: New file.
36419         * tests/test-printf-posix.h: New file.
36420
36421         * modules/vprintf-posix: New file.
36422         * lib/vprintf.c: New file.
36423         * m4/vprintf-posix.m4: New file.
36424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36425         REPLACE_VPRINTF.
36426         * lib/stdio_.h (vprintf): New declaration.
36427         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36428         REPLACE_VPRINTF.
36429
36430 2007-03-08  Bruno Haible  <bruno@clisp.org>
36431
36432         * modules/fprintf-posix-tests: New file.
36433         * tests/test-fprintf-posix.sh: New file.
36434         * tests/test-fprintf-posix.c: New file.
36435
36436         * modules/fprintf-posix: New file.
36437         * lib/fprintf.c: New file.
36438         * m4/fprintf-posix.m4: New file.
36439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36440         REPLACE_FPRINTF.
36441         * lib/stdio_.h (fprintf): New declaration.
36442         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36443         REPLACE_FPRINTF.
36444
36445 2007-03-08  Bruno Haible  <bruno@clisp.org>
36446
36447         * modules/vfprintf-posix-tests: New file.
36448         * tests/test-vfprintf-posix.sh: New file.
36449         * tests/test-vfprintf-posix.c: New file.
36450         * tests/test-fprintf-posix.h: New file.
36451         * tests/test-fprintf-posix.out: New file.
36452
36453         * modules/vfprintf-posix: New file.
36454         * lib/vfprintf.c: New file.
36455         * m4/vfprintf-posix.m4: New file.
36456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36457         REPLACE_VFPRINTF.
36458         * lib/stdio_.h (vfprintf): New declaration.
36459         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36460         REPLACE_VFPRINTF.
36461
36462 2007-03-08  Bruno Haible  <bruno@clisp.org>
36463
36464         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36465
36466 2007-03-08  Bruno Haible  <bruno@clisp.org>
36467
36468         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36469         instead of 'expr' invocations.
36470         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36471         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36472         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36474         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36475         Suggested by Paul Eggert.
36476
36477 2007-03-08  Bruno Haible  <bruno@clisp.org>
36478
36479         * modules/fseterr-tests: New file.
36480         * tests/test-fseterr.c: New file.
36481
36482         * modules/fseterr: New file.
36483         * lib/fseterr.h: New file.
36484         * lib/fseterr.c: New file.
36485
36486 2007-03-08  Bruno Haible  <bruno@clisp.org>
36487
36488         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36489         * lib/getopt_.h: Likewise.
36490         * lib/mbswidth.h: Likewise.
36491         * lib/setenv.h: Likewise.
36492         * lib/vasnprintf.h: Likewise.
36493         * lib/vasprintf.h: Likewise.
36494         * lib/verror.h: Likewise.
36495         * lib/xsetenv.h: Likewise.
36496         * lib/xvasprintf.h: Likewise.
36497
36498 2007-03-08  Jim Meyering  <jim@meyering.net>
36499
36500         * users.txt: Add parted.
36501
36502         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36503
36504 2007-03-07  Bruno Haible  <bruno@clisp.org>
36505
36506         * m4/printf.m4: Make the shell script snippets copy&pastable.
36507
36508 2007-03-02  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/netinet_in_.h: New file.
36511         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36512         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36513         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36514         (Depends-on): Add absolute-header.
36515         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36516         into netinet/in.h.
36517
36518 2007-03-03  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/sys_select_.h: New file.
36521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36522         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36523         * modules/sys_select (Files): Add lib/sys_select_.h.
36524         (Depends-on): Add absolute-header.
36525         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36526         into sys/select.h.
36527
36528 2007-03-02  Bruno Haible  <bruno@clisp.org>
36529
36530         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36531         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36532         values.
36533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36534         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36535         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36536         * modules/sys_socket (Depends-on): Add absolute-header.
36537         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36538         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36539         (Include): Remove requirement of inclusion of <sys/types.h>.
36540
36541 2007-03-02  Bruno Haible  <bruno@clisp.org>
36542
36543         * lib/byteswap_.h (bswap_32): Fix formula.
36544
36545 2007-03-06  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/sprintf-posix-tests: New file.
36548         * tests/test-sprintf-posix.c: New file.
36549
36550         * modules/sprintf-posix: New file.
36551         * lib/sprintf.c: New file.
36552         * m4/sprintf-posix.m4: New file.
36553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36554         REPLACE_SPRINTF.
36555         * lib/stdio_.h (sprintf): New declaration.
36556         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36557         REPLACE_SPRINTF.
36558
36559 2007-03-06  Bruno Haible  <bruno@clisp.org>
36560
36561         * modules/vsprintf-posix-tests: New file.
36562         * tests/test-vsprintf-posix.c: New file.
36563         * tests/test-sprintf-posix.h: New file.
36564
36565         * modules/vsprintf-posix: New file.
36566         * lib/vsprintf.c: New file.
36567         * m4/vsprintf-posix.m4: New file.
36568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36569         REPLACE_VSPRINTF.
36570         * lib/stdio_.h (vsprintf): New declaration.
36571         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36572         REPLACE_VSPRINTF.
36573
36574 2007-03-06  Bruno Haible  <bruno@clisp.org>
36575
36576         * modules/vsnprintf (Depend-on): Remove minmax.
36577
36578 2007-03-06  Bruno Haible  <bruno@clisp.org>
36579
36580         * modules/snprintf-posix-tests: New file.
36581         * tests/test-snprintf-posix.c: New file.
36582
36583         * modules/snprintf-posix: New file.
36584         * m4/snprintf-posix.m4: New file.
36585         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36586         gl_FUNC_SNPRINTF.
36587         (gl_FUNC_SNPRINTF): Invoke it.
36588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36589         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36590         is set.
36591         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36592
36593 2007-03-06  Bruno Haible  <bruno@clisp.org>
36594
36595         * modules/vsnprintf-posix-tests: New file.
36596         * tests/test-vsnprintf-posix.c: New file.
36597         * tests/test-snprintf-posix.h: New file.
36598
36599         * modules/vsnprintf-posix: New file.
36600         * m4/vsnprintf-posix.m4: New file.
36601         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36602         gl_FUNC_VSNPRINTF.
36603         (gl_FUNC_VSNPRINTF): Invoke it.
36604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36605         * lib/stdio_.h (vsnprintf): Define as a replacement if
36606         REPLACE_VSNPRINTF is set.
36607         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36608
36609 2007-03-06  Bruno Haible  <bruno@clisp.org>
36610
36611         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36613
36614 2007-03-06  Bruno Haible  <bruno@clisp.org>
36615
36616         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36617         (asinl): Declare also if HAVE_DECL_ASINL is set.
36618         (atanl): Declare also if HAVE_DECL_ATANL is set.
36619         (ceill): Declare also if HAVE_DECL_CEILL is set.
36620         (cosl): Declare also if HAVE_DECL_COSL is set.
36621         (expl): Declare also if HAVE_DECL_EXPL is set.
36622         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36623         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36624         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36625         (logl): Declare also if HAVE_DECL_LOGL is set.
36626         (sinl): Declare also if HAVE_DECL_SINL is set.
36627         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36628         (tanl): Declare also if HAVE_DECL_TANL is set.
36629         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36631         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36632         declaration of frexpl, ldexpl.
36633         * modules/printf-frexpl (Depends-on): Add math.
36634         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36635
36636 2007-03-05  Bruno Haible  <bruno@clisp.org>
36637
36638         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
36639         frexpl and ldexpl are declared.
36640         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
36641
36642 2007-03-05  Bruno Haible  <bruno@clisp.org>
36643
36644         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
36645         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
36646
36647 2007-03-05  Bruno Haible  <bruno@clisp.org>
36648
36649         * lib/stdio_.h: Include <stddef.h>.
36650
36651 2007-03-05  Bruno Haible  <bruno@clisp.org>
36652
36653         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
36654
36655 2007-03-05  Bruno Haible  <bruno@clisp.org>
36656
36657         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36658         NetBSD 4, from Ralf Wildenhues.
36659
36660 2007-03-04  Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/vasprintf.h: Update #if logic for the case when the functions
36663         exist but are overridden.
36664
36665 2007-03-04  Bruno Haible  <bruno@clisp.org>
36666
36667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36668         implementations: glibc-2.4 and MacOS X 10.3.
36669         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36670         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36671         * tests/test-vasprintf-posix.c (test_function): Likewise.
36672
36673 2007-03-04  Bruno Haible  <bruno@clisp.org>
36674
36675         * modules/vasprintf-posix-tests: New file.
36676         * tests/test-vasprintf-posix.c: New file.
36677
36678         * modules/vasprintf-posix: New file.
36679         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36680         defined.
36681         * m4/vasprintf-posix.m4: New file.
36682         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36683         gl_FUNC_VASPRINTF.
36684         (gl_FUNC_VASPRINTF): Invoke it.
36685         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36686         here.
36687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36688
36689 2007-03-04  Bruno Haible  <bruno@clisp.org>
36690
36691         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36692         REPLACE_GETTIMEOFDAY.
36693         * modules/sys_time (Makefile.am): Likewise.
36694         * m4/sys_time_h.m4: Likewise.
36695         * m4/gettimeofday.m4: Likewise.
36696
36697 2007-03-04  Bruno Haible  <bruno@clisp.org>
36698
36699         * modules/vasnprintf-posix-tests: New file.
36700         * tests/test-vasnprintf-posix.c: New file.
36701
36702         * modules/vasnprintf-posix: New file.
36703         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36704         printf-frexpl.h.
36705         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36706         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36707         REPLACE_VASNPRINTF is defined.
36708         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36709         gl_FUNC_VASNPRINTF.
36710         (gl_FUNC_VASNPRINTF): Invoke it.
36711         * m4/vasnprintf-posix.m4: New file.
36712         * m4/printf.m4: New file.
36713
36714 2007-03-04  Bruno Haible  <bruno@clisp.org>
36715
36716         Compile progreloc.c only if --enable-relocatable is specified.
36717         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36718         if --enable-relocatable was specified.
36719         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36720         lib_SOURCES.
36721
36722 2007-03-04  Jim Meyering  <jim@meyering.net>
36723
36724         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36725         Use it consistently, rather than enumerating errno constants.
36726
36727 2007-03-04  Bruno Haible  <bruno@clisp.org>
36728
36729         * modules/xvasprintf-tests: New file.
36730         * tests/test-xvasprintf.c: New file.
36731
36732         * modules/vasprintf-tests: New file.
36733         * tests/test-vasprintf.c: New file.
36734
36735         * modules/vasnprintf-tests: New file.
36736         * tests/test-vasnprintf.c: New file.
36737
36738         * modules/vsnprintf-tests: New file.
36739         * tests/test-vsnprintf.c: New file.
36740
36741         * modules/snprintf-tests: New file.
36742         * tests/test-snprintf.c: New file.
36743
36744 2007-03-04  Bruno Haible  <bruno@clisp.org>
36745
36746         Compile relocatable.c only if --enable-relocatable is specified.
36747         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36748         gl_RELOCATABLE_LIBRARY.
36749         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36750         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36751         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36752         gl_RELOCATABLE_LIBRARY.
36753         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36754         (Makefile.am): Remove lib_SOURCES.
36755         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36756         gl_RELOCATABLE_LIBRARY.
36757         (Makefile.am): Remove lib_SOURCES.
36758         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36759         always.
36760         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36761         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36762
36763 2007-03-04  Bruno Haible  <bruno@clisp.org>
36764
36765         * modules/argmatch-tests: New file.
36766         * tests/test-argmatch.c: New file.
36767
36768         * tests/test-allocsa.c (main): Halve the number of loop runs.
36769
36770         * modules/alloca-opt-tests: New file.
36771         * tests/test-alloca-opt.c: New file.
36772
36773 2007-03-04  Jim Meyering  <jim@meyering.net>
36774
36775         Work around difference between Linux ACLs and Solaris 10 ZFS.
36776         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36777         for EINVAL.
36778
36779 2007-03-03  Bruno Haible  <bruno@clisp.org>
36780
36781         * modules/relocatable-prog (Depends-on): Add back progreloc's
36782         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36783
36784 2007-03-03  Bruno Haible  <bruno@clisp.org>
36785
36786         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36787         * modules/relocatable-lib: New file.
36788
36789 2007-03-03  Bruno Haible  <bruno@clisp.org>
36790
36791         * modules/relocatable-prog: Renamed from modules/relocatable.
36792         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36793
36794 2007-03-03  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36797         m4/relocatable-lib.m4.
36798         (Depends-on): Remove 'relocatable'.
36799         (configure.ac): Add gl_RELOCATABLE_NOP.
36800
36801 2007-03-03  Bruno Haible  <bruno@clisp.org>
36802
36803         * modules/relocatable-prog-wrapper: New file.
36804         * modules/relocatable (Depends-on): Add it. Remove all other
36805         dependencies except progname.
36806         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36807
36808         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36809         (gl_FUNC_STRERROR): Nop.
36810         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36811
36812         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36813         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36814
36815         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36816         (gl_FUNC_READLINK): Update.
36817
36818         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36819
36820 2007-03-03  Bruno Haible  <bruno@clisp.org>
36821
36822         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36823         * modules/xreadlink (Depends-on): Add unistd.
36824         * modules/xreadlink-with-size (Depends-on): Likewise.
36825
36826 2007-03-03  Bruno Haible  <bruno@clisp.org>
36827
36828         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36829         extracted from gt_FUNC_SETENV.
36830         (gt_FUNC_SETENV): Remove macro.
36831         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36832         remove gt_FUNC_SETENV.
36833
36834 2007-03-03  Bruno Haible  <bruno@clisp.org>
36835
36836         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36837         ENABLE_RELOCATABLE here.
36838         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36839
36840 2007-03-03  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36843         * tests/test-rbtreehash_list.c: Include progname.h.
36844         (main): Call set_program_name.
36845
36846         * modules/rbtree-oset-tests (Depends-on): Add progname.
36847         * tests/test-rbtree_oset.c: Include progname.h.
36848         (main): Call set_program_name.
36849
36850         * modules/rbtree-list-tests (Depends-on): Add progname.
36851         * tests/test-rbtree_list.c: Include progname.h.
36852         (main): Call set_program_name.
36853
36854         * modules/linked-list-tests (Depends-on): Add progname.
36855         * tests/test-linked_list.c: Include progname.h.
36856         (main): Call set_program_name.
36857
36858 2007-03-03  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36861         All uses of __restrict changed to _Restrict_.
36862         * lib/glob_.h (__restrict): Remove macro.
36863
36864 2007-03-02  Bruno Haible  <bruno@clisp.org>
36865
36866         * modules/gettext (configure.ac): Require gettext infrastructure
36867         from version 0.16.1.
36868
36869 2007-03-02  Bruno Haible  <bruno@clisp.org>
36870
36871         * modules/linkedhash-list-tests (Depends-on): Add progname.
36872         * tests/test-linkedhash_list.c: Include progname.h.
36873         (main): Call set_program_name.
36874
36875         * modules/carray-list-tests (Depends-on): Add progname.
36876         * tests/test-carray_list.c: Include progname.h.
36877         (main): Call set_program_name.
36878
36879         * modules/avltreehash-list-tests (Depends-on): Add progname.
36880         * tests/test-avltreehash_list.c: Include progname.h.
36881         (main): Call set_program_name.
36882
36883         * modules/avltree-oset-tests (Depends-on): Add progname.
36884         * tests/test-avltree_oset.c: Include progname.h.
36885         (main): Call set_program_name.
36886
36887         * modules/avltree-list-tests (Depends-on): Add progname.
36888         * tests/test-avltree_list.c: Include progname.h.
36889         (main): Call set_program_name.
36890
36891         * modules/array-oset-tests (Depends-on): Add progname.
36892         * tests/test-array_oset.c: Include progname.h.
36893         (main): Call set_program_name.
36894
36895         * modules/array-list-tests (Depends-on): Add progname.
36896         * tests/test-array_list.c: Include progname.h.
36897         (main): Call set_program_name.
36898
36899         * modules/argp-tests (Depends-on): Add progname.
36900         * tests/test-argp.c: Include argp.h first. Include progname.h.
36901         (main): Call set_program_name.
36902
36903 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36904
36905         * doc/gnulib-tool.texi (Initial import): Reword description of
36906         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36907         limited effect even if defined after the first system include.
36908
36909 2007-03-01  Bruno Haible  <bruno@clisp.org>
36910
36911         * build-aux/config.libpath: Update to libtool-1.5.22.
36912         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36913
36914 2007-03-01  Bruno Haible  <bruno@clisp.org>
36915
36916         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36917         foo_CFLAGS.
36918         Reported by Ralf Wildenhues.
36919
36920 2007-03-01  Bruno Haible  <bruno@clisp.org>
36921
36922         * build-aux/install-reloc: Remove object files left over by some
36923         compilers.
36924         Reported by Ralf Wildenhues.
36925
36926 2007-03-01  Bruno Haible  <bruno@clisp.org>
36927
36928         * build-aux/install-reloc: Break long lines.
36929
36930 2007-03-01  Bruno Haible  <bruno@clisp.org>
36931
36932         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36933         Reported by Ralf Wildenhues.
36934
36935 2007-03-01  Bruno Haible  <bruno@clisp.org>
36936
36937         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36938         include ordering constraints.
36939
36940 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36941
36942         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36944         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36945         as another example.
36946         * lib/time_.h: Fix misspelling.
36947         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36948         Require gl_HEADER_TIME_H_DEFAULTS.
36949         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36950         * m4/time_r.m4 (gl_TIME_R): Likewise.
36951         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36952
36953 2007-03-01  Bruno Haible  <bruno@clisp.org>
36954
36955         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36956         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36957
36958 2007-03-01  Jim Meyering  <jim@meyering.net>
36959
36960         * modules/xreadlink (Maintainer): Add my name.
36961         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36962
36963 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36964             Bruno Haible  <bruno@clisp.org>
36965
36966         * build-aux/install-reloc: Compile also c-ctype.c.
36967         * build-aux/relocatable.sh.in: New file.
36968         * doc/relocatable.texi: New file.
36969         * doc/relocatable-maint.texi: New file.
36970         * doc/gnulib.texi: Include relocatable-maint.texi.
36971         * lib/progreloc.c: Include unistd.h unconditionally.
36972         * lib/relocwrapper.c: Include unistd.h unconditionally.
36973         Include c-ctype.h.
36974         (add_dotbin): Use c_tolower.
36975         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36976         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36977         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36978         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36979         to m4/relocatable-lib.m4.
36980         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36981         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36982         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36983         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36984         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36985         * modules/relocatable: New file.
36986         * modules/relocatable-lib: New file.
36987         * modules/relocatable-script: New file.
36988
36989 2007-02-28  Bruno Haible  <bruno@clisp.org>
36990
36991         Import --enable-relocatable infrastructure.
36992         * build-aux/config.libpath: New file, from GNU gettext.
36993         * build-aux/install-reloc: New file, from GNU gettext.
36994         * build-aux/reloc-ldflags: New file, from GNU gettext.
36995         * lib/relocatable.h: New file, from GNU gettext.
36996         * lib/relocatable.c: New file, from GNU gettext.
36997         * lib/relocwrapper.c: New file, from GNU gettext.
36998         * m4/relocatable.m4: New file, from GNU gettext.
36999
37000 2007-02-28  Bruno Haible  <bruno@clisp.org>
37001
37002         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37003
37004         * modules/xreadlink: New file, from GNU gettext with modifications.
37005         * lib/xreadlink.c: New file, from GNU gettext.
37006         * lib/xreadlink.h: Add comments.
37007         (xreadlink): New declaration.
37008
37009         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37010         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37011         lib/xreadlink-with-size.c.
37012         (configure.ac): Remove gl_XREADLINK invocation.
37013         (Makefile.am): Augment lib_SOURCES.
37014         * m4/xreadlink.m4: Remove file.
37015         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37016         (xreadlink_with_size): Renamed from xreadink.
37017         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37018         * modules/canonicalize (Depends-on): Replace xreadlink with
37019         xreadlink-with-size.
37020         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37021
37022 2007-02-25  Jim Meyering  <jim@meyering.net>
37023
37024         * build-aux/announce-gen: When complaining about excess arguments,
37025         list them.
37026
37027 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37028
37029         * README: Document signed integer overflow situation more
37030         accurately.
37031
37032 2007-02-25  Bruno Haible  <bruno@clisp.org>
37033
37034         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37035         'a' or 'A' conversion.
37036
37037 2007-02-25  Bruno Haible  <bruno@clisp.org>
37038
37039         * modules/filename: Renamed from modules/pathname.
37040         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37041         lib/concatpath.c with lib/concat-filename.c.
37042         (Makefile.am): Update.
37043         (Include): Replace pathname.h with filename.h.
37044         * lib/filename.h: Renamed from lib/pathname.h.
37045         (concatenated_filename): Renamed from concatenated_pathname.
37046         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37047         (concatenated_filename): Renamed from concatenated_pathname.
37048         * lib/findprog.c: Include filename.h instead of pathname.h.
37049         (find_in_path): Update.
37050         * lib/javacomp.c: Include filename.h instead of pathname.h.
37051         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37052         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37053         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37054         is_oldgcj_14_13_usable, is_javac_usable): Update.
37055         * lib/javaexec.c: Include filename.h instead of pathname.h.
37056         (execute_java_class): Update.
37057         * modules/findprog: Update.
37058         * modules/javacomp: Update.
37059         * modules/javaexec: Update.
37060         * MODULES.html.sh (File system functions): Add 'filename', remove
37061         'pathname'.
37062
37063 2007-02-25  Bruno Haible  <bruno@clisp.org>
37064
37065         * modules/printf-frexpl-tests: New file.
37066         * tests/test-printf-frexpl.c: New file.
37067
37068         * modules/printf-frexpl: New file.
37069         * lib/printf-frexpl.h: New file.
37070         * lib/printf-frexpl.c: New file.
37071         * m4/printf-frexpl.m4: New file.
37072
37073 2007-02-25  Bruno Haible  <bruno@clisp.org>
37074
37075         * modules/printf-frexp-tests: New file.
37076         * tests/test-printf-frexp.c: New file.
37077
37078         * modules/printf-frexp: New file.
37079         * lib/printf-frexp.h: New file.
37080         * lib/printf-frexp.c: New file.
37081         * m4/printf-frexp.m4: New file.
37082
37083 2007-02-25  Bruno Haible  <bruno@clisp.org>
37084
37085         Assume automake >= 1.10 for the tests.
37086         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37087         * modules/arctwo-tests: Likewise.
37088         * modules/argp-tests: Likewise.
37089         * modules/avltree-list-tests: Likewise.
37090         * modules/avltree-oset-tests: Likewise.
37091         * modules/avltreehash-list-tests: Likewise.
37092         * modules/carray-list-tests: Likewise.
37093         * modules/crc-tests: Likewise.
37094         * modules/des-tests: Likewise.
37095         * modules/gc-arcfour-tests: Likewise.
37096         * modules/gc-arctwo-tests: Likewise.
37097         * modules/gc-des-tests: Likewise.
37098         * modules/gc-hmac-md5-tests: Likewise.
37099         * modules/gc-hmac-sha1-tests: Likewise.
37100         * modules/gc-md2-tests: Likewise.
37101         * modules/gc-md4-tests: Likewise.
37102         * modules/gc-md5-tests: Likewise.
37103         * modules/gc-pbkdf2-sha1-tests: Likewise.
37104         * modules/gc-rijndael-tests: Likewise.
37105         * modules/gc-sha1-tests: Likewise.
37106         * modules/gc-tests: Likewise.
37107         * modules/getaddrinfo-tests: Likewise.
37108         * modules/hmac-md5-tests: Likewise.
37109         * modules/hmac-sha1-tests: Likewise.
37110         * modules/linked-list-tests: Likewise.
37111         * modules/linkedhash-list-tests: Likewise.
37112         * modules/lock-tests: Likewise.
37113         * modules/md2-tests: Likewise.
37114         * modules/md4-tests: Likewise.
37115         * modules/md5-tests: Likewise.
37116         * modules/rbtree-list-tests: Likewise.
37117         * modules/rbtree-oset-tests: Likewise.
37118         * modules/rbtreehash-list-tests: Likewise.
37119         * modules/read-file-tests: Likewise.
37120         * modules/rijndael-tests: Likewise.
37121         * modules/stdint-tests: Likewise.
37122         * modules/tls-tests: Likewise.
37123
37124 2007-02-24  Bruno Haible  <bruno@clisp.org>
37125
37126         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37127         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37128         function; instead check whether isnan with a double argument links.
37129         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37130         function; instead check whether isnan with a 'long double' argument
37131         links.
37132         Reported by Eric Blake <ebb9@byu.net>.
37133
37134 2007-02-24  Bruno Haible  <bruno@clisp.org>
37135
37136         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37137         defined.
37138         * lib/isnanl.c: Remove all code. Just include isnan.c.
37139         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37140
37141 2007-02-25  Jim Meyering  <jim@meyering.net>
37142
37143         Avoid conflicting types for 'unsetenv' on FreeBSD.
37144         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37145         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37146         in stdlib.h.
37147
37148 2007-02-24  Bruno Haible  <bruno@clisp.org>
37149
37150         * modules/isnanl-nolibm-tests: New file.
37151         * tests/test-isnanl.c: New file.
37152
37153         * modules/isnanl-nolibm: New file.
37154         * lib/isnanl.h: New file.
37155         * lib/isnanl.c: New file.
37156         * m4/isnanl.m4: New file.
37157
37158 2007-02-24  Bruno Haible  <bruno@clisp.org>
37159
37160         * modules/isnan-nolibm-tests: New file.
37161         * tests/test-isnan.c: New file.
37162
37163         * modules/isnan-nolibm: New file.
37164         * lib/isnan.h: New file.
37165         * lib/isnan.c: New file.
37166         * m4/isnan.m4: New file.
37167
37168 2007-02-24  Bruno Haible  <bruno@clisp.org>
37169
37170         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37171         assume that an exponent fits in 20 bits.
37172
37173 2007-02-24  Jim Meyering  <jim@meyering.net>
37174
37175         * m4/regex.m4: Update the description of the configure-time option,
37176         --without-included-regex, to state accurately what the defaults are,
37177         and perhaps to give people an idea why using this option is risky.
37178
37179 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37180
37181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37182         loops on small arguments.  This attempts to avoid the problem
37183         Bruno Haible reported for AIX 4.3.2 in
37184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37185
37186 2007-02-23  Bruno Haible  <bruno@clisp.org>
37187
37188         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37189         Needed for help2man.
37190
37191 2007-02-23  Karl Berry  <karl@gnu.org>
37192
37193         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37194         exists, foo.h should be cvs-ignored, not committed.
37195
37196 2007-02-23  Eric Blake  <ebb9@byu.net>
37197
37198         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37199         * lib/stat-time.h (includes): Likewise.
37200         * lib/utimecmp.c (includes): Likewise.
37201         * lib/utimens.h (includes): Likewise.
37202         * lib/getdate.y (includes): Also include "timespec.h" for use
37203         internal to the module.
37204         * modules/utimens (Depends-on): Revert yesterday's patch.
37205         * modules/nanosleep (Depends-on): Add missing dependency.
37206
37207 2007-02-22  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/glob.c: Don't include getlogin_r.h.
37210
37211 2007-02-22  Jim Meyering  <jim@meyering.net>
37212
37213         * modules/utimens (Depends-on): Add timespec, required for
37214         utimens.h's inclusion of timespec.h.
37215
37216 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37217
37218         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37219         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37220         Schwab in
37221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37222         I'll try to think of a better way to fix the Solaris problem.
37223
37224         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37225         like glibc; on Solaris 10, it fails with errno == EINVAL.
37226         POSIX says the behavior is unspecified if the first argument is NULL,
37227         so play it safe and never pass NULL to the system getcwd.
37228
37229 2007-02-21  Jim Meyering  <jim@meyering.net>
37230
37231         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37232         of gettimeofday.  It would conflict with the one now always
37233         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37234         an IRIX 6.5 build failure.
37235
37236 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37237
37238         Minor fixups to port to Solaris 10 with Sun C 5.8.
37239         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37240         * modules/getcwd (Depends-on): Add dirfd.
37241         * lib/putenv.c (putenv): #undef it.
37242         (rpl_putenv): New decl.
37243         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37244
37245 2007-02-20  Bruno Haible  <bruno@clisp.org>
37246
37247         * modules/stdio-tests: New file.
37248         * tests/test-stdio.c: New file.
37249
37250         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37251         (Depends-on): Add stdio.
37252         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37253         (Include): Use <stdio.h> instead of vsnprintf.h.
37254         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37255         HAVE_DECL_VSNPRINTF.
37256         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37257
37258         * modules/snprintf (Files): Remove lib/snprintf.h.
37259         (Depends-on): Add stdio.
37260         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37261         (Include): Use <stdio.h> instead of snprintf.h.
37262         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37263         HAVE_DECL_SNPRINTF.
37264         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37265         * lib/getaddrinfo.c: Likewise.
37266
37267         * modules/stdio: New file.
37268         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37269         * lib/snprintf.h: Remove file.
37270         * lib/vsnprintf.h: Remove file.
37271         * lib/.cppi-disable: Remove snprintf.h.
37272         * m4/stdio_h.m4: New file.
37273         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37274
37275 2007-02-20  Jim Meyering  <jim@meyering.net>
37276
37277         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37278         used by e.g., mingw.  From Bruno Haible.
37279
37280 2007-02-19  Bruno Haible  <bruno@clisp.org>
37281
37282         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37283         warnings.
37284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37285
37286 2007-02-19  Bruno Haible  <bruno@clisp.org>
37287
37288         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37289         from mingw users.
37290
37291 2007-02-19  Bruno Haible  <bruno@clisp.org>
37292
37293         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37294         warnings.
37295         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37296
37297 2007-02-19  Jim Meyering  <jim@meyering.net>
37298
37299         Don't use FD after a successful "fdopendir (fd)".
37300         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37301         Reset it by calling dirfd on the just-obtained DIR*.
37302
37303         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37304         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37305
37306 2007-02-18  Bruno Haible  <bruno@clisp.org>
37307
37308         * lib/readlink.c: Include <unistd.h>.
37309         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37310         HAVE_READLINK.
37311         * modules/readlink (Depends-on): Add unistd.
37312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37313         (Include): Add <unistd.h>.
37314
37315         * lib/getlogin_r.h: Remove file.
37316         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37317         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37318         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37319         HAVE_DECL_GETLOGIN_R.
37320         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37322         (Include): Use <unistd.h> instead of getlogin_r.h.
37323
37324         * lib/getcwd.h: Remove file.
37325         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37326         * lib/xgetcwd.c: Likewise.
37327         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37328         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37329         * modules/getcwd (Files): Remove lib/getcwd.h.
37330         (Depends-on): Add unistd.
37331         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37332         (Include): Use <unistd.h> instad of getcwd.h.
37333
37334         * lib/ftruncate.c: Include <unistd.h> first.
37335         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37336         Set HAVE_FTRUNCATE.
37337         * modules/ftruncate (Depends-on): Add unistd.
37338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37339
37340         * lib/fchdir.c: Include <unistd.h> first.
37341         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37343         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37344         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37345         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37346
37347         * lib/dup2.c: Include <unistd.h> first.
37348         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37349         HAVE_DUP2.
37350         * modules/dup2 (Depends-on): Add unistd.
37351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37352
37353         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37354         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37355         REPLACE_CHOWN. Don't define chown as a macro here.
37356         * modules/chown (Depends-on): Add unistd.
37357         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37358
37359         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37360         Add definition for GL_LINK_WARNING.
37361         (chown, dup2): New declarations.
37362         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37363         link warning.
37364         (ftruncate): New declaration.
37365         (getcwd): New declaration, taken from old getcwd.h.
37366         (getlogin_r): New declaration, taken from old getlogin_r.h.
37367         (readlink): New declaration.
37368         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37369         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37370         (gl_PREREQ_UNISTD): Remove macro.
37371         (gl_UNISTD_MODULE_INDICATOR): New macro.
37372         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37373         many new variables. Don't set UNISTD_H.
37374         * modules/unistd (Description): Change.
37375         (Depends-on): Add link-warning.
37376         (configure.ac): Update.
37377         (Makefile.am): Create unistd.h always. Substitute many new variables
37378         into it.
37379
37380 2007-02-18  Bruno Haible  <bruno@clisp.org>
37381
37382         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37383         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37384         HAVE_GETSUBOPT.
37385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37386         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37387         * lib/getsubopt.h: Remove file.
37388         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37389         (Depends-on): Add stdlib.
37390         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37391         (Includes): Use <stdlib.h> instead of getsubopt.h.
37392         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37393         Set HAVE_GETSUBOPT.
37394         * lib/getsubopt.c: Don't include getsubopt.h.
37395
37396 2007-02-18  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/fchdir (Depends-on): Add dup2.
37399
37400 2007-02-18  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/stdlib_.h: Handle glibc's special invocation convention
37403         specially.
37404
37405 2007-02-18  Bruno Haible  <bruno@clisp.org>
37406
37407         * modules/stdlib-tests: New file.
37408         * tests/test-stdlib.c: New file.
37409
37410         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37411         (Depends-on): Add stdlib.
37412         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37413         (Includes): Use <stdlib.h> instead of mkstemp.h.
37414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37415         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37416         * lib/mkstemp.c: Don't include mkstemp.h.
37417         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37418         * lib/stdlib--.h: Don't include mkstemp.h.
37419
37420         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37421         (Depends-on): Add stdlib.
37422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37423         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37424         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37425         HAVE_MKDTEMP.
37426         * lib/mkdtemp.c: Don't include mkdtemp.h.
37427         * lib/clean-temp.c: Don't include mkdtemp.h.
37428
37429         * modules/exit (Files): Remove lib/exit.h.
37430         (Depends-on): Add stdlib.
37431         (Makefile.am): Remove lib_SOURCES.
37432         (Include): Use <stdlib.h> instead of exit.h.
37433         * lib/argmatch.c: Don't include exit.h.
37434         * lib/execute.c: Likewise.
37435         * lib/pagealign_alloc.c: Likewise.
37436         * lib/pipe.c: Likewise.
37437         * lib/wait-process.c: Likewise.
37438         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37439         * lib/exitfail.c: Likewise.
37440         * lib/savewd.c: Likewise.
37441         * lib/xsetenv.c: Likewise.
37442
37443         * modules/stdlib: New file.
37444         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37445         and extra comments about mkstemp().
37446         * lib/exit.h: Remove file.
37447         * lib/mkdtemp.h: Remove file.
37448         * lib/mkstemp.h: Remove file.
37449         * m4/stdlib_h.m4: New file.
37450         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37451
37452 2007-02-18  Bruno Haible  <bruno@clisp.org>
37453
37454         * modules/math-tests: New file.
37455         * tests/test-math.c: New file.
37456
37457         * modules/math: New file.
37458         * modules/mathl (Files): Remove lib/mathl.h.
37459         (Depends-on): Add math.
37460         (Makefile.am): Don't mention mathl.h.
37461         (Include): Use <math.h> instead of mathl.h.
37462         * lib/math_.h: New file.
37463         * lib/mathl.h: Remove file.
37464         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37465         mathl.h.
37466         * lib/asinl.c: Likewise.
37467         * lib/atanl.c: Likewise.
37468         * lib/ceill.c: Likewise.
37469         * lib/cosl.c: Likewise.
37470         * lib/expl.c: Likewise.
37471         * lib/floorl.c: Likewise.
37472         * lib/frexpl.c: Likewise.
37473         * lib/ldexpl.c: Likewise.
37474         * lib/logl.c: Likewise.
37475         * lib/sincosl.c: Likewise.
37476         * lib/sinl.c: Likewise.
37477         * lib/sqrtl.c: Likewise.
37478         * lib/tanl.c: Likewise.
37479         * lib/trigl.c: Likewise.
37480         * m4/math_h.m4: New file.
37481         * MODULES.html.sh (Mathematics): Add math.
37482
37483 2007-02-17  Bruno Haible  <bruno@clisp.org>
37484
37485         * modules/wctype-tests: New file.
37486         * tests/test-wctype.c: New file.
37487
37488         * modules/wchar-tests: New file.
37489         * tests/test-wchar.c: New file.
37490
37491         * modules/unistd-tests: New file.
37492         * tests/test-unistd.c: New file.
37493
37494         * modules/time-tests: New file.
37495         * tests/test-time.c: New file.
37496
37497         * modules/sysexits-tests: New file.
37498         * tests/test-sysexits.c: New file.
37499
37500         * modules/sys_time-tests: New file.
37501         * tests/test-sys_time.c: New file.
37502
37503         * modules/sys_stat-tests: New file.
37504         * tests/test-sys_stat.c: New file.
37505
37506         * modules/sys_socket-tests: New file.
37507         * tests/test-sys_socket.c: New file.
37508
37509         * modules/sys_select-tests: New file.
37510         * tests/test-sys_select.c: New file.
37511
37512         * modules/string-tests: New file.
37513         * tests/test-string.c: New file.
37514
37515         * modules/stdbool-tests: New file.
37516         * tests/test-stdbool.c: New file.
37517
37518         * modules/netinet_in-tests: New file.
37519         * tests/test-netinet_in.c: New file.
37520
37521         * modules/inttypes-tests: New file.
37522         * tests/test-inttypes.c: New file.
37523
37524         * modules/fcntl-tests: New file.
37525         * tests/test-fcntl.c: New file.
37526
37527         * modules/byteswap-tests: New file.
37528         * tests/test-byteswap.c: New file.
37529
37530         * modules/arpa_inet-tests: New file.
37531         * tests/test-arpa_inet.c: New file.
37532
37533 2007-02-17  Bruno Haible  <bruno@clisp.org>
37534
37535         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37536         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37537         if the corresponding module is not enabled. Emit link warnings if
37538         the function is used nevertheless.
37539         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37540         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37541         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37542         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37543         * modules/inttypes (Depends-on): Add link-warning.
37544         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37545         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37546         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37547         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37548         * modules/imaxdiv (configure.ac): Likewise.
37549         * modules/strtoimax (configure.ac): Likewise.
37550         * modules/strtoumax (configure.ac): Likewise.
37551
37552 2007-02-17  Bruno Haible  <bruno@clisp.org>
37553
37554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37555         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37557         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37558
37559 2007-02-17  Bruno Haible  <bruno@clisp.org>
37560
37561         * modules/link-warning: New file.
37562         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37563         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37564         * modules/string (Depends-on): Add link-warning.
37565         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37566         string.h.
37567         * MODULES.html.sh (Support for building libraries and executables): Add
37568         link-warning.
37569
37570 2007-02-17  Bruno Haible  <bruno@clisp.org>
37571
37572         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37573         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37574         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37575         long lines.
37576
37577 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37578             Bruno Haible  <bruno@clisp.org>
37579
37580         * modules/tmpfile: New file.
37581         * lib/tmpfile.c: New file.
37582         * m4/tmpfile.m4: New file.
37583         * MODULES.html.sh (func_all_modules): New section "Input/output".
37584
37585 2007-02-15  Bruno Haible  <bruno@clisp.org>
37586
37587         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37588         (supports_delete_on_close): New function.
37589         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37590
37591 2007-02-14  Bruno Haible  <bruno@clisp.org>
37592
37593         * modules/mbspcasecmp-tests: New file.
37594         * tests/test-mbspcasecmp.sh: New file.
37595         * tests/test-mbspcasecmp.c: New file.
37596
37597         New module mbspcasecmp.
37598         * modules/mbspcasecmp: New file.
37599         * lib/mbspcasecmp.c: New file.
37600         * lib/string_.h (strncasecmp): Change warning message.
37601         (mbspcasecmp): New declaration.
37602         * m4/mbspcasecmp.m4: New file.
37603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37604         GNULIB_MBSPCASECMP.
37605         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37606         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37607
37608 2007-02-14  Bruno Haible  <bruno@clisp.org>
37609
37610         * modules/mbsncasecmp-tests: New file.
37611         * tests/test-mbsncasecmp.sh: New file.
37612         * tests/test-mbsncasecmp.c: New file.
37613
37614         New module mbsncasecmp.
37615         * modules/mbsncasecmp: New file.
37616         * lib/mbsncasecmp.c: New file.
37617         * lib/string_.h (mbsncasecmp): New declaration.
37618         * m4/mbsncasecmp.m4: New file.
37619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37620         GNULIB_MBSNCASECMP.
37621         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37622         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37623
37624 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37625
37626         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37627         Verify that it doesn't overlap with our flags.
37628         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37629         do not have the desired effect in multibyte locales; instead, use
37630         mbscasecmp.
37631         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37632         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37633         we don't require GNU fnmatch ourselves (if our users require it, they
37634         should do so explicitly).
37635
37636         Fix regex code so it doesn't rely on strcasecmp.
37637         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37638         Otherwise, include gnulib's langinfo.h.
37639         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
37640         undesirable behavior in non-C locales.  Instead, rely on localecharset.
37641         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
37642         * modules/regex (FILES): Remove m4/codeset.m4.
37643         (Depends-on): Add localcharset.  Remove strcase.
37644
37645 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37646
37647         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
37648         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
37649
37650 2007-02-13  Bruno Haible  <bruno@clisp.org>
37651
37652         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
37653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37654
37655 2007-02-12  Bruno Haible  <bruno@clisp.org>
37656
37657         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37658         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37659         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37660         time warning rather than a link error.
37661
37662 2007-02-12  Bruno Haible  <bruno@clisp.org>
37663
37664         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37665         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37667
37668 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37671         args, not 2.
37672
37673 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37674
37675         New module 'time', so that apps can include <time.h> as per
37676         POSIX and GNU instead of separate include files like time_r.h
37677         and timegm.h.  This implementation tries out a simpler approach
37678         for replacing decls in standard include files (as compared to
37679         the string module), somewhat as an experiment.
37680
37681         * config/srclist.txt: Comment out mktime.c for now.
37682         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37683         since it doesn't apply any more.  Use generic wording instead.
37684         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37685         'time'.
37686         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37687         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37688         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37689         Don't include <sys/types.h>; no longer needed since we assume C89.
37690         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37691         * lib/strftime.c: Likewise.
37692         * lib/time_r.c: Likewise.
37693         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37694         * lib/nanosleep.c: Include <time.h> first, to check interface.
37695         * lib/strptime.c: Likewise.
37696         * lib/time_r.c: Likewise.
37697         * lib/timegm.c: Likewise.
37698         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37699         needed.
37700         * lib/timegm.c: Don't include timegm.h; no longer needed.
37701         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37702         time.h now handles any problems in that area.
37703         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37704         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37705         that time.h defines struct timespec.
37706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37707         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37708         handles that.
37709         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37710         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37711         needed.  Set REPLACE_LOCALTIME.
37712         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37713         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37714         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37715         nanosleep; time_h.m4 now does that.  Don't require
37716         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37717         module handles this now.
37718         * modules/getdate (Depends-on): Remove timespec.  Add time.
37719         * modules/nanosleep (Depends-on): Likewise.
37720         * modules/stat-time (Depends-on): Likewise.
37721         * modules/nanosleep (Include): Include time.h, not timespec.h.
37722         * modules/strptime (Files): Remove lib/strptime.h.
37723         (Depends-on): Add extensions, time.
37724         (Include): Include time.h, not strptime.h.
37725         * modules/time_r (Files): Remove lib/time_r.h.
37726         (Depends-on): Add time.
37727         (Include): Include time.h, not time_r.h.
37728         * modules/timegm: Likewise.
37729         * modules/timespec (Description): Now does timespec-related decls
37730         of our own, instead of struct timespec itself.
37731         (Depends-on): Add time; remove extensions.
37732         (Maintainer): Add self.
37733         * modules/utimecmp (Depends-on): Add time; remove timespec.
37734         * modules/utimens (Depends-on): Likewise.
37735         * modules/xnanosleep (Depends-on): Likewise.
37736
37737 2007-02-11  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/c-strstr.c: Include allocsa.h.
37740         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37741         * lib/c-strcasestr.c: Include allocsa.h.
37742         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37743         * lib/strcasestr.c: Include allocsa.h.
37744         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37745         * lib/mbsstr.c: Include allocsa.h.
37746         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37747         allocsa/freesa instead of malloc/free.
37748         * lib/mbscasestr.c: Include allocsa.h.
37749         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37750         allocsa/freesa instead of malloc/free.
37751         * modules/c-strstr (Depends-on): Add allocsa.
37752         * modules/c-strcasestr (Depends-on): Likewise.
37753         * modules/strcasestr (Depends-on): Likewise.
37754         * modules/mbsstr (Depends-on): Likewise.
37755         * modules/mbscasestr (Depends-on): Likewise.
37756
37757 2007-02-11  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37760
37761         * modules/mbsspn-tests: New file.
37762         * tests/test-mbsspn.sh: New file.
37763         * tests/test-mbsspn.c: New file.
37764
37765 2007-02-11  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37768
37769         * modules/mbspbrk-tests: New file.
37770         * tests/test-mbspbrk.sh: New file.
37771         * tests/test-mbspbrk.c: New file.
37772
37773 2007-02-11  Bruno Haible  <bruno@clisp.org>
37774
37775         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37776         unneeded cast.
37777
37778         * modules/mbscspn-tests: New file.
37779         * tests/test-mbscspn.sh: New file.
37780         * tests/test-mbscspn.c: New file.
37781
37782 2007-02-11  Bruno Haible  <bruno@clisp.org>
37783
37784         * modules/mbscasecmp-tests: New file.
37785         * tests/test-mbscasecmp.sh: New file.
37786         * tests/test-mbscasecmp.c: New file.
37787
37788 2007-02-11  Bruno Haible  <bruno@clisp.org>
37789
37790         Ensure O(n) worst-case complexity of mbscasestr.
37791         * lib/mbscasestr.c: Include stdbool.h.
37792         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37793         functions.
37794         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37795         the bookkeeping indicates that it's worth it.
37796         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37797
37798         * modules/mbscasestr-tests: New file.
37799         * tests/test-mbscasestr1.c: New file.
37800         * tests/test-mbscasestr2.sh: New file.
37801         * tests/test-mbscasestr2.c: New file.
37802         * tests/test-mbscasestr3.sh: New file.
37803         * tests/test-mbscasestr3.c: New file.
37804         * tests/test-mbscasestr4.sh: New file.
37805         * tests/test-mbscasestr4.c: New file.
37806         * m4/locale-tr.m4: New file.
37807
37808 2007-02-11  Bruno Haible  <bruno@clisp.org>
37809
37810         Ensure O(n) worst-case complexity of mbsstr.
37811         * lib/mbsstr.c: Include stdbool.h.
37812         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37813         functions.
37814         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37815         bookkeeping indicates that it's worth it.
37816         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37817
37818         * modules/mbsstr-tests: New file.
37819         * tests/test-mbsstr1.c: New file.
37820         * tests/test-mbsstr2.sh: New file.
37821         * tests/test-mbsstr2.c: New file.
37822         * tests/test-mbsstr3.sh: New file.
37823         * tests/test-mbsstr3.c: New file.
37824         * m4/locale-fr.m4: New file.
37825
37826 2007-02-11  Bruno Haible  <bruno@clisp.org>
37827
37828         * lib/mbsrchr.c (mbsrchr): Fix bug.
37829
37830         * modules/mbsrchr-tests: New file.
37831         * tests/test-mbsrchr.sh: New file.
37832         * tests/test-mbsrchr.c: New file.
37833
37834 2007-02-11  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/mbschr.c (mbschr): Fix bug.
37837
37838         * modules/mbschr-tests: New file.
37839         * tests/test-mbschr.sh: New file.
37840         * tests/test-mbschr.c: New file.
37841         * m4/locale-zh.m4: New file.
37842
37843 2007-02-11  Bruno Haible  <bruno@clisp.org>
37844
37845         Support for copying multibyte string iterators.
37846         * lib/mbiter.h: Include <string.h>.
37847         (mbiter_multi_copy): New function.
37848         (mbi_copy): New macro.
37849         * lib/mbuiter.h: Include <string.h>.
37850         (mbuiter_multi_copy): New function.
37851         (mbui_copy): New macro.
37852
37853 2007-02-11  Bruno Haible  <bruno@clisp.org>
37854
37855         New module mbslen.
37856         * modules/mbslen: New file.
37857         * lib/mbslen.c: New file.
37858         * lib/string_.h (mbslen): New declaration.
37859         * m4/mbslen.m4: New file.
37860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37861         GNULIB_MBSLEN.
37862         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37863         * MODULES.html.sh (Internationalization functions): Add mbslen.
37864
37865 2007-02-11  Bruno Haible  <bruno@clisp.org>
37866
37867         Ensure O(n) worst-case complexity of strcasestr substitute.
37868         * lib/strcasestr.c: Include stdbool.h.
37869         (knuth_morris_pratt): New function.
37870         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37871         bookkeeping indicates that it's worth it.
37872         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37873
37874         * modules/strcasestr-tests: New file.
37875         * tests/test-strcasestr.c: New file.
37876
37877 2007-02-11  Bruno Haible  <bruno@clisp.org>
37878
37879         Ensure O(n) worst-case complexity of c_strcasestr.
37880         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37881         (knuth_morris_pratt): New function.
37882         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37883         the bookkeeping indicates that it's worth it.
37884         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37885
37886         * modules/c-strcasestr-tests: New file.
37887         * tests/test-c-strcasestr.c: New file.
37888
37889 2007-02-11  Bruno Haible  <bruno@clisp.org>
37890
37891         Ensure O(n) worst-case complexity of c_strstr.
37892         * lib/c-strstr.c: Include stdbool.h, string.h.
37893         (knuth_morris_pratt): New function.
37894         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37895         bookkeeping indicates that it's worth it.
37896         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37897
37898         * lib/c-strstr.c: Complete rewrite for maintainability.
37899
37900         * modules/c-strstr-tests: New file.
37901         * tests/test-c-strstr.c: New file.
37902
37903 2007-02-11  Bruno Haible  <bruno@clisp.org>
37904
37905         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37906         5.2.1 and earlier, whereby \055 was treated just like the range
37907         delimiter '-'.
37908         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37909
37910 2007-02-08  Bruno Haible  <bruno@clisp.org>
37911
37912         * modules/regex (Depends-on): Add stdbool.
37913         Reported by Dalibor Topic <robilad@kaffe.org>.
37914
37915 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37916
37917         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37918         Prefer returning from main to exiting from it.
37919         Remove unnecessary parens after sizeof.
37920
37921 2007-02-05  Bruno Haible  <bruno@clisp.org>
37922
37923         New module mbssep.
37924         * modules/mbssep: New file.
37925         * lib/mbssep.c: New file.
37926         * lib/string_.h (strsep): Add a conditional link warning.
37927         (mbssep): New declaration.
37928         * m4/mbssep.m4: New file.
37929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37930         GNULIB_MBSSEP.
37931         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37932         * MODULES.html.sh (Internationalization functions): Add mbssep.
37933
37934 2007-02-05  Bruno Haible  <bruno@clisp.org>
37935
37936         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37937         Optimize search in case of 1 delimiter.
37938
37939 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37940
37941         * lib/acl.h: Include sys/types.h before sys/acl.h.
37942
37943 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37944
37945         Merge upstream fix for glibc bugzilla #3957:
37946
37947         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37948
37949         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37950         bit for RE_HAT_LISTS_NOT_NEWLINE.
37951         (build_charclass_op): Remove bogus comment.
37952
37953 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37954
37955         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37956
37957 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37958
37959         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37960         * lib/memmem.c [!defined _LIBC]: Include config.h.
37961
37962 2007-02-04  Bruno Haible  <bruno@clisp.org>
37963
37964         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37965         warning message.
37966
37967 2007-02-04  Bruno Haible  <bruno@clisp.org>
37968
37969         New module mbstok_r.
37970         * modules/mbstok_r: New file.
37971         * lib/mbstok_r.c: New file.
37972         * lib/string_.h (strtok_r): Change argument names to match the
37973         comments. Add a conditional link warning.
37974         (mbstok_r): New declaration.
37975         * m4/mbstok_r.m4: New file.
37976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37977         GNULIB_MBSTOK_R.
37978         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37979         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37980
37981 2007-02-04  Bruno Haible  <bruno@clisp.org>
37982
37983         New module mbsspn.
37984         * modules/mbsspn: New file.
37985         * lib/mbsspn.c: New file.
37986         * lib/string_.h (strspn): Add a conditional link warning.
37987         (mbsspn): New declaration.
37988         * m4/mbsspn.m4: New file.
37989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37990         GNULIB_MBSSPN.
37991         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37992         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37993
37994 2007-02-04  Bruno Haible  <bruno@clisp.org>
37995
37996         New module mbspbrk.
37997         * modules/mbspbrk: New file.
37998         * lib/mbspbrk.c: New file.
37999         * lib/string_.h (strpbrk): Add a conditional link warning.
38000         (mbspbrk): New declaration.
38001         * m4/mbspbrk.m4: New file.
38002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38003         GNULIB_MBSPBRK.
38004         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38005         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38006
38007 2007-02-04  Bruno Haible  <bruno@clisp.org>
38008
38009         New module mbscspn.
38010         * modules/mbscspn: New file.
38011         * lib/mbscspn.c: New file.
38012         * lib/string_.h (strcspn): Add a conditional link warning.
38013         (mbscspn): New declaration.
38014         * m4/mbscspn.m4: New file.
38015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38016         GNULIB_MBSCSPN.
38017         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38018         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38019
38020 2007-02-04  Bruno Haible  <bruno@clisp.org>
38021
38022         New module mbscasestr, reduced goal of strcasestr.
38023         * modules/mbscasestr: New file.
38024         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38025         (mbscasestr): Renamed from strcasestr.
38026         * lib/strcasestr.c: Don't include mbuiter.h.
38027         (strcasestr): Remove support for multibyte locales.
38028         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38029         Change the conditional link warning.
38030         (mbscasestr): New declaration.
38031         * m4/mbscasestr.m4: New file.
38032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38033         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38034         REPLACE_STRCASESTR.
38035         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38037         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38038         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38039         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38040         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38041         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38042         (Depends-on): Remove mbuiter.
38043         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38044
38045 2007-02-04  Bruno Haible  <bruno@clisp.org>
38046
38047         Simplify handling of strncasecmp.
38048         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38049         the conditional link warning.
38050         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38051         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38052         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38053         * modules/strcase (configure.ac): Don't invoke
38054         gl_STRING_MODULE_INDICATOR.
38055         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38056
38057 2007-02-04  Bruno Haible  <bruno@clisp.org>
38058
38059         New module mbscasecmp, reduced goal of strcasecmp.
38060         * modules/mbscasecmp: New file.
38061         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38062         (mbscasecmp): Renamed from strcasecmp.
38063         * lib/strcasecmp.c: Don't include mbuiter.h.
38064         (strcasecmp): Remove support for multibyte locales.
38065         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38066         Change the conditional link warning.
38067         (mbscasecmp): New declaration.
38068         * m4/mbscasecmp.m4: New file.
38069         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38070         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38071         REPLACE_STRCASECMP.
38072         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38073         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38074         GNULIB_MBSCASECMP.
38075         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38076         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38077         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38078         (Depends-on): Remove mbuiter.
38079         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38080
38081 2007-02-04  Bruno Haible  <bruno@clisp.org>
38082
38083         New module mbsstr. Remove module strstr.
38084         * modules/mbsstr: New file.
38085         * modules/strstr: Remove file.
38086         * lib/mbsstr.c: Renamed from lib/strstr.c.
38087         (mbsstr): Renamed from strstr.
38088         * lib/string_.h (strstr): Remove declaration. Change the conditional
38089         link warning.
38090         (mbsstr): New declaration.
38091         * m4/mbsstr.m4: New file.
38092         * m4/strstr.m4: Remove file.
38093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38094         REPLACE_STRSTR.
38095         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38096         Don't initialize GNULIB_STRSTR.
38097         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38098         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38099         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38100         (Support for systems lacking ANSI C 89): Remove strstr.
38101
38102 2007-02-04  Bruno Haible  <bruno@clisp.org>
38103
38104         New module mbsrchr.
38105         * modules/mbsrchr: New file.
38106         * lib/mbsrchr.c: New file.
38107         * lib/string_.h (strrchr): Add a conditional link warning.
38108         (mbsrchr): New declaration.
38109         * m4/mbsrchr.m4: New file.
38110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38111         GNULIB_MBSRCHR.
38112         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38113         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38114
38115 2007-02-04  Bruno Haible  <bruno@clisp.org>
38116
38117         New module mbschr.
38118         * modules/mbschr: New file.
38119         * lib/mbschr.c: New file.
38120         * lib/string_.h (strchr): Add a conditional link warning.
38121         (mbschr): New declaration.
38122         * m4/mbschr.m4: New file.
38123         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38124         GNULIB_MBSCHR.
38125         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38126         * MODULES.html.sh (Internationalization functions): Add mbschr.
38127
38128 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38129
38130         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38131
38132         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38133
38134 2007-02-04  Bruno Haible  <bruno@clisp.org>
38135
38136         New module description section 'configure.ac-early'.
38137         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38138         (func_get_autoconf_early_snippet): New function.
38139         (func_import, func_create_testdir): Use it. Remove special cases for
38140         modules 'extensions' and 'lock'.
38141         * modules/extensions (configure.ac-early): Require
38142         gl_USE_SYSTEM_EXTENSIONS.
38143         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38144
38145 2007-02-04  Bruno Haible  <bruno@clisp.org>
38146
38147         Make use of gcj-4.3's -fsource and -ftarget option.
38148         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38149         and if so try the options -fsource and -ftarget.
38150         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38151         source_version, ftarget_option, target_version arguments.
38152         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38153         (is_envjavac_oldgcj_14_14_usable): Renamed from
38154         is_envjavac_gcj_14_14_usable.
38155         (is_envjavac_oldgcj_14_13_usable): Renamed from
38156         is_envjavac_gcj_14_13_usable.
38157         (is_gcj_present): Update.
38158         (is_gcj_43, is_gcj43_usable): New functions.
38159         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38160         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38161         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38162         try the options -fsource and -ftarget.
38163
38164 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38165
38166         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38167         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38168         larger value.
38169
38170 2007-02-03  Jim Meyering  <jim@meyering.net>
38171
38172         Give tools a better chance to allocate space for very large buffers.
38173         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38174
38175         Make pwd and readlink work also when run with an unreadable parent dir
38176         on systems with openat support.
38177         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38178         provided getcwd function, even when we have openat support.
38179         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38180
38181 2007-02-02  Bruno Haible  <bruno@clisp.org>
38182
38183         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38184         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38185         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38186         portability problems if one of these functions is only used on specific
38187         platforms.
38188         Reported by Paul Eggert.
38189
38190 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38191
38192         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38193         is causing more trouble than it's curing.
38194         * lib/regex_internal.h (__mempcpy): Remove.
38195         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38196         (and make the code a tad smaller to boot).
38197         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38198
38199 2007-02-02  Jim Meyering  <jim@meyering.net>
38200
38201         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38202         section, not in the Makefile.am: one.
38203
38204 2007-02-02  Eric Blake  <ebb9@byu.net>
38205
38206         * lib/strchrnul.c: Always include config.h first.
38207
38208         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38209         gnulib strstr is not necessary here.
38210
38211 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38212
38213         * m4/socklen.m4: Fix typo.
38214
38215 2007-02-02  Eric Blake  <ebb9@byu.net>
38216
38217         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38218         * modules/netinet_in (Makefile.am): Likewise.
38219
38220 2007-02-01  Bruno Haible  <bruno@clisp.org>
38221
38222         * lib/string_.h (GL_LINK_WARNING): New macro.
38223         (strcasecmp, strstr, strcasestr): If provided by the system,
38224         conditionally define as a macro that leads to a warning instead of to
38225         an error.
38226         (strncasecmp): Conditionally define as a macro that leads to a warning.
38227
38228 2007-02-01  Karl Berry  <karl@gnu.org>
38229
38230         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38231
38232 2007-02-01  Bruno Haible  <bruno@clisp.org>
38233
38234         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38235         renamings.
38236
38237 2007-02-01  Eric Blake  <ebb9@byu.net>
38238
38239         * modules/regex (Depends-on): Revert dependence on mempcpy.
38240         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38241         module's definition of mempcpy.
38242         Reported by Paul Eggert.
38243
38244 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38245
38246         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38247         the symbol XYZ before redefining it.  This fixes a problem with
38248         programs that don't use XYZ, when compiled on systems that define
38249         XYZ to something else.
38250
38251 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38252
38253         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38254         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38255         writeable to group or other and (2) is intended to have a special
38256         mode bit that is set or cleared.  In such a case, the directory
38257         should be neither group- nor other-writeable until the special
38258         mode bits are right.
38259
38260 2007-01-31  Eric Blake  <ebb9@byu.net>
38261
38262         * modules/mountlist (Depends-on): Add strstr.
38263
38264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38265         bug.
38266         * modules/string (Makefile.am): Remove redundant replacement.
38267         * modules/regex (Depends-on): Add mempcpy.
38268
38269 2007-01-31  Bruno Haible  <bruno@clisp.org>
38270
38271         New module description field 'Link'.
38272         * gnulib-tool (func_usage): Document --extract-link-directive.
38273         (sed_extract_prog): Recognize 'Link' directive.
38274         (func_get_link_directive): New function.
38275         (func_import): Show summary of link directives.
38276         Handle --extract-link-directive option.
38277         * modules/acl (Link): New section.
38278         * modules/clock-time (Link): New section.
38279         * modules/euidaccess (Link): New section.
38280         * modules/gettext (Link): New section.
38281         * modules/iconv (Link): New section.
38282         * modules/lock (Link): New section.
38283         * modules/nanosleep (Link): New section.
38284         * modules/readline (Link): New section.
38285
38286 2007-01-27  Bruno Haible  <bruno@clisp.org>
38287
38288         Enforce the use of gnulib modules for unportable <string.h> functions.
38289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38290         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38291         (gl_HEADER_STRING_H_BODY): Require it.
38292         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38293         the symbol XYZ to one that gives a link error.
38294         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38295         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38296         * modules/mempcpy (configure.ac): Likewise.
38297         * modules/memrchr (configure.ac): Likewise.
38298         * modules/stpcpy (configure.ac): Likewise.
38299         * modules/stpncpy (configure.ac): Likewise.
38300         * modules/strcase (configure.ac): Likewise.
38301         * modules/strcasestr (configure.ac): Likewise.
38302         * modules/strchrnul (configure.ac): Likewise.
38303         * modules/strdup (configure.ac): Likewise.
38304         * modules/strndup (configure.ac): Likewise.
38305         * modules/strnlen (configure.ac): Likewise.
38306         * modules/strpbrk (configure.ac): Likewise.
38307         * modules/strsep (configure.ac): Likewise.
38308         * modules/strstr (configure.ac): Likewise.
38309         * modules/strtok_r (configure.ac): Likewise.
38310
38311 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38312
38313         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38314
38315 2007-01-30  Jim Meyering  <jim@meyering.net>
38316
38317         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38318
38319 2007-01-29  Bruno Haible  <bruno@clisp.org>
38320
38321         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38322         * lib/execute.c: Likewise.
38323         * lib/pipe.c: Likewise.
38324         * lib/printf-args.h: Likewise.
38325         * lib/printf-args.c: Likewise.
38326         * lib/printf-parse.c: Likewise.
38327         * lib/vasnprintf.c: Likewise.
38328
38329 2007-01-29  Eric Blake  <ebb9@byu.net>
38330
38331         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38332         declaration.
38333
38334 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38335
38336         * lib/strptime.h (strptime): Use 'restrict' for args where
38337         POSIX requires this.
38338         * lib/strptime.c (strptime): Likewise.
38339         Change license notice from LGPL to GPL, since gnulib-tool will
38340         change this as needed.
38341         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38342         defined.
38343         Include "strptime.h" first, to check interface.
38344         Do not #undef _LIBC and _NL_CURRENT.
38345         Do not include <stdlib.h>; no longer needed.
38346         Include "time_r.h" and declare ptime_locale_status
38347         only if _LIBC is not defined.
38348         (__P): Remove unused macro.
38349         (match_string): Bring back glibc version, but use it only if _LIBC
38350         is defined.
38351         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38352         Remove unnecessary assertion and abort() call.
38353         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38354         * m4/strptime.m4: Fix serial number comment.
38355         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38356         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38357         (Depends-on): Add time_r.
38358
38359 2007-01-29  Bruno Haible  <bruno@clisp.org>
38360
38361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38362         strptime.
38363         * modules/strptime (Depends-on): Add stdbool.
38364         * lib/strptime.h: Include <time.h> always. Add comments.
38365
38366 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38367
38368         * modules/strptime: New file.
38369         * lib/strptime.h: New file.
38370         * lib/strptime.c: New file.
38371         * m4/strptime.m4: New file.
38372
38373 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38374
38375         * MODULES.html.sh: New module mpsort.
38376         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38377
38378         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38379         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38381         All uses changed.
38382         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38383         All uses changed.
38384         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38385         to _Restrict_.
38386         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38387         the parameter matches the prototype.
38388
38389 2007-01-28  Jim Meyering  <jim@meyering.net>
38390
38391         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38392         sys/time.h here, reverting that part of the previous patch:
38393         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38394
38395 2007-01-28  Bruno Haible  <bruno@clisp.org>
38396
38397         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38398         value of $(SYS_TIME_H).
38399         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38400         remove it conditionally, too. [added by Jim Meyering]
38401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38402         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38403         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38404         GETTIMEOFDAY_REPLACEMENT to 1.
38405
38406 2007-01-28  Bruno Haible  <bruno@clisp.org>
38407
38408         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38409         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38411         Set UNISTD_H instead of UNISTD_H2.
38412         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38413
38414 2007-01-28  Bruno Haible  <bruno@clisp.org>
38415
38416         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38417         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38418
38419 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38420
38421         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38422         (func_create_testdir): Ensure C locale for `grep' and `tr'
38423         character ranges.
38424         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38425         ACLOCAL_AMFLAGS parsing state machine.
38426
38427 2007-01-27  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/unistr/base: Update.
38430
38431 2007-01-27  Bruno Haible  <bruno@clisp.org>
38432
38433         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38434         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38435         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38436         modules/unistr/u32-mbtouc.
38437         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38438         * lib/unistr.h: Update.
38439         * lib/linebreak.c: Update.
38440         * modules/unistr/u32-mbtouc: Renamed from
38441         modules/unistr/u32-mbtouc-safe.
38442         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38443         * lib/unistr.h: Update.
38444         * lib/unistr/u32-to-u8.c: Update.
38445         * lib/unistr/u32-to-u16.c: Update.
38446
38447 2007-01-27  Bruno Haible  <bruno@clisp.org>
38448
38449         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38450         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38451         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38452         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38453         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38454         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38455         modules/unistr/u16-mbtouc.
38456         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38457         * lib/unistr.h: Update.
38458         * lib/linebreak.c: Update.
38459         * modules/linebreak: Update.
38460         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38461         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38462         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38463         * modules/unistr/u16-mbtouc: Renamed from
38464         modules/unistr/u16-mbtouc-safe.
38465         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38466         * lib/unistr.h: Update.
38467         * lib/unistr/u16-to-u8.c: Update.
38468         * modules/unistr/u16-to-u8: Update.
38469         * lib/unistr/u16-to-u32.c: Update.
38470         * modules/unistr/u16-to-u32: Update.
38471
38472 2007-01-27  Bruno Haible  <bruno@clisp.org>
38473
38474         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38475         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38476         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38477         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38478         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38479         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38480         modules/unistr/u8-mbtouc.
38481         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38482         * lib/unistr.h: Update.
38483         * lib/striconveh.c: Update.
38484         * modules/striconveh: Update.
38485         * lib/linebreak.c: Update.
38486         * modules/linebreak: Update.
38487         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38488         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38489         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38490         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38491         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38492         * lib/unistr.h: Update.
38493         * lib/striconveh.c: Update.
38494         * modules/striconveh: Update.
38495         * lib/unistr/u8-to-u16.c: Update.
38496         * modules/unistr/u8-to-u16: Update.
38497         * lib/unistr/u8-to-u32.c: Update.
38498         * modules/unistr/u8-to-u32: Update.
38499
38500 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38501
38502         Sync from Libtool.
38503         * lib/argz.c: Do not include strings.h nor memory.h, include
38504         string.h unconditionally.  Patch by Simon Josefsson.
38505
38506 2007-01-27  Bruno Haible  <bruno@clisp.org>
38507
38508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38509         from gl_HEADER_STRING_H_BODY.
38510         (gl_HEADER_STRING_H_BODY): Require it.
38511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38514         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38516         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38518         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38519         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38520         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38521         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38522         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38523         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38524         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38525         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38526
38527 2007-01-27  Bruno Haible  <bruno@clisp.org>
38528
38529         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38530         check_PROGRAMS into noinst_PROGRAMS.
38531         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38532         check_PROGRAMS in this case.
38533         (func_import): Set for_test to false.
38534         (func_create_testdir): Set for_test to true.
38535
38536 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38537             Bruno Haible  <bruno@clisp.org>
38538
38539         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38540         (Depends-on): Add string.
38541         (Includes): Use <string.h> instead of strcasestr.h.
38542         * modules/string (Makefile.am): Also substitute the value of
38543         REPLACE_STRCASESTR.
38544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38545         assume strcasestr is declared in <string.h> not <strings.h>. Also
38546         set REPLACE_STRCASESTR.
38547         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38548         REPLACE_STRCASESTR.
38549         * lib/strcasestr.h: Remove file.
38550         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38551         * lib/string_.h (strcasestr): New declaration.
38552
38553 2007-01-27  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/string_.h: Use 'extern'.
38556
38557 2007-01-27  Jim Meyering  <jim@meyering.net>
38558
38559         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38560         of set-but-not-used local, "q".
38561
38562         * lib/mempcpy.c: Include <config.h> before <string.h>.
38563         This fixes a compilation error on HP-UX, due to the system's
38564         "restrict"-using mempcpy prototype.
38565
38566 2007-01-26  Bruno Haible  <bruno@clisp.org>
38567
38568         Small optimization.
38569         * lib/javacomp.c: Include c-strstr.h.
38570          (is_envjavac_gcj): Use c_strstr instead of strstr.
38571         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38572
38573 2007-01-26  Bruno Haible  <bruno@clisp.org>
38574
38575         * MODULES.html.sh (Unicode string functions): Add the new modules.
38576
38577         * modules/uniconv/u32-strconv-to-locale: New file.
38578         * lib/uniconv/u32-strconv-to-locale.c: New file.
38579
38580         * modules/uniconv/u16-strconv-to-locale: New file.
38581         * lib/uniconv/u16-strconv-to-locale.c: New file.
38582
38583         * modules/uniconv/u8-strconv-to-locale: New file.
38584         * lib/uniconv/u8-strconv-to-locale.c: New file.
38585
38586         * modules/uniconv/u32-strconv-from-locale: New file.
38587         * lib/uniconv/u32-strconv-from-locale.c: New file.
38588
38589         * modules/uniconv/u16-strconv-from-locale: New file.
38590         * lib/uniconv/u16-strconv-from-locale.c: New file.
38591
38592         * modules/uniconv/u8-strconv-from-locale: New file.
38593         * lib/uniconv/u8-strconv-from-locale.c: New file.
38594
38595         * modules/uniconv/u32-strconv-to-enc: New file.
38596         * lib/uniconv/u32-strconv-to-enc.c: New file.
38597         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38598         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38599
38600         * modules/uniconv/u16-strconv-to-enc: New file.
38601         * lib/uniconv/u16-strconv-to-enc.c: New file.
38602         * lib/uniconv/u-strconv-to-enc.h: New file.
38603         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38604         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38605
38606         * modules/uniconv/u8-strconv-to-enc: New file.
38607         * lib/uniconv/u8-strconv-to-enc.c: New file.
38608         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38609         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38610
38611         * modules/uniconv/u32-strconv-from-enc: New file.
38612         * lib/uniconv/u32-strconv-from-enc.c: New file.
38613         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38614         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38615
38616         * modules/uniconv/u16-strconv-from-enc: New file.
38617         * lib/uniconv/u16-strconv-from-enc.c: New file.
38618         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38619         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38620
38621         * modules/uniconv/u8-strconv-from-enc: New file.
38622         * lib/uniconv/u8-strconv-from-enc.c: New file.
38623         * lib/uniconv/u-strconv-from-enc.h: New file.
38624         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38625         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38626
38627         * modules/uniconv/u32-conv-from-enc: New file.
38628         * lib/uniconv/u32-conv-from-enc.c: New file.
38629         * modules/uniconv/u32-conv-from-enc-tests: New file.
38630         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38631
38632         * modules/uniconv/u16-conv-from-enc: New file.
38633         * lib/uniconv/u16-conv-from-enc.c: New file.
38634         * lib/uniconv/u-conv-from-enc.h: New file.
38635         * modules/uniconv/u16-conv-from-enc-tests: New file.
38636         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38637
38638         * modules/uniconv/u8-conv-from-enc: New file.
38639         * lib/uniconv/u8-conv-from-enc.c: New file.
38640         * modules/uniconv/u8-conv-from-enc-tests: New file.
38641         * tests/uniconv/test-u8-conv-from-enc.c: New file.
38642
38643         * modules/uniconv/base: New file.
38644         * lib/uniconv.h: New file.
38645
38646 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
38647
38648         * doc/gnulib-tool.texi (Initial import): Update to match current
38649         behavior with strdup module.
38650         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
38651         * lib/memmem.h: Remove; all uses removed.  This is now done
38652         by <string.h>.
38653         * lib/mempcpy.h: Likewise.
38654         * lib/memrchr.h: Likewise.
38655         * lib/stpcpy.h: Likewise.
38656         * lib/stpncpy.h: Likewise.
38657         * lib/strcase.h: Likewise.
38658         * lib/strchrnul.h: Likewise.
38659         * lib/strdup.h: Likewise.
38660         * lib/strndup.h: Likewise.
38661         * lib/strnlen.h: Likewise.
38662         * lib/strpbrk.h: Likewise.
38663         * lib/strsep.h: Likewise.
38664         * lib/strstr.h: Likewise.
38665         * lib/strtok_r.h: Likewise.
38666         * lib/string_.h: New file.
38667         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38668         Rely on <string.h> instead.
38669         * lib/canon-host.c: Likewise.
38670         * lib/chdir-long.c: Likewise.
38671         * lib/concatpath.c: Likewise.
38672         * lib/exclude.c: Likewise.
38673         * lib/fchdir.c: Likewise.
38674         * lib/getaddrinfo.c: Likewise.
38675         * lib/getcwd.c: Likewise.
38676         * lib/getsubopt.c: Likewise.
38677         * lib/glob.c: Likewise.
38678         * lib/hard-locale.c: Likewise.
38679         * lib/iconvme.c: Likewise.
38680         * lib/javacomp.c: Likewise.
38681         * lib/mempcpy.c: Likewise.
38682         * lib/memrchr.c: Likewise.
38683         * lib/regex_internal.h: Likewise.
38684         * lib/stpncpy.c: Likewise.
38685         * lib/strcasecmp.c: Likewise.
38686         * lib/strchrnul.c: Likewise.
38687         * lib/strdup.c: Likewise.
38688         * lib/striconv.c: Likewise.
38689         * lib/striconveh.c: Likewise.
38690         * lib/striconveha.c: Likewise.
38691         * lib/strncasecmp.c: Likewise.
38692         * lib/strndup.c: Likewise.
38693         * lib/strnlen.c: Likewise.
38694         * lib/strsep.c: Likewise.
38695         * lib/strstr.c: Likewise.
38696         * lib/strtok_r.c: Likewise.
38697         * lib/userspec.c: Likewise.
38698         * lib/w32spawn.h: Likewise.
38699         * lib/xstrndup.c: Likewise.
38700         * lib/mountlist.c (strstr): Remove decl.
38701         * m4/string_h.m4: New file.
38702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38705         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38706         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38707         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38708         Set REPLACE_STRCASECMP if necessary.
38709         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38710         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38711         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38713         HAVE_DECL_STRDUP if necessary.
38714         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38715         since gl_FUNC_STRNDUP does that now.
38716         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38717         Check for decl here...
38718         (gl_PREREQ_STRNLEN): ... not here.
38719         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38720         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38721         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38722         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38723         necessary.
38724         * modules/string: New file.
38725         * modules/memmem (Files): Remove special-purpose include file.
38726         (Depends-on): Add string.
38727         (Include): Include <string.h>, not the removed file.
38728         * modules/mempcpy: Likewise.
38729         * modules/memrchr: Likewise.
38730         * modules/stpcpy: Likewise.
38731         * modules/stpncpy: Likewise.
38732         * modules/strcase: Likewise.
38733         * modules/strchrnul: Likewise.
38734         * modules/strdup: Likewise.
38735         * modules/strndup: Likewise.
38736         * modules/strnlen: Likewise.
38737         * modules/strpbrk: Likewise.
38738         * modules/strsep: Likewise.
38739         * modules/strstr: Likewise.
38740         * modules/strtok_r: Likewise.
38741         * tests/test-dirname.c: Don't include "strdup.h", since
38742         <string.h> now suffices.
38743         * tests/test-memmem.c: Don't include "memmem.h", since
38744         <string.h> now suffices.
38745
38746 2007-01-25  Bruno Haible  <bruno@clisp.org>
38747
38748         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38749         *resultp is 0.
38750
38751         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38752         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38753         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38754         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38755
38756         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38757         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38758         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38759         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38760         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38761         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38762
38763 2007-01-24  Bruno Haible  <bruno@clisp.org>
38764
38765         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38767         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38768         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38769         gl_FUNC_FTS_CORE.
38770         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38771         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38772         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38773         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38774         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38775         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38776         gl_FUNC_FCHOWNAT.
38777         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38778         gl_FUNC_STRFTIME.
38779         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38780         Reported by Ralf Wildenhues.
38781
38782 2007-01-24  Bruno Haible  <bruno@clisp.org>
38783
38784         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38785         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38786         gl_GETADDRINFO.
38787         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38788         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38789         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38790
38791 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38792
38793         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38794         Don't use 'exit'; just return from 'main'.
38795         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38796
38797         * lib/fnmatch_.h: Readjust white space and comments to match
38798         glibc, to avoid spurious diffs.
38799
38800 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38801
38802         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38803         2004-12-01 change by Jakub Jelinek, since this code won't compile
38804         if !LIBC.  Problem reported by Bob Proulx.
38805
38806 2007-01-23  Bruno Haible  <bruno@clisp.org>
38807
38808         * lib/striconveh.c: Include c-strcaseeq.h.
38809         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38810         * modules/striconveh (Depends-on): Add c-strcaseeq.
38811
38812 2007-01-23  Bruno Haible  <bruno@clisp.org>
38813
38814         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38815
38816         * modules/c-strcaseeq: New file.
38817         * lib/c-strcaseeq.h: New file.
38818
38819         * modules/streq: New file.
38820         * lib/streq.h: New file.
38821
38822 2007-01-23  Bruno Haible  <bruno@clisp.org>
38823
38824         * modules/striconveha-tests: New file.
38825         * tests/test-striconveha.c: New file.
38826
38827         * lib/striconveha.h: Include <stdbool.h>.
38828         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38829         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38830         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38831         (mem_iconveha): New function.
38832         (str_iconveha_notranslit): Renamed from str_iconveha.
38833         (str_iconveha): New function.
38834         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38835         c-strcase.
38836
38837 2007-01-23  Bruno Haible  <bruno@clisp.org>
38838
38839         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38840         encodings without forgiving before trying any encoding with handler.
38841         (str_iconveha): Try all encodings without forgiving before trying any
38842         encoding with handler.
38843
38844 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38845
38846         Import the following changes from libc.
38847
38848         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38849
38850         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38851
38852         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38853
38854         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38855         normal_bracket label.
38856
38857         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38858
38859         [BZ #361]
38860         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38861         to normal_bracket after fetching the next character.
38862
38863 2007-01-22  Bruno Haible  <bruno@clisp.org>
38864
38865         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38866         argument.
38867         * lib/striconveh.c (iconv_carefully_1): New function.
38868         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38869         argument.
38870         (str_cd_iconveh): Update.
38871         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38872         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38873         * tests/test-striconveh.c (MAGIC): New macro.
38874         (new_offsets): New function.
38875         (main): Test call with and without offsets.
38876
38877 2007-01-22  Bruno Haible  <bruno@clisp.org>
38878
38879         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38880         * modules/sys_select (Makefile.am): Likewise.
38881         * modules/sys_socket (Makefile.am): Likewise.
38882         * modules/sys_time (Makefile.am): Likewise.
38883
38884 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38885
38886         * modules/gettimeofday (License): Change from GPL to LGPL, since
38887         gettimeofday is a library function.
38888
38889 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38890
38891         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38892
38893 2007-01-21  Bruno Haible  <bruno@clisp.org>
38894
38895         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38896
38897 2007-01-21  Bruno Haible  <bruno@clisp.org>
38898
38899         * modules/striconveha: New file.
38900         * lib/striconveha.h: New file.
38901         * lib/striconveha.c: New file.
38902         * MODULES.html.sh (Internationalization functions): Add striconveha.
38903         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38904         string.
38905         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38906
38907 2007-01-21  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38910         * lib/striconveh.c (str_iconveh): Likewise.
38911
38912 2007-01-21  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/striconveh.h (mem_iconveh): New declaration.
38915         * lib/striconveh.c (mem_iconveh): New function.
38916         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38917
38918 2007-01-21  Bruno Haible  <bruno@clisp.org>
38919
38920         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38921
38922         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38923         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38924         original result buffer.
38925         (str_cd_iconveh): Update.
38926         * tests/test-striconveh.c (main): Update.
38927
38928         * lib/striconv.h (mem_cd_iconv): Change specification.
38929         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38930         result buffer.
38931         (str_cd_iconv): Update.
38932         * tests/test-striconv.c (main): Update.
38933
38934 2007-01-21  Bruno Haible  <bruno@clisp.org>
38935
38936         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38937
38938 2007-01-20  Jim Meyering  <jim@meyering.net>
38939
38940         * lib/userspec.c (parse_with_separator): If a user or group string
38941         starts with "+", skip the corresponding name-to-ID look-up, since
38942         such a look-up must fail: user and group names may not include "+".
38943
38944 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38945
38946         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38947         since we now assume the sys_time module.
38948         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38949         check for sys/time.h; no longer needed.
38950         * modules/poll (Depends-on): Depend on sys_time.
38951
38952 2007-01-18  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38955         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38956
38957         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38958         gettimeofday.
38959
38960         * tests/test-gettimeofday.c: Include <time.h>.
38961         (dummy): Remove variable.
38962
38963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38964         gl_HEADER_SYS_TIME_H.
38965         (gl_HEADER_SYS_TIME_H): New macro.
38966
38967         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38968         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38969         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38970         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38971         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38972         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38973         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38974         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38975         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38976         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38977         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38978
38979         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38980         last change; it caused a compilation error when cross-compiling to
38981         Cygwin.
38982
38983 2007-01-18  Jim Meyering  <jim@meyering.net>
38984
38985         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38986         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38987         than the race-prone "test -d sys || mkdir sys".
38988         (configure.ac): Use AC_PROG_MKDIR_P.
38989         * modules/sys_select: Likewise.
38990         * modules/sys_socket: Likewise.
38991         * modules/sys_time: Likewise.
38992
38993 2007-01-18  Eric Blake  <ebb9@byu.net>
38994
38995         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38996         replace gettimeofday.
38997         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38998         name, to avoid infinite recursion.
38999
39000 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39001
39002         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39003         module sys_time.
39004         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39005         assume timespec.h defines struct timeval.
39006         * lib/settime.c: Likewise.
39007         * lib/utimens.c: Likewise.
39008         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39009         since we now assume the gettimeofday module.
39010         * lib/tempname.c (__gen_tempname): Likewise.
39011         * lib/gettimeofday.h: Remove.
39012         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39013         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39014         Include <time.h>, for 'time()'.
39015         (localtime_buffer_addr): Also use this workaround if
39016         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39017         to simplify the uses.  All uses changed.
39018         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39019         that #undef is inside {}, and 'const' follows type name consistently.
39020         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39021         (gettimeofday): Do not use the maximum possible value for
39022         tv->tv_usec, since that might break usages other than ls.c.
39023         Instead, we'll leave ls.c alone.  This undoes today's patch
39024         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39025         we've never observed the problem but might as well keep the
39026         canary.
39027         * lib/nanosleep.c: Include timespec.h first, for interface check.
39028         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39029         now assume the sys_time module.
39030         * lib/tempname.c: Likewise.
39031         * lib/timespec.h: Likewise.
39032         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39033         needed.
39034         * lib/strftime.c: Likewise.
39035         * lib/timespec.h: Likewise.
39036         * lib/posixtm.c: Include posixtm.h first, for interface check.
39037         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39038         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39039         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39040         * lib/sys_time_.h: New file.
39041         * lib/timespec.h (struct timespec): Use long int, not long.
39042         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39043         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39044         Remove obsolescent call to AC_HEADER_TIME.
39045         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39047         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39048         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39049         Likewise.
39050         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39051         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39053         into the sys_time module.  Check for gettimeofday just once.
39054         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39055         for gettimeofday signature to just check the signature.  Merely
39056         compile it, since linking doesn't test signature.  Improve test for
39057         whether gettimeofday.o is actually needed.
39058         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39059         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39060         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39061         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39062         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39063         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39064         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39065         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39066         than worrying about sys/time.h.
39067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39068         Don't bother worrying about TIME_WITH_SYS_TIME.
39069         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39070         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39071         * m4/sys_time_h.m4: New file.
39072         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39073         Don't include sys/time.h.  Return from main rather than exiting.
39074         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39075         all uses changed.
39076         * modules/gethrxtime (Depends-on): Add sys_time.
39077         * modules/gettime (Depends-on): Likewise.
39078         * modules/gettimeofday (Depends-on): Likewise.
39079         * modules/nanosleep (Depends-on): Likewise.
39080         * modules/settime (Depends-on): Likewise.
39081         * modules/tempname (Depends-on): Likewise.
39082         * modules/utimens (Depends-on): Likewise.
39083         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39084         (Include:) Change back to <sys/time.h>.
39085         (Maintainer:) Add self.
39086         * modules/sys_time: New file.
39087         * modules/tempname (Depends-on): Add gettimeofday.
39088         * tests/test-gettimeofday.c: Include <sys/time.h>
39089         rather than gettimeofday.h.
39090
39091 2007-01-17  Bruno Haible  <bruno@clisp.org>
39092
39093         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39094         the license default to GPL.
39095         (func_create_testdir): Don't complain if a module is LGPL and its
39096         tests module depends on GPLed modules.
39097
39098 2007-01-17  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/gettimeofday.c (gettimeofday): Add code for the case
39101         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39102         maximum possible value for tv->tv_usec, rather than the minimum one.
39103
39104 2005-10-08  Martin Lambers  <marlam@marlam.de>
39105 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39106 2007-01-16  Bruno Haible  <bruno@clisp.org>
39107
39108         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39109         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39110         gl_FUNC_GETTIMEOFDAY.
39111         (Include): Add gettimeofday.h.
39112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39113         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39114         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39115         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39116         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39117         * lib/gettimeofday.h: New file.
39118         * lib/gettimeofday.c: Include <sys/timeb.h>.
39119         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39120         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39121         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39122         fall back on time().
39123
39124         * tests/test-gettimeofday.c: New file.
39125         * modules/gettimeofday-tests: New file.
39126
39127 2007-01-16  Eric Blake  <ebb9@byu.net>
39128
39129         * modules/fnmatch (Depends-on): Depend on wchar.
39130         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39131         * m4/fnmatch.m4: Likewise.
39132         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39133         * m4/mbchar.m4: Likewise.
39134         * modules/mbswidth (Depends-on): Depend on wchar.
39135         * lib/mbswidth.c: Assume <wchar.h>.
39136         * m4/mbswidth.m4: Likewise.
39137         * modules/quotearg (Depends-on): Depend on wchar.
39138         * lib/quotearg.c: Assume <wchar.h>.
39139         * m4/quotearg.m4: Likewise.
39140         * modules/regex (Depends-on): Depend on wchar.
39141         * lib/regex_internal.h: Assume <wchar.h>.
39142         * m4/regex.m4: Likewise.
39143         * modules/stdint (Depends-on): Depend on wchar.
39144         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39145         * m4/stdint.m4: Likewise.
39146         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39147         * modules/strftime (Depends-on): Depend on wchar.
39148         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39149         * modules/strtol (Depends-on): Depend on wchar.
39150         * lib/strtol.c: Assume <wchar.h>.
39151         * modules/wcwidth (Depends-on): Depend on wchar.
39152         * lib/wcwidth.h: Assume <wchar.h>.
39153         * m4/wcwidth.m4: Likewise.
39154
39155 2007-01-16  Bruno Haible  <bruno@clisp.org>
39156
39157         * modules/csharpexec-script: New, created from...
39158         * modules/csharpexec: ... this.
39159
39160 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39161
39162         * modules/javaexec-script: New, created from...
39163         * modules/javaexec: ... this.
39164
39165 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39166
39167         * modules/poll (Dependencies): Add sys_select.
39168
39169 2007-01-15  Jim Meyering  <jim@meyering.net>
39170
39171         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39172         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39173         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39174         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39175
39176 2007-01-15  Bruno Haible  <bruno@clisp.org>
39177
39178         * modules/striconveh: New file.
39179         * lib/striconveh.h: New file.
39180         * lib/striconveh.c: New file.
39181         * MODULES.html.sh (Internationalization functions): Add striconveh.
39182
39183         * modules/striconveh-tests: New file.
39184         * tests/test-striconveh.c: New file.
39185
39186 2007-01-15  Bruno Haible  <bruno@clisp.org>
39187
39188         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39189         not from GNU libiconv or GNU libc.
39190
39191 2007-01-15  Bruno Haible  <bruno@clisp.org>
39192
39193         * doc/gnulib-intro.texi (Copyright): Explain the different license
39194         terms for module descriptions, autoconf macros, tests, documentation.
39195
39196 2007-01-14  Bruno Haible  <bruno@clisp.org>
39197
39198         * modules/striconv-tests: New file.
39199         * tests/test-striconv.c: New file.
39200
39201 2007-01-14  Bruno Haible  <bruno@clisp.org>
39202
39203         * modules/iconv-tests: New file.
39204         * tests/test-iconv.c: New file.
39205
39206 2007-01-14  Bruno Haible  <bruno@clisp.org>
39207
39208         * gnulib-tool (func_get_license): For test modules, use the license of
39209         the main module.
39210
39211 2007-01-14  Bruno Haible  <bruno@clisp.org>
39212
39213         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39214         if iconv is found to exist.
39215
39216 2007-01-14  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/c-ctype-tests: New file.
39219         * tests/test-c-ctype.c: New file.
39220
39221 2007-01-14  Bruno Haible  <bruno@clisp.org>
39222
39223         * modules/binary-io-tests: New file.
39224         * tests/test-binary-io.sh: New file.
39225         * tests/test-binary-io.c: New file.
39226
39227 2007-01-14  Bruno Haible  <bruno@clisp.org>
39228
39229         * modules/array-oset-tests: New file.
39230         * tests/test-array_oset.c: New file.
39231
39232 2007-01-14  Bruno Haible  <bruno@clisp.org>
39233
39234         * modules/array-list-tests: New file.
39235         * tests/test-array_list.c: New file.
39236
39237 2007-01-14  Bruno Haible  <bruno@clisp.org>
39238
39239         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39240         and make.
39241         Reported by Simon Josefsson in
39242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39243
39244 2007-01-14  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/allocsa-tests: New file.
39247         * tests/test-allocsa.c: New file.
39248
39249 2007-01-14  Bruno Haible  <bruno@clisp.org>
39250
39251         * modules/fchdir (Depends-on): Add absolute-header.
39252         * modules/unistd (Depends-on): Likewise.
39253
39254 2006-12-30  Bruno Haible  <bruno@clisp.org>
39255
39256         * modules/fchdir: New file.
39257         * modules/unistd (Files): Add lib/unistd_.h.
39258         (Makefile.am): Generate unistd.h from unistd_.h.
39259         * lib/fchdir.c: New file.
39260         * lib/dirent_.h: New file.
39261         * lib/unistd_.h: New file.
39262         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39263         * m4/fchdir.m4: New file.
39264         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39265         (gl_HEADER_UNISTD): Invoke it.
39266         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39267         function.
39268         * lib/backupfile.c (opendir, closedir): Undefine.
39269         * lib/chown.c (open, close): Undefine.
39270         * lib/clean-temp.c (open, close): Undefine.
39271         * lib/copy-file.c (open, close): Undefine.
39272         * lib/execute.c (open, close): Undefine.
39273         * lib/fsusage.c (open, close): Undefine.
39274         * lib/gc-gnulib.c (open, close): Undefine.
39275         * lib/getcwd.c (opendir, closedir): Undefine.
39276         * lib/glob.c (opendir, closedir): Undefine.
39277         * lib/javacomp.c (open, close): Undefine.
39278         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39279         * lib/openat-proc.c (open, close): Undefine.
39280         * lib/pagealign_alloc.c (open, close): Undefine.
39281         * lib/pipe.c (open, close): Undefine.
39282         * lib/progreloc.c (open, close): Undefine.
39283         * lib/savedir.c (opendir, closedir): Undefine.
39284         * lib/utime.c (open, close): Undefine.
39285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39286
39287 2007-01-10  Bruno Haible  <bruno@clisp.org>
39288
39289         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39290
39291 2007-01-12  Eric Blake  <ebb9@byu.net>
39292
39293         Provide a robust <wchar.h>.  Further simplifications are now
39294         possible in other modules, but not included here.
39295         * modules/wchar: New module.
39296         * m4/wchar.m4: New file.
39297         * lib/wchar_.h: Likewise.
39298         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39299         of the new module.
39300         * MODULES.html.sh (Extended multibyte and wide character utilities):
39301         New section.
39302
39303 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39304
39305         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39306         to a reasonable default for memory allocation.
39307         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39308         file system that reports garbage st_size values for symlinks.
39309         Problem reported by Liyang Hu.
39310
39311 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39312
39313         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39314         Emacs .#* auto-save files).
39315
39316 2007-01-11  Bruno Haible  <bruno@clisp.org>
39317
39318         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39319         directory.
39320
39321 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39322
39323         Use @...@ consistently in lib/wctype_.h.
39324         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39325         on it being set to 1 or 0.
39326         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39327         go back to AC_SUBSTing it.
39328         * modules/wctype (Makefile.am): Undo previous change.
39329
39330 2007-01-10  Eric Blake  <ebb9@byu.net>
39331
39332         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39333         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39334         * modules/wctype (Makefile.am): Likewise.
39335         Reported by Chris McGuire.
39336
39337 2007-01-10  Jim Meyering  <jim@meyering.net>
39338
39339         fts.c: a small readability/maintainability improvement
39340         * lib/fts.c (fts_read): Make this code slightly more readable and
39341         maintainable by hoisting the "sp->fts_cur = p" assignments to
39342         immediately follow the statements that set P.  Derived from
39343         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39344
39345 2007-01-10  Eric Blake  <ebb9@byu.net>
39346
39347         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39348         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39350         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39351         Reported by Chris McGuire.
39352
39353 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39354
39355         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39356         in sed script.
39357
39358 2007-01-09  Bruno Haible  <bruno@clisp.org>
39359
39360         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39361         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39362         variables.
39363         (func_module): Use them.
39364
39365 2007-01-09  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/unistr/base: New file.
39368         * lib/unistr.h: New file.
39369
39370         * modules/unistr/u8-to-u16: New file.
39371         * lib/unistr/u8-to-u16.c: New file.
39372
39373         * modules/unistr/u8-to-u32: New file.
39374         * lib/unistr/u8-to-u32.c: New file.
39375
39376         * modules/unistr/u16-to-u8: New file.
39377         * lib/unistr/u16-to-u8.c: New file.
39378
39379         * modules/unistr/u16-to-u32: New file.
39380         * lib/unistr/u16-to-u32.c: New file.
39381
39382         * modules/unistr/u32-to-u8: New file.
39383         * lib/unistr/u32-to-u8.c: New file.
39384
39385         * modules/unistr/u32-to-u16: New file.
39386         * lib/unistr/u32-to-u16.c: New file.
39387
39388         * modules/unistr/u8-check: New file.
39389         * modules/unistr/u16-check: New file.
39390         * modules/unistr/u32-check: New file.
39391         * lib/unistr/u8-check.c: New file.
39392         * lib/unistr/u16-check.c: New file.
39393         * lib/unistr/u32-check.c: New file.
39394
39395         * modules/unistr/u8-chr: New file.
39396         * modules/unistr/u16-chr: New file.
39397         * modules/unistr/u32-chr: New file.
39398         * lib/unistr/u8-chr.c: New file.
39399         * lib/unistr/u16-chr.c: New file.
39400         * lib/unistr/u32-chr.c: New file.
39401
39402         * modules/unistr/u8-cmp: New file.
39403         * modules/unistr/u16-cmp: New file.
39404         * modules/unistr/u32-cmp: New file.
39405         * lib/unistr/u8-cmp.c: New file.
39406         * lib/unistr/u16-cmp.c: New file.
39407         * lib/unistr/u32-cmp.c: New file.
39408
39409         * modules/unistr/u8-cpy: New file.
39410         * modules/unistr/u16-cpy: New file.
39411         * modules/unistr/u32-cpy: New file.
39412         * lib/unistr/u8-cpy.c: New file.
39413         * lib/unistr/u16-cpy.c: New file.
39414         * lib/unistr/u32-cpy.c: New file.
39415         * lib/unistr/u-cpy.h: New file.
39416
39417         * modules/unistr/u8-cpy-alloc: New file.
39418         * modules/unistr/u16-cpy-alloc: New file.
39419         * modules/unistr/u32-cpy-alloc: New file.
39420         * lib/unistr/u8-cpy-alloc.c: New file.
39421         * lib/unistr/u16-cpy-alloc.c: New file.
39422         * lib/unistr/u32-cpy-alloc.c: New file.
39423         * lib/unistr/u-cpy-alloc.h: New file.
39424
39425         * modules/unistr/u8-endswith: New file.
39426         * modules/unistr/u16-endswith: New file.
39427         * modules/unistr/u32-endswith: New file.
39428         * lib/unistr/u8-endswith.c: New file.
39429         * lib/unistr/u16-endswith.c: New file.
39430         * lib/unistr/u32-endswith.c: New file.
39431         * lib/unistr/u-endswith.h: New file.
39432
39433         * modules/unistr/u8-mblen: New file.
39434         * modules/unistr/u16-mblen: New file.
39435         * modules/unistr/u32-mblen: New file.
39436         * lib/unistr/u8-mblen.c: New file.
39437         * lib/unistr/u16-mblen.c: New file.
39438         * lib/unistr/u32-mblen.c: New file.
39439
39440         * modules/unistr/u8-mbtouc: New file.
39441         * modules/unistr/u16-mbtouc: New file.
39442         * modules/unistr/u32-mbtouc: New file.
39443         * lib/unistr/u8-mbtouc.c: New file.
39444         * lib/unistr/u16-mbtouc.c: New file.
39445         * lib/unistr/u32-mbtouc.c: New file.
39446
39447         * modules/unistr/u8-mbtouc-safe: New file.
39448         * modules/unistr/u16-mbtouc-safe: New file.
39449         * modules/unistr/u32-mbtouc-safe: New file.
39450         * lib/unistr/u8-mbtouc-safe.c: New file.
39451         * lib/unistr/u16-mbtouc-safe.c: New file.
39452         * lib/unistr/u32-mbtouc-safe.c: New file.
39453
39454         * modules/unistr/u8-move: New file.
39455         * modules/unistr/u16-move: New file.
39456         * modules/unistr/u32-move: New file.
39457         * lib/unistr/u8-move.c: New file.
39458         * lib/unistr/u16-move.c: New file.
39459         * lib/unistr/u32-move.c: New file.
39460         * lib/unistr/u-move.h: New file.
39461
39462         * modules/unistr/u8-next: New file.
39463         * modules/unistr/u16-next: New file.
39464         * modules/unistr/u32-next: New file.
39465         * lib/unistr/u8-next.c: New file.
39466         * lib/unistr/u16-next.c: New file.
39467         * lib/unistr/u32-next.c: New file.
39468
39469         * modules/unistr/u8-prev: New file.
39470         * modules/unistr/u16-prev: New file.
39471         * modules/unistr/u32-prev: New file.
39472         * lib/unistr/u8-prev.c: New file.
39473         * lib/unistr/u16-prev.c: New file.
39474         * lib/unistr/u32-prev.c: New file.
39475
39476         * modules/unistr/u8-set: New file.
39477         * modules/unistr/u16-set: New file.
39478         * modules/unistr/u32-set: New file.
39479         * lib/unistr/u8-set.c: New file.
39480         * lib/unistr/u16-set.c: New file.
39481         * lib/unistr/u32-set.c: New file.
39482         * lib/unistr/u-set.h: New file.
39483
39484         * modules/unistr/u8-startswith: New file.
39485         * modules/unistr/u16-startswith: New file.
39486         * modules/unistr/u32-startswith: New file.
39487         * lib/unistr/u8-startswith.c: New file.
39488         * lib/unistr/u16-startswith.c: New file.
39489         * lib/unistr/u32-startswith.c: New file.
39490         * lib/unistr/u-startswith.h: New file.
39491
39492         * modules/unistr/u8-stpcpy: New file.
39493         * modules/unistr/u16-stpcpy: New file.
39494         * modules/unistr/u32-stpcpy: New file.
39495         * lib/unistr/u8-stpcpy.c: New file.
39496         * lib/unistr/u16-stpcpy.c: New file.
39497         * lib/unistr/u32-stpcpy.c: New file.
39498         * lib/unistr/u-stpcpy.h: New file.
39499
39500         * modules/unistr/u8-stpncpy: New file.
39501         * modules/unistr/u16-stpncpy: New file.
39502         * modules/unistr/u32-stpncpy: New file.
39503         * lib/unistr/u8-stpncpy.c: New file.
39504         * lib/unistr/u16-stpncpy.c: New file.
39505         * lib/unistr/u32-stpncpy.c: New file.
39506         * lib/unistr/u-stpncpy.h: New file.
39507
39508         * modules/unistr/u8-strcat: New file.
39509         * modules/unistr/u16-strcat: New file.
39510         * modules/unistr/u32-strcat: New file.
39511         * lib/unistr/u8-strcat.c: New file.
39512         * lib/unistr/u16-strcat.c: New file.
39513         * lib/unistr/u32-strcat.c: New file.
39514         * lib/unistr/u-strcat.h: New file.
39515
39516         * modules/unistr/u8-strchr: New file.
39517         * modules/unistr/u16-strchr: New file.
39518         * modules/unistr/u32-strchr: New file.
39519         * lib/unistr/u8-strchr.c: New file.
39520         * lib/unistr/u16-strchr.c: New file.
39521         * lib/unistr/u32-strchr.c: New file.
39522
39523         * modules/unistr/u8-strcmp: New file.
39524         * modules/unistr/u16-strcmp: New file.
39525         * modules/unistr/u32-strcmp: New file.
39526         * lib/unistr/u8-strcmp.c: New file.
39527         * lib/unistr/u16-strcmp.c: New file.
39528         * lib/unistr/u32-strcmp.c: New file.
39529
39530         * modules/unistr/u8-strcpy: New file.
39531         * modules/unistr/u16-strcpy: New file.
39532         * modules/unistr/u32-strcpy: New file.
39533         * lib/unistr/u8-strcpy.c: New file.
39534         * lib/unistr/u16-strcpy.c: New file.
39535         * lib/unistr/u32-strcpy.c: New file.
39536         * lib/unistr/u-strcpy.h: New file.
39537
39538         * modules/unistr/u8-strcspn: New file.
39539         * modules/unistr/u16-strcspn: New file.
39540         * modules/unistr/u32-strcspn: New file.
39541         * lib/unistr/u8-strcspn.c: New file.
39542         * lib/unistr/u16-strcspn.c: New file.
39543         * lib/unistr/u32-strcspn.c: New file.
39544         * lib/unistr/u-strcspn.h: New file.
39545
39546         * modules/unistr/u8-strdup: New file.
39547         * modules/unistr/u16-strdup: New file.
39548         * modules/unistr/u32-strdup: New file.
39549         * lib/unistr/u8-strdup.c: New file.
39550         * lib/unistr/u16-strdup.c: New file.
39551         * lib/unistr/u32-strdup.c: New file.
39552         * lib/unistr/u-strdup.h: New file.
39553
39554         * modules/unistr/u8-strlen: New file.
39555         * modules/unistr/u16-strlen: New file.
39556         * modules/unistr/u32-strlen: New file.
39557         * lib/unistr/u8-strlen.c: New file.
39558         * lib/unistr/u16-strlen.c: New file.
39559         * lib/unistr/u32-strlen.c: New file.
39560         * lib/unistr/u-strlen.h: New file.
39561
39562         * modules/unistr/u8-strmblen: New file.
39563         * modules/unistr/u16-strmblen: New file.
39564         * modules/unistr/u32-strmblen: New file.
39565         * lib/unistr/u8-strmblen.c: New file.
39566         * lib/unistr/u16-strmblen.c: New file.
39567         * lib/unistr/u32-strmblen.c: New file.
39568
39569         * modules/unistr/u8-strmbtouc: New file.
39570         * modules/unistr/u16-strmbtouc: New file.
39571         * modules/unistr/u32-strmbtouc: New file.
39572         * lib/unistr/u8-strmbtouc.c: New file.
39573         * lib/unistr/u16-strmbtouc.c: New file.
39574         * lib/unistr/u32-strmbtouc.c: New file.
39575
39576         * modules/unistr/u8-strncat: New file.
39577         * modules/unistr/u16-strncat: New file.
39578         * modules/unistr/u32-strncat: New file.
39579         * lib/unistr/u8-strncat.c: New file.
39580         * lib/unistr/u16-strncat.c: New file.
39581         * lib/unistr/u32-strncat.c: New file.
39582         * lib/unistr/u-strncat.h: New file.
39583
39584         * modules/unistr/u8-strncmp: New file.
39585         * modules/unistr/u16-strncmp: New file.
39586         * modules/unistr/u32-strncmp: New file.
39587         * lib/unistr/u8-strncmp.c: New file.
39588         * lib/unistr/u16-strncmp.c: New file.
39589         * lib/unistr/u32-strncmp.c: New file.
39590
39591         * modules/unistr/u8-strncpy: New file.
39592         * modules/unistr/u16-strncpy: New file.
39593         * modules/unistr/u32-strncpy: New file.
39594         * lib/unistr/u8-strncpy.c: New file.
39595         * lib/unistr/u16-strncpy.c: New file.
39596         * lib/unistr/u32-strncpy.c: New file.
39597         * lib/unistr/u-strncpy.h: New file.
39598
39599         * modules/unistr/u8-strnlen: New file.
39600         * modules/unistr/u16-strnlen: New file.
39601         * modules/unistr/u32-strnlen: New file.
39602         * lib/unistr/u8-strnlen.c: New file.
39603         * lib/unistr/u16-strnlen.c: New file.
39604         * lib/unistr/u32-strnlen.c: New file.
39605         * lib/unistr/u-strnlen.h: New file.
39606
39607         * modules/unistr/u8-strpbrk: New file.
39608         * modules/unistr/u16-strpbrk: New file.
39609         * modules/unistr/u32-strpbrk: New file.
39610         * lib/unistr/u8-strpbrk.c: New file.
39611         * lib/unistr/u16-strpbrk.c: New file.
39612         * lib/unistr/u32-strpbrk.c: New file.
39613         * lib/unistr/u-strpbrk.h: New file.
39614
39615         * modules/unistr/u8-strrchr: New file.
39616         * modules/unistr/u16-strrchr: New file.
39617         * modules/unistr/u32-strrchr: New file.
39618         * lib/unistr/u8-strrchr.c: New file.
39619         * lib/unistr/u16-strrchr.c: New file.
39620         * lib/unistr/u32-strrchr.c: New file.
39621
39622         * modules/unistr/u8-strspn: New file.
39623         * modules/unistr/u16-strspn: New file.
39624         * modules/unistr/u32-strspn: New file.
39625         * lib/unistr/u8-strspn.c: New file.
39626         * lib/unistr/u16-strspn.c: New file.
39627         * lib/unistr/u32-strspn.c: New file.
39628         * lib/unistr/u-strspn.h: New file.
39629
39630         * modules/unistr/u8-strstr: New file.
39631         * modules/unistr/u16-strstr: New file.
39632         * modules/unistr/u32-strstr: New file.
39633         * lib/unistr/u8-strstr.c: New file.
39634         * lib/unistr/u16-strstr.c: New file.
39635         * lib/unistr/u32-strstr.c: New file.
39636         * lib/unistr/u-strstr.h: New file.
39637
39638         * modules/unistr/u8-strtok: New file.
39639         * modules/unistr/u16-strtok: New file.
39640         * modules/unistr/u32-strtok: New file.
39641         * lib/unistr/u8-strtok.c: New file.
39642         * lib/unistr/u16-strtok.c: New file.
39643         * lib/unistr/u32-strtok.c: New file.
39644         * lib/unistr/u-strtok.h: New file.
39645
39646         * modules/unistr/u8-uctomb: New file.
39647         * modules/unistr/u16-uctomb: New file.
39648         * modules/unistr/u32-uctomb: New file.
39649         * lib/unistr/u8-uctomb.c: New file.
39650         * lib/unistr/u16-uctomb.c: New file.
39651         * lib/unistr/u32-uctomb.c: New file.
39652
39653         * MODULES.html.sh (Unicode string functions): Add the new modules.
39654
39655 2007-01-08  Bruno Haible  <bruno@clisp.org>
39656
39657         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39658         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39659         subdirectories.
39660
39661 2007-01-08  Karl Berry  <karl@gnu.org>
39662
39663         * doc/error.texi: mention that main() fns must set program_name
39664         when progname is used.
39665
39666 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39667
39668         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39669         WCTYPE_H is empty, for the benefit of builds from non-distclean
39670         directories.  Problem reported by Eric Blake in
39671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39672
39673 2007-01-08  Bruno Haible  <bruno@clisp.org>
39674
39675         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39676         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39677         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39678         PROVIDE_CANONICALIZE_FILENAME_MODE.
39679         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39680
39681 2007-01-08  Bruno Haible  <bruno@clisp.org>
39682
39683         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39684         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39685         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39686         * lib/fts.c: Likewise.
39687         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39688
39689 2006-12-25  Bruno Haible  <bruno@clisp.org>
39690
39691         * modules/utf8-ucs4-safe: New file.
39692         * lib/utf8-ucs4-safe.h: New file.
39693         * lib/unistr/utf8-ucs4-safe.c: New file.
39694
39695         * modules/utf16-ucs4-safe: New file.
39696         * lib/utf16-ucs4-safe.h: New file.
39697         * lib/unistr/utf16-ucs4-safe.c: New file.
39698
39699         * MODULES.html.sh (Unicode string functions): Add the new modules.
39700
39701 2007-01-08  Bruno Haible  <bruno@clisp.org>
39702
39703         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39704         (Depends-on): Add unitypes.
39705         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39706         (u8_mbtouc_aux): Move out to separate file.
39707         (u8_mbtouc): Use ucs4_t, uint8_t types.
39708         * lib/unistr/utf8-ucs4.c: New file.
39709
39710         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39711         (Depends-on): Add unitypes.
39712         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39713         (u16_mbtouc_aux): Move out to separate file.
39714         (u16_mbtouc): Use ucs4_t, uint16_t types.
39715         * lib/unistr/utf16-ucs4.c: New file.
39716
39717         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39718         (Depends-on): Add unitypes.
39719         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39720         (u8_uctomb_aux): Move out to separate file.
39721         (u8_uctomb): Use ucs4_t, uint8_t types.
39722         * lib/unistr/ucs4-utf8.c: New file.
39723
39724         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39725         (Depends-on): Add unitypes.
39726         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39727         (u16_uctomb_aux): Move out to separate file.
39728         (u16_uctomb): Use ucs4_t, uint16_t types.
39729         * lib/unistr/ucs4-utf16.c: New file.
39730
39731 2006-12-25  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/unitypes: New file.
39734         * lib/unitypes.h: New file.
39735         * MODULES.html.sh (func_all_modules): New section "Unicode string
39736         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39737         this section. Add unitypes.
39738
39739 2007-01-08  Bruno Haible  <bruno@clisp.org>
39740
39741         Avoid variable names that conflict with those from libtool.
39742         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39743         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39744         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39745         library_names_spec to acl_library_names_spec, hardcode_* to
39746         acl_hardcode_*.
39747         Reported by Ralf Wildenhues.
39748
39749 2007-01-08  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39752         definition.
39753         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39754         definition.
39755         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39756         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39757         definition.
39758         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39759         definition.
39760         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39761         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39762         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39763         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39764         definition.
39765         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39766         definition.
39767         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39768         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39769         GC_USE_<algorithm>.
39770         * lib/gc-libgcrypt.c: Likewise.
39771         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39772         * modules/gc-arctwo (configure.ac): Likewise.
39773         * modules/gc-des (configure.ac): Likewise.
39774         * modules/gc-hmac-md5 (configure.ac): Likewise.
39775         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39776         * modules/gc-md2 (configure.ac): Likewise.
39777         * modules/gc-md4 (configure.ac): Likewise.
39778         * modules/gc-md5 (configure.ac): Likewise.
39779         * modules/gc-random (configure.ac): Likewise.
39780         * modules/gc-rijndael (configure.ac): Likewise.
39781         * modules/gc-sha1 (configure.ac): Likewise.
39782
39783 2007-01-08  Bruno Haible  <bruno@clisp.org>
39784
39785         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39786         macro definition.
39787         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39788         definition.
39789         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39790         definition.
39791         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39792         * modules/fcntl-safer (configure.ac): Likewise.
39793         * modules/fopen-safer (configure.ac): Likewise.
39794         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39795         GNULIB_FWRITEERROR macro definition.
39796
39797 2007-01-08  Bruno Haible  <bruno@clisp.org>
39798
39799         * m4/gnulib-common.m4: New file.
39800         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39801         (func_get_filelist): Add m4/gnulib-common.m4.
39802
39803 2007-01-08  Bruno Haible  <bruno@clisp.org>
39804
39805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39806         command.
39807
39808 2007-01-08  Jim Meyering  <jim@meyering.net>
39809
39810         Use a more robust test for a "can't happen" condition.
39811         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39812         narrowed the st_size value.  Presuming the "can't happen" condition
39813         is true, that narrowing could conceivably convert an invalid st_size
39814         value into a valid one.  Instead, use a change based on Matthew
39815         Woehlke's original patch.
39816
39817         Slight readability improvement: use an assert-like macro
39818         in place of literal "abort ()" uses.
39819         * lib/fts.c (fts_assert): Define.
39820         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39821         Use this macro instead of a bare 'abort'.
39822
39823 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39824
39825         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39826         simply work around them.
39827         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39828         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39829         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39830         declaring.
39831         Don't bother to define as macros, since the standard doesn't require it.
39832         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39833         longer worry about IRIX 5.3.
39834         (HAVE_WCTYPE_CTMP_BUG): Remove.
39835
39836 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39837
39838         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39839         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39840         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39841         Problems reported by Georg Schwarz for IRIX 5.3.
39842
39843         * gnulib-tool (autoconf_minversion): Take the maximum version number
39844         found, not the minimum.  Problem reported by James Youngman.
39845
39846 2007-01-03  Karl Berry  <karl@gnu.org>
39847
39848         * doc/error.texi: new file, explaining interaction with progname.
39849         * doc/gnulib.texi: include it.  Update copyright.
39850
39851 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39852
39853         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39854         AC_CANONICAL_HOST, to improve autobuild outputs.
39855
39856 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39857             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39858
39859         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39860         sockets, server sockets, and other file descriptors.  Count errors
39861         to compute the return value.  Reorder the code a bit to be easier
39862         to follow.  Don't set event bits that were not requested (except
39863         POLLERR and POLLHUP).
39864
39865 2007-01-01  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39868
39869 2007-01-03  Jim Meyering  <jim@meyering.net>
39870
39871         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39872
39873 2007-01-02  Bruno Haible  <bruno@clisp.org>
39874
39875         * modules/settime (Include): Require timespec.h.
39876         * modules/nanosleep (Include): Likewise.
39877
39878 2007-01-01  Bruno Haible  <bruno@clisp.org>
39879
39880         * gnulib-tool (func_emit_copyright_notice): Bump year.
39881         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39882
39883 2007-01-01  Bruno Haible  <bruno@clisp.org>
39884
39885         Improve support for OpenBSD.
39886         * build-aux/config.rpath (libname_spec): Export.
39887         (library_names_spec): New variable. Export.
39888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39889         library_names_spec from the config.rpath output. Locate shared library
39890         through the name pattern in library_names_spec.
39891
39892 2007-01-01  Eric Blake  <ebb9@byu.net>
39893
39894         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39895
39896 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39897
39898         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39899         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39900         assume the C locale, and avoid an "eval" that could cause trouble.
39901         Problem with SORT reported by Bob Proulx.
39902
39903         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39904         Define.  Trivial patch from Henning Nielsen Lund, originally
39905         sent to bug-grep@gnu.org today.
39906
39907 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39908
39909         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39910         struct stat.  Problem reported by Henning Nielsen Lund.
39911         * lib/acl.c: Include acl.h first, to check interface.  Don't
39912         bother to include sys/types.h and sys/stat.h again.
39913
39914 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         Import the following change from libc; problem reported by
39917         Sven Verdoolaege.
39918
39919         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39920
39921         [BZ #1373]
39922         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39923
39924 2006-12-28  Jim Meyering  <jim@meyering.net>
39925
39926         * build-aux/announce-gen: Do not assume that the package
39927         builds any of tar.gz, tar.bz2, and .xdelta files.
39928         Suggestion from Simon Josefsson.
39929
39930 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39931
39932         * modules/announce-gen: New file.
39933
39934 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39935
39936         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39937         handles its gotchas now.
39938         * lib/mbswidth.c: Likewise.
39939         * lib/wcwidth.h: Likewise.
39940         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39941         and iswcntrl; the wctype module does this stuff now.
39942         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39944         * modules/mbchar (Depends-on): Add wctype.
39945         * modules/mbswidth (Depends-on): Likewise.
39946         * modules/wcwidth (Depends-on): Likewise.
39947
39948 2006-12-27  Eric Blake  <ebb9@byu.net>
39949
39950         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39951         module uses more than what <wctype.h> is required to provide.
39952
39953 2006-12-26  Eric Blake  <ebb9@byu.net>
39954
39955         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39956
39957 2006-12-26  Eric Blake  <ebb9@byu.net>
39958
39959         * modules/absolute-header: New module.
39960         * modules/fcntl (Depends-on): Depend on it.
39961         * modules/inttypes (Depends-on): Likewise.
39962         * modules/stdint (Depends-on): Likewise.
39963         * modules/sys_stat (Depends-on): Likewise.
39964         * modules/wctype (Depends-on): Likewise.
39965         * MODULES.html.sh (Support for building libraries and
39966         executables): Document it.
39967
39968 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39969
39970         * gnulib-tool (SED): Remove, undoing previous change.
39971         The problem was that it broke coreutils on Solaris, because
39972         "sed --posix" leaked into a makefile.
39973         (sed): New alias, if 'alias' and GNU sed.
39974
39975 2006-12-24  Jim Meyering  <jim@meyering.net>
39976
39977         Work around an fchownat bug in glibc-2.4:
39978         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39979         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39980         in spite of the -P option.
39981         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39982         New macros.
39983         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39984         * modules/openat (Files): Add lib/fchownat.c.
39985         * lib/openat.c (fchownat): Don't define here.  Move to...
39986         * lib/fchownat.c: ...this new file.
39987
39988 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39989
39990         Fix bug reported by Bruno Haible in
39991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39992         where quotearg.c didn't compile on Mac OS X 10.2 because it
39993         lacks <wchar.h> and wint_t.
39994         * lib/wctype_.h (__wctype_wint_t): New type.
39995         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39996         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39997         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39998         Arg is now of type __wctype_wint_t, not wint_t.
39999         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40000         substitute HAVE_WINT_T.
40001         * modules/wctype (Files): Add m4/wint_t.m4.
40002         (wctype.h): Substitute HAVE_WINT_T.
40003
40004 2006-12-23  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40007
40008 2006-12-23  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40011         S_ISLNK.
40012         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40013         mingw.
40014
40015 2006-12-22  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/copy-file.c: Include acl.h.
40018         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40019         Close the file descriptors only after being done with copy_acl.
40020         * modules/copy-file (Depends-on): Add acl.
40021
40022 2006-12-22  Bruno Haible  <bruno@clisp.org>
40023
40024         * gnulib-tool (SED): New variable.
40025         Use $SED instead of sed everywhere.
40026
40027 2006-12-22  Bruno Haible  <bruno@clisp.org>
40028
40029         * modules/no-c++: New file.
40030         * m4/no-c++.m4: New file.
40031         * MODULES.html.sh (Support for building libraries and executables):
40032         Add no-c++.
40033
40034 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40035
40036         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40037         Include <limits.h>, and use its INT_MAX to rewrite the
40038         j loop so that it does not overflow 'int'.  Problem reported by
40039         Ralf Wildenhues in
40040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40041         Play it safe by shifting left by 1 rather than multiplying by 2,
40042         as GCC is less likely to optimize this away when the value
40043         is signed (when it assumes overflow leads to undefined behavior).
40044         Also, don't assume time_t uses two's complement.
40045
40046 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40047
40048         * MODULES.html.sh: New module wctype.
40049         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40050         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40051         <wctype.h>, since the new wctype module should fix this.
40052         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40053         the wctype module should arrange for it.
40054         * lib/regex_internal.h: Likewise.
40055         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40056         since the wctype module should handle this now.
40057         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40058         * modules/fnmatch (Depends-on): Add wctype.
40059         * modules/quotearg (Depends-on): Likewise.
40060         * modules/regex (Depends-on): Likewise.
40061
40062 2006-12-19  Bruno Haible  <bruno@clisp.org>
40063
40064         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40065         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40066
40067 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40068
40069         * modules/savewd (Depends-on): Fix dependency on fcntl.
40070
40071 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40072
40073         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40074         conforms to C99, rather than relying on the user's environment
40075         setting of STDINT_H.
40076
40077 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40078         and Eric Blake  <ebb9@byu.net>
40079
40080         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40081         This is more consistent with the other defines here.
40082         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40083         Port to z/OS.  Problem reported by Paul Gilmartin.
40084         Change local vars to use gl_ prefix rather than ac_.
40085         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40086         with other defines.
40087         * modules/double-slash-root: New module.
40088         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40089         (Depends-on): Add double-slash-root.
40090         * MODULES.html.sh (File system functions): Mention new module.
40091
40092 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40093
40094         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40095         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40096         This is for the benefit of gzip, which doesn't do i18n.
40097
40098 2006-12-12  Jim Meyering  <jim@meyering.net>
40099
40100         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40101         Reported by Andreas Schwab <schwab@suse.de>.
40102
40103 2006-12-12  Bruno Haible  <bruno@clisp.org>
40104
40105         Merge these changes.
40106         2006-09-05  Bruno Haible  <bruno@clisp.org>
40107         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40108         iconv_alloc succeeded.
40109         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40110         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40111         test for " && dest " at the end - dest is always != NULL there. Call
40112         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40113         with 2xNULL arguments, also to flush the state storage. Handle the
40114         IRIX iconv behaviour. Realloc the final result, to throw away unused
40115         memory.
40116
40117 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40118
40119         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40120         and fchmodat unconditionally, since glibc 2.4 has them.
40121         Problem reported by Arkadiusz Miskiewicz.
40122
40123 2006-12-10  Bruno Haible  <bruno@clisp.org>
40124
40125         * gnulib-tool (func_import): Show the include files only for those
40126         modules that are copied and specified.
40127         Reported by Karl Berry.
40128
40129 2006-12-08  Jim Meyering  <jim@meyering.net>
40130
40131         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40132         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40133
40134         * build-aux/announce-gen: Add two new options, both optional:
40135         --bootstrap-tools=TOOL_LIST
40136               a comma-separated list of tools, e.g.,
40137               autoconf,automake,bison,gnulib
40138         --gnulib-snapshot-date=DATE
40139               if gnulib is in the bootstrap tool list,
40140               then report this as the snapshot date.
40141               If not specified, use the current date/time.
40142               If you specify a date here, be sure it's UTC.
40143
40144 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40145
40146         * tests/test-argp-2.sh: Fix test to match actual output.
40147         (func_compare): Fix sed script to be portable.
40148
40149 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40150
40151         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40152         workaround for this case.  It is not autoconfigured now; offhand
40153         it's hard to see how to autoconfigure it.
40154
40155 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40156
40157         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40158         a directory that is about to be chowned.  Such a directory's
40159         initial file permissions should permit the owner only and this
40160         should not be changed until after the chown, since the group and
40161         other bits would be incorrect if they granted permission before
40162         the chown.
40163
40164         Fix porting problem for iswctype reported by Georg Schwarz in:
40165         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40166         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40167         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40169         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40170
40171 2006-12-03  Jim Meyering  <jim@meyering.net>
40172
40173         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40174         p->fts_statp may not yet be defined.
40175         (fts_read): Instead, set it in the caller, once p->fts_statp is
40176         sure to be defined, and corresponds to a top-level directory.
40177         This bug made du -x fail.  Here's the coreutils test case:
40178         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40179         Reported by Mike Frysinger.
40180
40181 2006-12-01  Jim Meyering  <jim@meyering.net>
40182
40183         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40184         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40185         Reported by Simon Josefsson.
40186
40187 2006-11-30  Jim Meyering  <jim@meyering.net>
40188
40189         * m4/warning.m4: Use the all-permissive copyright notice
40190         recommended by RMS (rather than LGPL).
40191         * m4/vararrays.m4: Likewise.
40192         * m4/flexmember.m4: Likewise.
40193
40194 2006-11-29  Bruno Haible  <bruno@clisp.org>
40195
40196         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40197         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40198         using +=.
40199         Reported by Simon Josefsson <simon@josefsson.org>.
40200
40201 2006-11-28  James Youngman <jay@gnu.org>
40202
40203         * README: Advise users that they might find the bug-gnulib@gnu.org
40204         and autotools-announce@gnu.org mailing lists useful.
40205
40206 2006-11-28  Bruno Haible  <bruno@clisp.org>
40207
40208         * m4/ptrdiff_max.m4: Remove file.
40209
40210 2006-11-21  Bruno Haible  <bruno@clisp.org>
40211
40212         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40213         _AC_COMPUTE_INT.
40214         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40215         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40216         _AC_COMPUTE_INT.
40217         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40218         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40219         _AC_COMPUTE_INT.
40220         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40221
40222 2006-11-28  Jim Meyering  <jim@meyering.net>
40223
40224         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40225         warning from "gcc -Wshadow" about shadowing the builtin.
40226
40227 2006-11-27  Bruno Haible  <bruno@clisp.org>
40228
40229         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40230         _AC_COMPUTE_INT.
40231         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40232
40233 2006-11-27  Bruno Haible  <bruno@clisp.org>
40234             Paul Eggert  <eggert@cs.ucla.edu>
40235
40236         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40237
40238 2006-11-26  Bruno Haible  <bruno@clisp.org>
40239
40240         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40241         noinst_LTLIBRARIES.
40242
40243 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40244             Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40247         if compiling with "gcc -ansi".
40248
40249 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40250
40251         Fix some incompatibilities with gcc -ansi -pedantic.
40252         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40253         if compiling pedantically with GCC, unless it's C99 or later.
40254         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40255         it mishandles gcc -ansi -pedantic as well.
40256         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40257         if gcc -pedantic.
40258         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40259         initializers for struct if -pedantic, unless it's C99 or later.
40260
40261 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40262
40263         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40264         Don't close an fd more than once. Identical atimes indicate
40265         success, not failure.
40266
40267 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40268
40269         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40270
40271 2006-11-23  Jim Meyering  <jim@meyering.net>
40272
40273         * build-aux/announce-gen: New file.  From coreutils.
40274
40275 2006-11-22  Jim Meyering  <jim@meyering.net>
40276
40277         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40278         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40279         (fts_read): Use a temporary to narrow the overused st_size member
40280         before using it in a switch statement.  Reported by Matthew Woehlke.
40281
40282         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40283         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40284
40285 2006-11-20  Bruno Haible  <bruno@clisp.org>
40286
40287         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40288         changequote instead of pairs of brackets.
40289         Reported by Andreas Schwab <schwab@suse.de>.
40290
40291 2006-11-21  Jim Meyering  <jim@meyering.net>
40292
40293         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40294         so as to remain compatible with older compilers.
40295         Patch from Michael Deutschmann.
40296
40297 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * MODULES.html.sh (File system functions): Add openat.
40300
40301         * lib/openat.h (rpl_fstatat): New macro, if
40302         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40303         (fstatat): Define to rpl_fstatat under the same conditions,
40304         unless COMPILING_FSTATAT.
40305         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40306         seems to have the bug.
40307         * lib/fstatat.c: New file.
40308         * modules/openat (Files): Add it.
40309
40310 2006-11-20  Bruno Haible  <bruno@clisp.org>
40311
40312         * Makefile: New file.
40313
40314 2006-11-20  Jim Meyering  <jim@meyering.net>
40315
40316         The beginnings of syntax-related checks for gnulib.
40317         * lib/Makefile: New file.
40318         * lib/t-idcache: New script.  Ensure that the two halves of
40319         idcache.c stay in sync.
40320
40321         * lib/idcache.c: Adjust comments in user- and group- portions to
40322         be more accurate, and to be consistent with one another.
40323
40324 2006-11-20  Jim Meyering  <jim@meyering.net>
40325
40326         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40327         continue using the flexible array member (thus, this module performs
40328         half as many malloc calls), with the addition that...
40329         (getgroup, getuser): Consistently record a non-match via an empty
40330         "name" string, and map an empty string match to a NULL return value.
40331         * modules/idcache (Depends-on): Re-add flexmember.
40332
40333         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40334         (getuidbyname, getgroup, getgidbyname): Likewise.
40335
40336         Use cleaner syntax: NULL rather than 0.
40337         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40338
40339 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40340
40341         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40342         It mishandled the case where the group was missing.
40343         Problem reported by Greg Schafer.
40344         * modules/idcache: Likewise.
40345
40346 2006-11-18  Jim Meyering  <jim@meyering.net>
40347
40348         * check-module (%exempt_header): Add exception for some
40349         conditionally-included headers.
40350
40351         * modules/i-ring (Depends-on): Add verify.
40352         (License): Change to LGPL.
40353
40354 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40355
40356         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40357         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40358         and inttostr.h.  Use snprintf rather than uinttostr, so that
40359         LGPLed code doesn't depend on GPLed.
40360
40361 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40362
40363         * modules/inline (License): Change from GPL to LGPL.
40364
40365 2006-11-17  Jim Meyering  <jim@meyering.net>
40366
40367         * modules/d-type (License): Switch to LGPL.
40368
40369 2006-11-15  Bruno Haible  <bruno@clisp.org>
40370
40371         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40372
40373 2006-11-15  Eric Blake  <ebb9@byu.net>
40374
40375         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40376         the module dependency.
40377
40378 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40379             Bruno Haible  <bruno@clisp.org>
40380
40381         * gnulib-tool (func_create_testdir): Add license consistency check.
40382
40383 2006-11-15  Eric Blake  <ebb9@byu.net>
40384
40385         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40386         random "(cached)" in configure output.
40387
40388 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40389
40390         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40391         test for conforming inttypes.h is both announced and cached.
40392
40393         * MODULES.html.sh (seen_modules, seen_files): New variables.
40394         (func_module): Rewrite to use a few less gnulib-tool and sed
40395         invocations.  Avoid a couple of quadratic algorithms for ...
40396         (missed_modules, missed_files): ... these, with ...
40397         (func_append, func_tmpdir): ... these new functions, from
40398         gnulib-tool.  Analogously, install traps for cleanup.
40399
40400         * tests/test-gc.c (main): Remove unused variables.
40401         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40402
40403 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40404
40405         * modules/inttostr (License): Change to LGPL.
40406
40407 2006-11-14  Eric Blake  <ebb9@byu.net>
40408
40409         * modules/tempname (License): Change to LGPL.
40410
40411 2006-11-14  Eric Blake  <ebb9@byu.net>
40412
40413         * doc/functions.texi (Function Portability): *printf functions on
40414         Cygwin now understand all POSIX size specifiers.
40415
40416 2006-11-14  Bruno Haible  <bruno@clisp.org>
40417
40418         * modules/c-ctype (License): Change to LGPL.
40419
40420 2006-11-12  Bruno Haible  <bruno@clisp.org>
40421
40422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40423         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40424         for GNOME libraries, for which the include files are installed in
40425         subdirectories of $prefix/include.
40426
40427 2006-11-12  Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/lib-link.m4: Require at least autoconf-2.54.
40430         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40431         name to underscores for the --with option.
40432
40433 2006-11-13  Bruno Haible  <bruno@clisp.org>
40434
40435         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40436         the tests directory.
40437         Reported by Ralf Wildenhues.
40438
40439 2006-11-13  Bruno Haible  <bruno@clisp.org>
40440
40441         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40442         (func_emit_initmacro_end): Undo the override here.
40443         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40444         Works around the famous automake error in coreutils.
40445
40446 2006-11-13  Eric Blake  <ebb9@byu.net>
40447
40448         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40449         element, not its node.
40450
40451 2006-11-12  Bruno Haible  <bruno@clisp.org>
40452
40453         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40454         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40455
40456 2006-11-12  Bruno Haible  <bruno@clisp.org>
40457
40458         * gnulib-tool: New option --local-symlink.
40459         (func_usage): Document it.
40460         (lsymbolic): New variable.
40461         (func_import, func_create_testdir): If --symlink was not specified,
40462         test whether --local-symlink was specified and the file comes from
40463         the local_gnulib_dir.
40464
40465 2006-11-12  Bruno Haible  <bruno@clisp.org>
40466
40467         * gnulib-tool (func_ln): New function.
40468         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40469
40470 2006-11-12  Bruno Haible  <bruno@clisp.org>
40471
40472         Finish support for source files in subdirectories.
40473         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40474         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40475         AUTOMAKE_OPTIONS.
40476         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40477
40478 2006-11-12  Bruno Haible  <bruno@clisp.org>
40479
40480         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40481         EXTRA_lib_SOURCES augmentation.
40482         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40483
40484 2006-11-12  Jim Meyering  <jim@meyering.net>
40485
40486         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40487         file descriptors.  This also averts a failure on systems with
40488         native openat support when a traversed directory lacks "x" access.
40489         * lib/fts_.h: Include "i-ring.h"
40490         (struct FTS) [fts_fd_ring]: New member.
40491         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40492         (FCHDIR): Add parentheses.
40493         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40494         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40495         When descending, rather than simply closing the previous
40496         fts_cwd_fd value, push that file descriptor onto the ring.
40497         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40498         (fts_open): Initialize the new fd_ring member.
40499         (fts_close): Clear the ring.
40500         (fts_safe_changedir): When possible, use our new fd_ring to skip
40501         the diropen and fstat and dev/ino comparison that would normally
40502         accompany a virtual `chdir ("..")'.
40503
40504         * modules/fts (Depends-on): Add i-ring.
40505         * modules/i-ring: New module.
40506         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40507         * m4/i-ring.m4: New file.
40508
40509 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40510
40511         * gnulib-tool (func_create_testdir): Fix replacement of
40512         `build-aux' in configure.ac.  Run autotools in gltests
40513         subdirectory.
40514         (func_create_testdir, func_create_megatestdir, test): There is
40515         no need for '--force' in most autotool invocations in a new
40516         tree.  Actually fail the whole test if any of the tools, or the
40517         configure or make stages fail.
40518
40519         Sync from Automake.
40520         * build-aux/gnupload: Revert last change.  Add pointer to upload
40521         instructions of the GNU Maintenance Instructions.
40522         Suggestion by Karl Berry.
40523
40524 2006-11-10  Jim Meyering  <jim@meyering.net>
40525
40526         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40527
40528 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40529
40530         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40531         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40532         (bind_textdomain_codeset) [! ENABLE_NLS]:
40533         Evaluate all the arguments.  That way, callers get compatible behavior
40534         if the arguments have side effects.  Also, it avoids some GCC
40535         diagnostics in some cases; Joel E. Denny reported problems when Bison
40536         was configured with --enable-gcc-warnigs.
40537
40538 2006-11-10  Jim Meyering  <jim@meyering.net>
40539
40540         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40541         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40542         account.
40543
40544 2006-11-10  Jim Meyering  <jim@meyering.net>
40545
40546         * modules/inline: New file/module.
40547         * modules/xalloc (Files): Remove m4/inline.m4.
40548         (Depends-on): Add inline, instead.
40549         * modules/oset: Likewise.
40550         * modules/list: Likewise.
40551
40552 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40553
40554         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40555         Problem reported by Matthew Woehlke.
40556
40557 2006-11-09  Bruno Haible  <bruno@clisp.org>
40558
40559         * lib/tempname.c (gen_tempname): Remove variant that invokes
40560         __gen_tempname.
40561         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40562         __gen_tempname.
40563
40564 2006-11-08  Bruno Haible  <bruno@clisp.org>
40565
40566         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40567         to 'yes' instead of 'cross-compiling'.
40568
40569 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40570
40571         * lib/quotearg.h (quotearg_free): New decl.
40572         * lib/quotearg.c (quotearg_free): New function.
40573         (slot0, nslots, slotvec0, slotvec):
40574         Now file-scope so that quotearg_free can get at them.
40575
40576 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40577
40578         Sync from Automake.
40579         * build-aux/gnupload: Add missing 'gnu' to example URL.
40580         Report by Karl Berry.
40581
40582 2006-11-08  Bruno Haible  <bruno@clisp.org>
40583
40584         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40585         Suggested by Paul Eggert.
40586
40587 2006-11-08  Jim Meyering  <jim@meyering.net>
40588
40589         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40590         It's already included if !_LIBC.
40591         (fts_safe_changedir): Add a comment.
40592
40593 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40596         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40597         Matthew Woehlke.
40598
40599         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40600         definitions up, to avoid colliding with change below.
40601         (static_inline) [HAVE_INLINE]: New macro.
40602         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40603         Provide extern decls when !HAVE_INLINE.  Do not define unless
40604         static_inline is defined, either by us or by xmalloc.c.  Use
40605         static_inline rather than static inline.
40606         (XCALLOC): Optimize sizeof(T) = 1 case.
40607         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40608
40609 2006-11-07  Bruno Haible  <bruno@clisp.org>
40610
40611         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40612         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40613         AC_C_INLINE.
40614         * modules/xalloc (Files): Add m4/inline.m4.
40615
40616 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40617
40618         * README: Fix typo.
40619         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40620         (Miscellanous Notes): ...from this.
40621
40622 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40623
40624         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40625         Mention that offsetof should be used instead of sizeof.
40626         From Bruno Haible.
40627
40628 2006-11-07  Bruno Haible  <bruno@clisp.org>
40629
40630         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40631
40632 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40633
40634         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40635         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40636         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40637         (gl_tree_add_before, gl_tree_add_after):
40638         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
40639         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
40640         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40641         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
40642         (gl_linked_add_after, gl_linked_add_at): Likewise.
40643         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
40644         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40645         (gl_tree_add_before, gl_tree_add_after): Likewise.
40646         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
40647         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
40648         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40649
40650 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40651
40652         * lib/gl_oset.h: Use C comment style, not C++ comment style.
40653
40654 2006-11-06  Bruno Haible  <bruno@clisp.org>
40655
40656         * m4/inline.m4: New file.
40657         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40658         * modules/list (Files): Add m4/inline.m4.
40659         * modules/oset (Files): Likewise.
40660
40661 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40662
40663         * lib/idcache.c: Include <stddef.h>, for offsetof.
40664         (struct userid.name): Change from char * to a flexible array member.
40665         All uses changed.
40666         * modules/idcache (Depends-on): Add flexmember.
40667
40668         * MODULES.html.sh (Core language properties): New module flexmember.
40669         * modules/flexmember, m4/flexmember.m4: New files.
40670
40671         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40672         inline functions that are identical with the old xnmalloc_inline,
40673         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40674         that we can avoid some unnecessary integer multiplications and
40675         divisions in the common case where the element size is known at
40676         compile time.
40677         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40678         needed.
40679         (xnboundedmalloc): Remove.
40680         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40681         arguments, for consistency with rest of this header.
40682         (xcharalloc): Rewrite using XNMALLOC.
40683         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40684         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40685         versions have been moved to lib/xalloc.h and renamed to be the
40686         non-*_inline versions.
40687         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40688         and xnrealloc functions, since those functions are now inline and
40689         now call us.
40690         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40691         renaming described above.
40692         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40693         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40694         captures the dependency in AC_C_INLINE.
40695
40696         New module canonicalize-lgpl, proposed by Charles Wilson in
40697         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40698         with a few small changes afterwards.
40699         * MODULES.html.sh (File system functions): New module
40700         canonicalize-lgpl.
40701         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40702         and canonicalize_file_name.
40703         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40704         * modules/canonicalize-lgpl: New files.
40705
40706 2006-11-05  Bruno Haible  <bruno@clisp.org>
40707
40708         * gnulib-tool (func_import, func_create_testdir): Create directories
40709         also for files in subdirectories of lib/.
40710
40711 2006-11-05  Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40714         ANSI C compliant.
40715
40716 2006-11-03  Bruno Haible  <bruno@clisp.org>
40717
40718         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40719         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40720         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40721         (xnboundedmalloc): New inline function.
40722         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40723         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40724         xmalloc.
40725         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40726         xmalloc.
40727         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40728         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40729         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40730         xmalloc.
40731         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40732         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40733         xmalloc.
40734         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40735         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40736         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40737         xmalloc.
40738         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40739         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40740         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40741         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40742         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40743         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40744         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40745
40746 2006-11-03  Bruno Haible  <bruno@clisp.org>
40747
40748         * lib/c-ctype.h [C++]: Define functions without name mangling.
40749         * lib/fwriteerror.h [C++]: Likewise.
40750         * lib/gcd.h [C++]: Likewise.
40751         * lib/linebreak.h [C++]: Likewise.
40752
40753 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40754
40755         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40756         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40757         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40758         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40759         Check for functions and headers just once.
40760         Check for declaration of canonicalize_file_name.
40761         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40762
40763 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40764
40765         * gnulib-tool (func_import): Fix typo in actioncmd.
40766
40767 2006-11-02  Bruno Haible  <bruno@clisp.org>
40768
40769         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40770         newline sequence in the Makefile.am snippet as a space, like "make"
40771         does.
40772         Reported by Roger Persson <perrog@gmail.com>.
40773
40774 2006-11-01  Bruno Haible  <bruno@clisp.org>
40775
40776         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40777         already declared in <string.h>.
40778         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40779
40780 2006-11-01  Bruno Haible  <bruno@clisp.org>
40781
40782         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40783         * lib/strcase.h: Include <string.h>.
40784         (strcasecmp): Define to rpl_strcasecmp here.
40785
40786 2006-11-01  Bruno Haible  <bruno@clisp.org>
40787
40788         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40789
40790 2006-11-01  Eric Blake  <ebb9@byu.net>
40791
40792         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40793
40794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40795
40796 2006-10-29  Bruno Haible  <bruno@clisp.org>
40797
40798         Make it compile in C++ mode.
40799         * lib/full-write.c (full_rw): Add a cast.
40800
40801 2006-11-01  Bruno Haible  <bruno@clisp.org>
40802
40803         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40804         be POSIX compliant.
40805         Reported by Roger Persson <perrog@gmail.com>.
40806
40807 2006-11-01  Eric Blake  <ebb9@byu.net>
40808
40809         * lib/getopt_.h: Fix comments.
40810
40811 2006-10-31  Eric Blake  <ebb9@byu.net>
40812
40813         * modules/tmpdir (Depends-on): Add sys_stat.
40814         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40815         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40816         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40817         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40818         tempname.
40819
40820 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40821
40822         Avoid some C++ diagnostics reported by Bruno Haible.
40823         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40824         xmalloc.
40825         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40826         (struct slotvec): Move to top level.
40827         (quotearg_n_options): Rewrite to avoid xmalloc.
40828         * lib/xalloc.h (xcharalloc): New function.
40829         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40830         [defined __cplusplus]: Add function template that provides result
40831         type propagation.  This part of the change is from Bruno Haible.
40832
40833 2006-10-29  Bruno Haible  <bruno@clisp.org>
40834
40835         Make it compile in C++ mode.
40836         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40837         * lib/strnlen1.c (strnlen1): Cast memchr result.
40838         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40839         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40840         (create_temp_dir): Rename local variable 'template'.
40841         (compile_csharp_using_sscli): Add cast.
40842         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40843         * lib/findprog.c (find_in_path): Likewise.
40844         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40845         * lib/wait-process.c (register_slave_subprocess): Likewise.
40846
40847 2006-10-22  Bruno Haible  <bruno@clisp.org>
40848
40849         * modules/tsearch: New file.
40850         * lib/tsearch.h: New file.
40851         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40852         * m4/tsearch.m4: New file.
40853         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40854
40855 2006-10-29  Eric Blake  <ebb9@byu.net>
40856
40857         * lib/arcfour.c: Assume config.h.
40858         * lib/arctwo.c: Likewise.
40859         * lib/base64.c: Likewise.
40860         * lib/check-version.c: Likewise.
40861         * lib/crc.c: Likewise.
40862         * lib/des.c: Likewise.
40863         * lib/gc-gnulib.c: Likewise.
40864         * lib/gc-libgcrypt.c: Likewise.
40865         * lib/gc-pbkdf2-sha1.c: Likewise.
40866         * lib/getaddrinfo.c: Likewise.
40867         * lib/getdelim.c: Likewise.
40868         * lib/getline.c: Likewise.
40869         * lib/hmac-md5.c: Likewise.
40870         * lib/hmac-sha1.c: Likewise.
40871         * lib/iconvme.c: Likewise.
40872         * lib/md2.c: Likewise.
40873         * lib/md4.c: Likewise.
40874         * lib/memxor.c: Likewise.
40875         * lib/read-file.c: Likewise.
40876         * lib/readline.c: Likewise.
40877         * lib/rijndael-alg-fst.c: Likewise.
40878         * lib/rijndael-api-fst.c: Likewise.
40879         * lib/xgetdomainname.c: Likewise.
40880
40881 2006-10-28  Eric Blake  <ebb9@byu.net>
40882
40883         * lib/xstrndup.c: Assume config.h.
40884
40885 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40886
40887         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40888         stat-macros.h is now for our own macros, whereas stat_h is for
40889         macros in the <sys/stat.h> name space.
40890         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40891         (STAT_MACROS_H): Remove.
40892         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40893         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40894         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40895         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40896         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40897         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40898         Move these macros to ...
40899         * lib/stat_.h: here.  Don't include stat-macros.h.
40900         * lib/canonicalize.c: Don't include stat-macros.h.
40901         * lib/chown.c: Likewise.
40902         * lib/euidaccess.c: Likewise.
40903         * lib/file-type.c: Likewise.
40904         * lib/filemode.c: Likewise.
40905         * lib/glob.c: Likewise.
40906         * lib/isapipe.c: Likewise.
40907         * lib/lchown.c: Likewise.
40908         * lib/lstat.c: Likewise.
40909         * lib/mkdir-p.c: Likewise.
40910         * lib/rmdir.c: Likewise.
40911         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40912         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40913         unless mkdir isn't declared, to speed up 'configure'.
40914         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40915         would define all the S_* symbols.
40916         * modules/canonicalize (Depends-on):
40917         Depend on sys_stat, not stat-macros.
40918         * modules/chown: Likewise.
40919         * modules/euidaccess: Likewise.
40920         * modules/filemode: Likewise.
40921         * modules/file-type: Likewise.
40922         * modules/glob: Likewise.
40923         * modules/isapipe: Likewise.
40924         * modules/lchown: Likewise.
40925         * modules/lstat: Likewise.
40926         * modules/mkancesdirs: Likewise.
40927         * modules/rmdir: Likewise.
40928         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40929         * modules/modechange: Likewise.
40930         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40931         (configure.ac): Remove gl_STAT_MACROS.
40932         * modules/sys_stat (Depends-on): Remove stat-macros.
40933
40934 2006-10-27  Bruno Haible  <bruno@clisp.org>
40935
40936         * m4/signed.m4: Remove file.
40937         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40938         invocation.
40939         * modules/vasnprintf (Files): Remove m4/signed.m4.
40940
40941 2006-10-27  Bruno Haible  <bruno@clisp.org>
40942
40943         Update to GNU gettext 0.16.
40944         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40945         m4/inttypes-h.m4, m4/signed.m4.
40946         * m4/gettext.m4: Update to GNU gettext 0.16.
40947         * m4/intl.m4: New file, from GNU gettext.
40948         * m4/intldir.m4: New file, from GNU gettext.
40949         * config/srclist.txt: Update
40950
40951 2006-10-27  Eric Blake  <ebb9@byu.net>
40952
40953         * MODULES.html.sh: Document tempname.
40954         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40955         dependencies.
40956         (Files): Move lib/tempname.c...
40957         * modules/tempname: ...to this new module.
40958         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40959         (gl_PREREQ_TEMPNAME): Move...
40960         * m4/tempname.m4: ...to this new file.
40961         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40962         * modules/sys_stat (Depends-on): Add stat-macros.
40963         * lib/stat_.h (includes): Pick up stat macros.
40964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40965         if stat macros are broken.
40966         * lib/tempname.c (includes): No need to include "stat-macros.h".
40967         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40968         (direxists, __path_search) [!_LIBC]: Don't compile these in
40969         gnulib; the tmpdir module covers that.
40970         * lib/tempname.h: New file.
40971
40972 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40973
40974         * COPYING: Explain how gnulib-tool converts licence headers.
40975         Almost all wording by Eric Blake.
40976
40977 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40978
40979         * lib/mbchar.h (is_basic_table): Make read-only.
40980         * lib/mbchar.c (is_basic_table): Likewise.
40981         Reported by John Darrington.
40982
40983 2006-10-25  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/progname.h (set_program_name): Undefine before defining.
40986
40987 2006-10-25  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40990         false for non-gcc C++ compilers.
40991         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40992
40993 2006-10-24  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40996         iconv implementations like Irix iconv.
40997
40998 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40999
41000         * modules/vararrays: New file.
41001         * m4/vararrays.m4: New file, taken from diffutils.
41002         * MODULES.html.sh: New module vararrays.
41003
41004 2006-10-24  Karl Berry  <karl@gnu.org>
41005
41006         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41007         Don't call GNU Unix.
41008
41009 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41010
41011         * users.txt: Add Libtool.
41012
41013         Sync from Libtool:
41014
41015         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41016
41017         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41018         to gnulib's policy of including config.h unconditionally.
41019
41020 2006-10-24  Bruno Haible  <bruno@clisp.org>
41021
41022         * modules/wcwidth (Files): Add m4/wint_t.m4.
41023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41024         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41025
41026 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41027
41028         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41029         to pacify GCC with some -W flags enabled.  Problem reported by
41030         Bruno Haible.
41031
41032 2006-10-24  Jim Meyering  <jim@meyering.net>
41033
41034         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41035         Reported by Karl Berry.
41036
41037 2006-10-23  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41040
41041 2006-10-24  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/gl_list.h: Use C comment style, not C++ comment style.
41044
41045 2006-10-23  Eric Blake  <ebb9@byu.net>
41046
41047         * lib/getaddrinfo.c (includes): Add missing include.
41048
41049 2006-10-23  Bruno Haible  <bruno@clisp.org>
41050             Paul Eggert  <eggert@cs.ucla.edu>
41051
41052         Ability to rename obstack_free.
41053         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41054         obstack_free.
41055         (obstack_free): Invoke the __obstack_free macro.
41056         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41057
41058 2006-10-23  Bruno Haible  <bruno@clisp.org>
41059             Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41062         __argc, __argv from the declaration. (They are defined as macros on
41063         mingw.)
41064
41065 2006-10-22  Bruno Haible  <bruno@clisp.org>
41066
41067         * doc/gnulib-intro.texi: New file.
41068         * doc/gnulib.texi: Include it.
41069
41070 2006-10-21  Bruno Haible  <bruno@clisp.org>
41071
41072         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41073         "Introduction", "Miscellanous Notes", "Particular Modules".
41074
41075 2006-10-21  Bruno Haible  <bruno@clisp.org>
41076
41077         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41078         Change mostlyclean-local rule to avoid sh syntax error from bash
41079         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41080
41081 2006-10-23  Jim Meyering  <jim@meyering.net>
41082
41083         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41084         in place of snprintf.
41085
41086         * modules/inttostr (Files): Add lib/uinttostr.c.
41087         * lib/uinttostr.c (inttostr): New file/function.
41088         * lib/inttostr.h (uinttostr): Declare.
41089         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41090         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41091         Add uinttostr.
41092         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41093
41094 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41095
41096         * lib/canonicalize.c (ELOOP): Define if not already defined.
41097         Problem reported by Bruno Haible in
41098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41099
41100 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41101
41102         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41103         Problem reported by Perry Smith and Ville Laurikari.
41104
41105         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41106         uses.
41107
41108 2006-10-19  Bruno Haible  <bruno@clisp.org>
41109
41110         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41111         for mingw.
41112
41113 2006-10-19  Bruno Haible  <bruno@clisp.org>
41114
41115         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41116         Needed for mingw.
41117
41118 2006-10-19  Bruno Haible  <bruno@clisp.org>
41119
41120         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41121
41122 2006-10-19  Bruno Haible  <bruno@clisp.org>
41123
41124         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41125         it.
41126
41127 2006-10-19  Bruno Haible  <bruno@clisp.org>
41128
41129         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41130         invocation.
41131
41132 2006-10-19  Bruno Haible  <bruno@clisp.org>
41133
41134         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41135         mountlist by default.
41136
41137 2006-10-16  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/c-strstr.c: Include c-strstr.h.
41140
41141 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41142
41143         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41144         in a slash.
41145
41146 2006-10-18  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/lock.h [C++]: Wrap definitions in extern "C".
41149
41150 2006-10-18  Bruno Haible  <bruno@clisp.org>
41151
41152         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41153         gl_LIBOBJS list.
41154
41155 2006-10-18  Bruno Haible  <bruno@clisp.org>
41156
41157         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41158
41159 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41160
41161         * lib/xstrtol.h: Include gettext.h.
41162         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41163         Problem reported by Eric Blake.
41164         * modules/xstrtol (Depends-on): Add gettext-h.
41165
41166 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41167
41168         * lib/strftime.c (advance): New macro.
41169         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41170         incomplete type, so you can't add 0 to it.  Problem and patch
41171         reported by Eelco Dolstra for dietlibc.
41172
41173 2006-10-18  Jim Meyering  <jim@meyering.net>
41174
41175         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41176         type for a local, and rename it: s/up/user_proc/.
41177
41178 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41179
41180         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41181         READ_UTMP_USER_PROCESS.
41182         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41183
41184 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41185
41186         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41187         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41188
41189 2006-10-17  Eric Blake  <ebb9@byu.net>
41190
41191         * lib/sigprocmask.c (sigprocmask): Fix typo.
41192
41193         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41194
41195         * modules/clean-temp (Makefile.am): Don't add to make output...
41196         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41197         config.h.
41198
41199 2006-10-17  Bruno Haible  <bruno@clisp.org>
41200
41201         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41202         differently if DEFAULT_TEXT_DOMAIN is set.
41203
41204 2006-10-16  Bruno Haible  <bruno@clisp.org>
41205
41206         * lib/clean-temp.c: Include fwriteerror.h.
41207
41208 2006-10-16  Bruno Haible  <bruno@clisp.org>
41209
41210         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41211
41212 2006-10-16  Bruno Haible  <bruno@clisp.org>
41213
41214         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41215         * lib/sigprocmask.h: Include <sys/types.h>.
41216         (sigset_t): Use the system's definition if present.
41217
41218 2006-10-17  Eric Blake  <ebb9@byu.net>
41219
41220         * lib/xvasprintf.c (includes): Assume config.h.
41221         * lib/xasprintf.c (includes): Likewise.
41222
41223 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41224
41225         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41226         at least as wide as intmax_t.
41227
41228 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41229
41230         (Imported from Automake.)
41231         * build-aux/gnupload: Update to version 1.1 of directive file.
41232
41233 2006-10-16  Eric Blake  <ebb9@byu.net>
41234
41235         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41236         match Automake 1.10a.
41237
41238 2006-10-14  Bruno Haible  <bruno@clisp.org>
41239
41240         * modules/sigprocmask: New file.
41241         * lib/sigprocmask.h: New file.
41242         * lib/sigprocmask.c: New file.
41243         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41244         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41245         request sigprocmask.o.
41246         (gl_PREREQ_SIGPROCMASK): New macro.
41247         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41248         (Depends-on): Add sigprocmask.
41249         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41250         gt_SIGNALBLOCKING. Test for 'raise' only once.
41251         * lib/fatal-signal.c: Include sigprocmask.h.
41252         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41253         unblock_fatal_signals): Define always.
41254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41255         sigprocmask.
41256
41257 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41258
41259         Sync from Automake.
41260         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41261         which incorrectly sets the mode of an existing destination
41262         directory.  In some cases the unpatched install-sh could do the
41263         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41264         system.  We hope this is rare in practice, but it's clearly worth
41265         fixing.  Problem reported by Alex Unleashed in
41266         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41267         Also, don't bother to check for -m bugs unless we're using -m;
41268         suggested by Stepan Kasal.
41269
41270 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41271
41272         Sync from Automake.
41273         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41274         `-c' flag, so they appear at the same position as in %FASTDEP%
41275         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41276         which ignores unknown options only after the first non-option.
41277         Bug report against M4 by Nelson H. F. Beebe.
41278
41279 2006-10-13  Jim Meyering  <jim@meyering.net>
41280
41281         Fix a bug in yesterday's change.
41282         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41283         p->fts_statp->st_dev would be used uninitialized.
41284         Ensures that we always call fts_stat on the very first entry.
41285         Miklos Szeredi reported that find -xdev stopped working.
41286
41287 2006-10-12  Bruno Haible  <bruno@clisp.org>
41288
41289         * gnulib-tool (func_get_automake_snippet): Append an automatically
41290         computed EXTRA_DIST augmentation.
41291         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41292         * modules/alloca-opt (Makefile.am): Likewise.
41293         * modules/allocsa (Makefile.am): Likewise.
41294         * modules/arcfour (Makefile.am): Likewise.
41295         * modules/arctwo (Makefile.am): Likewise.
41296         * modules/argmatch (Makefile.am): Likewise.
41297         * modules/argz (Makefile.am): Likewise.
41298         * modules/atexit (Makefile.am): Likewise.
41299         * modules/backupfile (Makefile.am): Likewise.
41300         * modules/byteswap (Makefile.am): Likewise.
41301         * modules/c-strtod (Makefile.am): Likewise.
41302         * modules/c-strtold (Makefile.am): Likewise.
41303         * modules/calloc (Makefile.am): Likewise.
41304         * modules/canon-host (Makefile.am): Likewise.
41305         * modules/canonicalize (Makefile.am): Likewise.
41306         * modules/chdir-long (Makefile.am): Likewise.
41307         * modules/chdir-safer (Makefile.am): Likewise.
41308         * modules/check-version (Makefile.am): Likewise.
41309         * modules/chown (Makefile.am): Likewise.
41310         * modules/cloexec (Makefile.am): Likewise.
41311         * modules/close-stream (Makefile.am): Likewise.
41312         * modules/closeout (Makefile.am): Likewise.
41313         * modules/crc (Makefile.am): Likewise.
41314         * modules/csharpexec (Makefile.am): Likewise.
41315         * modules/cycle-check (Makefile.am): Likewise.
41316         * modules/des (Makefile.am): Likewise.
41317         * modules/dev-ino (Makefile.am): Likewise.
41318         * modules/dirfd (Makefile.am): Likewise.
41319         * modules/dirname (Makefile.am): Likewise.
41320         * modules/dup2 (Makefile.am): Likewise.
41321         * modules/eealloc (Makefile.am): Likewise.
41322         * modules/error (Makefile.am): Likewise.
41323         * modules/euidaccess (Makefile.am): Likewise.
41324         * modules/exclude (Makefile.am): Likewise.
41325         * modules/exitfail (Makefile.am): Likewise.
41326         * modules/fcntl-safer (Makefile.am): Likewise.
41327         * modules/fcntl (Makefile.am): Likewise.
41328         * modules/file-type (Makefile.am): Likewise.
41329         * modules/fileblocks (Makefile.am): Likewise.
41330         * modules/filemode (Makefile.am): Likewise.
41331         * modules/filenamecat (Makefile.am): Likewise.
41332         * modules/fnmatch (Makefile.am): Likewise.
41333         * modules/fopen-safer (Makefile.am): Likewise.
41334         * modules/fpending (Makefile.am): Likewise.
41335         * modules/fprintftime (Makefile.am): Likewise.
41336         * modules/free (Makefile.am): Likewise.
41337         * modules/fsusage (Makefile.am): Likewise.
41338         * modules/ftruncate (Makefile.am): Likewise.
41339         * modules/fts (Makefile.am): Likewise.
41340         * modules/gc-arcfour (Makefile.am): Likewise.
41341         * modules/gc-des (Makefile.am): Likewise.
41342         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41343         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41344         * modules/gc-md4 (Makefile.am): Likewise.
41345         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41346         * modules/gc-sha1 (Makefile.am): Likewise.
41347         * modules/gc (Makefile.am): Likewise.
41348         * modules/getaddrinfo (Makefile.am): Likewise.
41349         * modules/getcwd (Makefile.am): Likewise.
41350         * modules/getdelim (Makefile.am): Likewise.
41351         * modules/getdomainname (Makefile.am): Likewise.
41352         * modules/getgroups (Makefile.am): Likewise.
41353         * modules/gethostname (Makefile.am): Likewise.
41354         * modules/gethrxtime (Makefile.am): Likewise.
41355         * modules/getline (Makefile.am): Likewise.
41356         * modules/getloadavg (Makefile.am): Likewise.
41357         * modules/getlogin_r (Makefile.am): Likewise.
41358         * modules/getndelim2 (Makefile.am): Likewise.
41359         * modules/getopt (Makefile.am): Likewise.
41360         * modules/getpagesize (Makefile.am): Likewise.
41361         * modules/getpass-gnu (Makefile.am): Likewise.
41362         * modules/getpass (Makefile.am): Likewise.
41363         * modules/getsubopt (Makefile.am): Likewise.
41364         * modules/gettime (Makefile.am): Likewise.
41365         * modules/gettimeofday (Makefile.am): Likewise.
41366         * modules/getugroups (Makefile.am): Likewise.
41367         * modules/getusershell (Makefile.am): Likewise.
41368         * modules/glob (Makefile.am): Likewise.
41369         * modules/group-member (Makefile.am): Likewise.
41370         * modules/hard-locale (Makefile.am): Likewise.
41371         * modules/hash (Makefile.am): Likewise.
41372         * modules/hmac-md5 (Makefile.am): Likewise.
41373         * modules/hmac-sha1 (Makefile.am): Likewise.
41374         * modules/human (Makefile.am): Likewise.
41375         * modules/idcache (Makefile.am): Likewise.
41376         * modules/imaxabs (Makefile.am): Likewise.
41377         * modules/imaxdiv (Makefile.am): Likewise.
41378         * modules/inet_ntop (Makefile.am): Likewise.
41379         * modules/inet_pton (Makefile.am): Likewise.
41380         * modules/intprops (Makefile.am): Likewise.
41381         * modules/inttostr (Makefile.am): Likewise.
41382         * modules/inttypes (Makefile.am): Likewise.
41383         * modules/isapipe (Makefile.am): Likewise.
41384         * modules/javaversion (Makefile.am): Likewise.
41385         * modules/lchmod (Makefile.am): Likewise.
41386         * modules/lchown (Makefile.am): Likewise.
41387         * modules/localcharset (Makefile.am): Likewise.
41388         * modules/long-options (Makefile.am): Likewise.
41389         * modules/lstat (Makefile.am): Likewise.
41390         * modules/malloc (Makefile.am): Likewise.
41391         * modules/mathl (Makefile.am): Likewise.
41392         * modules/mbchar (Makefile.am): Likewise.
41393         * modules/md2 (Makefile.am): Likewise.
41394         * modules/md4 (Makefile.am): Likewise.
41395         * modules/md5 (Makefile.am): Likewise.
41396         * modules/memcasecmp (Makefile.am): Likewise.
41397         * modules/memchr (Makefile.am): Likewise.
41398         * modules/memcmp (Makefile.am): Likewise.
41399         * modules/memcoll (Makefile.am): Likewise.
41400         * modules/memcpy (Makefile.am): Likewise.
41401         * modules/memmem (Makefile.am): Likewise.
41402         * modules/memmove (Makefile.am): Likewise.
41403         * modules/mempcpy (Makefile.am): Likewise.
41404         * modules/memrchr (Makefile.am): Likewise.
41405         * modules/memset (Makefile.am): Likewise.
41406         * modules/memxor (Makefile.am): Likewise.
41407         * modules/mkancesdirs (Makefile.am): Likewise.
41408         * modules/mkdir-p (Makefile.am): Likewise.
41409         * modules/mkdir (Makefile.am): Likewise.
41410         * modules/mkdtemp (Makefile.am): Likewise.
41411         * modules/mkstemp (Makefile.am): Likewise.
41412         * modules/mktime (Makefile.am): Likewise.
41413         * modules/modechange (Makefile.am): Likewise.
41414         * modules/mountlist (Makefile.am): Likewise.
41415         * modules/nanosleep (Makefile.am): Likewise.
41416         * modules/obstack (Makefile.am): Likewise.
41417         * modules/openat (Makefile.am): Likewise.
41418         * modules/pagealign_alloc (Makefile.am): Likewise.
41419         * modules/pathmax (Makefile.am): Likewise.
41420         * modules/physmem (Makefile.am): Likewise.
41421         * modules/poll (Makefile.am): Likewise.
41422         * modules/posixtm (Makefile.am): Likewise.
41423         * modules/posixver (Makefile.am): Likewise.
41424         * modules/putenv (Makefile.am): Likewise.
41425         * modules/quote (Makefile.am): Likewise.
41426         * modules/quotearg (Makefile.am): Likewise.
41427         * modules/raise (Makefile.am): Likewise.
41428         * modules/read-file (Makefile.am): Likewise.
41429         * modules/readline (Makefile.am): Likewise.
41430         * modules/readlink (Makefile.am): Likewise.
41431         * modules/readtokens (Makefile.am): Likewise.
41432         * modules/readutmp (Makefile.am): Likewise.
41433         * modules/realloc (Makefile.am): Likewise.
41434         * modules/regex (Makefile.am): Likewise.
41435         * modules/rename-dest-slash (Makefile.am): Likewise.
41436         * modules/rename (Makefile.am): Likewise.
41437         * modules/rijndael (Makefile.am): Likewise.
41438         * modules/rmdir (Makefile.am): Likewise.
41439         * modules/rpmatch (Makefile.am): Likewise.
41440         * modules/safe-read (Makefile.am): Likewise.
41441         * modules/safe-write (Makefile.am): Likewise.
41442         * modules/same-inode (Makefile.am): Likewise.
41443         * modules/same (Makefile.am): Likewise.
41444         * modules/save-cwd (Makefile.am): Likewise.
41445         * modules/savedir (Makefile.am): Likewise.
41446         * modules/setenv (Makefile.am): Likewise.
41447         * modules/settime (Makefile.am): Likewise.
41448         * modules/sha1 (Makefile.am): Likewise.
41449         * modules/sig2str (Makefile.am): Likewise.
41450         * modules/snprintf (Makefile.am): Likewise.
41451         * modules/stat-macros (Makefile.am): Likewise.
41452         * modules/stat-time (Makefile.am): Likewise.
41453         * modules/stdbool (Makefile.am): Likewise.
41454         * modules/stdint (Makefile.am): Likewise.
41455         * modules/stdlib-safer (Makefile.am): Likewise.
41456         * modules/stpcpy (Makefile.am): Likewise.
41457         * modules/stpncpy (Makefile.am): Likewise.
41458         * modules/strcase (Makefile.am): Likewise.
41459         * modules/strcasestr (Makefile.am): Likewise.
41460         * modules/strchrnul (Makefile.am): Likewise.
41461         * modules/strcspn (Makefile.am): Likewise.
41462         * modules/strdup (Makefile.am): Likewise.
41463         * modules/strerror (Makefile.am): Likewise.
41464         * modules/strftime (Makefile.am): Likewise.
41465         * modules/strndup (Makefile.am): Likewise.
41466         * modules/strnlen (Makefile.am): Likewise.
41467         * modules/strpbrk (Makefile.am): Likewise.
41468         * modules/strsep (Makefile.am): Likewise.
41469         * modules/strstr (Makefile.am): Likewise.
41470         * modules/strtod (Makefile.am): Likewise.
41471         * modules/strtoimax (Makefile.am): Likewise.
41472         * modules/strtok_r (Makefile.am): Likewise.
41473         * modules/strtol (Makefile.am): Likewise.
41474         * modules/strtoll (Makefile.am): Likewise.
41475         * modules/strtoul (Makefile.am): Likewise.
41476         * modules/strtoull (Makefile.am): Likewise.
41477         * modules/strtoumax (Makefile.am): Likewise.
41478         * modules/strverscmp (Makefile.am): Likewise.
41479         * modules/sys_socket (Makefile.am): Likewise.
41480         * modules/sys_stat (Makefile.am): Likewise.
41481         * modules/sysexits (Makefile.am): Likewise.
41482         * modules/time_r (Makefile.am): Likewise.
41483         * modules/timegm (Makefile.am): Likewise.
41484         * modules/timespec (Makefile.am): Likewise.
41485         * modules/tmpfile-safer (Makefile.am): Likewise.
41486         * modules/trim (Makefile.am): Likewise.
41487         * modules/unistd-safer (Makefile.am): Likewise.
41488         * modules/unlinkdir (Makefile.am): Likewise.
41489         * modules/unlocked-io (Makefile.am): Likewise.
41490         * modules/userspec (Makefile.am): Likewise.
41491         * modules/utime (Makefile.am): Likewise.
41492         * modules/utimecmp (Makefile.am): Likewise.
41493         * modules/utimens (Makefile.am): Likewise.
41494         * modules/vasnprintf (Makefile.am): Likewise.
41495         * modules/vasprintf (Makefile.am): Likewise.
41496         * modules/vsnprintf (Makefile.am): Likewise.
41497         * modules/xalloc (Makefile.am): Likewise.
41498         * modules/xgetcwd (Makefile.am): Likewise.
41499         * modules/xnanosleep (Makefile.am): Likewise.
41500         * modules/xreadlink (Makefile.am): Likewise.
41501         * modules/xstrtod (Makefile.am): Likewise.
41502         * modules/xstrtol (Makefile.am): Likewise.
41503         * modules/xstrtold (Makefile.am): Likewise.
41504         * modules/yesno (Makefile.am): Likewise.
41505         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41506
41507 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41508
41509         * modules/error (Makefile.am): Distribute files through
41510         EXTRA_DIST, not lib_SOURCES.
41511
41512 2006-10-12  Eric Blake  <ebb9@byu.net>
41513
41514         * modules/error (Makefile.am): Distribute files in /lib.
41515         * modules/obstack (Makefile.am): Likewise.
41516
41517 2006-10-12  Bruno Haible  <bruno@clisp.org>
41518
41519         * modules/acl (Makefile.am): Distribute all files in lib/ through
41520         EXTRA_DIST.
41521         * modules/arcfour (Makefile.am): Likewise.
41522         * modules/arctwo (Makefile.am): Likewise.
41523         * modules/argmatch (Makefile.am): Likewise.
41524         * modules/argz (Makefile.am): Likewise.
41525         * modules/atexit (Makefile.am): Likewise.
41526         * modules/backupfile (Makefile.am): Likewise.
41527         * modules/c-strtod (Makefile.am): Likewise.
41528         * modules/c-strtold (Makefile.am): Likewise.
41529         * modules/calloc (Makefile.am): Likewise.
41530         * modules/canon-host (Makefile.am): Likewise.
41531         * modules/canonicalize (Makefile.am): Likewise.
41532         * modules/chdir-long (Makefile.am): Likewise.
41533         * modules/chdir-safer (Makefile.am): Likewise.
41534         * modules/check-version (Makefile.am): Likewise.
41535         * modules/chown (Makefile.am): Likewise.
41536         * modules/cloexec (Makefile.am): Likewise.
41537         * modules/close-stream (Makefile.am): Likewise.
41538         * modules/closeout (Makefile.am): Likewise.
41539         * modules/crc (Makefile.am): Likewise.
41540         * modules/cycle-check (Makefile.am): Likewise.
41541         * modules/des (Makefile.am): Likewise.
41542         * modules/dirfd (Makefile.am): Likewise.
41543         * modules/dirname (Makefile.am): Likewise.
41544         * modules/dup2 (Makefile.am): Likewise.
41545         * modules/euidaccess (Makefile.am): Likewise.
41546         * modules/exclude (Makefile.am): Likewise.
41547         * modules/exitfail (Makefile.am): Likewise.
41548         * modules/fcntl-safer (Makefile.am): Likewise.
41549         * modules/file-type (Makefile.am): Likewise.
41550         * modules/fileblocks (Makefile.am): Likewise.
41551         * modules/filemode (Makefile.am): Likewise.
41552         * modules/filenamecat (Makefile.am): Likewise.
41553         * modules/fnmatch (Makefile.am): Likewise.
41554         * modules/fopen-safer (Makefile.am): Likewise.
41555         * modules/fpending (Makefile.am): Likewise.
41556         * modules/fprintftime (Makefile.am): Likewise.
41557         * modules/free (Makefile.am): Likewise.
41558         * modules/fsusage (Makefile.am): Likewise.
41559         * modules/ftruncate (Makefile.am): Likewise.
41560         * modules/fts (Makefile.am): Likewise.
41561         * modules/gc (Makefile.am): Likewise.
41562         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41563         * modules/getaddrinfo (Makefile.am): Likewise.
41564         * modules/getcwd (Makefile.am): Likewise.
41565         * modules/getdelim (Makefile.am): Likewise.
41566         * modules/getdomainname (Makefile.am): Likewise.
41567         * modules/getgroups (Makefile.am): Likewise.
41568         * modules/gethostname (Makefile.am): Likewise.
41569         * modules/gethrxtime (Makefile.am): Likewise.
41570         * modules/getline (Makefile.am): Likewise.
41571         * modules/getloadavg (Makefile.am): Likewise.
41572         * modules/getlogin_r (Makefile.am): Likewise.
41573         * modules/getopt (Makefile.am): Likewise.
41574         * modules/getpass (Makefile.am): Likewise.
41575         * modules/getpass-gnu (Makefile.am): Likewise.
41576         * modules/getsubopt (Makefile.am): Likewise.
41577         * modules/gettime (Makefile.am): Likewise.
41578         * modules/gettimeofday (Makefile.am): Likewise.
41579         * modules/getugroups (Makefile.am): Likewise.
41580         * modules/getusershell (Makefile.am): Likewise.
41581         * modules/glob (Makefile.am): Likewise.
41582         * modules/group-member (Makefile.am): Likewise.
41583         * modules/hard-locale (Makefile.am): Likewise.
41584         * modules/hash (Makefile.am): Likewise.
41585         * modules/hmac-md5 (Makefile.am): Likewise.
41586         * modules/hmac-sha1 (Makefile.am): Likewise.
41587         * modules/human (Makefile.am): Likewise.
41588         * modules/idcache (Makefile.am): Likewise.
41589         * modules/imaxabs (Makefile.am): Likewise.
41590         * modules/imaxdiv (Makefile.am): Likewise.
41591         * modules/inet_ntop (Makefile.am): Likewise.
41592         * modules/inet_pton (Makefile.am): Likewise.
41593         * modules/inttostr (Makefile.am): Likewise.
41594         * modules/isapipe (Makefile.am): Likewise.
41595         * modules/lchown (Makefile.am): Likewise.
41596         * modules/long-options (Makefile.am): Likewise.
41597         * modules/lstat (Makefile.am): Likewise.
41598         * modules/malloc (Makefile.am): Likewise.
41599         * modules/mathl (Makefile.am): Likewise.
41600         * modules/mbchar (Makefile.am): Likewise.
41601         * modules/md2 (Makefile.am): Likewise.
41602         * modules/md4 (Makefile.am): Likewise.
41603         * modules/md5 (Makefile.am): Likewise.
41604         * modules/memcasecmp (Makefile.am): Likewise.
41605         * modules/memchr (Makefile.am): Likewise.
41606         * modules/memcmp (Makefile.am): Likewise.
41607         * modules/memcoll (Makefile.am): Likewise.
41608         * modules/memcpy (Makefile.am): Likewise.
41609         * modules/memmem (Makefile.am): Likewise.
41610         * modules/memmove (Makefile.am): Likewise.
41611         * modules/mempcpy (Makefile.am): Likewise.
41612         * modules/memrchr (Makefile.am): Likewise.
41613         * modules/memset (Makefile.am): Likewise.
41614         * modules/memxor (Makefile.am): Likewise.
41615         * modules/mkancesdirs (Makefile.am): Likewise.
41616         * modules/mkdir (Makefile.am): Likewise.
41617         * modules/mkdir-p (Makefile.am): Likewise.
41618         * modules/mkdtemp (Makefile.am): Likewise.
41619         * modules/mkstemp (Makefile.am): Likewise.
41620         * modules/mktime (Makefile.am): Likewise.
41621         * modules/modechange (Makefile.am): Likewise.
41622         * modules/mountlist (Makefile.am): Likewise.
41623         * modules/nanosleep (Makefile.am): Likewise.
41624         * modules/openat (Makefile.am): Likewise.
41625         * modules/pagealign_alloc (Makefile.am): Likewise.
41626         * modules/physmem (Makefile.am): Likewise.
41627         * modules/poll (Makefile.am): Likewise.
41628         * modules/posixtm (Makefile.am): Likewise.
41629         * modules/posixver (Makefile.am): Likewise.
41630         * modules/putenv (Makefile.am): Likewise.
41631         * modules/quote (Makefile.am): Likewise.
41632         * modules/quotearg (Makefile.am): Likewise.
41633         * modules/raise (Makefile.am): Likewise.
41634         * modules/read-file (Makefile.am): Likewise.
41635         * modules/readline (Makefile.am): Likewise.
41636         * modules/readlink (Makefile.am): Likewise.
41637         * modules/readtokens (Makefile.am): Likewise.
41638         * modules/readutmp (Makefile.am): Likewise.
41639         * modules/realloc (Makefile.am): Likewise.
41640         * modules/regex (Makefile.am): Likewise.
41641         * modules/rename (Makefile.am): Likewise.
41642         * modules/rename-dest-slash (Makefile.am): Likewise.
41643         * modules/rijndael (Makefile.am): Likewise.
41644         * modules/rmdir (Makefile.am): Likewise.
41645         * modules/rpmatch (Makefile.am): Likewise.
41646         * modules/safe-read (Makefile.am): Likewise.
41647         * modules/safe-write (Makefile.am): Likewise.
41648         * modules/same (Makefile.am): Likewise.
41649         * modules/save-cwd (Makefile.am): Likewise.
41650         * modules/savedir (Makefile.am): Likewise.
41651         * modules/setenv (Makefile.am): Likewise.
41652         * modules/settime (Makefile.am): Likewise.
41653         * modules/sha1 (Makefile.am): Likewise.
41654         * modules/sig2str (Makefile.am): Likewise.
41655         * modules/snprintf (Makefile.am): Likewise.
41656         * modules/stdlib-safer (Makefile.am): Likewise.
41657         * modules/stpcpy (Makefile.am): Likewise.
41658         * modules/stpncpy (Makefile.am): Likewise.
41659         * modules/strcase (Makefile.am): Likewise.
41660         * modules/strcasestr (Makefile.am): Likewise.
41661         * modules/strchrnul (Makefile.am): Likewise.
41662         * modules/strcspn (Makefile.am): Likewise.
41663         * modules/strdup (Makefile.am): Likewise.
41664         * modules/strerror (Makefile.am): Likewise.
41665         * modules/strftime (Makefile.am): Likewise.
41666         * modules/strndup (Makefile.am): Likewise.
41667         * modules/strnlen (Makefile.am): Likewise.
41668         * modules/strpbrk (Makefile.am): Likewise.
41669         * modules/strsep (Makefile.am): Likewise.
41670         * modules/strstr (Makefile.am): Likewise.
41671         * modules/strtod (Makefile.am): Likewise.
41672         * modules/strtoimax (Makefile.am): Likewise.
41673         * modules/strtok_r (Makefile.am): Likewise.
41674         * modules/strtol (Makefile.am): Likewise.
41675         * modules/strtoll (Makefile.am): Likewise.
41676         * modules/strtoul (Makefile.am): Likewise.
41677         * modules/strtoull (Makefile.am): Likewise.
41678         * modules/strtoumax (Makefile.am): Likewise.
41679         * modules/strverscmp (Makefile.am): Likewise.
41680         * modules/time_r (Makefile.am): Likewise.
41681         * modules/timegm (Makefile.am): Likewise.
41682         * modules/tmpfile-safer (Makefile.am): Likewise.
41683         * modules/unistd-safer (Makefile.am): Likewise.
41684         * modules/unlinkdir (Makefile.am): Likewise.
41685         * modules/userspec (Makefile.am): Likewise.
41686         * modules/utime (Makefile.am): Likewise.
41687         * modules/utimecmp (Makefile.am): Likewise.
41688         * modules/utimens (Makefile.am): Likewise.
41689         * modules/vasnprintf (Makefile.am): Likewise.
41690         * modules/vasprintf (Makefile.am): Likewise.
41691         * modules/vsnprintf (Makefile.am): Likewise.
41692         * modules/xalloc (Makefile.am): Likewise.
41693         * modules/xgetcwd (Makefile.am): Likewise.
41694         * modules/xnanosleep (Makefile.am): Likewise.
41695         * modules/xreadlink (Makefile.am): Likewise.
41696         * modules/xstrtod (Makefile.am): Likewise.
41697         * modules/xstrtol (Makefile.am): Likewise.
41698         * modules/xstrtold (Makefile.am): Likewise.
41699         * modules/yesno (Makefile.am): Likewise.
41700
41701 2006-10-12  Jim Meyering  <jim@meyering.net>
41702
41703         * m4/getloadavg.m4: Revert the change below.
41704
41705         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41706         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41707         fail with a symlink, which is what coreutils' ./bootstrap now
41708         creates by default.
41709
41710 2006-10-12  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41713         mingw.
41714         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41715         MSVC and mingw explicitly.
41716
41717 2006-10-11  Simon Josefsson  <jas@extundo.com>
41718             Bruno Haible  <bruno@clisp.org>
41719
41720         Add support for multiple gnulib-tool invocations in the scope of a
41721         single configure.ac file.
41722         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41723         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41724         with the same contents as the _LIBADD variable.
41725         (func_emit_initmacro_start, func_emit_initmacro_end,
41726         func_emit_initmacro_done): New functions.
41727         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41728         gl_LIBOBJS and gl_LTLIBOBJS.
41729
41730 2006-10-11  Bruno Haible  <bruno@clisp.org>
41731
41732         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41733         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41734         autoreconf. Instead, invoke autopoint explicitly but move back the
41735         *.m4 files from gnulib.
41736
41737 2006-10-11  Bruno Haible  <bruno@clisp.org>
41738
41739         * gnulib-tool (func_usage): Make module names after --create-testdir
41740         optional.
41741         (func_create_testdir): If no module was specified, use nearly all
41742         modules.
41743
41744 2006-10-12  Jim Meyering  <jim@meyering.net>
41745
41746         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41747         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41748         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41749         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41750         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41751         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41752         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41753         (fts_set_stat_required): New function.
41754         (fts_open): Defer the calls to fts_stat, if possible or requested.
41755         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41756         into fts_stat itself.
41757         (fts_read): Perform any required (deferred) fts_stat call.
41758         (fts_build): Likewise, for the directory we're about to open and read.
41759         In the readdir loop, carefully decide whether each entry will require
41760         an eventual call to fts_stat, using dirent.d_type info if available.
41761         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41762         a command line argument into this function.  Update all callers.
41763         Map a return value of FTS_DOT to FTS_D for a command line argument.
41764         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41765         Thanks to Miklos Szeredi for his tenacity and for the initial
41766         bug report about "find" failing on a FUSE-based file system.
41767
41768         * lib/fts.c (fts_open): Use consistent indentation.
41769
41770 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41771
41772         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41773         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41774         reported by Jim Meyering.  All uses of cache variables renamed
41775         to match Autoconf's.
41776         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41777         the other one.
41778
41779         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41780         Fix misspelling in diagnostic.
41781
41782 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41785         defined.  Problem reported by Matthew Woehlke.
41786
41787         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41788         Add support for Tandem NonStop R series.
41789         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41790         Use new macro.
41791
41792         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41793         (has_trailing_slash): Omit size arg; all callers changed.
41794         Omit 'inline', since it doesn't help performance and we'd
41795         need to configure it.
41796         Don't count //, ///, etc. as having a trailing slash.
41797         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41798         (rpl_rename_dest_slash): On failure, use rename's errno rather
41799         than (in some cases) an incorrect or junk errno.
41800         Simplify code by removing need to compute length; this does
41801         cause it to make two passes instead of one over the file name,
41802         but it's worth it.
41803
41804         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41805         change, since Autoconf's version may no longer be appropriate now
41806         that we are using CVS Autoconf's version.  Add support for Tandem.
41807
41808 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41809             Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41812         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41813         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41814         gl_AC_TYPE_LONG_LONG.
41815
41816         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41817         instead of HAVE_LONG_LONG.
41818         * lib/printf-args.c (printf_fetchargs): Likewise.
41819         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41820         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41822         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41823         gl_AC_TYPE_LONG_LONG.
41824
41825 2006-10-11  Bruno Haible  <bruno@clisp.org>
41826
41827         * m4/longlong.m4: Add comments.
41828         * m4/ulonglong.m4: Likewise.
41829
41830 2006-10-10  Bruno Haible  <bruno@clisp.org>
41831
41832         Make it possible to #define stpcpy, strdup to aliases.
41833         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41834         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41835
41836 2006-10-10  Bruno Haible  <bruno@clisp.org>
41837
41838         Make it possible to #define gcd to an alias.
41839         * lib/gcd.c: Include config.h.
41840
41841 2006-10-10  Bruno Haible  <bruno@clisp.org>
41842
41843         Make it possible to #define c_isascii to an alias.
41844         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41845         defined. Undefine the macros before defining them, to avoid gcc
41846         warnings.
41847         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41848         define NO_C_CTYPE_MACROS early.
41849
41850 2006-10-10  Bruno Haible  <bruno@clisp.org>
41851
41852         Make it possible to #define set_program_name to an alias.
41853         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41854         ENABLE_RELOCATABLE early.
41855
41856 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41857
41858         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41859         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41860         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41861         More generally, don't assume that 64-bit signed int is available
41862         if unsigned int is, and vice versa.
41863         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41864         unsigned symbols, not on their signed counterparts.
41865         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41866         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41867         (UINT64_C, UINTMAX_C):
41868         Likewise.
41869         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41870         unsigned counterparts.
41871         (Have_long_long, Unsigned): New macros.
41872         (Int): Renamed from INT.
41873         (strtoimax): Use the new macros.
41874         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41875         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41876         * modules/inttypes (inttypes.h): Substitute
41877         HAVE_UNSIGNED_LONG_LONG_INT.
41878         * modules/stdint (stdint.h): Likewise.
41879         (Files): Add m4/ulonglong.m4.
41880
41881 2006-10-10  Bruno Haible  <bruno@clisp.org>
41882
41883         Fix a gcc -Wshadow warning.
41884         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41885         to 'bucket'.
41886         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41887         gl_linked_indexof_from_to): Likewise.
41888         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41889         Likewise.
41890         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41891         Likewise.
41892         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41893         Reported by Eric Blake.
41894
41895 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41896
41897         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41898         for NetBSD.  Problem reported by Bruno Haible.
41899
41900 2006-10-09  Jim Meyering  <jim@meyering.net>
41901
41902         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41903         Patch from Bruno Haible.
41904
41905 2006-10-09  Jim Meyering  <jim@meyering.net>
41906
41907         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41908         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41909         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41910
41911 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41912
41913         Don't include <config.h> twice; this doesn't work in some cases,
41914         e.g., when config.h has "#define intmax_t long long int" and
41915         we include <config.h>, <inttypes.h>, <config.h> in that order.
41916         Problem reported by Matthew Woehlke in:
41917         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41918         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41919         * lib/fts-cycle.c: Don't include config.h.
41920         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41921         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41922         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41923         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41924         inttypes.h.
41925         * lib/xstrtoumax.c: Likewise.
41926         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41927         __strtol and the like, so that this module is more like its siblings.
41928         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41929         Remove; no longer needed now that we assume gnulib inttypes.h.
41930
41931 2006-10-08  Bruno Haible  <bruno@clisp.org>
41932
41933         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41934         option.
41935
41936 2006-10-07  Jim Meyering  <jim@meyering.net>
41937
41938         * modules/inttypes (inttypes.h): Revert what seems to have been
41939         an inadvertent part of today's change: use "|", not "/" in the
41940         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41941
41942 2006-10-07  Bruno Haible  <bruno@clisp.org>
41943
41944         * modules/sublist: New file.
41945
41946 2006-10-07  Bruno Haible  <bruno@clisp.org>
41947
41948         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41949         * modules/argz (argz.h): Likewise.
41950         * modules/arpa_inet (arpa/inet.h): Likewise.
41951         * modules/byteswap (byteswap.h): Likewise.
41952         * modules/configmake (configmake.h): Likewise.
41953         * modules/fcntl (fcntl.h): Likewise.
41954         * modules/fnmatch (fnmatch.h): Likewise.
41955         * modules/getopt (getopt.h): Likewise.
41956         * modules/glob (glob.h): Likewise.
41957         * modules/inttypes (inttypes.h): Likewise.
41958         * modules/netinet_in (netinet/in.h): Likewise.
41959         * modules/poll (poll.h): Likewise.
41960         * modules/stdbool (stdbool.h): Likewise.
41961         * modules/stdint (stdint.h): Likewise.
41962         * modules/sys_select (sys/select.h): Likewise.
41963         * modules/sys_socket (sys/socket.h): Likewise.
41964         * modules/sys_stat (sys/stat.h): Likewise.
41965         * modules/sysexits (sysexits.h): Likewise.
41966         * modules/unistd (unistd.h): Likewise.
41967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41968         Add a "DO NOT EDIT" comment to the generated file.
41969         (func_import): Likewise for gnulib-comp.m4.
41970
41971 2006-10-07  Bruno Haible  <bruno@clisp.org>
41972
41973         * lib/gl_sublist.h: New file.
41974         * lib/gl_sublist.c: New file.
41975
41976 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41977
41978         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41979         name (relative to the original working directory) and the file
41980         name component (relative to the temporary working directory).  All
41981         callers changed.
41982         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41983         * lib/mkdir-p.c (make_dir_parents): Likewise.
41984         * lib/mkdir-p.h (make_dir_parents): Likewise.
41985
41986 2006-10-06  Eric Blake  <ebb9@byu.net>
41987
41988         Define several macros for use by the clean-temp module.
41989         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41991         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41992
41993         * lib/clean-temp.h (close_stream_temp): New declaration.
41994         * lib/clean-temp.c (includes): Pull in headers according to what
41995         other modules are in use.
41996         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41997
41998 2006-10-06  Bruno Haible  <bruno@clisp.org>
41999
42000         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42001         instead of fopen, fwriteerror.
42002
42003 2006-10-06  Bruno Haible  <bruno@clisp.org>
42004
42005         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42006         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42007         int.
42008         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42009         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42010         Return an error indicator.
42011         Suggested by Eric Blake.
42012
42013 2006-10-06  Bruno Haible  <bruno@clisp.org>
42014
42015         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42016         Reported by Eric Blake.
42017
42018 2006-10-06  Bruno Haible  <bruno@clisp.org>
42019
42020         * modules/closeout (Description): Mention stderr too.
42021
42022 2006-10-06  Bruno Haible  <bruno@clisp.org>
42023         and Paul Eggert  <eggert@cs.ucla.edu>
42024
42025         * lib/closeout.c (close_stdout): Also close stderr.
42026         * lib/closeout.h: Update comment.
42027
42028 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42031         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42032         * lib/dirchownmod.c: Include lchown.h.
42033         * lib/lchown.c: Don't include files that lchown.h now includes.
42034         Don't declare chown, since lchown.h now does that.
42035         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42036         (lchown): Define to rpl_chown if lchown is declared but
42037         does not exist.  Declare using a prototype if lchown is not
42038         declared.  Add a copyright notice.
42039         * lib/mkstemp.h: Include <unistd.h>.
42040         * lib/openat.c: Include lchown.h.
42041
42042         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42043         we now test for that separately.
42044         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42045         rather than O_NOFOLLOW, when testing whether it's possible to
42046         avoid a race condition reliably.
42047         * lib/savewd.c (savewd_chdir): Likewise.
42048
42049         Remove macros that are no longer needed now that stdint.h is
42050         reliable.
42051         * lib/fsusage.c (UINTMAX_MAX): Remove.
42052         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42053         * lib/utimecmp.c (SIZE_MAX): Remove.
42054
42055         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42056
42057         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42058         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42059         O_NOATIME works.
42060
42061 2006-10-05  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/gl_list.h (gl_sortedlist_search_from_to,
42064         gl_sortedlist_indexof_from_to): New declarations.
42065         (gl_list_implementation): New fields sortedlist_search_from_to,
42066         sortedlist_indexof_from_to.
42067         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42068         inline functions.
42069         * lib/gl_list.c (gl_sortedlist_search_from_to,
42070         gl_sortedlist_indexof_from_to): New functions.
42071         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42072         function.
42073         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42074         (gl_array_sortedlist_search_from_to): New function.
42075         (gl_array_list_implementation): Update.
42076         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42077         function.
42078         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42079         (gl_carray_sortedlist_search_from_to): New function.
42080         (gl_carray_list_implementation): Update.
42081         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42082         gl_linked_sortedlist_indexof_from_to): New functions.
42083         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42084         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42085         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42086         gl_tree_sortedlist_indexof_from_to): New functions.
42087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42088         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42089         Update.
42090         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42091         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42092         Update.
42093
42094 2006-10-05  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42097         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42098         (struct gl_list_implementation): Add fields search_from_to,
42099         indexof_from_to. Remove fields search, indexof.
42100         (gl_list_search): Use the search_from_to method.
42101         (gl_list_search_from, gl_list_search_from_to): New functions.
42102         (gl_list_indexof): Use the indexof_from_to method.
42103         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42104         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42105         (gl_list_search_from, gl_list_search_from_to): New functions.
42106         (gl_list_indexof): Use the indexof_from_to method.
42107         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42108         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42109         gl_array_indexof. Add start_index, end_index arguments.
42110         (gl_array_search_from_to): Renamed from gl_array_search. Add
42111         start_index, end_index arguments.
42112         (gl_array_remove, gl_array_list_implementation): Update.
42113         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42114         gl_carray_indexof. Add start_index, end_index arguments.
42115         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42116         start_index, end_index arguments.
42117         (gl_carray_remove, gl_carray_list_implementation): Update.
42118         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42119         gl_linked_search. Add start_index, end_index arguments.
42120         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42121         start_index, end_index arguments.
42122         (gl_linked_remove): Update.
42123         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42124         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42125         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42126         field to 'size_t'.
42127         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42128         gl_tree_search. Add start_index, end_index arguments.
42129         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42130         start_index, end_index arguments.
42131         (gl_tree_remove): Update.
42132         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42133         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42134         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42135         function.
42136         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42137         gl_tree_search. Add start_index, end_index arguments.
42138         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42139         start_index, end_index arguments.
42140         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42141         Update.
42142         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42143
42144 2006-10-05  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42147
42148         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42149         fwriteerror_temp): New declarations.
42150         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42151         (descriptors): New variable.
42152         (cleanup): First, close the descriptors.
42153         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42154         fclose_temp, fwriteerror_temp): New functions.
42155
42156 2006-10-04  Jim Meyering  <jim@meyering.net>
42157
42158         * lib/fts.c (fts_open): Tiny comment change.
42159
42160 2006-10-04  Bruno Haible  <bruno@clisp.org>
42161
42162         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42163         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42164         gl_LOCK_BODY.
42165         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42166         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42167         gl_LOCK_EARLY_BODY.
42168         (gl_LOCK): Require gl_LOCK_BODY.
42169
42170 2006-10-04  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42173         (gl_oset_search_atleast): New declaration.
42174         (struct gl_oset_implementation): Add field 'search_atleast'.
42175         (gl_oset_search_atleast): New inline function.
42176         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42177         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42178         (gl_array_oset_implementation): Update.
42179         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42180         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42181         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42182
42183 2006-10-04  Bruno Haible  <bruno@clisp.org>
42184
42185         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42186
42187 2006-10-03  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42190         from gl_avltreehash_list_implementation.
42191
42192 2006-10-03  Bruno Haible  <bruno@clisp.org>
42193
42194         * lib/gl_oset.c (gl_oset_add): Fix return type.
42195
42196 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42197
42198         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42199
42200 2006-10-02  Eric Blake  <ebb9@byu.net>
42201
42202         * modules/strnlen (Depends-on): Add extensions.
42203
42204 2006-10-02  Eric Blake  <ebb9@byu.net>
42205
42206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42207         definition in 2.60+.
42208
42209 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42210
42211         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42212         checks.
42213
42214 2006-10-02  Bruno Haible  <bruno@clisp.org>
42215
42216         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42217         to the AUTOMAKE_OPTIONS.
42218         Reported by Jim Meyering.
42219
42220 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42221
42222         Work around bug in Solaris 10 /proc file system:
42223         /proc/self/fd/NNN/.. isn't the parent directory of
42224         the directory whose file descriptor is NNN.  This needs to
42225         be worked around at run time, not compile time, since a
42226         program might be built on Solaris 8, where things work, and
42227         run on Solaris 10.
42228         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42229         to use the following interface instead:
42230         (OPENAT_BUFFER_SIZE): New macro.
42231         (openat_proc_name): New function.
42232         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42233         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42234         Likewise.
42235         * lib/openat-proc.c: New file.
42236         * modules/openat (Files): Add lib/openat-proc.c.
42237         (Depends-on): Add same-inode, stdbool.
42238         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42239
42240 2006-09-29  Bruno Haible  <bruno@clisp.org>
42241
42242         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42243         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42244         argument. Set stdout_closed before testing for ferror, not after.
42245         (fwriteerror, fwriteerror_no_ebadf): New functions.
42246
42247 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42248
42249         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42250
42251 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42252
42253         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42254         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42255
42256 2006-09-28  Jim Meyering  <jim@meyering.net>
42257
42258         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42259         Include <unistd.h>.
42260
42261 2006-09-28  Bruno Haible  <bruno@clisp.org>
42262
42263         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42264         * modules/linkedhash-list (Depends-on): Likewise.
42265         * modules/rbtreehash-list (Depends-on): Likewise.
42266
42267 2006-09-28  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/strndup.h: Simplify the redefinition of strndup.
42270         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42272
42273 2006-09-28  Bruno Haible  <bruno@clisp.org>
42274
42275         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42276         * lib/gl_linkedhash_list.c: Likewise.
42277         * lib/gl_rbtreehash_list.c: Likewise.
42278
42279 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42280
42281         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42282         getaddrinfo.
42283
42284         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42285         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42286         it causes <stdio_ext.h> to cause a compile-time error.
42287         Problem reported by Nelson H. F. Beebe.
42288         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42289         of HAVE_DECL___PENDING.
42290
42291         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42292         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42293         declaration.
42294
42295 2006-09-27  Jim Meyering  <jim@meyering.net>
42296
42297         This file could end up with a definition for a function
42298         named __strndup, rather than rpl_strndup on a system with
42299         incomplete weak_alias support.
42300         * lib/strndup.c (strndup): Rename from __strndup.
42301         Remove #defines that used to map __strndup to strndup.
42302         Don't use K&R prototypes.
42303         Remove LIBC-related code, since this file is not sync'd with glibc.
42304         * lib/strndup.h: Revamp, accordingly.
42305         * m4/strndup.m4: Modernize.
42306
42307 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42308
42309         * modules/savewd (Depends-on): Add 'raise'.
42310         * lib/savewd.c: Include <signal.h>, for 'raise'.
42311
42312 2006-09-26  Jim Meyering  <jim@meyering.net>
42313
42314         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42315         when we detect Darwin 8.7.0's acl_get_file bug.
42316         Rearrange to perform the new (below) run-test while $LIBS
42317         contains any acl-related library.  Set USE_ACL at the end.
42318         (gl_ACL_GET_FILE): New function.
42319
42320 2006-09-26  Eric Blake  <ebb9@byu.net>
42321
42322         * lib/verror.c: Include <config.h> unconditionally.
42323
42324 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42325
42326         * modules/clock-time (Maintainer): Add self.
42327         * modules/getlogin_r (Depends-on): Add extensions.
42328
42329 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42330
42331         * modules/clock-time: New module.
42332         * modules/nanosleep (Depends-on): Add clock-time.
42333         * modules/gethrxtime (Depends-on): Likewise.
42334         * modules/gettime (Depends-on): Likewise.
42335         * modules/settime (Depends-on): Likewise.
42336
42337         * modules/fts-lgpl: Depend on openat.
42338         * modules/mkancesdirs: Depend on savewd.
42339         * modules/mkdir-p: Likewise.
42340
42341 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42342
42343         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42344
42345         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42346         `gl_have_arbitrary_file_name_length_limit' to
42347         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42348         actually works between configure runs.
42349
42350 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42351             Bruno Haible  <bruno@clisp.org>
42352
42353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42354
42355 2006-09-25  Jim Meyering  <jim@meyering.net>
42356
42357         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42358         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42359
42360 2006-09-25  Eric Blake  <ebb9@byu.net>
42361
42362         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42363         exec's in 2006-09-18 patch when shuffling fds.
42364
42365 2006-09-25  Bruno Haible  <bruno@clisp.org>
42366
42367         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42368         Reported by Jim Meyering.
42369
42370 2006-09-24  Jim Meyering  <jim@meyering.net>
42371
42372         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42373         compare a pointer against a literal "0".  That caused failures with
42374         at least HP-UX's hpcc.
42375
42376 2006-09-22  Simon Josefsson  <jas@extundo.com>
42377
42378         * modules/gc-sha1:
42379         * modules/gc-md4:
42380         * modules/gc-hmac-sha1:
42381         * modules/gc-hmac-md5:
42382         * modules/gc-des:
42383         * modules/gc-arcfour: Distribute more files.
42384
42385 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42386
42387         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42388         (gl_linked_iterator_from_to): Initialize struct completely.
42389         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42390         (gl_tree_iterator_from_to): Likewise
42391         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42392         * lib/gl_array_list.c [lint] (gl_array_iterator)
42393         (gl_array_iterator_from_to): Likewise.
42394         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42395         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42396         (gl_carray_iterator_from_to): Likewise.
42397
42398         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42399         * lib/md4.c (md4_process_block): Remove unused variable.
42400         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42401         parentheses for clarity.
42402
42403 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42404
42405         * modules/bison-i18n (Depends-on): Add gettext.
42406
42407 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42408
42409         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42410         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42411         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42412         also add missing comma that caused broken test.
42413         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42414         stdlib.h, for `abort'.
42415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42416         variables.
42417         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42418         include unistd.h if present, for `rmdir'.
42419         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42420         variables.
42421         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42422         in the process include standard headers for prototypes.
42423         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42424         gets declared on GNU/Linux.
42425         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42426         unistd.h, for `rmdir'.
42427         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42428
42429         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42430         always true.
42431         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42432
42433         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42434
42435 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42436
42437         * gnulib-tool (func_version): Create output all at once.  This
42438         may help avoid triggering unnecessary SIGPIPEs, and at any
42439         rate it doesn't hurt.
42440
42441 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42442             Bruno Haible  <bruno@clisp.org>
42443
42444         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42445         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42446         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42447
42448         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42449         (gl_FUNC_VASPRINTF): Invoke it.
42450
42451 2006-09-22  Bruno Haible  <bruno@clisp.org>
42452
42453         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42454         getloadavg.c as first argument.
42455
42456 2006-09-22  Bruno Haible  <bruno@clisp.org>
42457
42458         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42459         at the beginning of the gl_INIT macro.
42460         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42461         gl_GETLOADAVG.
42462
42463 2006-09-22  Bruno Haible  <bruno@clisp.org>
42464
42465         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42466         module.
42467         Suggested by Ralf Wildenhues.
42468
42469 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42470
42471         Import this patch from libc:
42472
42473         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42474
42475         * lib/regex_internal.c (re_string_reconstruct): Handle
42476         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42477         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42478         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42479         re_string_context_at.
42480
42481         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42482         now requires it.
42483         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42484         gl_REGEX now does it for us.
42485         (gl_REGEX): Add test taken from
42486         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42487
42488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42489         Check that large offsets work.  Modernize Autoconf usages.
42490         Prefer "yes" to mean a good thing rather than a bad.
42491         Don't put "#define mkstemp" in config.h, as this might interfere
42492         with standard system headers that "#define mkstemp mkstemp64".
42493
42494         * modules/mkstemp (Depends-on): Add extensions, so that
42495         mkstemp is visible on some platforms.
42496         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42497         (Include): Change to "mkstemp.h" from <stdlib.h>.
42498         (Files): Add mkstemp.h.
42499
42500         * lib/mkstemp.h: New file, since some standard headers
42501         #define mkstemp.
42502         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42503         Include "mkstemp.h".
42504         Make the _LIBC code resemble glibc original more,
42505         e.g., use K&R style.
42506         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42507         (mkstemp): Remove, since mkstemp.h does this for us.
42508         * lib/stdlib--.h: Include mkstemp.h.
42509
42510         Import this patch from libc:
42511
42512         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42513
42514         * lib/tempname.c (__gen_tempname): Change attempts_min
42515         into a macro.  Use preprocessor to decide how to initialize
42516         attempts [Coverity CID 67].
42517
42518 2006-09-20  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/mkdtemp.c: Import from libc.
42521         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42522                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42523                 attempts_min into a macro.  Use preprocessor to decide how to
42524                 initialize attempts [Coverity CID 67].
42525         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42526                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42527                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42528
42529 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42530
42531         * gnulib-tool (func_exit): New function, to allow to pass the
42532         exit status portably through the trap.  Use everywhere.
42533         (--help, --version): Signal a write error.
42534         (trap): catch SIGPIPE, for write errors.
42535         Exit at the end of the trap, with the correct exit status.
42536
42537 2006-09-19  Karl Berry  <karl@gnu.org>
42538
42539         * doc/gnulib.texi: note about the license texinfo files.
42540
42541 2006-09-19  Eric Blake  <ebb9@byu.net>
42542
42543         * gnulib-tool: Avoid space-tab.
42544
42545 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42546
42547         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42548         that prevented coreutils 6.1 from building.  Problem reported
42549         by Petter Reinholdtsen.
42550
42551 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42552
42553         * gnulib-tool (avoidlist): Fix typo that broke options like
42554         --avoid=lock that are used by coreutils bootstrap.
42555
42556 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42557
42558         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42559         more systematically.
42560
42561 2006-09-18  Jim Meyering  <jim@meyering.net>
42562
42563         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42564
42565 2006-09-18  Bruno Haible  <bruno@clisp.org>
42566
42567         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42568
42569 2006-09-18  Bruno Haible  <bruno@clisp.org>
42570
42571         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42572         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42573         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42574         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42575         * m4/gettext.m4: Require autoconf >= 2.52.
42576         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42577         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42578         of gl_cv_header_inttypes_h.
42579
42580 2006-09-18  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/javaversion.c: Include configmake.h.
42583
42584 2006-09-18  Bruno Haible  <bruno@clisp.org>
42585
42586         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42587         avoid that the while loops be executed in a subshell.
42588
42589 2006-09-18  Bruno Haible  <bruno@clisp.org>
42590
42591         * MODULES.html.sh (func_module): Break long lines.
42592         Suggested by Bruce Korb <bkorb@gnu.org>.
42593
42594 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42595
42596         Speed up by a factor of 1.12.
42597         * gnulib-tool (nl): New variable.
42598         (func_import): Rewrite include directive extraction to only read each
42599         directive once.
42600
42601 2006-09-17  Bruno Haible  <bruno@clisp.org>
42602
42603         * modules/javaversion (Makefile.am): Remove DEFS setting.
42604         (Depends-on): Add configmake, for PKGDATADIR definition.
42605
42606 2006-09-17  Bruno Haible  <bruno@clisp.org>
42607
42608         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42609
42610 2006-09-17  Bruno Haible  <bruno@clisp.org>
42611
42612         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42613         (func_modules_transitive_closure, func_modules_add_dummy,
42614         func_modules_to_filelist, func_import, func_create_testdir,
42615         func_create_megatestdir, ...): Use it wherever possible.
42616         Suggested by Ralf Wildenhues.
42617
42618 2006-09-16  Karl Berry  <karl@gnu.org>
42619
42620         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42621         to avoid sectioning errors.
42622         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42623         [ifinfo]: blank line after @center-ed titles.
42624         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42625         Spell FSF address consistently with others.
42626         (These changes approved by rms.)
42627
42628 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42629
42630         Speed up by a factor of 1.61.
42631         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42632         already checked module names again.
42633
42634 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42635
42636         Speed up by a factor of 1.13.
42637         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42638         for new_files, and the input to func_add_or_update.
42639
42640 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42641
42642         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
42643         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
42644
42645 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42646
42647         * modules/mkancesdirs (Depends-on): Add fcntl.
42648         * modules/savewd: New file.
42649         * MODULES.html.sh (File system functions): Add savewd.
42650
42651         * modules/configmake (Makefile.am): Add support for the
42652         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
42653
42654 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42655
42656         * m4/savewd.m4: New file.
42657
42658 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42659
42660         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42661         (dirchownmod): New arg FD.  All callers changed.
42662         Use FD rather than opening the directory ourself, as opening is
42663         now the caller's responsibility.
42664         * lib/dirchownmod.h: Likewise.
42665         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42666         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42667         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42668         (test_dir): Remove.
42669         (mkancesdirs): Return length of prefix of FILE that has already
42670         been made, or -2 if there is a child doing the work.  Redo
42671         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42672         ".", and treat ".." specially since it might stray back into
42673         already-created areas.  Use a subprocess if necessary.  New arg
42674         WD; all users changed.  MAKE_DIR function should now return 1
42675         if it creates a directory that is not readable.  Return -2 if
42676         a child process is spun off.
42677         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42678         Adjust signature to match code.
42679         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42680         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42681         all users changed.
42682         * lib/savewd.c, lib/savewd.h: New files.
42683
42684 2006-09-15  Jim Meyering  <jim@meyering.net>
42685
42686         * modules/rename-dest-slash: New module.
42687         * MODULES.html.sh (posix_compat): Add it here.
42688
42689         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42690
42691 2006-09-15  Jim Meyering  <jim@meyering.net>
42692
42693         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42694         file.
42695
42696         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42697
42698 2006-09-15  Jim Meyering  <jim@meyering.net>
42699
42700         * lib/rename-dest-slash.c (has_trailing_slash): Use
42701         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42702         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42703         test before testing whether SRC is a directory.
42704         Suggestions from Bruno Haible.
42705
42706         Avoid a warning about an unused variable.
42707         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42708         into the #ifdef block where it's used.
42709
42710         * lib/rename-dest-slash.c: New file.
42711
42712 2006-09-14  Bruno Haible  <bruno@clisp.org>
42713
42714         * lib/allocsa.c: Include <config.h> unconditionally.
42715         * lib/asnprintf.c: Likewise.
42716         * lib/asprintf.c: Likewise.
42717         * lib/c-strcasecmp.c: Likewise.
42718         * lib/c-strcasestr.c: Likewise.
42719         * lib/c-strncasecmp.c: Likewise.
42720         * lib/c-strstr.c: Likewise.
42721         * lib/classpath.c: Likewise.
42722         * lib/clean-temp.c: Likewise.
42723         * lib/concatpath.c: Likewise.
42724         * lib/copy-file.c: Likewise.
42725         * lib/csharpcomp.c: Likewise.
42726         * lib/csharpexec.c: Likewise.
42727         * lib/execute.c: Likewise.
42728         * lib/fatal-signal.c: Likewise.
42729         * lib/findprog.c: Likewise.
42730         * lib/fwriteerror.c: Likewise.
42731         * lib/gl_array_list.c: Likewise.
42732         * lib/gl_array_oset.c: Likewise.
42733         * lib/gl_avltree_list.c: Likewise.
42734         * lib/gl_avltree_oset.c: Likewise.
42735         * lib/gl_avltreehash_list.c: Likewise.
42736         * lib/gl_carray_list.c: Likewise.
42737         * lib/gl_linked_list.c: Likewise.
42738         * lib/gl_linkedhash_list.c: Likewise.
42739         * lib/gl_list.c: Likewise.
42740         * lib/gl_oset.c: Likewise.
42741         * lib/gl_rbtree_list.c: Likewise.
42742         * lib/gl_rbtree_oset.c: Likewise.
42743         * lib/gl_rbtreehash_list.c: Likewise.
42744         * lib/imaxabs.c: Likewise.
42745         * lib/imaxdiv.c: Likewise.
42746         * lib/javacomp.c: Likewise.
42747         * lib/javaexec.c: Likewise.
42748         * lib/javaversion.c: Likewise.
42749         * lib/linebreak.c: Likewise.
42750         * lib/localcharset.c: Likewise.
42751         * lib/lock.c: Likewise.
42752         * lib/mbchar.c: Likewise.
42753         * lib/mbswidth.c: Likewise.
42754         * lib/mkdtemp.c: Likewise.
42755         * lib/pipe.c: Likewise.
42756         * lib/printf-args.c: Likewise.
42757         * lib/printf-parse.c: Likewise.
42758         * lib/progname.c: Likewise.
42759         * lib/progreloc.c: Likewise.
42760         * lib/readlink.c: Likewise.
42761         * lib/sh-quote.c: Likewise.
42762         * lib/stpcpy.c: Likewise.
42763         * lib/stpncpy.c: Likewise.
42764         * lib/strcasecmp.c: Likewise.
42765         * lib/strcasestr.c: Likewise.
42766         * lib/strcspn.c: Likewise.
42767         * lib/striconv.c: Likewise.
42768         * lib/strncasecmp.c: Likewise.
42769         * lib/strnlen1.c: Likewise.
42770         * lib/strstr.c: Likewise.
42771         * lib/strtok_r.c: Likewise.
42772         * lib/tls.c: Likewise.
42773         * lib/tmpdir.c: Likewise.
42774         * lib/unicodeio.c: Likewise.
42775         * lib/unsetenv.c: Likewise.
42776         * lib/vasnprintf.c: Likewise.
42777         * lib/vasprintf.c: Likewise.
42778         * lib/wait-process.c: Likewise.
42779         * lib/xallocsa.c: Likewise.
42780         * lib/xsetenv.c: Likewise.
42781         * lib/xstriconv.c: Likewise.
42782
42783 2006-09-13  Simon Josefsson  <jas@extundo.com>
42784
42785         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42786         that internally, suggested by Ralf Wildenhues
42787         <Ralf.Wildenhues@gmx.de>.
42788
42789 2006-09-13  Simon Josefsson  <jas@extundo.com>
42790
42791         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42792         @LIBOBJS@.
42793         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42794
42795 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42796
42797         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42798         longer worry about uses that don't define HAVE_CONFIG_H.
42799         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42800         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42801         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42802         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42803         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42804         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42805         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42806         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42807         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42808         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42809         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42810         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42811         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42812         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42813         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42814         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42815         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42816         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42817         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42818         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42819         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42820         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42821         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42822         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42823         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42824         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42825         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42826         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42827         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42828         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42829         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42830         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42831         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42832         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42833         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42834         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42835         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42836         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42837         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42838         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42839         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42840         Likewise.
42841
42842 2006-09-13  Eric Blake  <ebb9@byu.net>
42843
42844         * lib/getopt.c: Fix typo in last commit.
42845
42846 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42847
42848         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42849         dgettext.
42850
42851 2006-09-12  Jim Meyering  <jim@meyering.net>
42852
42853         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42854         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42855         Reported by Nelson H. F. Beebe.
42856
42857 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42858
42859         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42860         program_invocation_name and program_invocation_short_name are
42861         initialized.
42862         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42863         and program_invocation_short_name to argp.h, so they are visible
42864         to user programs.
42865         * lib/argp.h: Likewise
42866
42867 2006-09-10  Bruno Haible  <bruno@clisp.org>
42868
42869         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42870         m4/inttypes_h.m4, m4/uintmax_t.m4.
42871
42872 2006-09-10  Bruno Haible  <bruno@clisp.org>
42873
42874         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42875         gl_AC_TYPE_UINTMAX_T.
42876
42877 2006-09-10  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42880
42881 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42882
42883         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42884         convention.  Text proposed by Bruno Haible.
42885         (struct argp_option): Document the use of N_() wrappers.
42886
42887         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42888         '\v', and translate the two parts separately, instead of feeding
42889         the whole string to gettext.  This allows to exclude
42890         '\v' from the strings visible to the translator by writing doc
42891         strings as N_("..") "\v" N_("..").
42892
42893 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42894
42895         * config/srclist.txt: Undo latest change; the bug was fixed.
42896
42897 2006-09-09  Bruno Haible  <bruno@clisp.org>
42898
42899         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42900         assignments if building a library without libtool.
42901         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42902         in func_emit_lib_Makefile_am.
42903         (func_import): When building a static library libfoo.a, arrange to
42904         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42905         (func_create_testdir): Likewise.
42906         * modules/gc (configure.ac, Makefile.am): If building statically,
42907         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42908         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42909         * modules/striconv (configure.ac, Makefile.am): Likewise.
42910         Based on a suggestion by Ralf Wildenhues.
42911
42912 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42913
42914         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42915         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42916         Also:
42917
42918         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42919         Add year_2050_test to catch glibc bug 2821
42920         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42921
42922         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42923         Prefer #ifdef to #if.
42924
42925         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42926         Return from 'main' instead of calling 'exit'.
42927
42928 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42929
42930         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42931         returned the maximum time_t value rather than (time_t) -1.
42932         Problem originally reported by William Bardwell
42933         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42934
42935         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42936         Moved to here ...
42937         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42938         ... from here.
42939
42940 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42941
42942         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42943         2821 is fixed.
42944
42945 2006-09-08  Jim Meyering  <jim@meyering.net>
42946
42947         Don't make generated files read-only.  That would bother too many
42948         people.  However, do retain the ability to work when targets are
42949         read-only: remove the destination and temporary files before writing
42950         them (when generated via sed or echo), or by using the -f option for
42951         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42952         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42953         * modules/byteswap, modules/configmake, modules/fcntl:
42954         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42955         * modules/localcharset, modules/netinet_in, modules/poll:
42956         * modules/stdbool, modules/stdint, modules/sys_select:
42957         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42958
42959 2006-09-08  Jim Meyering  <jim@meyering.net>
42960
42961         Avoid new build failure on FreeBSD 6.0.
42962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42963         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42964         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42965
42966 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42967
42968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42969
42970 2006-09-07  Jim Meyering  <jim@meyering.net>
42971
42972         Fix global typo in last change: use chmod u-w, not chmod u-x.
42973         Spotted by Paul Eggert and Bruce Korb.
42974         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42975         * modules/byteswap, modules/configmake, modules/fcntl:
42976         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42977         * modules/localcharset, modules/netinet_in, modules/poll:
42978         * modules/stdbool, modules/stdint, modules/sys_select:
42979         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42980
42981 2006-09-06  Jim Meyering  <jim@meyering.net>
42982
42983         Make generated files be read-only.
42984         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42985         Ensure that each generated file is now read-only.
42986         * modules/argz: Likewise.
42987         * modules/arpa_inet: Likewise.
42988         * modules/byteswap: Likewise.
42989         * modules/configmake: Likewise.
42990         * modules/fcntl: Likewise.
42991         * modules/fnmatch: Likewise.
42992         * modules/getopt: Likewise.
42993         * modules/glob: Likewise.
42994         * modules/inttypes: Likewise.
42995         * modules/netinet_in: Likewise.
42996         * modules/poll: Likewise.
42997         * modules/stdbool: Likewise.
42998         * modules/stdint: Likewise.
42999         * modules/sys_select: Likewise.
43000         * modules/sys_socket: Likewise.
43001         * modules/sys_stat: Likewise.
43002         * modules/sysexits: Likewise.
43003         * modules/localcharset: Same as above, but continue using temporary
43004         file named "t-$@" (why different?) rather than the "$@-t" used
43005         everywhere else.
43006
43007         * modules/sysexits (Makefile.am): Replace literal occurrences
43008         of "sysexit.h" more readable, and more consistent, "$@".
43009
43010 2006-09-06  Bruno Haible  <bruno@clisp.org>
43011
43012         * modules/striconv: New file.
43013         * modules/xstriconv: New file.
43014         * MODULES.html.sh (Internationalization functions): Add striconv,
43015         xstriconv.
43016
43017 2006-09-06  Bruno Haible  <bruno@clisp.org>
43018
43019         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43020         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43021         not using libtool correctly.
43022
43023 2006-09-06  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/striconv.h: New file.
43026         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43027         iconvstring.c.
43028         * lib/xstriconv.h: New file.
43029         * lib/xstriconv.c: New file.
43030
43031 2006-09-06  Bruno Haible  <bruno@clisp.org>
43032
43033         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43034         lib_..._LDFLAGS.
43035
43036 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43037
43038         * lib/argz_.h: Sync from Libtool.
43039
43040         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43041                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43042
43043         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43044
43045 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43046
43047         * modules/trim: New file.
43048
43049 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43050
43051         * lib/trim.h: New file.
43052         * lib/trim.c: New file.
43053
43054 2006-09-05  Bruno Haible  <bruno@clisp.org>
43055
43056         * MODULES.html.sh (String handling): Add trim.
43057
43058 2006-09-04  Karl Berry  <karl@gnu.org>
43059
43060         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43061         until next release.
43062
43063 2006-09-03  Bruno Haible  <bruno@clisp.org>
43064
43065         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43066         correctly.
43067
43068 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43069
43070         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43071         not gl_GETLOADAVG.  Omit unneeded semicolons.
43072         Problems reported by Ralf Wildenhues in
43073         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43074         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43075         at the end, which is the usual gnulib style.
43076
43077         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43078         of doing all the work ourselves.
43079         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43080         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43081
43082 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43083
43084         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43085         Problem reported by Ralf Wildenhues in
43086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43087
43088         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43089         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43090
43091 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43092
43093         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43094         yesterday's patch by changing test -n to test -z.
43095
43096 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43097
43098         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43099         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43100         the former is now obsolescent.
43101
43102         * modules/chdir-long (Depends-on): Add fcntl.
43103
43104 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43105
43106         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43107         obsolescent, and programs should use gnulib instead.
43108         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43109         but with prefixes changed.
43110
43111 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43112
43113         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43114         or stdbool.h, because they might not exist while configuring.
43115
43116         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43117         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43118         does that for us.
43119         (O_DIRECTORY): Remove.
43120
43121 2006-08-31  Eric Blake  <ebb9@byu.net>
43122
43123         * gnulib-tool: Don't let emacs change spaces to TAB.
43124
43125 2006-08-31  Bruno Haible  <bruno@clisp.org>
43126
43127         * gnulib-tool: When calling func_import more than once, do it in a
43128         subshell.
43129         Reported by Eric Blake <ebb9@byu.net>.
43130
43131 2006-08-31  Bruno Haible  <bruno@clisp.org>
43132
43133         * gnulib-tool (nl): Remove variable.
43134         (sed_transform_lib_file): Use more robust test for config-h module.
43135         (func_import): Fix typo in 2006-08-25 patch.
43136
43137 2006-08-31  Bruno Haible  <bruno@clisp.org>
43138
43139         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43140         specified, augment Makefile.am variables instead of assigning them.
43141
43142 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43143
43144         Work around a bug in both the Linux and SunOS 64-bit kernels:
43145         nanosleep mishandles sleeps for longer than 2**31 seconds.
43146         Problem reported by Frank v Waveren in
43147         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43149         Check for nanosleep bug.
43150         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43151
43152 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43153
43154         Work around a bug in both the Linux and SunOS 64-bit kernels:
43155         nanosleep mishandles sleeps for longer than 2**31 seconds.
43156         Problem reported by Frank v Waveren in
43157         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43158         * lib/nanosleep.c (BILLION): New constant.
43159         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43160         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43161         implementation.
43162
43163 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43164
43165         * modules/nanosleep (Depends-on): Add gettime.
43166
43167 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43168         and Simon Josefsson  <jas@extundo.com>
43169         and Oskar Liljeblad  <oskar@osk.mine.nu>
43170
43171         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43172         * gnulib-tool (func_import): New license type 'unmodifiable license
43173         text'.
43174         * modules/fdl: Use it.  Longer description.
43175         * module/gpl, module/lgpl: New files.
43176
43177 2006-08-30  Jim Meyering  <jim@meyering.net>
43178
43179         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43180         shadowing the parameter.
43181
43182 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43183
43184         Sync from Libtool:
43185
43186         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43187
43188         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43189         sharing with gnulib.  Report by Eric Blake.
43190
43191 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43192
43193         * modules/isapipe: New file.
43194         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43195
43196 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43197
43198         * modules/configmake (Makefile.am): Add a comment, and omit
43199         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43200         by Bruno Haible.
43201
43202 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43203
43204         * m4/isapipe.m4: New file.
43205
43206 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43207
43208         * lib/isapipe.c, lib/isapipe.h: New files.
43209
43210 2006-08-29  Jim Meyering  <jim@meyering.net>
43211
43212         * modules/configmake (Makefile.am): Make configmake.h depend on
43213         Makefile.  Otherwise, a stale configmake.h could hang around.
43214
43215 2006-08-29  Eric Blake  <ebb9@byu.net>
43216
43217         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43218         resolution of upstream bug 3044.
43219
43220 2006-08-29  Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/localcharset (Depends-on): Add configmake.
43223         (Makefile.am): Remove setting of LIBDIR through DEFS.
43224
43225 2006-08-29  Bruno Haible  <bruno@clisp.org>
43226
43227         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43228         defined.
43229
43230 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43231
43232         * modules/fcntl: New file.
43233         * modules/chdir-safer (Depends-on): Add fcntl.
43234         * modules/fts: Likewise.
43235         * modules/mkdir-p: Likewise.
43236
43237         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43238         This undoes the most recent change, since we're now addressing the
43239         problem in a different way.
43240
43241         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43242         into output, since the output might be called Makefile.am even
43243         if $makefile_name is something different.
43244         (func_import): Use $makefile_am rather than
43245         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43246         empty.
43247
43248         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43249
43250 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43251
43252         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43253         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43254         recent change to stdint.m4, since we're now addressing the problem in a
43255         different way.
43256
43257 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43258
43259         * m4/fcntl_h.m4: New file.
43260
43261 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43262
43263         * lib/fcntl_.h: New file.
43264         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43265         the fcntl module.
43266         * lib/dirchownmod.c: Likewise.
43267         * lib/fts.c: Likewise.
43268
43269         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43270         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43271         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43272         just before including <inttypes.h>, to avoid circular inclusion.
43273
43274 2006-08-28  Jim Meyering  <jim@meyering.net>
43275
43276         * doc/visibility.texi: Actually read and correct the grammar of the
43277         sentence affected by yesterday's change.
43278
43279 2006-08-28  Eric Blake  <ebb9@byu.net>
43280
43281         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43282         needs wrapper.
43283
43284 2006-08-28  Eric Blake  <ebb9@byu.net>
43285
43286         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43287
43288 2006-08-28  Eric Blake  <ebb9@byu.net>
43289
43290         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43291
43292 2006-08-28  Bruno Haible  <bruno@clisp.org>
43293
43294         * modules/c-strstr: New file, from GNU gettext.
43295         * MODULES.html.sh (String handling): Add c-strstr.
43296
43297 2006-08-28  Bruno Haible  <bruno@clisp.org>
43298
43299         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43300         macros.
43301         Reported by Eric Blake.
43302
43303 2006-08-28  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43306         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43307         * lib/vasprintf.c: Include errno.h, limits.h.
43308         (EOVERFLOW): New fallback definition.
43309         (vasprintf): Test here whether the string length is > INT_MAX.
43310         * lib/vsnprintf.c: Include errno.h, limits.h.
43311         (EOVERFLOW): New fallback definition.
43312         (vsnprintf): Fix bug when generated string was too long for the buffer.
43313         Test here whether the string length is > INT_MAX.
43314
43315 2006-08-28  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/inttypes_.h (SCNX*): Remove definitions.
43318         Reported by Eric Blake.
43319
43320 2006-08-28  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/c-strstr.h: New file, from GNU gettext.
43323         * lib/c-strstr.c: New file, from GNU gettext.
43324
43325 2006-08-28  Bruno Haible  <bruno@clisp.org>
43326
43327         * gnulib-tool: Reorder some statements.
43328
43329 2006-08-28  Bruno Haible  <bruno@clisp.org>
43330
43331         * gnulib-tool: New option --makefile-name.
43332         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43333         $makefile_name.
43334         (func_import): Write $makefile_name to the cache file, and read it from
43335         there unless explicitly specified. Use $makefile_name as file name
43336         instead of Makefile.am. Adjust the recommendations accordingly.
43337
43338 2006-08-28  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_verify_module): Check against misapplying patch.
43341
43342 2006-08-28  Bruno Haible  <bruno@clisp.org>
43343
43344         * gnulib-tool (func_relativize, func_relconcat): New functions.
43345         Give an error if --local-dir is given with --update.
43346         Remove trailing slashes from $local_gnulib_dir.
43347         (func_import): Store the relativized $local_gnulib_dir in
43348         gnulib-cache.m4, and read it from there if not specified explicitly.
43349
43350 2006-08-28  Bruno Haible  <bruno@clisp.org>
43351
43352         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43353         is the current directory. Respect also $local_gnulib_dir.
43354
43355 2006-08-28  Bruno Haible  <bruno@clisp.org>
43356             Simon Josefsson  <jas@extundo.com>
43357
43358         BeOS portability.
43359         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43360
43361 2006-08-27  Jim Meyering  <jim@meyering.net>
43362
43363         * doc/visibility.texi: Remove duplicate word: "pointer".
43364
43365 2006-08-26  Bruno Haible  <bruno@clisp.org>
43366
43367         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43368         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43369         (Makefile.am): Create inttypes.h from inttypes_.h.
43370         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43371
43372         * modules/imaxabs: New file.
43373
43374         * modules/imaxdiv: New file.
43375
43376 2006-08-26  Bruno Haible  <bruno@clisp.org>
43377
43378         * m4/inttypes.m4: New file.
43379         * m4/_inttypes_h.m4: Remove file.
43380         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43381         PRI_MACROS_BROKEN.
43382         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43383
43384         * m4/imaxabs.m4: New file.
43385
43386         * m4/imaxdiv.m4: New file.
43387
43388 2006-08-26  Bruno Haible  <bruno@clisp.org>
43389
43390         * lib/inttypes_.h: New file.
43391         * lib/inttypes.h: Remove file.
43392         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43393
43394         * lib/imaxabs.c: New file.
43395
43396         * lib/imaxdiv.c: New file.
43397
43398 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         New config-h module, so that "make" output needn't be cluttered
43401         by -DHAVE_CONFIG_H.
43402         * MODULES.html.sh (Support for building libraries and executables):
43403         Add config-h.
43404         * modules/config-h: New file.
43405         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43406         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43407         the config-h module is used.
43408
43409         New configmake module, so that "make" output needn't be cluttered
43410         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43411         * MODULES.html.sh (Support for building libraries and executables):
43412         Add configmake.
43413         * modules/configmake: New file.
43414
43415 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43416
43417         * m4/config-h.m4: New file.
43418
43419 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43420
43421         * config/srclist.txt: Add elisp-comp.
43422
43423 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43424
43425         * MODULES.html.sh (Support for building libraries and executables):
43426         Add elisp-comp.
43427         * build-aux/elisp-comp: New file.
43428         * modules/elisp-comp: New file.
43429
43430 2006-08-24  Bruno Haible  <bruno@clisp.org>
43431
43432         * gnulib-tool (func_create_testdir): Use non-default values of
43433         sourcebase and m4base.
43434
43435 2006-08-24  Bruno Haible  <bruno@clisp.org>
43436
43437         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43438         HTML structure.
43439
43440 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43441
43442         * modules/openat (Depends-on): Add lchown.
43443
43444 2006-08-23  Bruno Haible  <bruno@clisp.org>
43445
43446         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43447         of gl_LOCK_EARLY instead of gl_LOCK.
43448
43449 2006-08-23  Bruno Haible  <bruno@clisp.org>
43450
43451         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43452         on OSF/1 to no.
43453         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43454
43455 2006-08-23  Bruno Haible  <bruno@clisp.org>
43456
43457         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43458         as unusable.
43459
43460         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43461         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43462         (gl_LOCK): New macro.
43463
43464 2006-08-22  Simon Josefsson  <jas@extundo.com>
43465
43466         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43467         to md5 module.
43468
43469 2006-08-22  Simon Josefsson  <jas@extundo.com>
43470
43471         * MODULES.html.sh: Add "Support for maintaining and release
43472         projects".
43473
43474         * build-aux/gnupload: New file, from coreutils.
43475
43476 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43477
43478         Avoid the need for AC_LIBSOURCES in m4 macros.
43479         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43480         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43481         * modules/check-version (EXTRA_DIST): Add check-version.h.
43482         * modules/crc (EXTRA_DIST): Add crc.h.
43483         * modules/des (EXTRA_DIST): Add des.h.
43484         * modules/gc (EXTRA_DIST): Add gc.h.
43485         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43486         * modules/getline (EXTRA_DIST): Add getline.h.
43487         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43488         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43489         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43490         * modules/md2 (EXTRA_DIST): Add md2.h.
43491         * modules/md4 (EXTRA_DIST): Add md4.h.
43492         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43493         * modules/read-file (EXTRA_DIST): Add read-file.h.
43494         * modules/readline (EXTRA_DIST): Add readline.h.
43495         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43496         rijndael-api-fst.h.
43497
43498 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43499
43500         * m4/rijndael.m4 (gl_ARCFOUR):
43501         * m4/arctwo.m4 (gl_ARCTWO):
43502         * m4/check-version.m4 (gl_CHECK_VERSION):
43503         * m4/crc.m4 (gl_CRC):
43504         * m4/des.m4 (gl_DES):
43505         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43506         * m4/gc.m4 (gl_GC):
43507         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43508         * m4/getline.m4 (gl_FUNC_GETLINE):
43509         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43510         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43511         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43512         * m4/md2.m4 (gl_MD2):
43513         * m4/md4.m4 (gl_MD4):
43514         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43515         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43516         * m4/readline.m4 (gl_FUNC_READLINE):
43517         * m4/rijndael.m4 (gl_RIJNDAEL):
43518         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43519         to get the necessary .h files and whatnot.
43520
43521 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43524         gnulib rather than the other way around.
43525         * config/srclistvars.sh (COREUTILS): Remove.
43526
43527 2006-08-22  Jim Meyering  <jim@meyering.net>
43528
43529         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43530
43531         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43532
43533 2006-08-22  Eric Blake  <ebb9@byu.net>
43534
43535         * modules/regexprops-generic: New file.
43536         * MODULES.html.sh (Support for building documentation): List it.
43537
43538 2006-08-22  Eric Blake  <ebb9@byu.net>
43539
43540         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43541         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43542         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43543         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43544
43545 2006-08-22  Bruno Haible  <bruno@clisp.org>
43546
43547         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43548         and lib_LTLIBRARIES like the other lib_* variables.
43549
43550 2006-08-22  Bruno Haible  <bruno@clisp.org>
43551
43552         * build-aux/x-to-1.in: New file, from GNU gettext.
43553
43554 2006-08-22  Bruno Haible  <bruno@clisp.org>
43555
43556         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43557         <utmpx.h> exists.
43558
43559 2006-08-22  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43562         <utmpx.h> exists.
43563
43564 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         BeOS portability.
43567         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43568         exist.
43569         Problem reported by Bruno Haible.
43570
43571 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         Avoid the need for AC_LIBSOURCES in m4 macros.
43574         * modules/acl (EXTRA_DIST): Add acl.h.
43575         * modules/argmatch (Files): Add m4/argmatch.m4.
43576         (configure.ac): Add gl_ARGMATCH.
43577         (EXTRA_DIST): Renamed from lib_SOURCES, for
43578         consistency with the other modules.  Remove argmatch.c.
43579         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43580         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43581         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43582         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43583         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43584         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43585         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43586         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43587         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43588         * modules/closeout (EXTRA_DIST): Add closeout.h.
43589         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43590         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43591         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43592         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43593         dirname.h; remove basename.c and stripslash.c.
43594         * modules/exclude (EXTRA_DIST): Add exclude.h.
43595         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43596         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43597         * modules/file-type (EXTRA_DIST): Add file-type.h.
43598         * modules/filemode (EXTRA_DIST): Add filemode.h.
43599         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43600         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43601         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43602         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43603         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43604         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43605         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43606         * modules/getdate (EXTRA_DIST): Add getdate.c.
43607         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43608         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43609         * modules/getpass (EXTRA_DIST): Add getpass.h.
43610         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43611         * modules/group-member (EXTRA_DIST): Add group-member.h.
43612         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43613         * modules/hash (EXTRA_DIST): Add hash.h.
43614         * modules/human (EXTRA_DIST): Add human.h.
43615         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43616         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43617         * modules/lchown (EXTRA_DIST): Add lchown.h.
43618         * modules/long-options (EXTRA_DIST): Add long-options.h.
43619         * modules/lstat (EXTRA_DIST): Add lstat.h.
43620         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43621         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43622         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43623         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43624         * modules/memxor (EXTRA_DIST): Add memxor.h.
43625         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43626         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43627         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43628         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43629         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43630         * modules/physmem (EXTRA_DIST): Add physmem.h.
43631         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43632         * modules/posixver (EXTRA_DIST): Add posixver.h.
43633         * modules/quote (EXTRA_DIST): Add quote.h.
43634         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43635         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43636         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43637         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43638         regex_internal.h regexec.c.
43639         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
43640         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
43641         * modules/same (EXTRA_DIST): Add same.h.
43642         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
43643         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
43644         * modules/savedir (EXTRA_DIST): Add savedir.h.
43645         * modules/sha1 (EXTRA_DIST): Add sha1.h.
43646         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
43647         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
43648         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
43649         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
43650         * modules/strdup (EXTRA_DIST): Add strdup.h.
43651         * modules/strftime (EXTRA_DIST): Add strftime.h.
43652         * modules/strndup (EXTRA_DIST): Add strndup.h.
43653         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
43654         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
43655         * modules/time_r (EXTRA_DIST): Add time_r.h.
43656         * modules/timespec (EXTRA_DIST): Add timespec.h.
43657         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43658         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43659         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43660         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43661         * modules/userspec (EXTRA_DIST): Add userspec.h.
43662         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43663         * modules/utimens (EXTRA_DIST): Add utimens.h.
43664         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43665         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43666         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43667         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43668         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43669         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43670         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43671         * modules/yesno (EXTRA_DIST): Add yesno.h.
43672
43673 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43674
43675         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43676
43677         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43678         * m4/dev-ino.m4, same-inode.m4: Remove.
43679
43680         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43681         * m4/acl.m4 (AC_FUNC_ACL):
43682         * m4/backupfile.m4 (gl_BACKUPFILE):
43683         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43684         * m4/canon-host.m4 (gl_CANON_HOST):
43685         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43686         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43687         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43688         * m4/cloexec.m4 (gl_CLOEXEC):
43689         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43690         * m4/closeout.m4 (gl_CLOSEOUT):
43691         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43692         * m4/dirname.m4 (gl_DIRNAME):
43693         * m4/exclude.m4 (gl_EXCLUDE):
43694         * m4/exitfail.m4 (gl_EXITFAIL):
43695         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43696         * m4/file-type.m4 (gl_FILE_TYPE):
43697         * m4/filemode.m4 (gl_FILEMODE):
43698         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43699         * m4/fpending.m4 (gl_FUNC_FPENDING):
43700         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43701         * m4/fts.m4 (gl_FUNC_FTS):
43702         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43703         * m4/getdate.m4 (gl_GETDATE):
43704         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43705         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43706         * m4/getpass.m4 (gl_FUNC_GETPASS):
43707         * m4/gettime.m4 (gl_GETTIME):
43708         * m4/getugroups.m4 (gl_GETUGROUPS):
43709         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43710         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43711         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43712         * m4/hash.m4 (gl_HASH):
43713         * m4/idcache.m4 (gl_IDCACHE):
43714         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43715         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43716         * m4/long-options.m4 (gl_LONG_OPTIONS):
43717         * m4/lstat.m4 (gl_FUNC_LSTAT):
43718         * m4/md5.m4 (gl_MD5):
43719         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43720         * m4/memcoll.m4 (gl_MEMCOLL):
43721         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43722         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43723         * m4/memxor.m4 (gl_MEMXOR):
43724         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43725         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43726         * m4/modechange.m4 (gl_MODECHANGE):
43727         * m4/mountlist.m4 (gl_MOUNTLIST):
43728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43729         * m4/openat.m4 (gl_FUNC_OPENAT):
43730         * m4/pathmax.m4 (gl_PATHMAX):
43731         * m4/physmem.m4 (gl_PHYSMEM):
43732         * m4/posixtm.m4 (gl_POSIXTM):
43733         * m4/posixver.m4 (gl_POSIXVER):
43734         * m4/quote.m4 (gl_QUOTE):
43735         * m4/quotearg.m4 (gl_QUOTEARG):
43736         * m4/readtokens.m4 (gl_READTOKENS):
43737         * m4/readutmp.m4 (gl_READUTMP):
43738         * m4/regex.m4 (gl_REGEX):
43739         * m4/safe-read.m4 (gl_SAFE_READ):
43740         * m4/safe-write.m4 (gl_SAFE_WRITE):
43741         * m4/same.m4 (gl_SAME):
43742         * m4/save-cwd.m4 (gl_SAVE_CWD):
43743         * m4/savedir.m4 (gl_SAVEDIR):
43744         * m4/settime.m4 (gl_SETTIME):
43745         * m4/sha1.m4 (gl_SHA1):
43746         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43747         * m4/stat-macros.m4 (gl_STAT_MACROS):
43748         * m4/stat-time.m4 (gl_STAT_TIME):
43749         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43750         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43751         * m4/strdup.m4 (gl_FUNC_STRDUP):
43752         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43753         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43754         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43755         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43756         * m4/time_r.m4 (gl_TIME_R):
43757         * m4/timespec.m4 (gl_TIMESPEC):
43758         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43759         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43760         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43761         * m4/userspec.m4 (gl_USERSPEC):
43762         * m4/utimecmp.m4 (gl_UTIMECMP):
43763         * m4/utimens.m4 (gl_UTIMENS):
43764         * m4/xalloc.m4 (gl_XALLOC):
43765         * m4/xgetcwd.m4 (gl_XGETCWD):
43766         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43767         * m4/xreadlink.m4 (gl_XREADLINK):
43768         * m4/xstrtod.m4 (gl_XSTRTOD):
43769         * m4/yesno.m4 (gl_YESNO):
43770         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43771         to get the necessary .h files and whatnot.
43772
43773 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43774             Bruno Haible  <bruno@clisp.org>
43775
43776         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43777         /bin/sh understanding of '!' conditional negation.
43778
43779 2006-08-21  Jim Meyering  <jim@meyering.net>
43780
43781         * modules/openat (Depends-on): Really alphabetize.
43782
43783         * modules/acl (Depends-on): Add error and quote.
43784
43785         * check-module (find_included_lib_files): Add at-func.c to the
43786         ok-to-include-more-than-once white list.
43787
43788         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43789
43790 2006-08-21  Bruno Haible  <bruno@clisp.org>
43791
43792         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43793         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43794         Reported by Martin Lambers <marlam@marlam.de>.
43795
43796 2006-08-21  Bruno Haible  <bruno@clisp.org>
43797
43798         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43799         specify an installation location, don't emit a noinst_LIBRARIES or
43800         noinst_LTLIBRARIES assignment.
43801
43802 2006-08-21  Bruno Haible  <bruno@clisp.org>
43803
43804         BeOS portability.
43805         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43806         BeOS has mbrtowc() but no <wctype.h>.
43807
43808 2006-08-21  Bruno Haible  <bruno@clisp.org>
43809
43810         BeOS portability.
43811         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43812         exist.
43813
43814 2006-08-21  Bruno Haible  <bruno@clisp.org>
43815
43816         BeOS portability.
43817         * lib/mbchar.h: Include <wctype.h> only if it exists.
43818
43819 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43820
43821         Remove files that are no longer needed by their respective modules.
43822         * m4/obstack.m4: Remove.
43823         * m4/strerror_r.m4: Remove.
43824         * m4/uint32_t.m4: Remove.
43825         * m4/uintptr_t.m4: Remove.
43826         * m4/ullong_max.m4: Remove.
43827         * m4/xstrtoimax.m4: Remove.
43828         * m4/xstrtoumax.m4: Remove.
43829
43830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43831         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43832         dependencies now capture this.
43833
43834         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43835         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43836         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43837         * m4/human.m4 (gl_HUMAN): Likewise.
43838         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43839         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43840
43841         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43842
43843         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43844         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43845         stdint.
43846         * m4/human.m4 (gl_HUMAN): Likewise.
43847         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43848         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43849         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43850         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43851         * m4/xstrtol (gl_XSTRTOL): Likewise.
43852
43853         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43854         AC_TYPE_LONG_LONG_INT.
43855         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43856         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43857         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43858         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43859
43860         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43861         on stdbool.
43862
43863         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43864         (gl_PREREQ_XSTRTOUL): Remove.
43865
43866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43867
43868         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43869         mode.
43870
43871 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43872
43873         Add and change modules to make it easier for coreutils to use
43874         gnulib-tool.
43875         * modules/backupfile (Files): Remove m4/d-ino.m4.
43876         (Depends-on): Add d-ino.
43877         * modules/cycle-check (Depends-on): Add stdint.
43878         (lib_SOURCES): Add cycle-check.h.
43879         * modules/d-ino: New module.
43880         * modules/d-type: New module.
43881         * modules/error (Files): Remove m4/strerror_r.m4.
43882         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43883         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43884         m4/inttypes_h.m4, m4/uintmax_t.m4.
43885         (Depends-on): Add stdint.
43886         (lib_SOURCES): Add fsusage.h.
43887         * modules/getcwd (Files): Remove d-ino.m4.
43888         (Depends-on): Add d-ino.
43889         * modules/getndelim2 (Depends-on): Add stdint.
43890         * modules/glob (Files): Remove m4/d-type.m4.
43891         (Depends-on): Add d-type.
43892         * modules/host-os: New module.
43893         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43894         m4/inttypes_h.m4, m4/uintmax_t.m4.
43895         * Depends-on: Add stdint.
43896         (lib_SOURCES): Add human.h.
43897         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43898         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43899         m4/uintmax_t.m4, m4/ulonglong.m4.
43900         (Depends-on): Add stdint.
43901         (EXTRA_DIST): Add inttostr.h.
43902         * modules/lchmod: New module.
43903         * modules/link-follow: New module.
43904         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43905         (Depends-on): Add lchmod.
43906         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43907         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43908         (Depends-on): Add stdint.
43909         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43910         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43911         (Depends-on): Add stdint.
43912         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43913         * modules/perl: New module.
43914         * modules/regex (Depends-on): Add stdint.
43915         * modules/rmdir-errno: New module.
43916         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43917         m4/intmax_t.m4.
43918         (Depends-on): Add stdint.
43919         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43920         m4/uintmax_t.m4.
43921         (Depends-on): Add stdint.
43922         * modules/unlink-busy: New module.
43923         * modules/utimecmp (Depends-on): Add stdint.
43924         * modules/uptime: New module.
43925         * modules/winsz-ioctl: New module.
43926         * modules/winsz-termios: New module.
43927         * modules/xnanosleep (Depends-on): Add nanosleep.
43928         * modules/ullong_max: Remove.
43929         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43930         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43931         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43932         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43933         (Depends-on): Add inttypes.
43934         (lib_SOURCES): Add xstrtol.h.
43935         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43936         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43937         * MODULES.html.sh: Move 'assert' into the assert section.
43938         Move 'dummy' into the linking section.
43939         Remove ullong_max.
43940         Add section for compatibility checks for POSIX:2001 functions,
43941         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43942         winsz-ioctl, and winsz-termios into it.
43943         Add lchmod.
43944         Add top-level Misc section and put host-os, perl, and uptime
43945         into it.
43946
43947 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43948
43949         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43950         now assume the stdint module.  Do not include inttypes.h.
43951         * lib/fsusage.h: Likewise.
43952         * lib/getndelim2.c: Likewise.
43953         * lib/human.h: Likewise.
43954         * lib/inttostr.h: Likewise.
43955         * lib/obstack.c: Likewise.
43956         * lib/regex_internal.h: Likewise.
43957         * lib/tempname.c: Likewise.
43958         * lib/utimecmp.c: Likewise.
43959         * lib/xstrtol.h: Likewise.
43960
43961         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43962
43963         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43964         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43965         * lib/xtime.h: Likewise.
43966
43967 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43968
43969         * modules/openat (Files): Add lib/fchmodat.c.
43970         Fixes problem reported by Jay Youngman.
43971
43972 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43973
43974         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43975         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43976
43977 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43978             Bruno Haible  <bruno@clisp.org>
43979
43980         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43981         and is a script that invokes bison. Tighten the code. Add comments.
43982
43983 2006-08-18  Jim Meyering  <jim@meyering.net>
43984
43985         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43986         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43987         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43988         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43989
43990 2006-08-18  Bruno Haible  <bruno@clisp.org>
43991
43992         * modules/bison-i18n: New file.
43993         * MODULES.html.sh (Internationalization functions): Add it.
43994
43995 2006-08-18  Bruno Haible  <bruno@clisp.org>
43996
43997         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43998         sys/statvfs.h. When getmntinfo was found, check its declaration and
43999         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44000
44001 2006-08-18  Bruno Haible  <bruno@clisp.org>
44002
44003         * m4/bison-i18n.m4: New file, from bison.
44004
44005 2006-08-18  Bruno Haible  <bruno@clisp.org>
44006
44007         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44008         (ME_DUMMY): Treat "kernfs" as a dummy.
44009         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44010
44011 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44012
44013         Update from coreutils.
44014
44015         2006-08-15  Jim Meyering  <jim@meyering.net>
44016
44017         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44018
44019         2006-01-17  Jim Meyering  <jim@meyering.net>
44020
44021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44022
44023         2006-01-11  Jim Meyering  <jim@meyering.net>
44024
44025         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44026         Check for the lchmod function.
44027
44028 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         Update from coreutils.
44031
44032         * lib/__fpending.h: Add copyright notice.
44033         * lib/fprintftime.h: Likewise.
44034         * lib/savedir.c: Use (C) in copyright notice.
44035         * lib/savedir.h: Likewise.
44036
44037         2006-08-15  Jim Meyering  <jim@meyering.net>
44038
44039         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44040         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44041         in support of the EXPECTED_ERRNO macro.
44042         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44043         definitions.  Instead, define the appropriate symbols and include
44044         "at-func.c".
44045         * lib/mkdirat.c (mkdirat): Likewise.
44046         * lib/fchmodat.c (fchmodat): Likewise.
44047         (ENOSYS): Remove definition.
44048         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44049         it.  Don't include "unistd--.h" -- it wasn't ever used.
44050
44051         2006-01-17  Jim Meyering  <jim@meyering.net>
44052
44053         Rewrite fts.c not to change the current working directory,
44054         by using openat, fstatat, fdopendir, etc..
44055
44056         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44057         (HAVE_OPENAT_SUPPORT): Define.
44058         [_LIBC] (fchdir): Don't undef or define; no longer used.
44059         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44060         Now, this `function' always succeeds, and consumes its file descriptor
44061         parameter -- so callers must not close such FDs.  Update callers.
44062         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44063         (diropen): Add parameter, SP.  Adjust all callers.
44064         Implement using diropen_fd, rather than open.
44065         (fts_open): Initialize new member, fts_cwd_fd.
44066         Remove fts_rft-setting code.
44067         (fts_close): Close fts_cwd_fd, if necessary.
44068         (__opendir2): Define in terms of opendir or opendirat,
44069         depending on whether the FST_NOCHDIR flag is set.
44070         (fts_build): Since fts_safe_changedir consumes its FD, and since
44071         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44072         and close the dup'd file descriptor upon failure.
44073         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44074         (fts_safe_changedir): Tweak semantics to reflect that this function
44075         now calls cwd_advance_fd and hence consumes its FD argument.
44076         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44077         [struct FTS] (fts_rft): Remove now-unused member.
44078         [struct FTS] (fts_cycle.state): Improve comment.
44079
44080         * lib/openat.c (openat_needs_fchdir): New function.
44081         * lib/openat.h (openat_needs_fchdir): Declare it.
44082
44083 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44084
44085         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44086         Problem and fix reported by Pádraig Brady in
44087         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44088
44089 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44090
44091         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44092
44093 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44094
44095         * lib/memcoll.c (memcoll): Optimize for the common case where the
44096         arguments are bytewise equal.
44097
44098 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44099
44100         * doc/regexprops-generic.texi: Add a copyright notice.
44101
44102 2006-08-15  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/tmpdir (License): Change to LGPL.
44105
44106 2006-08-15  Bruno Haible  <bruno@clisp.org>
44107
44108         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44109         module.
44110
44111 2006-08-14  Simon Josefsson  <jas@extundo.com>
44112
44113         * config/srclist.txt: Add gnupload.
44114
44115 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44116
44117         Change copyright notice from LGPL 2 to GPL 2, since that's the
44118         standard form used in the gnulib repository.
44119         * tests/test-lock.c: Likewise.
44120         * tests/test-stdint.c: Likewise.
44121         * tests/test-tls.c: Likewise.
44122
44123         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44124         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44125         Add copyright notice.
44126
44127         * check-module: Add copyright notice.  Output a copyright
44128         notice if "--version" is specified.
44129         * modules/COPYING: New file.
44130         * tests/test-getaddrinfo.c: Add copyright notice.
44131         * tests/test-verify.c: Likewise.
44132
44133 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44134
44135         Change copyright notice from LGPL 2 to GPL 2, since that's the
44136         standard form used in the gnulib repository.
44137         * lib/lock.c: LGPL -> GPL.
44138         * lib/lock.h: Likewise.
44139         * lib/strnlen1.c: Likewise.
44140         * lib/strnlen1.h: Likewise.
44141         * lib/tls.c: Likewise.
44142         * lib/tls.h: Likewise.
44143         * lib/tmpdir.c: Likewise.
44144
44145         * lib/TODO: Remove; this belongs only in coreutils.
44146
44147 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44148
44149         Add copyright notices to long-enough files that lack them, since
44150         otherwise the files aren't clearly free.  Use the same notice that
44151         getdate.texi already uses.
44152         * doc/alloca-opt.texi: Add copyright notice.
44153         * doc/alloca.texi: Likewise.
44154         * doc/ctime.texi: Likewise.
44155         * doc/functions.texi: Likewise.
44156         * doc/gcd.texi: Likewise.
44157         * doc/gnulib-tool.texi: Likewise.
44158         * doc/inet_ntoa.texi: Likewise.
44159         * doc/visibility.texi: Likewise.
44160
44161         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44162         * doc/quote.texi: Add copyright notice.
44163
44164         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44165         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44166         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44167         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44168         is now obsolete, and give a pointer to the Sun list.
44169         Add copyright notice.
44170
44171 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44172
44173         * config/srclistvars.sh: Add copyright notice.
44174
44175 2006-08-14  Eric Blake  <ebb9@byu.net>
44176
44177         Import the following change from libc:
44178
44179         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44180
44181         Upstream bug 2997.
44182         * lib/misc/error.c: Add space between program name and message if file
44183         name is missing.
44184
44185 2006-08-12  Karl Berry  <karl@gnu.org>
44186
44187         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44188         remove, these originate in gnulib now.
44189
44190 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44191
44192         * doc/Makefile (standards.info standards.html standards.dvi):
44193         Also depend on make-stds.texi.
44194
44195 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44196
44197         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44198         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44199
44200         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44201         in wchar_t.  Problem reported by Eric Blake.
44202
44203         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44204         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44205         Also, help the compiler to keep LEN in a register.
44206
44207 2006-08-11  Eric Blake  <ebb9@byu.net>
44208
44209         * users.txt: Sort.  Add tar.
44210
44211 2006-08-11  Bruno Haible  <bruno@clisp.org>
44212
44213         * users.txt: New file.
44214
44215 2006-08-11  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44218         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44219
44220 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44221
44222         * modules/snprintf (Depends-on): Remove minmax.
44223         (Maintainer): Add self and Bruno.
44224
44225 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44226
44227         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44228         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44229         (EOVERFLOW): Define if the system does not.
44230         Do not include "minmax.h"; it wasn't used.
44231         (snprintf): Don't assume size_t promotes to an unsigned type.
44232         Fix bug when generated string was too long for the buffer: the
44233         buffer's contents are supposed to be the initial prefix of the
44234         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44235         exceeds INT_MAX; do the check ourselves.
44236
44237         Import the following changes from libc:
44238
44239         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44240
44241         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44242         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44243         set wc to the byte which couldn't be converted.
44244         (re_string_reconstruct): Don't clear valid_raw_len before calling
44245         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44246         tip_context using re_string_context_at.
44247
44248         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44249
44250         * lib/posix/regex.h: g++ still cannot handled [restrict].
44251
44252         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44253
44254         * lib/posix/regex.h: Remove special handling for VMS.
44255
44256 2006-08-10  Jim Meyering  <jim@meyering.net>
44257
44258         * modules/same-inode: New module.
44259         * modules/dev-ino: New module.
44260         * modules/cycle-check: Depend on these modules, rather than simply
44261         including their .h files.
44262         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44263         required via m4/cycle-check.m4.
44264         * modules/same: Depend on new same-inode module, rather than
44265         including same-inode.h.
44266         * modules/chdir-safer: New file.
44267
44268         * modules/chown (Depends-on): Add stat-macros.
44269
44270 2006-08-10  Jim Meyering  <jim@meyering.net>
44271
44272         * m4/cycle-check.m4: New file.
44273         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44274         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44275
44276 2006-08-10  Eric Blake  <ebb9@byu.net>
44277
44278         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44279         in from original proposal.
44280
44281 2006-08-10  Eric Blake  <ebb9@byu.net>
44282         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44283
44284         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44285         namespace.
44286
44287 2006-08-10  Bruno Haible  <bruno@clisp.org>
44288
44289         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44290         as well.
44291
44292 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44293
44294         Sync from coreutils.
44295
44296         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44297
44298         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44299         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44300
44301 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44302
44303         * modules/restrict: Remove; no longer needed now that we assume
44304         Autoconf 2.59 or later.
44305         * MODULES.html.sh: Remove 'restrict'.
44306         * modules/argp (Depends-on): Remove 'restrict'.
44307         * modules/base64 (Depends-on): Likewise.
44308         * modules/gc (Depends-on): Likewise.
44309         * modules/getaddrinfo (Depends-on): Likewise.
44310         * modules/glob (Depends-on): Likewise.
44311         * modules/inet_ntop (Depends-on): Likewise.
44312         * modules/inet_pton (Depends-on): Likewise.
44313         * modules/memxor (Depends-on): Likewise.
44314         * modules/regex (Depends-on): Likewise.
44315         * modules/strtok_r (Depends-on): Likewise.
44316         * modules/time_r (Depends-on): Likewise.
44317
44318 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44319
44320         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44321         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44322         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44323         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44324         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44325         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44326         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44327         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44328
44329         Merge from coreutils.
44330         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44331         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44333         * m4/time_r.m4 (gl_TIME_R): Likewise.
44334
44335 2006-08-09  Karl Berry  <karl@gnu.org>
44336
44337         * config/srclist.txt: no more gettext-tools, per Bruno.
44338
44339 2006-08-08  Eric Blake  <ebb9@byu.net>
44340
44341         * modules/verror: New module.
44342         * MODULES.html.sh: Document it.
44343
44344 2006-08-08  Eric Blake  <ebb9@byu.net>
44345
44346         * lib/verror.h, lib/verror.c: New files.
44347
44348 2006-08-08  Eric Blake  <ebb9@byu.net>
44349
44350         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44351         verror_at_line output complies with GNU Coding Standards even when
44352         file is NULL.
44353
44354 2006-08-07  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44357         versions of AIX.
44358         Reported by Ralf Wildenhues.
44359
44360 2006-08-07  Bruno Haible  <bruno@clisp.org>
44361
44362         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44363         in an AC_DEFUN. Needed so that the autoconf snippets can use
44364         AC_REQUIRE.
44365
44366 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44367
44368         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44369         Initialize pkgdata_DATA.
44370         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44371         overriding it.
44372
44373 2006-08-06  Eric Blake  <ebb9@byu.net>
44374
44375         * lib/error.h: Fold in some upstream changes from glibc.
44376         * lib/error.c: Likewise.
44377
44378 2006-08-04  Bruno Haible  <bruno@clisp.org>
44379
44380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44381         Make the mostlyclean-local rule depend on mostlyclean-generic.
44382         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44383
44384 2006-07-31  Bruno Haible  <bruno@clisp.org>
44385
44386         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44387         <stdlib.h>, <string.h>.
44388
44389 2006-07-30  Bruno Haible  <bruno@clisp.org>
44390
44391         * modules/readlink (License): Change to LGPL.
44392
44393 2006-07-30  Bruno Haible  <bruno@clisp.org>
44394
44395         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44396         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44397         set PKGDATADIR to point to it.
44398
44399 2006-07-30  Bruno Haible  <bruno@clisp.org>
44400
44401         * modules/csharpexec (configure.ac): Comment out macro invocation.
44402         * modules/javaexec (configure.ac): Likewise.
44403         * modules/javacomp-script (configure.ac): Likewise.
44404
44405         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44406
44407 2006-07-30  Bruno Haible  <bruno@clisp.org>
44408
44409         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44410         linked-list.
44411
44412 2006-07-30  Bruno Haible  <bruno@clisp.org>
44413
44414         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44415
44416 2006-07-30  Bruno Haible  <bruno@clisp.org>
44417
44418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44419         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44420         get removed.
44421
44422 2006-07-29  Bruno Haible  <bruno@clisp.org>
44423
44424         Make it possible for gnulib-tool to work with locally modified or
44425         augmented gnulib repositories.
44426         * gnulib-tool (func_usage): Document --local-dir option.
44427         (local_gnulib_dir): New variable.
44428         Handle --local-dir option.
44429         (func_lookup_file): New function.
44430         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44431         (func_get_description, func_get_filelist, func_get_description,
44432         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44433         func_get_automake_snippet, func_get_include_directive,
44434         func_get_license, func_get_maintainer): Use func_lookup_file.
44435         (func_import, func_create_testdir): Use func_lookup_file.
44436
44437 2006-07-29  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/setenv (Depends-on): Add unistd.
44440
44441 2006-07-29  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44444
44445 2006-07-29  Bruno Haible  <bruno@clisp.org>
44446
44447         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44448
44449 2006-07-29  Bruno Haible  <bruno@clisp.org>
44450
44451         * gnulib-tool (import, update): If there is no Makefile.am, look at
44452         aclocal.m4, instead of bailing out.
44453
44454 2006-07-29  Bruno Haible  <bruno@clisp.org>
44455
44456         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44457         Categorize the options by when they are useful.
44458
44459 2006-07-29  Bruno Haible  <bruno@clisp.org>
44460
44461         * gnulib-tool (func_usage): Document option --no-libtool.
44462         Handle option --no-libtool.
44463         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44464         for changed semantics of $libtool variable.
44465         (func_import): Likewise. If libtool is not used, show this through
44466         an option --no-libtool.
44467         (func_create_testdir): Update.
44468
44469 2006-07-29  Bruno Haible  <bruno@clisp.org>
44470
44471         * gnulib-tool (func_import): Extend error message about missing
44472         --doc-base.
44473
44474 2006-07-29  Bruno Haible  <bruno@clisp.org>
44475
44476         * gnulib-tool (func_import): Don't create the $docbase directory if
44477         there is no file to store there.
44478
44479 2006-07-29  Bruno Haible  <bruno@clisp.org>
44480
44481         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44482         relevant, look for configure.ac there, not in the current directory.
44483         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44484
44485 2006-07-29  Bruno Haible  <bruno@clisp.org>
44486
44487         * gnulib-tool (SORT): New variable.
44488         (func_usage): Undocument --assume-autoconf option.
44489         Remove --assume-autoconf option handling.
44490         (autoconf_minversion): Determine from the contents of configure.ac.
44491         (func_import): Remove autoconf_minversion handling.
44492         Suggested by Eric Blake.
44493
44494 2006-07-29  Bruno Haible  <bruno@clisp.org>
44495
44496         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44497
44498 2006-07-29  Bruno Haible  <bruno@clisp.org>
44499
44500         * config/srclist.txt (*setenv.[ch]): Remove rules.
44501
44502 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44503
44504         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44505
44506 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44507
44508         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44509         arpa/inet.h.
44510
44511 2006-07-28  Simon Josefsson  <jas@extundo.com>
44512
44513         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44514         * modules/inet_pton (Depends-on): Likewise.
44515
44516 2006-07-28  Simon Josefsson  <jas@extundo.com>
44517
44518         * m4/netinet_in_h.m4: New file.
44519
44520 2006-07-28  Simon Josefsson  <jas@extundo.com>
44521
44522         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44523         #include's.
44524
44525 2006-07-28  Simon Josefsson  <jas@extundo.com>
44526
44527         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44528         #include's.
44529
44530 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44531
44532         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44533         setgid on directories only if they set these bits.
44534         * lib/modechange.h: Remove obsolete comment about masks.
44535
44536 2006-07-28  Eric Blake  <ebb9@byu.net>
44537
44538         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44539         macro expansion.
44540
44541 2006-07-28  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44544
44545 2006-07-28  Bruno Haible  <bruno@clisp.org>
44546
44547         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44548
44549 2006-07-28  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44552         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44553         Define fallbacks.
44554         Avoids link error on FreeBSD 4.x.
44555         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44556
44557         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44558         encoding.
44559         * lib/mbswidth.c (iswcntrl): Likewise.
44560
44561 2006-07-27  Bruno Haible  <bruno@clisp.org>
44562
44563         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44564         test.
44565
44566 2006-07-27  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44569         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44570         defined.
44571
44572 2006-07-26  Eric Blake  <ebb9@byu.net>
44573
44574         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44575
44576 2006-07-26  Eric Blake  <ebb9@byu.net>
44577
44578         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44579         like mingw that lack mkstemp.
44580         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44581         avoid compilation warning on mingw.
44582
44583 2006-07-26  Bruno Haible  <bruno@clisp.org>
44584
44585         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44586         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44587         INT_FAST*_MIN, INTPTR_MIN.
44588
44589 2006-07-25  Bruno Haible  <bruno@clisp.org>
44590
44591         * modules/version-etc (Depends-on): Add stdarg.
44592
44593 2006-07-25  Bruno Haible  <bruno@clisp.org>
44594
44595         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44596         complex commands.
44597
44598 2006-07-25  Bruno Haible  <bruno@clisp.org>
44599
44600         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44601         defined in <stdarg.h> or config.h.
44602
44603 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44604
44605         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44606         (gl_STDIO_SAFER): Remove.
44607
44608 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44609
44610         * MODULES.html.sh (File stream based Input/Output):
44611         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44612         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44613         * modules/fopen-safer, modules/tmpfile-safer: New files.
44614         * modules/stdio-safer: Remove.
44615
44616 2006-07-24  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/tmpdir: New file.
44619         * MODULES.html.sh (File system functions): Add it.
44620
44621 2006-07-24  Bruno Haible  <bruno@clisp.org>
44622
44623         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44624         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44625
44626 2006-07-24  Bruno Haible  <bruno@clisp.org>
44627
44628         * modules/clean-temp: New file.
44629
44630 2006-07-24  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/tmpdir.m4: New file, from GNU gettext.
44633
44634 2006-07-24  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/tmpdir.h: New file, from GNU gettext.
44637         * lib/tmpdir.c: New file, from GNU gettext.
44638
44639 2006-07-24  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/clean-temp.h: New file, from GNU gettext.
44642         * lib/clean-temp.c: New file, from GNU gettext.
44643
44644 2006-07-23  Eric Blake  <ebb9@byu.net>
44645
44646         * modules/stdio-safer (Files): Add tmpfile-safer.c.
44647         (Depends-on): Add binary-io.
44648
44649 2006-07-23  Eric Blake  <ebb9@byu.net>
44650
44651         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
44652
44653 2006-07-23  Eric Blake  <ebb9@byu.net>
44654
44655         * lib/tmpfile-safer.c: New file.
44656         * lib/stdio-safer.h (fopen_safer): Add prototype.
44657         * lib/stdio--.h (tmpfile): Make safer.
44658
44659 2006-07-23  Bruno Haible  <bruno@clisp.org>
44660
44661         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44662         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44663         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44664         gl_linked_remove_at): Use it.
44665
44666 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44667         and Simon Josefsson <jas@extundo.com>
44668
44669         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44670
44671         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44672
44673 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44674
44675         * modules/close-stream: New file.
44676         * modules/closeout (Description): Make it clear that it exits
44677         with a diagnostic on error.
44678         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44679         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44680
44681 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44682
44683         * m4/close-stream.m4: New file.
44684
44685 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44686
44687         * lib/close-stream.c, lib/close-stream.h: New files.
44688
44689 2006-07-22  Bruno Haible  <bruno@clisp.org>
44690
44691         Merge from GNU gettext 0.15.
44692
44693         2006-05-01  Bruno Haible  <bruno@clisp.org>
44694
44695                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44696
44697         2006-07-22  Bruno Haible  <bruno@clisp.org>
44698
44699                 * modules/javaversion: New file.
44700                 * MODULES.html.sh (Java): Add javaversion.
44701
44702         2006-03-12  Bruno Haible  <bruno@clisp.org>
44703
44704                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44705
44706         2005-12-04  Bruno Haible  <bruno@clisp.org>
44707
44708                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44709                 (untested).
44710
44711         2006-06-21  Bruno Haible  <bruno@clisp.org>
44712
44713                 Avoid warnings from recent versions of mcs.
44714                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44715                 -o, -L, -r any more. Use options documented since mcs-1.0
44716                 instead. Similarly for -g.
44717
44718         2005-12-04  Bruno Haible  <bruno@clisp.org>
44719
44720                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44721                 .resources, not .resource.
44722
44723         2005-07-09  Bruno Haible  <bruno@clisp.org>
44724
44725                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44726                 add a .dll suffix.
44727                 Reported by Mark Junker <mjscod@gmx.de>.
44728
44729         2006-07-22  Bruno Haible  <bruno@clisp.org>
44730
44731                 * modules/gettext: Upgrade to gettext-0.15.
44732                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44733                 m4/visibility.m4.
44734                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44735
44736 2006-07-22  Bruno Haible  <bruno@clisp.org>
44737
44738         Merge from GNU gettext 0.15.
44739
44740         2006-03-25  Bruno Haible  <bruno@clisp.org>
44741
44742                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44743
44744         2006-07-21  Bruno Haible  <bruno@clisp.org>
44745
44746                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44747                 "1.1".
44748
44749         2006-05-09  Bruno Haible  <bruno@clisp.org>
44750
44751                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44752                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44753                 for the conftestver execution.
44754
44755         2006-05-01  Bruno Haible  <bruno@clisp.org>
44756
44757                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44758                 optional target-version argument. Verify that the compiler
44759                 groks source of the specified source-version, or add -source
44760                 option as necessary. Verify that the compiler produces
44761                 bytecode in the specified target-version, or add -target and
44762                 -source options as necessary. Make the result of the test
44763                 available as variable CONF_JAVAC. Also log error output in
44764                 config.log.
44765
44766         2006-03-11  Bruno Haible  <bruno@clisp.org>
44767
44768                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44769
44770         2006-05-09  Bruno Haible  <bruno@clisp.org>
44771
44772                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44773                 CLASSPATH_SEPARATOR to a semicolon.
44774
44775         2006-03-12  Bruno Haible  <bruno@clisp.org>
44776
44777                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44778                 available as variable CONF_JAVA, for subsequent autoconf
44779                 tests. Also log error output in config.log.
44780
44781         2006-07-19  Bruno Haible  <bruno@clisp.org>
44782
44783                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44784                 that getline works on glibc2 systems. Needed to avoid trouble
44785                 in relocatable.c.
44786                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44787
44788         2005-12-04  Bruno Haible  <bruno@clisp.org>
44789
44790                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44791                 launcher (untested).
44792
44793         2005-12-04  Bruno Haible  <bruno@clisp.org>
44794
44795                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44796
44797         2006-07-22  Bruno Haible  <bruno@clisp.org>
44798
44799                 * gettext.m4: Update from GNU gettext-0.15.
44800                 * nls.m4: Likewise.
44801                 * po.m4: Likewise.
44802                 * inttypes-pri.m4: Likewise.
44803                 * inttypes-h.m4: Renamed from inttypes.m4.
44804                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44805
44806 2006-07-22  Bruno Haible  <bruno@clisp.org>
44807
44808         Merge from GNU gettext 0.15.
44809
44810         2005-07-05  Bruno Haible  <bruno@clisp.org>
44811
44812                 * printf-args.c (printf_fetchargs): Work around broken
44813                 definition of wint_t on mingw.
44814
44815         2005-02-12  Bruno Haible  <bruno@clisp.org>
44816
44817                 * xallocsa.h: Add extern "C" for C++.
44818
44819         2006-05-17  Bruno Haible  <bruno@clisp.org>
44820
44821                 Cygwin portability.
44822                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44823
44824         2006-04-30  Bruno Haible  <bruno@clisp.org>
44825
44826                 * progreloc.c: Include <mach-o/dyld.h> if available.
44827                 (find_executable): Use _NSGetExecutablePath when possible.
44828
44829         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44830
44831                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44832                 function.
44833
44834         2005-12-29  Bruno Haible  <bruno@clisp.org>
44835
44836                 * progreloc.c (set_program_name_and_installdir): Fix
44837                 compilation error.
44838
44839         2005-12-04  Bruno Haible  <bruno@clisp.org>
44840
44841                 Cygwin portability.
44842                 * progreloc.c: Include <windows.h> also on Cygwin.
44843                 (find_executable): Add support for Cygwin.
44844                 (set_program_name_and_installdir): Handle also platforms with
44845                 nonempty EXEEXT.
44846
44847         2006-07-11  Bruno Haible  <bruno@clisp.org>
44848
44849                 * javacomp.c: Fix a comment.
44850                 Reported by Jim Meyering.
44851
44852         2006-04-30  Bruno Haible  <bruno@clisp.org>
44853
44854                 * javacomp.h (compile_java_class): Add source_version,
44855                 target_version arguments.
44856                 * javacomp.c: Rewritten to choose only a compiler that
44857                 respects the specified source_version and target_version.
44858
44859         2006-06-27  Bruno Haible  <bruno@clisp.org>
44860
44861                 Assume correct S_ISDIR macro.
44862                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44863
44864         2006-07-22  Bruno Haible  <bruno@clisp.org>
44865
44866                 * javaversion.h: New file, from GNU gettext.
44867                 * javaversion.c: New file, from GNU gettext.
44868                 * javaversion.java: New file, from GNU gettext.
44869                 * javaversion.class: New file, from GNU gettext.
44870
44871         2006-05-17  Bruno Haible  <bruno@clisp.org>
44872
44873                 Cygwin portability.
44874                 * javaexec.c (execute_java_class): Test for jview program
44875                 also on Cygwin.
44876
44877         2006-04-09  Bruno Haible  <bruno@clisp.org>
44878
44879                 * fatal-signal.c: Don't include string.h.
44880                 (at_fatal_signal): Use a copying loop instead of memcpy.
44881
44882         2005-12-04  Bruno Haible  <bruno@clisp.org>
44883
44884                 * csharpexec.c: Add support for 'clix' launcher (untested).
44885                 (execute_csharp_using_sscli): New function.
44886                 (execute_csharp_program): Call it.
44887
44888         2006-06-21  Bruno Haible  <bruno@clisp.org>
44889
44890                 Avoid warnings from recent versions of mcs.
44891                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44892                 -o, -L, -r any more. Use options documented since mcs-1.0
44893                 instead. Similarly for -g.
44894
44895         2005-07-09  Bruno Haible  <bruno@clisp.org>
44896
44897                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44898                 add a .dll suffix.
44899                 Reported by Mark Junker <mjscod@gmx.de>.
44900
44901         2006-06-17  Bruno Haible  <bruno@clisp.org>
44902
44903                 * config.charset: Update for NetBSD 3.0.
44904
44905         2006-05-17  Bruno Haible  <bruno@clisp.org>
44906
44907                 Cygwin portability.
44908                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44909
44910         2006-05-16  Bruno Haible  <bruno@clisp.org>
44911
44912                 * localcharset.c [CYGWIN]: Include <windows.h>.
44913                 (get_charset_aliases): For Cygwin, return the same CPxxx
44914                 aliases list as under WIN32.
44915                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44916                 the environment variables. Fall back to GetACP().
44917
44918         2006-04-05  Bruno Haible  <bruno@clisp.org>
44919
44920                 * config.charset: Update Juan Manuel Guerrero's address.
44921
44922         2005-02-12  Bruno Haible  <bruno@clisp.org>
44923
44924                 * allocsa.h: Add extern "C" for C++.
44925
44926         2005-02-10  Bruno Haible  <bruno@clisp.org>
44927
44928                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44929                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44930
44931         2006-07-22  Bruno Haible  <bruno@clisp.org>
44932
44933                 * gettext.h: Update to GNU gettext-0.15.
44934
44935 2006-07-22  Bruno Haible  <bruno@clisp.org>
44936
44937         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44938         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44939         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44940
44941 2006-07-21  Eric Blake  <ebb9@byu.net>
44942
44943         * modules/stdlib-safer: New file.
44944         * MODULES.html.sh (File stream based Input/Output): Add
44945         stdlib-safer.
44946
44947 2006-07-21  Eric Blake  <ebb9@byu.net>
44948
44949         * lib/stdlib-safer.h: New file from coreutils, required by
44950         stdlib--.h.
44951
44952 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44953
44954         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44955
44956 2006-07-20  Bruno Haible  <bruno@clisp.org>
44957
44958         * gnulib-tool: Recognize new option --assume-autoconf.
44959         (autoconf_minversion): New variable.
44960         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44961
44962 2006-07-20  Bruno Haible  <bruno@clisp.org>
44963
44964         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44965
44966 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44967
44968         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44969         Reindent and repaginate.
44970
44971 2006-07-19  Derek Price  <derek@ximbiot.com>
44972
44973         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44974         Correct grammar.
44975
44976 2006-07-17  Bruno Haible  <bruno@clisp.org>
44977
44978         * modules/list: New file.
44979         * modules/array-list: New file.
44980         * modules/carray-list, modules/carray-list-tests: New files.
44981         * modules/linked-list, modules/linked-list-tests: New files.
44982         * modules/avltree-list, modules/avltree-list-tests: New files.
44983         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44984         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44985         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44986         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44987         * modules/oset: New file.
44988         * modules/array-oset: New file.
44989         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44990         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44991         * tests/test-carray_list.c: New file.
44992         * tests/test-linked_list.c: New file.
44993         * tests/test-avltree_list.c: New file.
44994         * tests/test-rbtree_list.c: New file.
44995         * tests/test-linkedhash_list.c: New file.
44996         * tests/test-avltreehash_list.c: New file.
44997         * tests/test-rbtreehash_list.c: New file.
44998         * tests/test-avltree_oset.c: New file.
44999         * tests/test-rbtree_oset.c: New file.
45000         * MODULES.html.sh (Container data structures): New section.
45001
45002 2006-07-17  Bruno Haible  <bruno@clisp.org>
45003
45004         * m4/gl_list.m4: New file.
45005
45006 2006-07-17  Bruno Haible  <bruno@clisp.org>
45007
45008         * lib/gl_list.h: New file.
45009         * lib/gl_list.c: New file.
45010         * lib/gl_array_list.h: New file.
45011         * lib/gl_array_list.c: New file.
45012         * lib/gl_carray_list.h: New file.
45013         * lib/gl_carray_list.c: New file.
45014         * lib/gl_linked_list.h: New file.
45015         * lib/gl_linked_list.c: New file.
45016         * lib/gl_anylinked_list1.h: New file.
45017         * lib/gl_anylinked_list2.h: New file.
45018         * lib/gl_avltree_list.h: New file.
45019         * lib/gl_avltree_list.c: New file.
45020         * lib/gl_anyavltree_list1.h: New file.
45021         * lib/gl_anyavltree_list2.h: New file.
45022         * lib/gl_rbtree_list.h: New file.
45023         * lib/gl_rbtree_list.c: New file.
45024         * lib/gl_anyrbtree_list1.h: New file.
45025         * lib/gl_anyrbtree_list2.h: New file.
45026         * lib/gl_anytree_list1.h: New file.
45027         * lib/gl_anytree_list2.h: New file.
45028         * lib/gl_linkedhash_list.h: New file.
45029         * lib/gl_linkedhash_list.c: New file.
45030         * lib/gl_anyhash_list1.h: New file.
45031         * lib/gl_anyhash_list2.h: New file.
45032         * lib/gl_avltreehash_list.h: New file.
45033         * lib/gl_avltreehash_list.c: New file.
45034         * lib/gl_rbtreehash_list.h: New file.
45035         * lib/gl_rbtreehash_list.c: New file.
45036         * lib/gl_anytreehash_list1.h: New file.
45037         * lib/gl_anytreehash_list2.h: New file.
45038
45039         * lib/gl_oset.h: New file.
45040         * lib/gl_oset.c: New file.
45041         * lib/gl_array_oset.h: New file.
45042         * lib/gl_array_oset.c: New file.
45043         * lib/gl_avltree_oset.h: New file.
45044         * lib/gl_avltree_oset.c: New file.
45045         * lib/gl_rbtree_oset.h: New file.
45046         * lib/gl_rbtree_oset.c: New file.
45047         * lib/gl_anytree_oset.h: New file.
45048
45049 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45050
45051         * m4/mkancesdirs.m4: New file.
45052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45053         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45054         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45055         it.
45056
45057 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45058
45059         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45060         * lib/mkancesdirs.h: New files.
45061         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45062         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45063         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45064         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45065         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45066         callers changed.  Revamp internals significantly, by not
45067         attempting to create directories that are temporarily more
45068         permissive than the final results.  Do not attempt to use
45069         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45070         This removes some race conditions, fixes some bugs, and simplifies
45071         things.  Use new dirchownmod function to do owner and mode changes.
45072         * lib/mkdir-p.h: Likewise.
45073         * lib/modechange.c (octal_to_mode): New function.
45074         (struct mode_change): New member mentioned.
45075         (make_node_op_equals): New arg mentioned.  All callers changed.
45076         (mode_compile): Keep track of which mode bits the user has explicitly
45077         mentioned.
45078         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45079         New arg PMODE_BITS, to keep track of which mode bits the user
45080         mentioned; it treats S_ISUID and S_ISGID speciall.
45081         All callers changed.
45082         * lib/modechange.h: Likewise.
45083
45084 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45085
45086         * MODULES.html.sh: Add mkancestors.
45087         * modules/mkancesdirs: New module.
45088         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45089         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45090         The chdir-safer and afs files are now orphans; I'll remove them
45091         unless someone speaks up.
45092         Add lib/dirchownmod.c, lib/dirchownmod.h.
45093         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45094         Add lchown, mkancesdirs.
45095         (Maintainer): Add self.
45096
45097 2006-07-15  Karl Berry  <karl@gnu.org>
45098
45099         * gnulib-tool: help message wording/arrangement.
45100
45101 2006-07-14  Simon Josefsson  <jas@extundo.com>
45102
45103         * doc/gnulib.texi (Libtool and Windows): New section.
45104
45105 2006-07-12  Simon Josefsson  <jas@extundo.com>
45106
45107         * modules/gendocs (License): Fix license, approved by Karl.
45108
45109 2006-07-12  Eric Blake  <ebb9@byu.net>
45110
45111         * MODULES.html.sh: Add gendocs.
45112
45113 2006-07-11  Eric Blake  <ebb9@byu.net>
45114
45115         * modules/fdl: New module, to install doc/fdl.texi.
45116         * MODULES.html.sh: Add new section for documentation modules.
45117         * gnulib-tool: Avoid space-tab.
45118         (--doc-base): New option, to manage files from doc.
45119
45120 2006-07-11  Eric Blake  <ebb9@byu.net>
45121
45122         * m4/absolute-header.m4: Fix comments to match recent change.
45123
45124 2006-07-11  Eric Blake  <ebb9@byu.net>
45125
45126         * gnulib-tool: List --doc-base before --tests-base.
45127
45128 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45129
45130         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45131
45132 2006-07-11  Bruno Haible  <bruno@clisp.org>
45133
45134         * README: Mention where to put documentation.
45135
45136 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45137
45138         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45139
45140 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45143         to stdint.m4.
45144
45145 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45146
45147         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45148         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45149         "no/such/file/stdint.h" when there is no such file, so that
45150         the resulting C code can be parsed by dodgy compilers.
45151         Problems reported by Bob Proulx.
45152
45153 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45154
45155         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45156         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45157         macros into the GNU _D_EXACT_NAMLEN.
45158         * lib/savedir.c:  Likewise.
45159         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45160
45161 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45162         and Paul Eggert  <eggert@cs.ucla.edu>
45163
45164         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45165         * m4/savedir.m4:
45166         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45167         macros into the GNU _D_EXACT_NAMLEN.
45168
45169 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45170
45171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45172         around the absolute name, to work around a problem with the HP-UX
45173         11.23 native C compiler, reported by Bob Proulx.
45174
45175 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45176
45177         * doc/maintain.texi, make-stds.texi: Sync from
45178         <http://savannah.gnu.org/projects/gnustandards>.
45179
45180 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45183
45184 2006-07-09  Jim Meyering  <jim@meyering.net>
45185
45186         * m4/glob.m4: Remove a doubled word in a comment.
45187
45188 2006-07-09  Jim Meyering  <jim@meyering.net>
45189
45190         * lib/argp-pv.c: Remove a doubled word in a comment.
45191         * lib/check-version.c (check_version): Likewise.
45192         * lib/javacomp.c (compile_java_class): Likewise.
45193
45194 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45195
45196         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45197         for the benefit of people using Autoconf 2.60.  If you want to
45198         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45199         (or m4/onceonly.m4, if pre-2.57) manually.
45200
45201 2006-07-08  Jim Meyering  <jim@meyering.net>
45202
45203         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45204         comment.
45205         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45206         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45207         comment.
45208
45209 2006-07-08  Jim Meyering  <jim@meyering.net>
45210
45211         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45212
45213 2006-07-07  Simon Josefsson  <jas@extundo.com>
45214
45215         * tests/test-crc.c: Change expected crc value, the test vector
45216         were probably computed using the old broken crc.c?
45217
45218 2006-07-06  Simon Josefsson  <jas@extundo.com>
45219
45220         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45221         now the canonical place for the M4 file).
45222
45223         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45224         from the sys_socket dependency now.
45225
45226         * modules/inet_pton (Files): Ditto.
45227
45228         * modules/inet_ntop (Files): Ditto.
45229
45230 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45231
45232         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45233         not gl_PREREQ_GETUSERSHELL.
45234
45235 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45236
45237         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45238         with only one argument, for Autoconf 2.60.
45239         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45240         expand to nothing, so add a shell command to avoid syntax error.
45241         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45242
45243 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45244
45245         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45246
45247 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45250         no longer needed.  Check for isblank decl.
45251         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45252         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45253         of existence.
45254
45255 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45256
45257         * lib/getloadavg.c: Use __VMS, not VMS.
45258         * lib/getopt.c: Likewise.
45259         * lib/getpagesize.h: Likewise.
45260         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45261         and probably does not work.
45262
45263 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45264
45265         * lib/.cppi-disable: Add wcwidth.
45266         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45267         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45268         (ISGRAPH): Remove.  All uses changed to isgraph.
45269         (FOLD) [!defined _LIBC]: Remove special case.
45270         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45271         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45272         HAVE_ISBLANK.
45273         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45274         case.
45275
45276 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45277
45278         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45279         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45280         brackets.  Other minor changes to suppress some compiler
45281         warnings.
45282
45283 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45284         and Paul Eggert  <eggert@cs.ucla.edu>
45285
45286         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45287         of invoking obsolescent AC_HEADER_DIRENT macro.
45288         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45289         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45290         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45291         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45292         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45293         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45294         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45295         * m4/readdir.m4: Remove; no longer needed.
45296
45297 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45298         and Paul Eggert  <eggert@cs.ucla.edu>
45299
45300         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45301         Don't worry about this obsolete case any more.
45302         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45303         directories.
45304         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45305         worry about this obsolete case any more.
45306         * lib/fts.c: Likewise.
45307         * lib/getcwd.c: Likewise.
45308         * lib/glob.h: Likewise.
45309         * lib/savedir.c: Likewise.
45310
45311 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45314         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45316         needed.
45317         All uses removed.
45318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45319         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45320         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45321         needed.
45322         * m4/getdate.m4 (gl_GETDATE): Likewise.
45323         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45324         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45325         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45326         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45327         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45328         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45329         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45330         needed.
45331
45332 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * lib/memcasecmp.c: Include <limits.h>.
45335         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45336         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45337         Don't assume isdigit succeeds only on '0' through '9'.
45338
45339 2006-07-05  Eric Blake  <ebb9@byu.net>
45340
45341         * modules/getaddrinfo (Depends-on): Add snprintf.
45342
45343 2006-07-05  Eric Blake  <ebb9@byu.net>
45344
45345         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45346         to avoid 'header present but could not be compiled' on cygwin.
45347
45348 2006-07-05  Eric Blake  <ebb9@byu.net>
45349
45350         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45351         missing from netdb.h.
45352         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45353
45354 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45355
45356         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45357         no longer needed.
45358         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45359         * m4/getdate.m4 (gl_GETDATE): Likewise.
45360         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45361         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45362         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45363         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45364         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45365
45366 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45367
45368         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45369         All uses of is_space replaced by isspace.
45370         * lib/exit.h: Don't talk about STDC_HEADERS.
45371         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45372         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45373         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45374         replaced by isprint etc.
45375         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45376         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45377         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45378         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45379         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45380         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45381
45382 2006-07-05  Bruno Haible  <bruno@clisp.org>
45383
45384         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45385         the function exists, before testing against AIX.
45386         Reported by Martin Lambers <marlam@marlam.de>.
45387
45388 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45389
45390         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45391         From Mark D. Baushke.
45392
45393 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45394
45395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45396         to the absolute name, not just one, to bypass Sun C 5.8's
45397         "warning: #include of /usr/include/... may be non-portable".
45398
45399 2006-07-04  Eric Blake  <ebb9@byu.net>
45400
45401         * modules/dirname-tests: New test module.
45402         * tests/test-dirname.c: New file, replacing dirname.c
45403         TEST_DIRNAME section that was recently deleted.
45404
45405 2006-07-04  Bruno Haible  <bruno@clisp.org>
45406
45407         Assume ANSI C header files and <ctype.h> functions.
45408         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45409         (mbsnwidth): Use isprint, iscntrl instead.
45410
45411 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45412
45413         Merge from coreutils.
45414         * MODULES.html.sh: Add xstrtold.
45415         * modules/xstrtold: New file.
45416         * modules/cycle-check (Files): Add lib/same-inode.h.
45417         * modules/dirname (Files): Add m4/double-slash-root.m4.
45418         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45419         * modules/mkdir-p (Files): Add lib/same-inode.h.
45420         * modules/same (Files): Add lib/same-inode.h.
45421
45422 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45425         This is to keep the terminology clean; POSIX talks about
45426         "absolute pathnames", not "full pathnames", but the GNU
45427         Coding Standards say to use "path" for something else;
45428         so use "absolute" to keep both sides happy.
45429         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45430         Set gl_absolute_header, not gl_full_header_path.
45431         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45432         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45433         All uses changed.
45434
45435         Merge from coreutils.
45436
45437         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45440         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45441         want to require the building of c-strtod.o.
45442         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45443         needs -lm directly.
45444         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45445
45446         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45447
45448         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45449         --as-needed option if available.  Problem reported by Albert Chin in
45450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45451         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45452         cc merely issues a bunch of annoying warnings for --as-needed
45453         (this problem was reported by Bob Proulx).  Also, try linking with
45454         -lm to detect a bug in binutils 2.16 (this problem was reported
45455         by Ralf Wildenhues).
45456
45457         2006-06-18  Jim Meyering  <jim@meyering.net>
45458
45459         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45460         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45461         macro.
45462         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45463         also check for glibc-2.4's abort-inducing bug.
45464
45465         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45466         Low-probability clean-up should be to use rmdir to get rid of
45467         the just-created directory, not unlink.
45468
45469         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45470         configure fail, and request a bug report to inform us about it.
45471         Add a comment that, barring reports to the contrary, in 2007 we'll
45472         assume ftruncate is universally available.
45473
45474         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45475
45476         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45477
45478         2006-03-12  Jim Meyering  <jim@meyering.net>
45479
45480         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45481         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45482         * m4/same.m4 (gl_SAME): Likewise.
45483         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45484
45485         2006-03-11  Eric Blake  <ebb9@byu.net>
45486
45487         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45488         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45489         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45490         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45491
45492 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45493
45494         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45495         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45496         reported by Mark D. Baushke, one in
45497         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45498
45499         Merge from coreutils.
45500
45501         * lib/.cppi-disable: Add stdint_.h.
45502         * lib/.cvsignore: Add stdint.h.
45503
45504         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45507         both double and long double versions.
45508         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45509         * lib/xstrtold.c: New file.
45510         * lib/xstrtod.h (xstrtold): New decl.
45511
45512         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45513
45514         * lib/filemode.c (setst): Remove.
45515         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45516         (arguably) clearer, and the generated code is a bit smaller on my
45517         Debian GNU/Linux stable x86 host.
45518
45519         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45520
45521         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45522         Assume that filemode.h includes sys/types.h and sys/stat.h.
45523         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45524         (ftypelet): Reorder to put common cases first, for efficiency.
45525         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45526         to do 'M'.
45527         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45528         of 10, for compatibility with FreeBSD.  All callers changed.
45529         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45530         types that can't be deduced solely from st_mode.  First arg is now a
45531         const pointer.
45532         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45533         (strmode): Renamed from mode_string.
45534         (filemodestring): New decl.
45535         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45536         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45537         needed.
45538         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45539
45540         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45541
45542         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45543         fsusage.h now does that.  Include fsusage.h first, to test interface.
45544         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45545         at most one method (the old code could have generated decls that
45546         didn't conform to C89, not that this was ever exercised).
45547         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45548
45549         2006-03-19  Jim Meyering  <jim@meyering.net>
45550
45551         Work even in a chroot where d_ino values for entries in "/"
45552         don't match the stat.st_ino values for the same names.
45553         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45554         number, iterate through all entries again, using lstat instead.
45555         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45556         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45557
45558         * lib/getcwd.c (__getcwd): Clarify a comment.
45559         Use memcpy in place of a call to strcpy.
45560
45561         2006-03-12  Jim Meyering  <jim@meyering.net>
45562
45563         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45564         matches that of the current directory (which we're about to chdir ".."
45565         out of), then save the dev-ino of the parent, instead.
45566
45567         * lib/same-inode.h (SAME_INODE): New file/macro.
45568         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45569         Include "same-inode.h", instead.
45570         * lib/same.c: Likewise.
45571         * lib/cycle-check.h: Include "same-inode.h".
45572         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45573         * lib/cycle-check.c (SAME_INODE): Remove definition.
45574         * lib/root-dev-ino.h: Include "same-inode.h".
45575
45576         2006-03-11  Eric Blake  <ebb9@byu.net>
45577
45578         * lib/same.c (same_name): s/base_name/last_component/
45579         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45580         * lib/filenamecat.c (file_name_concat): Likewise.
45581
45582         2006-03-11  Eric Blake  <ebb9@byu.net>,
45583                     Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45586         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45587         drive prefix.
45588         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45589         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45590         (last_component): New method.
45591         * lib/dirname.c (dir_len): Determine when drive letters need a
45592         subsequent slash.  Preserve // when it is special.
45593         (dir_name): Don't append dot when drive letter is absolute.
45594         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45595         * lib/basename.c (base_name): New semantics - malloc the result.
45596         Preserve // when it is special.  Preserve relative files that look
45597         like drive letters.
45598         (base_len): Preserve // when it is special.
45599         (last_component): New method, similar to old base_name semantics.
45600         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45601         base_name.  Strip redundant slashes from ///.
45602
45603 2006-07-03  Jim Meyering  <jim@meyering.net>
45604
45605         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45606         macro is used before the first cycle_check call.
45607
45608 2006-07-03  Eric Blake  <ebb9@byu.net>
45609
45610         * modules/dirname (Depends-on): Add xstrndup.
45611
45612 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45613
45614         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45615         test cases, so that config.log is a bit easier to follow.
45616
45617 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45618
45619         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45620         both are 64 bits, since this seems to be the tradition, and this
45621         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45622         we ever run into a host that prefers long long to long in this
45623         case, we'll need another configure-time test.  Problem reported by
45624         Jim Meyering.
45625
45626 2006-07-02  Eric Blake  <ebb9@byu.net>
45627
45628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45629
45630 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45631
45632         * modules/inttypes (Depends-on): No longer depends on stdint.
45633         * modules/stdint (Description): Say more about assumptions.
45634         Say that the fast types might differ.  Say macros are used.
45635         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45636         (Makefile.am): Revise list of substituted symbols to match
45637         new stdint.m4.
45638         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
45639         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
45640         * tests/test-stdint.c (verify_same_types)
45641         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
45642         the code conforms to C99/C89.
45643         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
45644         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
45645
45646 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45647
45648         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
45649         but fix a bug, by requiring at least 64 bits.
45650         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45651         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
45652         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
45653         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
45654
45655         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
45656         changes.  Make 2.59 a prerequisite.  Check and substitute for
45657         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45658         inttypes.h.  Do not use special include files; just use the
45659         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45660         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45661         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45662         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45663         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45664         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45665         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45666         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45667         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45668         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45669         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45670         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45671         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45672         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45673         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45674         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45675         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45676         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45677         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45678         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45679         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45680         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45681         not check for things that C99 does not require, e.g., int8_t.  If
45682         a test isn't needed unless <stdint.h> isn't working, and is
45683         unlikely to be needed for any other reason, then don't do it
45684         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45685         size_t, since we assume C89 freestanding at least.  Do not check
45686         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45687         the right thing even if the types are not defined.  Instead use:
45688         (gl_STDINT_TYPE_PROPERTIES): New macro.
45689         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45690         testing whether <sys/types.h> clashes, as Autoconf does this for
45691         us now.  All uses removed.
45692         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45693         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45694         (gl_CHECK_TYPE_SAME):
45695         Remove; no longer needed.
45696         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45697         exists, since we'll return 0 anyway in that case.
45698         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45699
45700 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45701
45702         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45703         possible collision with system files.
45704         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45705         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45706         WCHAR_MIN and WCHAR_MAX in this case.
45707         (<stddef.h>): Do not include; no longer needed.
45708         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45709         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45710         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45711         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45712         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45713         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45714         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45715         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45716         !defined(__c99))]: Include in this case too, since it's harmless
45717         now.
45718         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45719         dangerous to do so.
45720         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45721         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45722         (_STDINT_MIN, _STDINT_MAX): New macros.
45723         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45724         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45725         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45726         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45727         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45728         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45729         macros, not typedefs; this simplifies things quite a bit.
45730         Use long int for all types narrower than int64_t.
45731         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45732         Define in terms of long long int or int64_t or long int,
45733         not int64_t or int32_t.  This saves some compile-time testing.
45734         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45735         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45736         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45737         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45738         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45739         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45740         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45741         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45742         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45743         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45744         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45745         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45746         undef any previous version and define our own version, for
45747         simplicity and consistency with the new macros for types.
45748         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45749         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45750         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45751         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45752         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45753         @WINT_T_SUFFIX@ to keep things simple here.
45754         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45755         Simplify by assuming typical 8/16/32/64 host, since we're
45756         already doing that elsewhere anyway.
45757         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45758         and assume long long int is 64 bits if available.  This
45759         speeds up 'configure'.
45760
45761 2006-07-01  Eric Blake  <ebb9@byu.net>
45762
45763         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45764         Reported by Andreas Buening.
45765
45766 2006-07-01  Eric Blake  <ebb9@byu.net>
45767
45768         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45769
45770 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45771
45772         * lib/getaddrinfo.c: fixed typo
45773
45774 2006-06-29  Jim Meyering  <jim@meyering.net>
45775
45776         * modules/strftime (Maintainer): Add my name, since with the
45777         FPRINTFTIME changes strftime.c has forked from glibc.
45778
45779 2006-06-29  Eric Blake  <ebb9@byu.net>
45780
45781         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45782
45783 2006-06-29  Eric Blake  <ebb9@byu.net>
45784
45785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45786
45787 2006-06-29  Eric Blake  <ebb9@byu.net>
45788
45789         * lib/stat_.h: New file.
45790
45791 2006-06-29  Eric Blake  <ebb9@byu.net>
45792
45793         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45794         unused static function.
45795
45796 2006-06-29  Eric Blake  <ebb9@byu.net>
45797
45798         * doc/functions.texi (Function Portability): Document missing lstat
45799         on mingw.
45800
45801 2006-06-29  Eric Blake  <ebb9@byu.net>
45802
45803         * MODULES.html.sh: Add sys_stat.
45804         * modules/sys_stat: New module.
45805         * modules/mkstemp (Depends-on): Add sys_stat.
45806
45807 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45808
45809         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45810
45811 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45812
45813         * m4/c-bs-a.m4: Removed.
45814
45815 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45816
45817         * lib/strftime.c: Assume strftime() exists.
45818
45819 2006-06-29  Derek Price  <derek@ximbiot.com>
45820
45821         * modules/c-bs-a: Removed - \a is C89.
45822         * MODULES.html.sh: Remove c-bs-a.
45823
45824 2006-06-29  Bruno Haible  <bruno@clisp.org>
45825
45826         * modules/wcwidth (License): Change to LGPL.
45827
45828 2006-06-28  Simon Josefsson  <jas@extundo.com>
45829
45830         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45831         on _WIN32.
45832
45833         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45834         getnameinfo.
45835
45836 2006-06-28  Simon Josefsson  <jas@extundo.com>
45837
45838         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45839
45840 2006-06-28  Simon Josefsson  <jas@extundo.com>
45841
45842         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45843         functions there.  It will succeed on Windows XP, but on Windows
45844         2000 and (presumably) earlier, it will fail, and use the internal
45845         re-implementation.
45846         (use_win32_p): New function.
45847         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45848         Support AI_NUMERICSERV to disable getservbyname.
45849         (getnameinfo): New function, only supports
45850         NI_NUMERICHOST|NI_NUMERICSERV for now.
45851
45852         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45853         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45854         getnameinfo.
45855
45856 2006-06-28  Eric Blake  <ebb9@byu.net>
45857
45858         * modules/wcwidth: New file.
45859         * modules/mbchar (Depends-on): Add wcwidth.
45860         * modules/mbswidth (Depends-on): Add wcwidth.
45861         * MODULES.html.sh: Add wcwidth.
45862
45863 2006-06-28  Eric Blake  <ebb9@byu.net>
45864
45865         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45867
45868 2006-06-28  Eric Blake  <ebb9@byu.net>
45869
45870         * lib/xvasprintf.h: Fix comments.
45871
45872 2006-06-28  Eric Blake  <ebb9@byu.net>
45873
45874         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45875         * lib/mbswidth.c (wcwidth): Move from here...
45876         * lib/wcwidth.h: ...to this new file.
45877
45878 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45879
45880         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45881
45882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45883         it's obsolete.
45884         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45885
45886 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45887
45888         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45889         Autoconf 2.60 says this stuff was obsolete.
45890
45891 2006-06-28  Bruno Haible  <bruno@clisp.org>
45892
45893         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45894
45895 2006-06-28  Bruno Haible  <bruno@clisp.org>
45896
45897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45898         gt_TYPE_WCHAR_T.
45899
45900 2006-06-28  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45903         declaration for wcwidth.
45904         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45905
45906 2006-06-28  Bruno Haible  <bruno@clisp.org>
45907
45908         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45909         (mkdir): Define using _mkdir.
45910
45911 2006-06-28  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/getaddrinfo.h: Fix POSIX URL.
45914         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45915         _WIN32.
45916         (use_win32_p): Make static.
45917         (getaddrinfo): Reject service name if it is empty or does not consist
45918         solely of decimal digits, or if its value is > 65535.
45919         (getnameinfo): Remove useless casts.
45920
45921 2006-06-27  Simon Josefsson  <jas@extundo.com>
45922
45923         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45924         Eggert and Martin Lambers.
45925
45926 2006-06-27  Simon Josefsson  <jas@extundo.com>
45927
45928         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45929         Eggert and Martin Lambers.
45930
45931 2006-06-27  Bruno Haible  <bruno@clisp.org>
45932
45933         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45934         result to 0, not to empty.
45935         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45936
45937 2006-06-27  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45940
45941 2006-06-26  Simon Josefsson  <jas@extundo.com>
45942
45943         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45944         present.
45945
45946 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45947
45948         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45949         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45951
45952 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45953
45954         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45955
45956 2006-06-26  Bruno Haible  <bruno@clisp.org>
45957
45958         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45959
45960 2006-06-26  Bruno Haible  <bruno@clisp.org>
45961
45962         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45963
45964 2006-06-26  Bruno Haible  <bruno@clisp.org>
45965
45966         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45967         SGI C compiler in pre-C99 mode.
45968         Suggested by Mark D. Baushke and Larry Jones.
45969
45970 2006-06-26  Bruno Haible  <bruno@clisp.org>
45971
45972         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45973         WCHAR_MAX.
45974         Reported by Mark D. Baushke and Larry Jones.
45975
45976 2006-06-26  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45979         in pre-C99 mode.
45980         Suggested by Mark D. Baushke and Larry Jones.
45981
45982 2006-06-23  Simon Josefsson  <jas@extundo.com>
45983             Bruno Haible  <bruno@clisp.org>
45984
45985         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45986         Emit mostlyclean-local rule.
45987         (func_emit_tests_Makefile_am): Likewise.
45988         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45989
45990 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45991
45992         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45993
45994 2006-06-23  Bruno Haible  <bruno@clisp.org>
45995
45996         * tests/test-stdint.c: Update to match ISO C 99 Technical
45997         Corrigendum 1.
45998
45999 2006-06-23  Bruno Haible  <bruno@clisp.org>
46000
46001         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46002
46003 2006-06-23  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/stdint_.h: Treat IRIX like OpenBSD.
46006
46007 2006-06-23  Bruno Haible  <bruno@clisp.org>
46008
46009         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46010         ISO C 99 Technical Corrigendum 1.
46011
46012 2006-06-22  Simon Josefsson  <jas@extundo.com>
46013
46014         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46015         MinGW.
46016
46017 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46018
46019         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46020         needed.  Some compiler complained about some of them.  Problem reported
46021         by Larry Jones in
46022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46023
46024 2006-06-21  Simon Josefsson  <jas@extundo.com>
46025
46026         * tests/test-getaddrinfo.c: New file.
46027
46028         * modules/getaddrinfo-tests: New file.
46029
46030         * MODULES.html.sh: Add inet_pton.
46031
46032         * modules/inet_pton: New file.
46033
46034 2006-06-21  Simon Josefsson  <jas@extundo.com>
46035
46036         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46037         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46038         of using the (limited) gnulib implementation on Windows XP.
46039
46040         * m4/inet_pton.m4: New file.
46041
46042 2006-06-21  Simon Josefsson  <jas@extundo.com>
46043
46044         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46045         variable.
46046
46047         * lib/socket_.h: Don't define WINVER.
46048
46049         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46050         slightly modified to work in gnulib.
46051
46052 2006-06-21  Simon Josefsson  <jas@extundo.com>
46053
46054         * doc/gnulib.texi (Windows sockets): Add.
46055
46056 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46057
46058         * lib/read-file.c (fread_file): Start with buffer allocation of
46059         0 bytes rather than 1 byte; this simplifies the code.
46060         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46061         code to free buffer and save/restore errno.
46062         (internal_read_file): Remove unused local.
46063
46064 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46065
46066         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46067         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46068         Problem reported by Denis Excoffier in
46069         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46070
46071 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46072
46073         * modules/sys_socket, modules/socklen: Include sys/types since
46074         FreeBSD 4.x's sys/socket.h needs it.
46075
46076 2006-06-19  Simon Josefsson  <jas@extundo.com>
46077
46078         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46079
46080 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46081
46082         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46083
46084 2006-06-19  Bruno Haible  <bruno@clisp.org>
46085
46086         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46087         and FULL_PATH_INTTYPES_H in angle brackets.
46088         Reported by Mark D. Baushke <mdb@gnu.org>.
46089
46090 2006-06-17  Eric Blake  <ebb9@byu.net>
46091
46092         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46093         errno.
46094
46095 2006-06-17  Bruno Haible  <bruno@clisp.org>
46096
46097         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46098         <sys/inttypes.h>.
46099
46100 2006-06-17  Bruno Haible  <bruno@clisp.org>
46101
46102         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46103         whether errno is declared. Assume <errno.h> declares errno.
46104
46105 2006-06-17  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46108
46109 2006-06-17  Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46112         problem on Solaris 2.5.1.
46113
46114 2006-06-16  Eric Blake  <ebb9@byu.net>
46115
46116         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46117         * lib/unicodeio.c [!defined errno]: Likewise.
46118         * lib/strtol.c [!defined errno]: Likewise.
46119         * lib/strtod.c [!defined errno]: Likewise.
46120
46121 2006-06-15  Eric Blake  <ebb9@byu.net>
46122
46123         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46124
46125 2006-06-15  Eric Blake  <ebb9@byu.net>
46126
46127         * config/srclist.txt (ssize_t.m4): Lose sync.
46128
46129 2006-06-15  Bruno Haible  <bruno@clisp.org>
46130
46131         * modules/stdint (Files): Include m4/full-header-path.m4,
46132         m4/size_max.m4, m4/wchar_t.m4.
46133         (Makefile.am): Many more substitutions.
46134         * modules/stdint-tests: New file.
46135         * tests/test-stdint.c: New file.
46136
46137 2006-06-15  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46140         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46141         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46142         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46143         gl_CHECK_TYPE_SAME): New macros.
46144
46145 2006-06-15  Bruno Haible  <bruno@clisp.org>
46146
46147         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46148
46149 2006-06-15  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/stdint_.h: Rewritten to be fully auto-configured.
46152         Fixes bug on HP-UX/IA64.
46153
46154 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46155
46156         * lib/getdate.y (__attribute__): Don't define if already defined.
46157         Problem reported by Larry Jones.
46158         * lib/utimens.c (__attribute__): Likewise.
46159
46160 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46161
46162         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46163         reported by Andreas Schwab.
46164
46165 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46166             Bruno Haible  <bruno@clisp.org>
46167
46168         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46169         check for the declaration of strnlen and a run test that exposes the
46170         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46171         rpl_strndup.
46172
46173 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46174             Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46177
46178 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46179
46180         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46181         compile test, for Tru64 4.0D.
46182
46183 2006-05-28  Karl Berry  <karl@gnu.org>
46184
46185         * config/srclist.txt (printf-args.c): lose sync.
46186
46187 2006-05-26  Martin Lambers  <marlam@marlam.de>
46188
46189         * lib/getpass.c: Updates the test for the native W32 API, and adds
46190         missing includes, thus fixing compilation warnings.
46191
46192 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46193
46194         * lib/exclude.c (exclude_fnmatch): New function.
46195         (excluded_file_name): Call exclude_fnmatch.
46196         * lib/exclude.h (excluded_file_name): New prototype
46197
46198 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46199
46200         * lib/tempname.c (small_open, large_open): New macros.
46201         (__open, __open64) [!_LIBC]: Remove.
46202         (__gen_tempname): Use small_open and large_open instead of __open
46203         and __open64.  This fixes a portability bug on HP-UX 11.11i
46204         reported by Simon Wing-Tang in
46205         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46206
46207 2006-05-24  Bruno Haible  <bruno@clisp.org>
46208
46209         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46210         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46211         Reported by Thorsten Maerz <torte@netztorte.de> via
46212         Aaron Stone <aaron@serendipity.cx>.
46213
46214 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46215
46216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46217         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46218         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46219         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46220         not really conditional on the cache.
46221         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46222
46223 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46226         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46227         (my_usleep): Don't mishandle maximum value.
46228
46229 2006-05-19  Jim Meyering  <jim@meyering.net>
46230
46231         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46232
46233 2006-05-17  Bruno Haible  <bruno@clisp.org>
46234
46235         Cygwin portability.
46236         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46237
46238 2006-05-17  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/stdint_.h: Fix recognition of Cygwin.
46241
46242 2006-05-15  Bruno Haible  <bruno@clisp.org>
46243
46244         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46245         on libtool patch by Ralf Wildenhues.
46246
46247 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46248
46249         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46250         test for C99 conformance; (bool) 0.5 is an integer constant
46251         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46252         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46253
46254 2006-05-11  Simon Josefsson  <jas@extundo.com>
46255
46256         * m4/xvasprintf.m4: Fix obvious typo.
46257
46258 2006-05-11  Jim Meyering  <jim@meyering.net>
46259
46260         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46261         James Lemley.
46262
46263 2006-05-10  Simon Josefsson  <jas@extundo.com>
46264
46265         * lib/md4.c: Typo fix, update copyright years.
46266         (K1, K2): Don't use L because it turn computations into 64-bit on
46267         64-bit platforms.
46268
46269 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46272         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46273         unwanted sign propagation, e.g., on hosts with 64-bit int.
46274         There still are some problems with reeelly weird theoretical hosts
46275         (e.g., 33-bit int) but it's not worth worrying about now.
46276         * lib/sha1.c (rol): Likewise.
46277         (K1, K2, K3, K4): Remove unnecessary L suffix.
46278
46279 2006-05-10  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/des.c: Cast to avoid warnings.
46282
46283 2006-05-09  Bruno Haible  <bruno@clisp.org>
46284
46285         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46286         (Depends-on): Depend also on xsize, stdarg.
46287         (configure.ac): Add gl_XVASPRINTF.
46288
46289 2006-05-09  Bruno Haible  <bruno@clisp.org>
46290
46291         * m4/xvasprintf.m4: New file.
46292
46293 2006-05-09  Bruno Haible  <bruno@clisp.org>
46294
46295         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46296         (EOVERFLOW): Define fallback value.
46297         (xstrcat): New function.
46298         (xvasprintf): Recognize the special case of a string concatenation.
46299
46300 2006-05-08  Eric Blake  <ebb9@byu.net>
46301
46302         * gnulib-tool (func_version): Base copyright year on CVS date.
46303         (func_emit_copyright_notice): New function.
46304         (func_emit_lib_Makefile_am): Use it.
46305         (func_emit_tests_Makefile_am): Likewise.
46306         (func_import): Likewise.
46307
46308 2006-05-08  Bruno Haible  <bruno@clisp.org>
46309
46310         * modules/stdarg: New file.
46311         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46312
46313 2006-05-08  Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/stdarg.m4: New file, from GNU gettext.
46316
46317 2006-05-08  Bruno Haible  <bruno@clisp.org>
46318
46319         * config/srclist.txt (build-aux/config.rpath): different from latest
46320         release.
46321
46322 2006-05-08  Bruno Haible  <bruno@clisp.org>
46323
46324         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46325
46326 2006-05-05  Jim Meyering  <jim@meyering.net>
46327
46328         * m4/warning.m4: New file, derived from bison's file by the same name.
46329
46330 2006-05-03  Bruno Haible  <bruno@clisp.org>
46331
46332         * lib/stdint_.h: Shorter URL.
46333         * lib/inttypes.h: Likewise.
46334
46335 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46336
46337         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46338
46339 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46340
46341         * lib/verify.h: Document the internals better.  Most of this change
46342         was written by Bruno Haible.
46343
46344 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46345
46346         * doc/verify.texi: New file, partly based on a proposal by
46347         Bruno Haible.
46348
46349 2006-05-02  Bruno Haible  <bruno@clisp.org>
46350
46351         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46352         test from here...
46353         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46354
46355 2006-04-29  Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46358         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46359
46360 2006-04-29  Bruno Haible  <bruno@clisp.org>
46361
46362         * gnulib-tool: Make --update option actually work.
46363
46364 2006-04-29  Bruno Haible  <bruno@clisp.org>
46365
46366         * doc/gcd.texi: New file.
46367         * doc/gnulib.texi: Include it.
46368
46369 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46370
46371         * lib/getdate.y (get_date): When adding relative date, start with the
46372         initial time, not with the result of the first mktime call.
46373
46374 2006-04-25  Bruno Haible  <bruno@clisp.org>
46375
46376         * gnulib-tool (func_import): Output the include directives in three
46377         blocks, sorted separately.
46378         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46379
46380 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46381
46382         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46383         to define main with arguments, for C++.  Reported by Eric Blake.
46384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46385         Prefer 'int main ()' to 'int main (void)', for C++.
46386         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46388         for 'main', for C99 and C++.
46389
46390 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46391
46392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46393         Don't assume that exit status -1 is valid.
46394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46395         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46397         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46398         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46399         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46400         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46401         functions can be used without declaring them, or that you can
46402         exit with status -1.
46403         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46404
46405 2006-04-24  Karl Berry  <karl@gnu.org>
46406
46407         * config/srclist.txt (longdouble.m4): sync lost.
46408
46409 2006-04-24  Eric Blake  <ebb9@byu.net>
46410
46411         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46412
46413 2006-04-24  Bruno Haible  <bruno@clisp.org>
46414
46415         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46416         poll() implementation in AIX.
46417         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46418
46419 2006-04-24  Bruno Haible  <bruno@clisp.org>
46420
46421         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46422         assigned exactly once.
46423
46424 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46425             Bruno Haible  <bruno@clisp.org>
46426
46427         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46428         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46429         for AM_CPPFLAGS.
46430
46431 2006-04-23  Bruno Haible  <bruno@clisp.org>
46432
46433         * modules/copy-file: Depend on unistd.
46434         * modules/execute: Likewise.
46435         * modules/fatal-signal: Likewise.
46436         * modules/findprog: Likewise.
46437         * modules/mkdtemp : Likewise.
46438         * modules/pipe: Likewise.
46439         * modules/wait-process: Likewise.
46440
46441 2006-04-23  Bruno Haible  <bruno@clisp.org>
46442
46443         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46444         condition was already detected.
46445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46446
46447 2006-04-23  Bruno Haible  <bruno@clisp.org>
46448
46449         * lib/copy-file.c: Include <unistd.h> unconditionally.
46450         * lib/execute.c: Likewise.
46451         * lib/fatal-signal.c: Likewise.
46452         * lib/findprog.c: Likewise.
46453         * lib/mkdtemp.c: Likewise.
46454         * lib/pipe.h: Likewise.
46455         * lib/pipe.c: Likewise.
46456         * lib/wait-process.h: Likewise.
46457
46458 2006-04-23  Bruno Haible  <bruno@clisp.org>
46459
46460         * gnulib-tool (func_usage): Fix --import description. Document
46461         --update.
46462         (func_import): Create temporary file in a temporary directory, if
46463         --dry-run is specified. Silence errors from 'grep' when there are no
46464         m4 files in $m4dir.
46465         (func_create_testdir): Silence errors from 'grep' when there are no
46466         m4 files in $m4dir.
46467         Reported by Karl Berry <karl@freefriends.org>.
46468
46469 2006-04-20  Bruno Haible  <bruno@clisp.org>
46470
46471         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46472         one argument, so that the code will be portable to Autoconf 2.60.
46473         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46474         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46475         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46476
46477 2006-04-19  Derek Price  <derek@ximbiot.com>
46478             Eric Blake  <ebb9@byu.net>
46479
46480         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46481         rather than "/full/path.h".  Update comment to match.  Shorten &
46482         generalize m4_translit call via AS_TR_CPP.
46483
46484 2006-04-19  Derek Price  <derek@ximbiot.com>
46485             Eric Blake  <ebb9@byu.net>
46486
46487         * lib/inttypes.h: Correct grammar in comment.
46488
46489 2006-04-18  Derek Price  <derek@ximbiot.com>
46490             Paul Eggert  <eggert@cs.ucla.edu>
46491
46492         * modules/inttypes: New file.
46493         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46494
46495 2006-04-18  Derek Price  <derek@ximbiot.com>
46496             Paul Eggert  <eggert@cs.ucla.edu>
46497
46498         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46499         New files.
46500
46501 2006-04-18  Derek Price  <derek@ximbiot.com>
46502             Paul Eggert  <eggert@cs.ucla.edu>
46503
46504         * lib/inttypes.h: New file.
46505         * lib/strtoimax.c: Assume <inttypes.h>.
46506
46507 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46508
46509         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46510         isn't mounted.  Problem reported by Kir Kolyshkin.
46511
46512 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46515         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46516         Derek R. Price.
46517         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46518         implementation.
46519
46520 2006-04-12  Eric Blake  <ebb9@byu.net>
46521
46522         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46523         is now done automatically by the corresponding Autoconf macro.
46524
46525 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46526
46527         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46528         time_r.h.
46529
46530 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46531
46532         Merge regex changes from libc, removing some of our
46533         POSIX-conformance changes that were rejected and redoing them in a
46534         less-intrusive way.
46535
46536         * lib/regcomp.c (re_compile_internal, init_dfa):
46537         Length arg is now size_t, not Idx.  All uses changed.
46538         (peek_token): Forward decl now says internal_function.
46539         (__re_error_msgid, __re_error_msgid_idx):
46540         Now static rather than extern with attribute_hidden.
46541         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46542         For some reason libc prefers K&R style defns for external functions.
46543         (regerror) [!defined _LIBC]: Likewise.
46544         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46545         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46546         (build_range_exp, build_collating_symbol):
46547         Use K&R-style defn.
46548         (re_compile_fastmap): Use '\0' to memset, not 0.
46549         (utf8_sb_map): Make the calculations more obvious.
46550         (init_dfa, parse_bracket_exp, build_charclass_op):
46551         Call calloc and cast result, as glibc does.
46552         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46553         (build_range_exp, build_collating_symbol):
46554         Now internal functions.
46555
46556         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46557
46558         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46559         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46560         Don't depend on VMS; depend on __VMS instead, for POSIX
46561         namespace cleanness.
46562         (regoff_t): Define to ssize_t, not long int.
46563
46564         Remove the REG_ macros named below.  Instead, make the old names
46565         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46566         __USE_GNU_REGEX.
46567         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46568         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46569         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46570         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46571         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46572         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46573         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46574         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46575         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46576         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46577         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46578         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46579         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46580         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46581         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46582         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46583         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46584         (REG_NREGS):
46585         Remove.  All uses replaced by the old RE_* names.
46586         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46587         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46588         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46589         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46590         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46591         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46592         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46593         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46594         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46595         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46596         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46597         Don't bother having these macros be independent of each others'
46598         values, since they no longer exist in the POSIX name space.
46599
46600         Rename the following member names back to their old names,
46601         unless !__USE_GNU_REGEX.  All uses changed back.
46602         (buffer): Renamed from re_buffer.
46603         (allocated): Renamed from re_allocated.
46604         (used): Renamed from re_used.
46605         (syntax): Renamed from re_syntax.
46606         (fastmap): Renamed from re_fastmap.
46607         (translate): Renamed from re_translate.
46608         (can_be_null): Renamed from re_can_be_null.
46609         (regs_allocated): Renamed from re_regs_allocated.
46610         (fastmap_accurate): Renamed from re_fastmap_accurate.
46611         (no_sub): Renamed from re_no_sub.
46612         (not_bol): Renamed from re_not_bol.
46613         (not_eol): Renamed from re_not_eol.
46614         (newline_anchor): Renamed from re_newline_anchor.
46615         (num_regs): Renamed from rm_num_regs.
46616         (start): Renamed from rm_start.
46617         (end): Renamed from rm_end.
46618
46619         (free_state): Move up a bit.
46620
46621         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46622         #define to be empty.
46623         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46624         when that is what is intended.
46625         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46626         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46627         (MAX): New macro.
46628         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46629         All uses changed back to re_malloc, etc.  It's now the caller's
46630         responsibility to check for overflow; all callers changed.
46631         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46632         (re_x2nrealloc): Remove.
46633         (free_state): Remove decl.
46634
46635         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46636         (re_set_registers, re_exec):
46637         Use K&R-style defn.
46638
46639         2006-01-31  Roland McGrath  <roland@redhat.com>
46640
46641         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
46642         Reported by Mike Frysinger <vapier@gentoo.org>.
46643
46644         2006-01-15  Andreas Jaeger  <aj@suse.de>
46645
46646         [BZ #1950]
46647         * lib/regex_internal.c (re_string_reconstruct): Adjust for
46648         build_wcs_upper_buffer change.
46649         (build_wcs_upper_buffer): Change return type.
46650
46651         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
46652
46653         * lib/regex_internal.h: Include <stdint.h> if available.
46654
46655         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
46656
46657         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46658
46659         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46660
46661         * lib/regcomp.c: Adjust for changed secondary hash function.
46662
46663         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46664
46665         * lib/regex.h: Pretty printing.
46666         Clean up namespace a bit.
46667
46668         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46669
46670         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46671         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46672
46673         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46674                     Ulrich Drepper  <drepper@redhat.com>
46675
46676         [BZ #1302]
46677         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46678         changed.
46679         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46680
46681         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46682
46683         [BZ #281]
46684         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46685         * lib/regcomp.c: Remove unnecessary uses of
46686         unsigned RE_TRANSLATE_TYPE.
46687         * lib/regex_internal.h: Likewise.
46688         * lib/regex_internal.c: Likewise.
46689         * lib/regexec.c: Likewise.
46690         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46691
46692         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46693
46694         * lib/regexec.c (find_recover_state): Remove unnecessary
46695         initialization.
46696         (transit_state_bkref): Make DFA a const pointer.
46697         (get_subexp): Likewise.
46698         (check_arrival): Likewise.
46699         (update_cur_sifted_state): Likewise.
46700         (re_search_internal): Likewise.
46701         (prune_impossible_nodes): Likewise.
46702         (acquire_init_state_context): Likewise.
46703         (proceed_next_node): Likewise.
46704         (set_regs): Likewise.
46705         (free_fail_stack_return): Likewise.
46706         (check_arrival_expand_ecl): Mark DFA parameter as const.
46707         (check_arrival_expand_ecl_sub): Likewise.
46708         (check_subexp_limits): Likewise.
46709         (sub_epsilon_src_nodes):  Likewise.
46710         (add_epsilon_src_nodes):  Likewise.
46711         (merge_state_array): Likewise.
46712         (update_regs): Likewise.
46713         (build_trtable): Likewise.
46714         (sift_states_backward): Mark MCTX parameter as const.
46715         (build_sifted_states): Likewise.
46716         (update_cur_sifted_state): Likewise.
46717         (sift_states_mkref): Likewise.
46718         (check_arrival_expand_ecl): Mark eclosure as const.
46719         (check_dst_limits_calc_pos_1): Likewise.
46720         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46721         pointer.
46722
46723         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46724
46725         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46726         (transit_state_sb): Likewise.
46727         (transit_state_mb): Likewise.
46728         (sift_states_iter_mb): Likewise.
46729         (check_arrival_add_next_nodes): Likewise.
46730         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46731         [_LIBC] (re_search_2_stub): Use mempcpy.
46732
46733         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46734         mbrtowc for very simple UTF-8 case.
46735
46736         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46737         a pointer-to-const.
46738         (re_acquire_state_context): Likewise.
46739         * lib/regex_internal.h: Adjust prototypes.
46740
46741         * lib/regex.c: Prevent using C++ compilers.
46742
46743         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46744         (re_acquire_state_context): Likewise.
46745
46746 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46747
46748         * modules/regex (Depends-on): Add ssize_t.
46749
46750 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46751
46752         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46753         translation table.
46754
46755 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46756
46757         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46758
46759 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46760             Bruno Haible  <bruno@clisp.org>
46761
46762         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46763         <sys/types.h> and <inttypes.h>.
46764
46765 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46766
46767         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46768         `__error_t_defined', so argp.h will not typedef the former.
46769
46770 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46771
46772         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46773         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46774         glibc names.  Even if glibc is changed to conform to POSIX, the
46775         traditional names will be available anyway, since regex depends on
46776         the extensions module.  Also, fix a longstanding typo in the
46777         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46778         reported by Emanuele Giaquinta.  Also, change sense of cached
46779         variable, so that the message makes sense.
46780
46781 2006-03-24  Simon Josefsson  <jas@extundo.com>
46782
46783         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46784         including some doc fixes.
46785         (base64_encode_alloc): Fix +1 bug on allocation failures.
46786
46787 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46788
46789         * lib/base64.c (base64_encode): Do not read past end of array with
46790         unsanitized input on systems with CHAR_BIT > 8.
46791
46792 2006-03-24  Eric Blake  <ebb9@byu.net>
46793
46794         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46795
46796 2006-03-22  Karl Berry  <karl@gnu.org>
46797
46798         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46799         * config/srclistvars.sh (COREUTILS): new var.
46800
46801 2006-03-17  Jim Meyering  <jim@meyering.net>
46802
46803         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46804         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46805
46806 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46807
46808         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46809         no longer needs it.  Instead, check that regoff_t is as least
46810         as wide as ptrdiff_t.
46811
46812         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46813         so that our regex.h stays compatible with the installed regex.
46814         This is helpful for installers who configure --without-included-regex.
46815         Problem reported by Emanuele Giaquinta.
46816
46817 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46818
46819         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46820         Typedef to long int, not to off_, as POSIX will likely change
46821         in that direction.
46822
46823 2006-03-15  Eric Blake  <ebb9@byu.net>
46824
46825         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46826
46827 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46828
46829         * lib/argp-help.c (validate_uparams): Fix typo
46830         * lib/argp-parse.c (argp_default_options): Consistently begin help
46831         messages with a lowercase letter.
46832
46833 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46834
46835         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46836         overrun buffers and shouldn't be used (much as gets shouldn't be
46837         used).
46838         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46839
46840 2006-03-08  Simon Josefsson  <jas@extundo.com>
46841
46842         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46843         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46844
46845 2006-03-08  Simon Josefsson  <jas@extundo.com>
46846
46847         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46848         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46849
46850 2006-03-08  Simon Josefsson  <jas@extundo.com>
46851
46852         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46853         signal that configure disabled the device.
46854
46855 2006-03-08  Simon Josefsson  <jas@extundo.com>
46856
46857         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46858         languages.
46859
46860 2006-03-07  Simon Josefsson  <jas@extundo.com>
46861
46862         * modules/getopt (Depends-on): Add unistd.
46863
46864         * modules/unistd: New file.
46865
46866 2006-03-07  Simon Josefsson  <jas@extundo.com>
46867
46868         * modules/gc-random: New file.
46869
46870 2006-03-07  Simon Josefsson  <jas@extundo.com>
46871
46872         * m4/unistd_h.m4: New file.
46873
46874 2006-03-07  Simon Josefsson  <jas@extundo.com>
46875
46876         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46877         test to be side-effect free by storing the result in the cache
46878         variable gl_cv_lib_readline, and moving the assignment of
46879         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46880         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46881
46882 2006-03-07  Simon Josefsson  <jas@extundo.com>
46883
46884         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46885         error on missing devices (the functions will return an error).
46886
46887         * m4/gc.m4: Move random stuff to gc-random.m4
46888
46889 2006-03-07  Simon Josefsson  <jas@extundo.com>
46890
46891         * lib/unistd_.h: New file.
46892
46893 2006-03-07  Simon Josefsson  <jas@extundo.com>
46894
46895         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46896
46897 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46898
46899         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46900         Problem reported by Juan Manuel Guerrero.
46901
46902 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46903
46904         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46905         the unistd module.
46906         * lib/getlogin_r.c: Likewise.
46907         * lib/getlogin_r.h: Likewise.
46908         * lib/glob.c: Likewise.
46909         * lib/pagealign_alloc.c: Likewise.
46910         * lib/unistd_.h: Remove; no longer needed.
46911
46912 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46913
46914         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46915         Add unistd.
46916         * modules/c-stack (Depends-on): Add unistd.
46917         * modules/getlogin_r: Likewise.
46918         * modules/glob: Likewise.
46919         * modules/pagealign_alloc: Likewise.
46920         * modules/unistd (Files): Remove lib/unistd_.h.
46921         (EXTRA_DIST): Remove.
46922         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46923         need unistd_.h.
46924         (MOSTLYCLEANFILES): Remove unistd.h-t.
46925
46926 2006-03-03  Simon Josefsson  <jas@extundo.com>
46927
46928         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46929
46930 2006-03-03  Simon Josefsson  <jas@extundo.com>
46931
46932         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46933         libidn and bison.
46934
46935 2006-03-03  Simon Josefsson  <jas@extundo.com>
46936
46937         * build-aux/maint.mk: Add indent target.
46938
46939 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46940
46941         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46942         our replacement poll.h in any case, to avoid a differing
46943         declaration from a system header.  Seen on AIX.
46944
46945 2006-03-01  Simon Josefsson  <jas@extundo.com>
46946
46947         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46948         <kasal@ucw.cz>.
46949
46950 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         * modules/gettime (Depends-on): Add extensions module.
46953         * modules/nanosleep (Depends-on): Likewise.
46954         * modules/settime (Depends-on): Likewise.
46955
46956 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46957
46958         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46959         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46960         pedantically.
46961         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46962         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46963
46964         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46965         not "==".  Reported by Ralf Wildenhues.
46966
46967 2006-03-01  Karl Berry  <karl@gnu.org>
46968
46969         * doc/Copyright/request-*: new files, synced from gnuorg.
46970
46971 2006-03-01  Karl Berry  <karl@gnu.org>
46972
46973         * config/srclist.txt (Copyright/*): new entries.
46974
46975 2006-02-28  Simon Josefsson  <jas@extundo.com>
46976
46977         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46978
46979 2006-02-27  Simon Josefsson  <jas@extundo.com>
46980
46981         * lib/base64.h: Indent #define's.  From Jim Meyering
46982         <jim@meyering.net>.
46983
46984 2006-02-27  Jim Meyering  <jim@meyering.net>
46985
46986         Revert the change of 2006-02-24, so these files can continue
46987         to be sync'd from gettext.
46988         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46989         of `config.h'.
46990
46991 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46992
46993         * modules/intprops: New file.
46994         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46995         Add intprops.
46996         * modules/getloadavg (Files): Remove lib/intprops.h.
46997         (Depends-on): Add intprops.
46998         * modules/human: Likewise.
46999         * modules/inttostr: Likewise.
47000         * modules/openat: Likewise.
47001         * modules/sig2str: Likewise.
47002         * modules/userspec: Likewise.
47003         * modules/utimecmp: Likewise.
47004         * modules/xnanosleep: Likewise.
47005         * modules/xstrtol: Likewise.
47006
47007 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47008
47009         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47010         * modules/lock-tests (TESTS): Use $(EXEEXT).
47011         * modules/tls-tests: Likewise.
47012         * modules/argp-tests: Likewise.
47013         (check_PROGRAMS): New var, replacing...
47014         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47015
47016 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47017
47018         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47019         `config.h'.
47020
47021 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47022
47023         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47024
47025 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47026
47027         Sync from coreutils.
47028         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47029         gl_CHDIR_SAFER.
47030
47031 2006-02-22  Jim Meyering  <jim@meyering.net>
47032
47033         Sync from coreutils.
47034         * m4/chdir-safer.m4: New file.
47035
47036 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47037
47038         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47039         AT_FDCWD exceeds INT_MAX.
47040         * lib/openat.h (AT_FDCWD): Likewise.
47041
47042 2006-02-17  Eric Blake  <address@hidden>
47043
47044         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47045
47046 2006-02-16  Simon Josefsson  <jas@extundo.com>
47047
47048         * modules/getaddrinfo (Depends-on): Add sys_socket.
47049
47050 2006-02-15  Simon Josefsson  <jas@extundo.com>
47051
47052         * build-aux/maint.mk: Add dsyntax-check rule.
47053
47054 2006-02-15  Eric Blake  <ebb9@byu.net>
47055
47056         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47057         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47058         'present but cannot compile' warnings on cygwin.
47059         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47060         use ws2tcpip.h if sys/socket.h works.
47061         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47062         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47063
47064 2006-02-14  Simon Josefsson  <jas@extundo.com>
47065
47066         * modules/maintainer-makefile (Files): Rename.
47067
47068         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47069         and (the local) Makefile.cfg to maint-cfg.mk.
47070
47071         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47072         to the latter.
47073
47074         * modules/maintainer-makefile: New module.
47075
47076         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47077         severaly stripped to make it possible to build it up from scratch
47078         with reliable tests.
47079
47080         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47081         fixes to permit overriding the default actions when configure and
47082         makefile are not available.
47083
47084 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47085
47086         Sync from coreutils.
47087         * modules/lstat (Depends-on): Don't depend on xalloc.
47088         (License): Change from GPL to LGPL, since this is now simply a
47089         replacement for a libc function.
47090
47091 2006-02-14  Jim Meyering  <jim@meyering.net>
47092
47093         Sync from coreutils.
47094
47095         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47096         failure on deficient systems, and simplify gnulib lgpl dependencies.
47097         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47098         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47099
47100         * lib/xalloc-die.c: Remove unused definition of N_.
47101
47102 2006-02-14  Jim Meyering  <jim@meyering.net>
47103
47104         Sync from coreutils.
47105         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47106         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47107         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47108         double-quote uses of that variable, to accommodate the rare case in
47109         which getmntent is available in none of the libraries checked.  This
47110         happens at least on FreeBSD 5.0.
47111
47112 2006-02-13  Simon Josefsson  <jas@extundo.com>
47113
47114         * gnulib-tool (Usage): Fix --import, from
47115         karl@freefriends.org (Karl Berry).
47116
47117 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47118
47119         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47120
47121 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47122
47123         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47124         "autoupdate" on 2005-12-12.
47125
47126 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47127
47128         * modules/closeout (Depends-on): Remove atexit.
47129
47130 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47131
47132         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47133         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47134
47135 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47138         __EXTENSIONS__ if this causes compilation to fail.  Problem
47139         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47140         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47141
47142 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47143
47144         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47145         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47147         All uses changed.
47148
47149 2006-01-26  Simon Josefsson  <jas@extundo.com>
47150
47151         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47152         prototype is visible on mingw32.
47153
47154         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47155         for mingw32.
47156
47157         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47158         mingw32).
47159
47160 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47163         attempt to open for write; this always fails, at least on POSIX
47164         hosts.  This reinstates the 2006-01-09 change, which was
47165         inadvertently removed.
47166
47167 2006-01-26  Bruno Haible  <bruno@clisp.org>
47168
47169         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47170         Reported by Paul Eggert.
47171
47172 2006-01-26  Bruno Haible  <bruno@clisp.org>
47173             Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/stdbool_.h (_Bool)
47176         [(! (defined __cplusplus || defined __BEOS__)
47177           && !defined __GNUC__
47178           && !(defined __HP_cc || defined __xlc__
47179                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47180                || defined __sgi))]:
47181         #define to signed char in these cases too; this simplifies
47182         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47183         etc., separately) and makes it more conservative.
47184
47185 2006-01-25  Simon Josefsson  <jas@extundo.com>
47186
47187         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47188         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47189         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47190
47191 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47192
47193         * lib/argp-namefrob.h: Bugfix. Remove stray #
47194
47195 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47196
47197         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47198         so that we test the test.
47199         Check for yet another HP-UX cc bug involving *bool |= bool.
47200
47201 2006-01-25  Karl Berry  <karl@gnu.org>
47202
47203         * config/srclist.txt (vasnprintf.c): sync lost.
47204
47205 2006-01-25  Jim Meyering  <jim@meyering.net>
47206
47207         Sync from the stable (b5) branch of coreutils:
47208
47209         * lib/fts.c (fts_children): Don't let close() clobber errno from
47210         failed fchdir().
47211
47212         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47213         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47214         a dangling symlink.  That can also happen at least for ELOOP.
47215         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47216         FYI, this bug predates the inclusion of fts.c in coreutils.
47217
47218         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47219         in their own block, so pre-c99 compilers don't object.
47220
47221         Avoid the double-free (first in fts_read, second in fts_close) that
47222         would occur when an `active' directory is made inaccessible (e.g.,
47223         via chmod a-x) during a traversal.
47224         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47225         before returning.  Reproduce this failure by
47226         mkdir -p a/b; cd a; chmod a-x . b
47227         Reported by Stavros Passas.
47228
47229 2006-01-25  Jim Meyering  <jim@meyering.net>
47230
47231         * lib/fileblocks.c: Remove more useless parentheses.
47232         * lib/readutmp.h: Likewise.
47233
47234 2006-01-25  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47237         warnings.
47238         Reported by Paul Eggert.
47239
47240 2006-01-25  Bruno Haible  <bruno@clisp.org>
47241
47242         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47243         rid of a trap command. For Solaris sh.
47244         Reported by Mark D. Baushke <mdb@gnu.org>.
47245
47246 2006-01-24  Simon Josefsson  <jas@extundo.com>
47247
47248         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47249         Bruno.
47250
47251 2006-01-24  Karl Berry  <karl@gnu.org>
47252
47253         * config/srclist.txt (argp-namefrob.h): sync lost.
47254
47255 2006-01-24  Jim Meyering  <jim@meyering.net>
47256
47257         * modules/openat (Files): Add lib/intprops.h.
47258         From Mark D. Baushke.
47259
47260 2006-01-24  Jim Meyering  <jim@meyering.net>
47261
47262         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47263         Reported by Mark D. Baushke.
47264
47265 2006-01-24  Jim Meyering  <jim@meyering.net>
47266
47267         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47268
47269 2006-01-24  Bruno Haible  <bruno@clisp.org>
47270
47271         * modules/strnlen (Maintainer): Change from glibc to all.
47272
47273 2006-01-24  Bruno Haible  <bruno@clisp.org>
47274
47275         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47276         Patch by Paul Eggert.
47277
47278 2006-01-24  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47281         already has it.
47282         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47283         2005-11-26.
47284
47285         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47286         'signed char' to avoid problems with the built-in _Bool type.
47287         Reported by Paul Eggert on 2005-11-26.
47288
47289 2006-01-24  Bruno Haible  <bruno@clisp.org>
47290
47291         * gnulib-tool (func_import): Avoid constructing complicated sed
47292         expressions inside backquote.
47293         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47294
47295 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47296
47297         These changes imported from libc.
47298         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47299         test and two separate function calls.
47300         * lib/strndup.c (__strndup): Add libc_hidden_def.
47301
47302 2006-01-23  Simon Josefsson  <jas@extundo.com>
47303
47304         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47305         Remove the test_*_SOURCES variable: automake infers it by default.
47306         * modules/tls-tests: Likewise.
47307
47308 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47309
47310         Work around porting bugs reported by Dieter in
47311         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47312         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47313         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47314         Include "getopt.h" first, to check interface.
47315         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47316         !HAVE_DECL_GETENV.
47317         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47318         (__strndup): Revert to K&R-style function dfns, the glibc style.
47319         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47320         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47321         Include strnlen.h first, to get prototype properly.
47322         (strnlen): Renamed from __strnlen.
47323         Remove weak alias.
47324
47325 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47328
47329 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47330
47331         * config/srclist.txt: Adjust to reflect glibc reorganization.
47332         This affects only comments.
47333
47334 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47335
47336          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47337          Reported by Bruce Korb <bkorb@gnu.org>.
47338
47339 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47340
47341         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47342         to pacify gcc -Wswitch-default.
47343
47344 2006-01-22  Bruno Haible  <bruno@clisp.org>
47345
47346         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47347         temporary buffer for sprintf, take into account the precision also
47348         for 'd', 'i', 'u', 'o', 'x', 'X'.
47349
47350 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47351
47352         * modules/argp-tests: New module
47353         * tests/test-argp.c: New file
47354         * tests/test-argp-2.sh: New file
47355
47356 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47357
47358         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47359         (__argp_base_name): Removed
47360         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47361         typo.
47362         (__argp_base_name): Provide macro definition or extern declaration
47363         depending on the configuration
47364
47365 2006-01-20  Simon Josefsson  <jas@extundo.com>
47366
47367         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47368
47369 2006-01-20  Simon Josefsson  <jas@extundo.com>
47370
47371         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47372
47373 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47374
47375         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47376         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47377         Suggested by Bruno Haible.
47378
47379 2006-01-20  Karl Berry  <karl@gnu.org>
47380
47381         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47382         until changes propagate, I guess.
47383
47384 2006-01-19  Simon Josefsson  <jas@extundo.com>
47385
47386         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47387
47388 2006-01-19  Simon Josefsson  <jas@extundo.com>
47389
47390         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47391
47392 2006-01-19  Simon Josefsson  <jas@extundo.com>
47393
47394         * gnulib-tool: Set check_PROGRAMS.
47395
47396         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47397         modules/des-tests, modules/gc-arcfour-tests,
47398         modules/gc-arctwo-tests, modules/gc-des-tests,
47399         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47400         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47401         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47402         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47403         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47404         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47405         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47406         test_*_SOURCES.
47407
47408 2006-01-18  Simon Josefsson  <jas@extundo.com>
47409
47410         * modules/socklen (Depends-on): Depend on sys_socket.
47411
47412 2006-01-18  Simon Josefsson  <jas@extundo.com>
47413
47414         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47415         modules/des-tests, modules/gc-arcfour-tests,
47416         modules/gc-arctwo-tests, modules/gc-des-tests,
47417         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47418         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47419         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47420         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47421         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47422         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47423         $(EXEEXT) to automake TESTS variable, for mingw32.
47424
47425 2006-01-17  Simon Josefsson  <jas@extundo.com>
47426
47427         * modules/socklen (Include): Need sys/socket.h.
47428
47429 2006-01-17  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/ssize_t (Include): Add <sys/types.h>.
47432
47433 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47434
47435         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47436         it's not portable and it doesn't work with cross-compiles.
47437         Problem reported by Bruno Haible.  Fix missing-$ typo in
47438         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47439         -zignore from being used with Sun's C compiler.
47440
47441 2006-01-12  Simon Josefsson  <jas@extundo.com>
47442
47443         * lib/base64.c: Fix warning, reported by Bruno Haible
47444         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47445
47446 2006-01-12  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/ldd: New file.
47449         * build-aux/ldd.sh.in: New file.
47450         * MODULES.html.sh (Support for building libraries and executables): Add
47451         ldd.
47452
47453 2006-01-12  Bruno Haible  <bruno@clisp.org>
47454
47455         * m4/ldd.m4: New file.
47456
47457 2006-01-12  Bruno Haible  <bruno@clisp.org>
47458
47459         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47460         endless loop while replacing $auxdir with build-aux.
47461
47462 2006-01-11  Simon Josefsson  <jas@extundo.com>
47463
47464         * lib/stdint_.h (SIZE_MAX): Add missing (.
47465
47466 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47467
47468         Sync from coreutils.
47469         * lib/md5.c: Fix commentary typos.
47470         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47471         * lib/md5.h (__attribute__): Remove; unused.
47472         * lib/sha1.c: Fix commentary to match md5 better.
47473         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47474         so that we don't need to worry about alignment.  All uses changed.
47475         This merges the 2005-10-28 md5 change into sha1.
47476
47477 2006-01-11  Jim Meyering  <jim@meyering.net>
47478
47479         Sync from coreutils.
47480         * lib/md5.c (OP): Fix spacing.
47481
47482 2006-01-11  Bruno Haible  <bruno@clisp.org>
47483
47484         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47485         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47486         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47487
47488 2006-01-11  Bruno Haible  <bruno@clisp.org>
47489
47490         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47491         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47492         the "early" section as well.
47493
47494 2006-01-11  Bruno Haible  <bruno@clisp.org>
47495
47496         Avoid "ar: no archive members specified" error on MacOS X.
47497         * gnulib-tool (func_modules_add_dummy): New function.
47498         (func_import, func_create_testdir): Invoke it.
47499
47500 2006-01-11  Bruno Haible  <bruno@clisp.org>
47501
47502         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47503         with $auxdir in AC_CONFIG_FILES statements.
47504
47505 2006-01-11  Bruno Haible  <bruno@clisp.org>
47506
47507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47508         Initialize also noinst_HEADERS to empty.
47509
47510 2006-01-11  Bruno Haible  <bruno@clisp.org>
47511
47512         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47513         variables.
47514         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47515         autoreconf.
47516
47517 2006-01-11  Bruno Haible  <bruno@clisp.org>
47518
47519         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47520         overridable by the user.
47521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47522
47523 2006-01-10  Simon Josefsson  <jas@extundo.com>
47524
47525         * modules/sys_socket: New file.
47526
47527 2006-01-10  Simon Josefsson  <jas@extundo.com>
47528
47529         * m4/sys_socket_h.m4: New file.
47530
47531 2006-01-10  Simon Josefsson  <jas@extundo.com>
47532
47533         * lib/socket_.h: New file.
47534
47535 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47536
47537         * modules/readutmp (Maintainer): Add myself.
47538
47539 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47540
47541         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47542         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47543         People who are still concerned with buggy memcmp implementations
47544         can invoke gl_FUNC_MEMCMP themselves.
47545
47546 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47547
47548         * lib/regex_internal.h (BITSET_WORD_BITS):
47549         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47550         preprocessor mishandles large unsigned values as if they were signed.
47551         Problem reported by Claudio Fontana in
47552         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47553
47554 2006-01-10  Jim Meyering  <jim@meyering.net>
47555
47556         Avoid the double-free (first in fts_read, second in fts_close) that
47557         would occur when an `active' directory is made inaccessible (e.g.,
47558         via chmod a-x) during a traversal.
47559         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47560         before returning.  Reproduce this failure by
47561         mkdir -p a/b; cd a; chmod a-x . b
47562         Reported by Stavros Passas.
47563
47564         Sync from coreutils.
47565         * lib/sha1.c: Tweak grammar in a comment.
47566
47567 2006-01-10  Jim Meyering  <jim@meyering.net>
47568
47569         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47570         Patch by Joerg Sonnenberger.
47571
47572 2006-01-10  Bruno Haible  <bruno@clisp.org>
47573
47574         * modules/readutmp: Depend on module free.
47575         * modules/strtok_r: Depend on module restrict.
47576
47577 2006-01-10  Bruno Haible  <bruno@clisp.org>
47578
47579         * modules/gettext (configure.ac): Add an invocation of
47580         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47581
47582 2006-01-10  Bruno Haible  <bruno@clisp.org>
47583
47584         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47585         Reported by Werner Lemberg <wl@gnu.org>.
47586
47587 2006-01-10  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/localcharset.c: Update from GNU gettext.
47590
47591 2006-01-10  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/argp.h (__const): Remove macro. Use const instead.
47594         * lib/argp-fmtstream.h (__const): Likewise.
47595         * lib/glob_.h (__const): Remove macro.
47596         * lib/glob-libc.h: Use const instead of __const.
47597
47598 2006-01-10  Bruno Haible  <bruno@clisp.org>
47599
47600         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47601         variable.
47602         Needed to avoid an automake error regarding the 'gettext' module.
47603
47604 2006-01-09  Simon Josefsson  <jas@extundo.com>
47605
47606         * modules/inet_ntop (Depends-on): Add restrict.
47607
47608 2006-01-09  Simon Josefsson  <jas@extundo.com>
47609
47610         * modules/gc-rijndael-tests (License): Put under LGPL.
47611
47612         * modules/gc-des-tests (License): Likewise.
47613
47614         * modules/gc-arcfour-tests (License): Likewise.
47615
47616         * modules/gc-arctwo-tests (License): Likewise.
47617
47618         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47619
47620         * modules/gc-hmac-sha1-tests (Files): Likewise.
47621
47622         * modules/gc-hmac-md5-tests (License): Likewise.
47623
47624         * modules/gc-sha1-tests (License): Likewise.
47625
47626         * modules/gc-md5-tests (License): Likewise.
47627
47628         * modules/gc-md4-tests (License): Likewise.
47629
47630         * modules/gc-md2-tests (License): Likewise.
47631
47632         * modules/gc-tests (License): Likewise.
47633
47634         * modules/des-tests (License): Likewise.
47635
47636         * modules/md4-tests (License): Likewise.
47637
47638         * modules/md2-tests (License): Likewise.
47639
47640 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         Sync from coreutils:
47643
47644         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
47645         * modules/lib-ignore: New file.
47646         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
47647         chdir-safer.m4, lchmod.m4.
47648         * modules/openat: Add mkdirat.c, openat-priv.h.
47649
47650 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47651
47652         Sync from coreutils.
47653         * m4/lib-ignore.m4: New file.
47654         * m4/lchmod.m4: New file.
47655
47656 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47657
47658         Sync from coreutils.
47659         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47660         for write access: POSIX says that must fail.
47661         * lib/fts.c (diropen): Likewise.
47662         * lib/save-cwd.c (save_cwd): Likewise.
47663         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47664         well, for minor improvements on hosts that lack O_DIRECTORY.
47665         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47666         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47667         Fall back on chown if open failed with EACCES.
47668
47669         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47670         Report an error at compile-time if only a 1-second nominal clock
47671         resolution is found.
47672
47673         * lib/lchmod.h: New file.
47674         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47675         (make_dir_parents): Use lchown rather than chown, and
47676         lchmod rather than chmod.
47677
47678         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47679         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47680         "proc" reported by n0dalus.
47681
47682         * lib/mountlist.c: Include <limits.h>.
47683         (dev_from_mount_options)
47684         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47685         New function.  It no longer assumes "dev=" has the System V meaning
47686         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47687         (read_file_system_list)
47688         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47689         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47690         dev= in that case.
47691
47692         * lib/posixtm.h (PDS_PRE_2000): New macro.
47693         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47694         allow_century.  All usages changed.  Reject dates outside the range
47695         1969-1999 if PDS_PRE_2000 is used.
47696
47697 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47698
47699         Sync from coreutils.
47700         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47701         (Time of day items): Mention the possibility of leap seconds.
47702         Problem reported by Dr. David Alan Gilbert.
47703
47704 2006-01-09  Jim Meyering  <jim@meyering.net>
47705
47706         Sync from coreutils.
47707
47708         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47709
47710         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47711
47712         * lib/modechange.c (mode_compile): Reject an invalid mode string
47713         that starts with an octal digit.  From Andreas Gruenbacher.
47714
47715         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47716         and dup to open_safer and dup_safer, respectively.
47717         (openat_permissive): Fix typo in comment.
47718
47719         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47720         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47721         (_): Remove; no longer needed.
47722         (openat): Renamed from rpl_openat; no need for rpl_openat
47723         since openat.h renames openat for us.
47724         Replace most of the body with a call to openat_permissive,
47725         to avoid duplicate code.
47726         Port to (probably hypothetical) environments were mode_t is
47727         wider than int.
47728         (openat_permissive): Require mode arg, so that we can check
47729         types better.  Put it just after flags.  Change cwd failure
47730         indicator from pointer-to-bool to pointer-to-errno-value.
47731         All callers changed.
47732         Invoke openat_save_fail and/or openat_restore_fail if
47733         cwd_errno is null, so that openat can call us.
47734         (openat_permissive, fdopendir, fstatat, unlinkat):
47735         Simplify errno handling to avoid some duplicate code,
47736         as it's OK to set errno on success.
47737         * lib/openat.h: Revamp code so that function macros depend on
47738         __OPENAT_PREFIX only, not also on AT_FDCWD.
47739         (openat_ro): Remove.  Caller changed to use openat_permissive.
47740         (openat_permissive): Now a macro, if not a function.
47741         (openat_restore_fail, openat_save_fail): Now always functions,
47742         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47743
47744         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47745         and openat.c.
47746         * lib/mkdirat.c: Include openat-priv.h.
47747         Remove definitions of macros defined therein.
47748         * lib/openat.c: Likewise.
47749
47750         * lib/mkdirat.c (mkdirat): New file and function.
47751         * lib/openat.h (mkdirat): Declare.
47752
47753         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47754
47755         * lib/openat.h (openat_permissive): Declare.
47756         (openat_ro): Define.
47757
47758         * lib/openat.c (EXPECTED_ERRNO): New macro.
47759         (openat_permissive): New function -- used in remove.c rewrite.
47760         (all functions): Set errno just before returning, only if there
47761         was an actual failure.
47762         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47763
47764         Emulate openat-family functions using Linux's procfs, if possible.
47765         Idea and some code based on Ulrich Drepper's glibc changes.
47766
47767         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47768         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47769         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47770         before falling back on save_cwd and restore_cwd.
47771         (fdopendir, fstatat, unlinkat): Likewise.
47772
47773         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47774         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47775
47776         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47777         as second argument to va_arg.  Otherwise, some versions of gcc
47778         warn that `if this code is reached, the program will abort'.
47779
47780 2006-01-09  Jim Meyering  <jim@meyering.net>
47781
47782         Sync from coreutils.
47783         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47784         Require openat-priv.h.
47785
47786 2006-01-09  Bruno Haible  <bruno@clisp.org>
47787
47788         * modules/strnlen (Include): Use strnlen.h.
47789
47790 2006-01-09  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47793
47794 2006-01-09  Bruno Haible  <bruno@clisp.org>
47795
47796         * lib/sysexit_.h (EX_OK): New macro.
47797         Suggested by Martin Lambers <marlam@marlam.de>.
47798
47799 2006-01-09  Bruno Haible  <bruno@clisp.org>
47800
47801         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47802         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47803
47804 2006-01-09  Bruno Haible  <bruno@clisp.org>
47805
47806         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47807         numbers.
47808
47809 2006-01-09  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47812         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47813         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47814         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47815
47816 2006-01-09  Bruno Haible  <bruno@clisp.org>
47817
47818         * build-aux/javacomp.sh.in: New file, moved from lib/.
47819         * modules/javacomp-script (Files): Update.
47820         (configure.ac): Add AC_CONFIG_FILES invocation.
47821         (EXTRA_DIST): Remove variable.
47822
47823         * build-aux/javaexec.sh.in: New file, moved from lib/.
47824         * modules/javaexec (Files): Update.
47825         (configure.ac): Add AC_CONFIG_FILES invocation.
47826         (EXTRA_DIST): Remove javaexec.sh.in.
47827
47828         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47829         * modules/csharpcomp-script (Files): Update.
47830         (configure.ac): Add AC_CONFIG_FILES invocation.
47831         (EXTRA_DIST): Remove variable.
47832
47833         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47834         * modules/csharpexec (Files): Update.
47835         (configure.ac): Add AC_CONFIG_FILES invocation.
47836         (EXTRA_DIST): Remove csharpexec.sh.in.
47837
47838 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47839
47840         Sync from coreutils.
47841
47842         Add POSIX ACL support
47843         * lib/acl.h (copy_acl, set_acl): Add declarations.
47844         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47845         systems other than Linux.
47846         (chmod_or_fchmod): New function: use fchmod when possible,
47847         and chmod otherwise.
47848         (file_has_acl): Add a POSIX ACL implementation, with a
47849         Linux-specific subcase.
47850         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47851         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47852         acls are unsupported.
47853         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47854         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47855         are unsupported.
47856
47857 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47858
47859         Sync from coreutils.
47860         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47861
47862 2006-01-07  Bruno Haible  <bruno@clisp.org>
47863
47864         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47865         gl_EARLY.
47866
47867 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47870         Problem reported for Mingw by Mark Junker.
47871
47872 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47873
47874         * README: Gnulib normally doesn't generate a tarball.
47875
47876 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47877
47878         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47879         long int, not int, for nanosecond counts, so that people who are
47880         used to POSIX struct timespec won't be surprised.  Reported by Jim
47881         Meyering.
47882
47883 2005-12-28  Bruno Haible  <bruno@clisp.org>
47884
47885         * build-aux/config.rpath: Update from GNU gettext.
47886
47887 2005-12-16  Jim Meyering  <jim@meyering.net>
47888
47889         * modules/fprintftime: New module.
47890         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47891
47892 2005-12-16  Jim Meyering  <jim@meyering.net>
47893
47894         * m4/fprintftime.m4: New file.
47895
47896 2005-12-16  Jim Meyering  <jim@meyering.net>
47897
47898         * lib/fprintftime.c, lib/fprintftime.h: New files.
47899
47900 2005-12-15  Simon Josefsson  <jas@extundo.com>
47901
47902         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47903         new m4/socklen.m4.
47904
47905 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47906
47907         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47908         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47909
47910 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47911
47912         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47913         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47914         struct uparams is valid. Fall back to the default values if it is
47915         not.
47916
47917 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47918
47919         * modules/argp (Files): Add argp-pin.c
47920         (Depends-on): dirname
47921         (lib_SOURCES): Add argp-pin.c
47922
47923 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47924
47925         * m4/argp.m4:  Check if program_invocation_name and
47926         program_invocation_short_name are declared and define appropriate
47927         macros if they are not.
47928
47929 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47930
47931         * lib/argp-help.c (__argp_base_name): New function
47932         (__argp_short_program_name): Rewrite using __argp_base_name
47933         * lib/argp-namefrob.h: Define program_invocation_name and
47934         program_invocation_short_name if requested
47935         (__argp_base_name): Add prototype
47936         * lib/argp-parse.c (argp_def): Use gettext wrappers
47937         (argp_default_parser): Use __argp_base_name
47938         * lib/argp-pin.c: New file. Defines program_invocation_name and
47939         program_invocation_short_name on systems that lack them.
47940
47941 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47942
47943         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47944         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47945         porting problem reported by Georg Schwarz in
47946         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47947
47948 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47949
47950         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47951         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47952         porting problem reported by Georg Schwarz in
47953         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47954
47955 2005-12-05  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47958         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47959         Reported by Mark Junker <mjscod@gmx.de>.
47960
47961 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47962
47963         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47964         Use implementation from Albert Chin, with some
47965         comments/corrections by Stepan Kasal and myself.
47966
47967 2005-12-02  Bruno Haible  <bruno@clisp.org>
47968
47969         * gnulib-tool (func_import): Accept GPLed build tool modules when
47970         --lgpl is given.
47971         * modules/csharpcomp-script: New file.
47972         * modules/csharpcomp: Depend on it.
47973         * modules/javacomp-script: New file.
47974         * modules/javacomp: Depend on it.
47975         Suggested by Simon Josefsson.
47976
47977 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47978
47979         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47980         statement, to work around an HP-UX 10.20 compiler bug reported by
47981         Peter O'Gorman.
47982
47983 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         * modules/savedir (Depends-on): Add openat.
47986
47987 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47990         (uintmax_t) [defined uintmax_t]: Do not declare.
47991         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47992         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47993         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47994         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47995         sake of portability to weird hosts that C allows (though we don't
47996         know of any practical examples).
47997
47998         * lib/savedir.h (fdsavedir): New decl.
47999         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48000         contains most of the former guts of savedir.
48001         (savedir): Use savedirstream.
48002         Include "openat.h".
48003
48004 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         * modules/obstack (Files): Add m4/ulonglong.m4.
48007         Problem reported by Davide Angelocola.
48008
48009 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48010
48011         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48012         coreutils no longer futzes with rounding modes.
48013
48014 2005-11-14  Jim Meyering  <jim@meyering.net>
48015
48016         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48017         replacement of mkstemp.
48018
48019 2005-11-10  Simon Josefsson  <jas@extundo.com>
48020
48021         * lib/readline.c: Remove EOL.
48022
48023 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * modules/gethrxtime (Depends-on): Add gettime.
48026
48027 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48028
48029         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48030         or gettimeofday; no longer needed.
48031
48032 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48033
48034         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48035         time business.
48036         (gethrxtime) [! (HAVE_NANOUPTIME
48037         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48038         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48039         our own approximation.
48040
48041 2005-11-08  Eric Blake  <ebb9@byu.net>
48042
48043         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48044
48045 2005-11-08  Eric Blake  <ebb9@byu.net>
48046
48047         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48048
48049 2005-11-04  Bruno Haible  <bruno@clisp.org>
48050
48051         * gnulib-tool: Implement --update mode.
48052
48053 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         Fix porting problem reported by Theodoros V. Kalamatianos.
48056         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48057         Don't assume that futimes failing means we must fail.
48058
48059 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48060
48061         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48062         variables to suggest the intended function of the PATH_MAX check.
48063
48064 2005-10-30  Kean Johnston  <jkj@sco.com>
48065
48066         Trivial changes to support SCO systems.
48067         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48068         as PATH_MAX.
48069         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48070         where __ptr is null when no I/O is pending.
48071
48072 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48073
48074         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48075         leave errno alone.  Problem reported by Dmitry V. Levin.
48076
48077 2005-10-28  Simon Josefsson  <jas@extundo.com>
48078
48079         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48080         Test more.
48081
48082         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48083
48084         * modules/md2, modules/md2-tests: New files.
48085
48086 2005-10-28  Simon Josefsson  <jas@extundo.com>
48087
48088         * m4/inet_ntop.m4: More tests.
48089
48090         * m4/gc-md2.m4, md2.m4: New file.
48091
48092 2005-10-28  Simon Josefsson  <jas@extundo.com>
48093
48094         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48095         "restrict" keywords, as per POSIX.  Protect the function
48096         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48097         Don't use K&R prototypes.  Check the sprintf return values.
48098         Re-define EAFNOSUPPORT if not present.  Indent.
48099
48100         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48101         suggested by Bruno Haible <bruno@clisp.org>.
48102
48103         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48104
48105         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48106
48107         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48108         libgcrypt).
48109
48110         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48111
48112         * lib/md2.h, lib/md2.c: New files.
48113
48114 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48115
48116         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48117         errno alone.  Problem reported by Frederic Jolliton.
48118
48119 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48120
48121         * modules/verify (License): Change from GPL to LGPL.  This is a
48122         tiny module and there are apparently near-equivalents that are
48123         under the BSD license.
48124
48125 2005-10-24  Simon Josefsson  <jas@extundo.com>
48126
48127         * modules/sha1: Relicense to LGPL.
48128
48129 2005-10-24  Simon Josefsson  <jas@extundo.com>
48130
48131         * lib/md4.h: Shrink buffer size, now that we changed the type.
48132
48133 2005-10-23  Simon Josefsson  <jas@extundo.com>
48134
48135         * gnulib-tool (func_import): Fix --tests-base.
48136
48137 2005-10-22  Simon Josefsson  <jas@extundo.com>
48138
48139         * modules/arcfour (Depends-on): Need stdint.
48140
48141 2005-10-22  Simon Josefsson  <jas@extundo.com>
48142
48143         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48144         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48145
48146 2005-10-22  Simon Josefsson  <jas@extundo.com>
48147
48148         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48149         suggested by Bruno Haible <bruno@clisp.org>.
48150
48151 2005-10-22  Simon Josefsson  <jas@extundo.com>
48152
48153         * lib/crc.h: Include stddef.h, for size_t.
48154
48155 2005-10-22  Simon Josefsson  <jas@extundo.com>
48156
48157         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48158         arcfour_context struct (simplify test vector testing in GNU
48159         Shishi).
48160
48161 2005-10-21  Simon Josefsson  <jas@extundo.com>
48162
48163         * modules/des, modules/des-tests: New files.
48164
48165         * modules/gc-des, modules/gc-des-tests: New files.
48166
48167         * tests/test-des.c, tests/test-gc-des.c: New file.
48168
48169 2005-10-21  Simon Josefsson  <jas@extundo.com>
48170
48171         * modules/arctwo, modules/arctwo-tests: New files.
48172
48173         * tests/test-arctwo.c: New file.
48174
48175         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48176
48177         * tests/test-gc-arctwo.c: New file.
48178
48179 2005-10-21  Simon Josefsson  <jas@extundo.com>
48180
48181         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48182         Bruno Haible <bruno@clisp.org>.
48183
48184         * m4/gc-des.m4: New file.
48185
48186 2005-10-21  Simon Josefsson  <jas@extundo.com>
48187
48188         * m4/arctwo.m4: New file.
48189
48190         * m4/gc-arctwo.m4: New file.
48191
48192 2005-10-21  Simon Josefsson  <jas@extundo.com>
48193
48194         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48195         block.
48196
48197 2005-10-21  Simon Josefsson  <jas@extundo.com>
48198
48199         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48200         <bruno@clisp.org>.
48201
48202         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48203
48204         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48205         Bruno Haible <bruno@clisp.org>.
48206
48207         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48208         <bruno@clisp.org>.
48209
48210 2005-10-21  Simon Josefsson  <jas@extundo.com>
48211
48212         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48213
48214 2005-10-21  Simon Josefsson  <jas@extundo.com>
48215
48216         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48217
48218 2005-10-21  Simon Josefsson  <jas@extundo.com>
48219
48220         * lib/des.h, lib/des.c: New files.
48221
48222         * lib/gc-gnulib.c: Support DES.c
48223
48224 2005-10-21  Simon Josefsson  <jas@extundo.com>
48225
48226         * lib/arctwo.h, lib/arctwo.c: New files.
48227
48228         * lib/gc-gnulib.c: Support ARCTWO.
48229
48230 2005-10-21  Simon Josefsson  <jas@extundo.com>
48231
48232         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48233         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48234
48235 2005-10-21  Simon Josefsson  <jas@extundo.com>
48236
48237         * gnulib-tool (func_import, func_create_testdir): Define automake
48238         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48239         Makefile.am snippet),
48240         suggested by Bruno Haible <bruno@clisp.org>.
48241
48242         * modules/gc (Makefile.am): Use it.
48243
48244 2005-10-21  Bruno Haible  <bruno@clisp.org>
48245
48246         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48247         patch.
48248
48249 2005-10-19  Simon Josefsson  <jas@extundo.com>
48250
48251         * tests/test-gc-rijndael.c: New file.
48252
48253         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48254
48255 2005-10-19  Simon Josefsson  <jas@extundo.com>
48256
48257         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48258         interface too.
48259
48260 2005-10-19  Simon Josefsson  <jas@extundo.com>
48261
48262         * tests/test-gc-arcfour.c: New file.
48263
48264         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48265
48266 2005-10-19  Simon Josefsson  <jas@extundo.com>
48267
48268         * modules/gc-md4, modules/gc-md4-tests: New file.
48269
48270         * tests/test-gc-md4.c: New file.
48271
48272 2005-10-19  Simon Josefsson  <jas@extundo.com>
48273
48274         * m4/gc-md4.m4: New file.
48275
48276 2005-10-19  Simon Josefsson  <jas@extundo.com>
48277
48278         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48279         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48280         <kasal@ucw.cz>.
48281
48282 2005-10-19  Simon Josefsson  <jas@extundo.com>
48283
48284         * m4/gc-arcfour.m4: New file.
48285
48286         * m4/gc-rijndael.m4: New file.
48287
48288 2005-10-19  Simon Josefsson  <jas@extundo.com>
48289
48290         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48291
48292 2005-10-19  Simon Josefsson  <jas@extundo.com>
48293
48294         * lib/gc-gnulib.c: Support ARCFOUR.
48295
48296 2005-10-19  Simon Josefsson  <jas@extundo.com>
48297
48298         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48299         support.
48300
48301         * lib/gc.h: Add ECB enum type.
48302
48303         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48304
48305 2005-10-18  Simon Josefsson  <jas@extundo.com>
48306
48307         * tests/test-md5.c: New file.
48308
48309         * modules/md5-tests: New file.
48310
48311 2005-10-18  Simon Josefsson  <jas@extundo.com>
48312
48313         * tests/test-md4.c: New file.
48314
48315         * modules/md4, modules/md4-tests: New files.
48316
48317 2005-10-18  Simon Josefsson  <jas@extundo.com>
48318
48319         * m4/md4.m4: New file.
48320
48321 2005-10-18  Simon Josefsson  <jas@extundo.com>
48322
48323         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48324
48325 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48326
48327         * gnulib-tool (func_create_testdir): Omit the second check whether
48328         BUILT_SOURCES in nonempty.
48329
48330 2005-10-17  Simon Josefsson  <jas@extundo.com>
48331
48332         * tests/test-rijndael.c: New file.
48333
48334 2005-10-17  Simon Josefsson  <jas@extundo.com>
48335
48336         * modules/sha1: Depend on stdint instead of md5.
48337
48338         * modules/md5: Depend on stdint, remove uint32_t.
48339
48340 2005-10-17  Simon Josefsson  <jas@extundo.com>
48341
48342         * modules/gc-sha1-tests: New file.
48343
48344         * tests/test-gc-sha1.c: New file.
48345
48346 2005-10-17  Simon Josefsson  <jas@extundo.com>
48347
48348         * m4/md5.m4: Remove call to uint32_t.m4.
48349
48350 2005-10-17  Simon Josefsson  <jas@extundo.com>
48351
48352         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48353
48354         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48355         md5.h.
48356
48357         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48358
48359         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48360
48361 2005-10-17  Simon Josefsson  <jas@extundo.com>
48362
48363         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48364
48365 2005-10-17  Simon Josefsson  <jas@extundo.com>
48366
48367         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48368
48369 2005-10-17  Simon Josefsson  <jas@extundo.com>
48370
48371         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48372
48373         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48374
48375 2005-10-17  Bruno Haible  <bruno@clisp.org>
48376
48377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48378         that it can also be used in a test.
48379
48380 2005-10-16  Bruno Haible  <bruno@clisp.org>
48381
48382         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48383         TESTS_ENVIRONMENT, so that individual tests can augment it.
48384
48385         * gnulib-tool (func_create_testdir): Use an intermediate target for
48386         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48387         macros, like $(ALLOCA_H), which cannot be passed through the command
48388         line.
48389
48390 2005-10-15  Simon Josefsson  <jas@extundo.com>
48391
48392         * modules/rijndael-tests: New file.
48393
48394         * modules/rijndael: New file.
48395
48396 2005-10-15  Simon Josefsson  <jas@extundo.com>
48397
48398         * m4/rijndael.m4: New file.
48399
48400 2005-10-15  Simon Josefsson  <jas@extundo.com>
48401
48402         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48403
48404         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48405
48406 2005-10-14  Simon Josefsson  <jas@extundo.com>
48407
48408         * tests/test-arcfour.c: New file.
48409
48410         * modules/arcfour, modules/arcfour-tests: New files.
48411
48412 2005-10-14  Simon Josefsson  <jas@extundo.com>
48413
48414         * m4/arcfour.m4: New file.
48415
48416 2005-10-14  Simon Josefsson  <jas@extundo.com>
48417
48418         * lib/arcfour.h, lib/arcfour.c: New files.
48419
48420 2005-10-14  Roland McGrath  <roland@redhat.com>
48421
48422         Import from libc.  [BZ #1331]
48423         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48424         macro argument.
48425         Reported by Matej Vela <vela@debian.org>.
48426
48427 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48428
48429         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48430         include <wchar.h>; no longer needed.
48431
48432 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48433
48434         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48435
48436 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48437         and  Ulrich Drepper  <drepper@redhat.com>
48438
48439         Import from libc.
48440         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48441         instead of inline stream orientation test and two separate
48442         function calls.  Pay no attention to USE_IN_LIBIO.
48443
48444 2005-10-13  Simon Josefsson  <jas@extundo.com>
48445
48446         * modules/gc-hmac-md5-tests: New file.
48447
48448         * tests/test-gc-hmac-sha1.c: New file.
48449
48450         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48451
48452         * modules/gc-hmac-md5-tests: New file.
48453
48454         * tests/test-gc-md5.c: New file.
48455
48456         * modules/gc-md5-tests: New file.
48457
48458 2005-10-13  Simon Josefsson  <jas@extundo.com>
48459
48460         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48461         Move memory allocation outside of loop.
48462
48463 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48464
48465         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48466         intermediate directory is in a read-only file system.  Problem
48467         reported by Eric Blake.
48468
48469 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48470
48471         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48472
48473 2005-10-12  Simon Josefsson  <jas@extundo.com>
48474
48475         * tests/test-hmac-sha1.c: New file.
48476
48477         * modules/hmac-sha1-tests: New file.
48478
48479         * modules/hmac-sha1: New file.
48480
48481 2005-10-12  Simon Josefsson  <jas@extundo.com>
48482
48483         * modules/gc-sha1: New file.
48484
48485 2005-10-12  Simon Josefsson  <jas@extundo.com>
48486
48487         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48488
48489         * tests/test-gc-pbkdf2-sha1.c: New file.
48490
48491 2005-10-12  Simon Josefsson  <jas@extundo.com>
48492
48493         * modules/gc-md5, modules/gc-hmac-md5: New files.
48494
48495         * modules/gc (Files): Remove md5, memxor and hmac files.
48496
48497 2005-10-12  Simon Josefsson  <jas@extundo.com>
48498
48499         * m4/gc-pbkdf2-sha1.m4: New file.
48500
48501         * m4/gc-hmac-sha1.m4: New file.
48502
48503         * m4/gc-sha1: New file.
48504
48505         * m4/hmac-sha1.m4: New file.
48506
48507 2005-10-12  Simon Josefsson  <jas@extundo.com>
48508
48509         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48510
48511         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48512
48513 2005-10-12  Simon Josefsson  <jas@extundo.com>
48514
48515         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48516         suggested by Bruno Haible <bruno@clisp.org>.
48517
48518 2005-10-12  Simon Josefsson  <jas@extundo.com>
48519
48520         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48521
48522 2005-10-12  Simon Josefsson  <jas@extundo.com>
48523
48524         * lib/gc-pbkdf2-sha1.c: New file.
48525
48526         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48527
48528 2005-10-12  Simon Josefsson  <jas@extundo.com>
48529
48530         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48531
48532         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48533
48534 2005-10-12  Simon Josefsson  <jas@extundo.com>
48535
48536         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48537         GC_USE_HMAC_MD5, respectively.
48538
48539         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48540         (gc_md5): Fix typo.
48541
48542         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48543
48544         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48545
48546         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48547
48548 2005-10-12  Bruno Haible  <bruno@clisp.org>
48549
48550         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48551         Reported by Stepan Kasal <kasal@ucw.cz>.
48552
48553 2005-10-11  Simon Josefsson  <jas@extundo.com>
48554
48555         * tests/test-crc.c: New file.
48556
48557         * modules/crc, modules/crc-tests: New files.
48558
48559 2005-10-11  Simon Josefsson  <jas@extundo.com>
48560
48561         * m4/crc.m4: New file.
48562
48563 2005-10-11  Simon Josefsson  <jas@extundo.com>
48564
48565         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48566
48567         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48568
48569         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48570
48571 2005-10-11  Simon Josefsson  <jas@extundo.com>
48572
48573         * lib/crc.h, lib/crc.c: New files.
48574
48575         * lib/gc.h (gc_hash_buffer): Add doc.
48576
48577 2005-10-11  Bruno Haible  <bruno@clisp.org>
48578
48579         * modules/c-strcasestr: New file.
48580         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48581
48582 2005-10-11  Bruno Haible  <bruno@clisp.org>
48583
48584         * modules/c-strcase: New file.
48585         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48586
48587 2005-10-11  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/strcasecmp.c: Include limits.h.
48590         (strcasecmp): Avoid integer overflow on exotic platforms.
48591         * lib/strncasecmp.c: Include limits.h.
48592         (strncasecmp): Avoid integer overflow on exotic platforms.
48593         Reported by Paul Eggert.
48594
48595 2005-10-11  Bruno Haible  <bruno@clisp.org>
48596
48597         * lib/c-strcasestr.h: New file, from GNU gettext.
48598         * lib/c-strcasestr.c: New file, from GNU gettext.
48599
48600 2005-10-11  Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/c-strcase.h: New file, from GNU gettext.
48603         * lib/c-strcasecmp.c: New file, from GNU gettext.
48604         * lib/c-strncasecmp.c: New file, from GNU gettext.
48605
48606 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48607
48608         * modules/mempcpy (License): GPL -> LGPL.
48609         * modules/strchrnul (License): Likewise.
48610         * modules/sysexits (License): Likewise.
48611
48612 2005-10-08  Simon Josefsson  <jas@extundo.com>
48613
48614         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48615
48616 2005-10-07  Simon Josefsson  <jas@extundo.com>
48617
48618         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48619
48620 2005-10-06  Simon Josefsson  <jas@extundo.com>
48621
48622         * tests/test-hmac-md5.c: New file.
48623
48624         * modules/hmac-md5-tests: New file.
48625
48626         * modules/hmac-md5: New file.
48627
48628 2005-10-06  Simon Josefsson  <jas@extundo.com>
48629
48630         * m4/hmac-md5.m4: New file.
48631
48632         * m4/memxor.m4: Require gl_C_RESTRICT.
48633
48634 2005-10-06  Simon Josefsson  <jas@extundo.com>
48635
48636         * lib/memxor.c (memxor): Avoid casts and warnings.
48637
48638 2005-10-06  Simon Josefsson  <jas@extundo.com>
48639
48640         * lib/hmac-md5.c: New file.
48641
48642         * lib/hmac.h: New file.
48643
48644 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48645
48646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
48647         promotes to int, not unsigned int, to catch the AIX 5.3
48648         compiler bug.
48649
48650 2005-10-05  Simon Josefsson  <jas@extundo.com>
48651
48652         * modules/memxor: New file.
48653
48654         * modules/iconv (Files): Move config.rpath to havelib, it is used
48655         there.
48656
48657         * modules/havelib (Files): Add config.rpath.
48658
48659 2005-10-05  Simon Josefsson  <jas@extundo.com>
48660
48661         * m4/memxor.m4: New file.
48662
48663 2005-10-05  Simon Josefsson  <jas@extundo.com>
48664
48665         * lib/memxor.c (memxor): Fix compiler error.
48666
48667         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48668         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48669
48670         * lib/memxor.h, lib/memxor.c: New files.
48671
48672         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48673         we assume all systems have it, suggested by Jim Meyering
48674         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48675         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48676         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48677         same reasons.
48678
48679 2005-10-05  Simon Josefsson  <jas@extundo.com>
48680
48681         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48682
48683 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48686         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48687         needed, since the source code now assumes these .h files.
48688
48689 2005-10-05  Derek Price  <derek@ximbiot.com>
48690
48691         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48692
48693 2005-10-05  Bruno Haible  <bruno@clisp.org>
48694
48695         * modules/stdint (License): Change to LGPL.
48696
48697 2005-10-04  Simon Josefsson  <jas@extundo.com>
48698
48699         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48700         D. Baushke" <mdb@gnu.org>.
48701
48702 2005-10-04  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/verify.h (verify_true): Provide alternative definition for C++.
48705
48706 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48707
48708         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48709         (SSIZE_MAX): New macro, if not already defined.
48710         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48711         than 2 GiB.
48712
48713 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48714
48715         Sync from coreutils.
48716         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48717         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48718         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48719         ULLONG_MAX doesn't work with 2.7.2.1.
48720
48721 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48722
48723         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48724         From Ben Pfaff.
48725
48726         * modules/exclude (Depends-on): Depend on verify.
48727         * modules/strtoimax (Depends-on): Likewise.
48728         * modules/utimecmp (Depends-on): Likewise.
48729
48730 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/exclude.c: Include verify.h.
48733         (verify): Remove.  All callers changed to use verify.h's version.
48734         * lib/strtoimax.c: Likewise.
48735         * lib/utimecmp.c: Likewis.e
48736
48737         Sync from coreutils.
48738         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48739         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48740         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48741         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48742         bother returning ENOSYS if settimeofday or stime fails; just let
48743         them return whatever errno they want to return.
48744         * lib/utimens.c: Include unistd.h, for dup2.
48745         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48746         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48747
48748 2005-10-02  Jim Meyering  <jim@meyering.net>
48749
48750         Sync from coreutils.
48751         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48752         from glibc-2.2.5 that fails for read-only files.
48753
48754 2005-10-02  Jim Meyering  <jim@meyering.net>
48755
48756         Sync from coreutils.
48757         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48758         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48759         `#if HAVE_CONFIG_H'.
48760         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48761         Remove AT_FDCWD test.
48762         Do not consume the fd unless successful.
48763         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48764         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48765         block, so that we don't even try to compile it if settimeofday is
48766         available.  This works around a compilation failure on OSF1 V5.1,
48767         due to stime requiring a `long int*' while tv_sec is `int'.
48768
48769 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48770
48771         Sync from coreutils.
48772         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48773         against `yes', rather than just testing for nonempty.
48774
48775 2005-10-01  Simon Josefsson  <jas@extundo.com>
48776
48777         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48778         and Darwin.
48779
48780         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48781         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48782         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48783         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48784         Check if struct addrinfo is declared.
48785
48786 2005-10-01  Simon Josefsson  <jas@extundo.com>
48787
48788         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48789         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48790         AI_* and EAI_* definitions.  Protect function declarations.
48791
48792 2005-10-01  Jim Meyering  <jim@meyering.net>
48793
48794         Sync from coreutils.
48795
48796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48797         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48798         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48800         in the inet and nsl libraries.  Required on Solaris 5.7.
48801
48802 2005-10-01  Jim Meyering  <jim@meyering.net>
48803
48804         Sync from coreutils.
48805         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48806         in the inet and nsl libraries.  Required on Solaris 5.7.
48807
48808 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48809
48810         * lib/getdelim.c (getdelim): Remove unused variables.
48811
48812 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48813
48814         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48815         so that the code works even with ancient cpp.  Portability problem
48816         with GCC 2.7.2.1 reported by Thomas M.Ott.
48817
48818 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         * modules/regex (Depends-on): Add strcase.
48821
48822         * modules/gethostname (Licence): Change from GPL to LGPL, since
48823         gethostname.c is a trivial implementation of a standard library
48824         function.
48825         * modules/poll (License): Change from GPL to LGPL, since it's
48826         derived from LGPL code.
48827
48828 2005-09-27  Jim Meyering  <jim@meyering.net>
48829
48830         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48831         HAVE_CONFIG_H.
48832
48833         * lib/intprops.h (signed_type_or_expr__): Define.
48834         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48835         for unsigned types.
48836
48837 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48838
48839         * lib/verify.h (verify_expr): Remove, replacing with:
48840         (verify_true): New macro that returns true instead of void.
48841         (verify_type__): Remove.
48842         (verify): Use verify_true rather than verify_type__.
48843
48844 2005-09-26  Bruno Haible  <bruno@clisp.org>
48845
48846         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48847         is necessary.
48848         (lib_SOURCES): Remove mbchar.c.
48849         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48850         (Files): Add m4/mbrtowc.m4.
48851         * modules/mbiter: Likewise.
48852         * modules/mbuiter: Likewise.
48853
48854 2005-09-26  Bruno Haible  <bruno@clisp.org>
48855
48856         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48857         compile mbchar.c if they are not both present.
48858         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48859         * m4/mbiter.m4 (gl_MBITER): Likewise.
48860         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48861         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48862         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48863
48864 2005-09-25  Jim Meyering  <jim@meyering.net>
48865
48866         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48867         also uses socklen_t.
48868
48869 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48870
48871         * lib/utimens.c (ENOSYS): Define if not already defined.
48872         (futimens): Support having a null PATH if the file descriptor
48873         is nonnegative.
48874
48875         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48876         Remove.
48877         (__attribute): Define to empty unless GCC 3.1 or later.
48878         This works around a core dump on OpenBSD 3.4, which has GCC
48879         2.95.3, which dumps core when given __attribute__(()).  It also
48880         simplifies other tests, since we really don't want to bother with
48881         worrying about which ancient version of GCC supported what.
48882         Original problem reported by Yoann Vandoorselaere, with part of
48883         the fix suggested by Derek Price.
48884
48885 2005-09-24  Jim Meyering  <jim@meyering.net>
48886
48887         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48888         so we can once again use a positive bitfield width of 1 -- now we
48889         don't have to explain why we were using a bitfield width of 2.
48890
48891 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48894         and similarly for the other external symbols.  Problem reported
48895         by James Gallager.
48896
48897         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48898         bug reported by Jim Meyering.
48899
48900         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48901         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48902         not needed, since socklen is a prerequisite module.
48903
48904 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48907         Problem reported by Eric Blake.
48908         (getaddrinfo): Initialize se so that it's not garbage.
48909         Redo internal storage allocation so that it doesn't make unportable
48910         assumptions about alignment.
48911         Fix a memory leak.
48912
48913         * lib/utimens.c (futimens): Use futimesat if available.
48914         Prefer it to futimes since it doesn't have the futimes bug.
48915
48916         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48917         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48918         Instead, declare a function that returns a pointer to an array,
48919         and use verify_type__ to declare the size of the array.
48920         Problem and germ of a solution reported by Bruno Haible.
48921         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48922         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48923
48924 2005-09-23  Jim Meyering  <jim@meyering.net>
48925
48926         Sync from coreutils.
48927         Correct build failure (socklen_t not defined) on at least
48928         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48929         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48930
48931 2005-09-23  Jim Meyering  <jim@meyering.net>
48932
48933         * modules/getaddrinfo (Depends-on): Add socklen.
48934
48935 2005-09-23  Bruno Haible  <bruno@clisp.org>
48936
48937         * tests/test-verify.c: New file.
48938
48939 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48940
48941         Sync from coreutils.
48942
48943         * modules/argmatch (Depends-on): Add verify.
48944         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48945         unistd-safer.
48946         * modules/save-cwd (Depends-on): Likewise.
48947
48948         * modules/openat (Files): Add lib/openat-die.c.
48949         (Depends-on): Remove error, exitfail.
48950         Add dirname.
48951
48952         * modules/verify: New file.
48953         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48954         with "verify" module.
48955
48956 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48957
48958         Sync from coreutils.
48959
48960         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48961         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48962         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48963         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48964         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48965         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48966         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48967         Don't bother checking for string.h, stdlib.h, unistd.h.
48968         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48969         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48970         module's job.
48971         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48972         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48973
48974         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48975         (gl_GETDATE): Use it.
48976
48977         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48978
48979 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48980
48981         Sync from coreutils.
48982
48983         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48984         stat-time.h.
48985         * lib/argmatch.h: Include verify.h
48986         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48987         (ARGMATCH_ASSERT): Remove; unused.
48988         * lib/canonicalize.c: Assume STDC_HEADERS.
48989         * lib/exclude.c: Include "strcase.h".
48990         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48991         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48992         and stdio-safer.h.
48993         (getusershell): Call fopen, not fopen_safer.
48994         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48995         Do not include unistd-safer.h.
48996         (save_cwd): Don't call fd_safer; no longer needed
48997         now that we include fcntl--.h.
48998
48999         * lib/getdate.y (relative_time): New type.
49000         (RELATIVE_TIME_0): New constant.
49001         (parser_control): Use relative_time instead of doing it ourselves.
49002         (%union): Add new relative_time rel member.
49003         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49004         Now typeless.
49005         (relunit, relunit_snumber): Now of type rel.
49006         (zone, rel, relunit, get_date): Adjust to above changes.
49007
49008         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49009         Do not include unistd-safer.h.
49010         (getloadavg): Don't call fd_safer; no longer needed
49011         now that we include fcntl--.h.
49012
49013         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49014         (make_dir_parents): Treat ENOSYS like EEXIST.
49015
49016         Improve quality of diagnostics on restore_cwd failure.
49017         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49018         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49019         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49020         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49021         each time through the loop.  Do not diagnose restore_cwd failure;
49022         that is the caller's job (and perhaps the caller does not care).
49023
49024         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49025         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49026         If the file already exists but is not a directory, don't bother
49027         to try to make its parents.
49028         Close potential file descriptor leak if we can't chdir("/") (!).
49029         Don't always return true if chdir($PWD) fails; return true only
49030         if the requested action was done successfully (except for the
49031         chdir($PWD)).
49032         Don't log final directory unless we actually made it.
49033         Refactor to avoid duplicate code to fix up permissions.
49034         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49035
49036         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49037         to make it a bit faster and (I hope) clearer.
49038         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49039         Fix bug in formats like %2N.
49040
49041         * lib/verify.h: New file.
49042
49043 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49044
49045         Sync from coreutils.
49046         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49047
49048 2005-09-22  Jim Meyering  <jim@meyering.net>
49049
49050         Sync from coreutils.
49051
49052         * m4/lstat.m4 (gl_FUNC_LSTAT):
49053         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49054         Remove obsolete comment.
49055         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49056         * m4/xstrtod.m4: Likewise.
49057
49058         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49059
49060 2005-09-22  Jim Meyering  <jim@meyering.net>
49061
49062         Sync from coreutils.
49063
49064         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49065
49066         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49067         the .tm_year member, since otherwise gcc-4.0 would now warn about
49068         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49069
49070         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49071         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49072
49073         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49074         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49075         when run in a time zone for which daylight savings time is in effect
49076         for the starting date.
49077
49078         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49079         stop us from restricting permissions of just-created absolute-named
49080         directories.
49081         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49082         to restore initial working directory.
49083         * lib/mkdir-p.c (make_dir_parents): New parameter:
49084         different_working_dir, to tell caller if/when we change the working
49085         directory and are unable to return to the initial one.
49086         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49087         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49088         `return false'.  This fixes a bug introduced on 2004-07-30.
49089
49090         * lib/openat.c (fdopendir): Be sure to close the supplied
49091         file descriptor before returning.  This makes our replacement
49092         implementation a little closer to Solaris's, where fdopendir
49093         ties the file descriptor to the returned DIR* pointer.
49094         * lib/openat.c (unlinkat): New function.
49095         * lib/openat.h (unlinkat): Add prototype.
49096         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49097         (openat_restore_fail): Rename from openat_restore_die.
49098         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49099
49100         Provide an alternative to exiting immediately upon save_cwd or
49101         restore_cwd failure.  Now, an application can arrange e.g.,
49102         to perform a longjump in that case.
49103         * lib/openat.c: Include dirname.h.
49104         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49105         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49106         and openat_restore_die rather than calling error directly.
49107         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49108
49109         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49110         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49111         define.
49112
49113         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49114         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49115                             int utc, int nanoseconds);
49116         Background:
49117         date should not have to allocate a megabyte of virtual memory to
49118         handle a format argument like +%1048575T.  When implemented with
49119         strftime, it must allocate such a buffer, use strftime to fill it
49120         in, print it, then free it.
49121         With fprintftime, it simply prints everything and exits.
49122         With no need for memory allocation, that's one fewer way to fail.
49123         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49124         optional field width, not before, so we accept %9:z, not %:9z.
49125         (my_strftime): Be sure to use L_('x') for literals.
49126
49127         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49128         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49129         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49130         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49131         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49132         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49133         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49134         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49135         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49136         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49137         * lib/xgethostname.c, lib/xreadlink.c:
49138         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49139
49140         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49141         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49142         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49143         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49144         and don't include <sys/file.h>).
49145
49146 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49147
49148         Sync from coreutils.
49149
49150         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49151         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49152         [!LDAV_DONE]: Avoid unused variable warning.
49153
49154 2005-09-21  Bruno Haible  <bruno@clisp.org>
49155
49156         * lib/unicodeio.h (unicode_to_mb): New declaration.
49157
49158 2005-09-20  Derek Price  <derek@ximbiot.com>
49159
49160         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49161         getaddrinfo.h.
49162
49163 2005-09-20  Bruno Haible  <bruno@clisp.org>
49164
49165         * gnulib-tool: Remove trailing slashes from the values specified for
49166         --source-base, --m4-base, --tests-base, --aux-dir.
49167         Suggested by Simon Josefsson <jas@extundo.com>.
49168
49169 2005-09-20  Bruno Haible  <bruno@clisp.org>
49170
49171         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49172         func_modules_to_filelist, func_import, func_create_testdir): Make all
49173         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49174         change when gnulib-tool is invoked in a different locale.
49175
49176 2005-09-19  Simon Josefsson  <jas@extundo.com>
49177
49178         * m4/socklen.m4: Fix typo.
49179
49180 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49181
49182         Use a consistent style for including <config.h>.
49183         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49184         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49185         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49186         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49187         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49188         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49189         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49190         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49191         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49192         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49193         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49194         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49195         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49196         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49197         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49198         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49199         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49200         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49201         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49202         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49203         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49204         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49205         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49206         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49207         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49208         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49209         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49210         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49211         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49212         lib/xstrtoumax.c, lib/yesno.c:
49213         Standardize inclusion of config.h.
49214         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49215         lib/inttostr.h:  Removed inclusion of config.h from header files.
49216         * lib/inttostr.c:  Adjusted in-tree users.
49217         * lib/timespec.h: Remove superfluous warning to include config.h.
49218         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49219         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49220         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49221         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49222         config.h with HAVE_CONFIG_H.
49223
49224 2005-09-19  Jim Meyering  <jim@meyering.net>
49225
49226         * modules/pathmax (License): Change to LGPL.
49227
49228 2005-09-19  Derek Price  <derek@ximbiot.com>
49229
49230         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49231
49232 2005-09-19  Bruno Haible  <bruno@clisp.org>
49233
49234         * gnulib-tool (import): Provide default for --tests-base.
49235
49236 2005-09-19  Bruno Haible  <bruno@clisp.org>
49237
49238         * doc/quote.texi: New file, extracted from gnulib.texi.
49239         * doc/ctime.texi: New file, extracted from gnulib.texi.
49240         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49241         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49242         * doc/gnulib.texi: Include them.
49243
49244 2005-09-18  Bruno Haible  <bruno@clisp.org>
49245
49246         Portability fix.
49247         * gnulib-tool (func_readlink): New function.
49248         (func_ln_if_changed): Use it.
49249
49250 2005-09-18  Bruno Haible  <bruno@clisp.org>
49251
49252         * gnulib-tool: Support --with-tests also with --import.
49253         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49254         (func_import): Use variables $testsbase and $inctests. Emit a
49255         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49256         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49257         SUBDIRS += $testsdir.
49258         (func_create_testdir): Update.
49259
49260 2005-09-18  Bruno Haible  <bruno@clisp.org>
49261
49262         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49263         instead of $dry_run.
49264         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49265         (func_ln_if_changed): Don't handle dry-run here.
49266         (func_import): In dry-run mode, detect more precisely which actions
49267         would be performed, and don't use "...ing" verbs.
49268
49269 2005-09-18  Bruno Haible  <bruno@clisp.org>
49270
49271         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49272         (func_import): Use join on two temporary files instead of three nested
49273         loops, in order to determine which files are new or old.
49274
49275 2005-09-18  Bruno Haible  <bruno@clisp.org>
49276
49277         * gnulib-tool (func_import): Comment out code that spits out the
49278         new files with --dry-run.
49279
49280 2005-09-18  Bruno Haible  <bruno@clisp.org>
49281
49282         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49283
49284 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49285
49286         * lib/stat-time.h: New file.
49287         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49288         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49289         in a different way.
49290         (timespec_cmp): New function.
49291         * lib/utimecmp.c: Include stat-time.h.
49292         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49293         members exist, not on the obsolescent ST_MTIM_NSEC.
49294         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49295
49296 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49297
49298         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49299
49300 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         * MODULES.html.sh (File system functions): Add stat-time.
49303         * modules/stat-time: New file.
49304         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49305         is now done in a different way, by the stat-time module.
49306         * modules/utimecmp (Depends-on): Add stat-time.
49307
49308 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49309
49310         * m4/st_mtim.m4: Remove.  Superseded by...
49311         * m4/stat-time.m4: New file.
49312         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49313         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49314
49315 2005-09-15  Derek Price  <derek@ximbiot.com>
49316
49317         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49318
49319 2005-09-15  Derek Price  <derek@ximbiot.com>
49320
49321         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49322         * lib/regex_internal.c: Ditto, using this...
49323         (__GNUC_PREREQ): ...new macro.
49324         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49325         using...
49326         (__GNUC_PREREQ): ...this new macro.
49327
49328         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49329
49330 2005-09-15  Derek Price  <derek@ximbiot.com>
49331             Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49334         changes, consolidating in...
49335         * lib/regex_internal.h: ...this file.
49336
49337 2005-09-13  Jim Meyering  <jim@meyering.net>
49338
49339         * lib/canon-host.c: Filter through gnu indent and reword comments
49340         slightly.
49341         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49342
49343 2005-09-13  Derek Price  <derek@ximbiot.com>
49344
49345         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49346         failure.
49347         Reported by Jim Meyering  <jim@meyering.net>.
49348
49349 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49350
49351         * lib/base64.c: Typo.
49352         (base64_encode): Put b64str in initialized data section.
49353
49354 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49355
49356         Merge glibc and coreutils changes into gnulib, plus a few
49357         extra fixes.
49358         * lib/md5.c: Use #error rather than a string.
49359         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49360         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49361         (__attribute__): Define to empty for non recent-GCC.
49362         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49363         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49364         Renamed from their non-__ counterparts, with new macros replacing
49365         them if not _LIBC.  Add __THROW attribute.
49366         (rol): Remove.
49367         (struct md5_ctx): Align buffer if using GCC.
49368         * lib/sha1.h (struct sha1_ctx): Likewise.
49369         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49370         The old name was backwards.
49371         (NOTSWAP): Remove; not used.
49372         (rol): New macro, moved here from md5.h.
49373         (sha1_process_block): Remove a FIXME that doesn't make sense.
49374
49375 2005-09-12  Derek Price  <derek@ximbiot.com>
49376
49377         Return usable errors from canon-host.
49378         * lib/canon-host.h: New file.
49379         * lib/canon-host.c (canon_host): Wrap...
49380         (canon_host_r): ...this new function, which now relies exclusively on
49381         getaddrinfo.
49382         (ch_strerror): New function.
49383         (last_cherror): New global.
49384         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49385         interface.
49386         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49387         void *.
49388         (freeaddrinfo): Free ai->ai_canonname when set.
49389
49390 2005-09-12  Derek Price  <derek@ximbiot.com>
49391
49392         Make canon-host require getaddrinfo.
49393         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49394         AC_LIBSOURCE canon-host.h.  Call...
49395         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49396         gl_GETADDRINFO.
49397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49398
49399 2005-09-12  Derek Price  <derek@ximbiot.com>
49400
49401         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49402         LGPL.
49403         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49404
49405 2005-09-12  Derek Price  <derek@ximbiot.com>
49406
49407         * lib/gai_strerror.c: Include config.h when available.  Include
49408         getaddrinfo.h before other headers to test interface.
49409         Reported by Larry Jones <lawrence.jones@ugs.com>.
49410
49411 2005-09-12  Derek Price  <derek@ximbiot.com>
49412             Paul Eggert  <eggert@cs.ucla.edu>
49413
49414         * modules/glob (Files): Add glob-libc.h.
49415
49416 2005-09-12  Derek Price  <derek@ximbiot.com>
49417             Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49420         glob_.h, glob-libc.h.
49421         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49422
49423 2005-09-12  Derek Price  <derek@ximbiot.com>
49424             Paul Eggert  <eggert@cs.ucla.edu>
49425
49426         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49427         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49428         protecting things that should be done only in gnulib contexts.
49429         * lib/glob_.h: New file, containing only the glob things needed for
49430         gnulib.
49431         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49432         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49433         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49434         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49435         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49436         and to respect the namespace rules better.
49437
49438 2005-09-08  Simon Josefsson  <jas@extundo.com>
49439
49440         * modules/socklen: New file.
49441
49442 2005-09-08  Simon Josefsson  <jas@extundo.com>
49443
49444         * m4/socklen.m4: New file.
49445
49446 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49447
49448         * modules/utimens (Files): Add m4/utimbuf.m4, since
49449         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49450         Reported by Sergey Poznyakoff.
49451
49452 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49453
49454         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49455         definitions, since that's the preferred style in glibc.
49456         Fix a minor spacing issue, and update copyright notice to match
49457         glibc's.
49458
49459 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49462
49463 2005-09-06  Simon Josefsson  <jas@extundo.com>
49464
49465         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49466         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49467
49468 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49469
49470         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49471         warning.
49472
49473 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49474
49475         * config/srclist.txt: Add glibc bug 1302.
49476
49477 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49478
49479         Change bitset word type from unsigned int to unsigned long int,
49480         as this has better performance on typical 64-bit hosts.
49481         Port bitset code to hosts with unusual word sizes.
49482         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49483         (build_collating_symbol):
49484         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49485         argument is a bitset.  This is merely a style issue, but it makes
49486         it clearer that an entire array is expected.
49487         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49488         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49489         Port to the case where bitset_word is not the same as unsigned int.
49490         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49491         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49492         Likewise.
49493         * lib/regexec.c (check_dst_limits_calc_pos_1,
49494         check_subexp_matching_top):
49495         (build_trtable, group_nodes_into_DFAstates):
49496         Likewise.
49497         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49498         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49499         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49500         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49501         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49502         * lib/regcomp.c (optimize_subexps, lower_subexp):
49503         Work even if bitset_word has holes in its bitwise representation.
49504         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49505         * lib/regexec.c (check_dst_limits_calc_pos_1,
49506         check_subexp_matching_top):
49507         Likewise.
49508         * lib/regex_internal.c (re_string_reconstruct):
49509         Don't assume UCHAR_MAX == 255.
49510         * lib/regex_internal.h (bitset_set_all): Likewise.
49511         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49512         All uses changed.
49513         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49514         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49515         All uses changed.
49516         (BITSET_WORD_MAX): New macro.
49517         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49518         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49519         (bitset_empty, bitset_copy):
49520         Prefer sizeof (bitset) to multiplying it out ourselves.
49521         (bitset_not_merge): Remove; unused.
49522         (bitset_contain): Return bool, not unsigned int with one bit on.
49523         All callers changed.
49524         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49525         alignment than re_node_set; do this by defining a new internal
49526         type struct dests_alloc and using it to allocate memory.
49527
49528 2005-09-05  Bruno Haible  <bruno@clisp.org>
49529
49530         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49531         links.
49532
49533 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49534
49535         * modules/size_max (Makefile.am): Add size_max.h
49536
49537 2005-09-04  Derek Price  <derek@ximbiot.com>
49538
49539         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49540
49541 2005-09-03  Simon Josefsson  <jas@extundo.com>
49542
49543         * gnulib-tool: Fix typo.
49544
49545 2005-09-03  Simon Josefsson  <jas@extundo.com>
49546
49547         * config/srclist.txt: Add glibc bug 1293.
49548
49549 2005-09-03  Derek Price  <derek@ximbiot.com>
49550
49551         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49552         From Larry Jones <lawrence.jones@ugs.com>.
49553
49554 2005-09-02  Simon Josefsson  <jas@extundo.com>
49555
49556         * modules/socklen: New file.
49557
49558 2005-09-02  Simon Josefsson  <jas@extundo.com>
49559
49560         * modules/havelib: New module.
49561
49562         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49563         Use havelib.
49564
49565 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         Check for arithmetic overflow when calculating sizes, to prevent
49568         some buffer-overflow issues.  These patches are conservative, in the
49569         sense that when I couldn't determine whether an overflow was possible,
49570         I inserted a run-time check.
49571         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49572         macros.
49573         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49574         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49575         (re_xnrealloc, re_x2nrealloc): New inline functions.
49576         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49577         parse_bracket_exp):
49578         (build_equiv_class, build_charclass): Check for arithmetic overflow
49579         in size expression calculations.
49580         * lib/regex_internal.c (re_string_realloc_buffers):
49581         (build_wcs_upper_buffer, re_node_set_add_intersect):
49582         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49583         (re_dfa_add_node, register_state): Likewise.
49584         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49585         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49586         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49587         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49588
49589 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49590
49591         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49592         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49593
49594 2005-09-02  Bruno Haible  <bruno@clisp.org>
49595
49596         Support for lib vs. lib64 distinction on biarch platforms.
49597         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49598         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49599         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49600
49601 2005-09-02  Bruno Haible  <bruno@clisp.org>
49602
49603         * gnulib-tool (import): In the other first-use case, provide defaults
49604         as well.
49605
49606 2005-09-02  Bruno Haible  <bruno@clisp.org>
49607
49608         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49609         patches not yet found in the latest gettext release.
49610
49611 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49612
49613         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49614         to avoid a collision with bits/local_lim.h in glibc.
49615         All uses changed.  Problem reported by Dmitry V. Levin in
49616         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49617
49618         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49619         bugs in int versus size_t comparisons.
49620         (re_string_context_at): Fix bug where the code assumed that
49621         Idx is signed.
49622
49623         Use bool where appropriate.
49624         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49625         All callers changed.
49626         (calc_eclosure_iter): Likewise, for ROOT arg.
49627         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49628         (build_charclass_op): Likewise, for NON_MATCH arg.
49629         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49630         (re_string_construct_common): Likewise, for ICASE arg.
49631         * lib/regexec.c (re_search_2_stub, re_search_stub):
49632         Likewise, for RET_LEN arg.
49633         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49634         (set_regs): Likewise, for FL_BACKTRACK arg.
49635         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49636         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49637         (calc_eclosure_iter, parse_bracket_exp):
49638         Use bool for internal variables that are booleans.
49639         * lib/regexec.c (re_search_internal, check_matching,
49640         proceed_next_node):
49641         (set_regs, build_sifted_states, sift_states_bkref):
49642         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
49643         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49644         (find_collation_sequence_value):
49645         Likewise.
49646         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
49647         (re_node_set_compare):
49648         Return bool, not int. All callers changed.
49649         * lib/regexec.c (check_halt_node_context, check_dst_limits):
49650         (build_trtable, check_node_accept): Likewise.
49651         * lib/regex_internal.h: Include stdbool.h.
49652
49653         Fix bugs uncovered when converting to bool.
49654         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
49655         failure instead of charging ahead blindly.
49656         * lib/regex_internal.c (register_state): Likewise.
49657         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49658         for freeing internal storage.
49659         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49660         bitset pieces used as boolean, to avoid undefined behavior
49661         on hosts that do int overflow checking.
49662
49663 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         * config/srclist.txt: Add glibc bugs 1285-1287.
49666
49667 2005-09-01  Jim Meyering  <jim@meyering.net>
49668
49669         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49670         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49671         Require gl_STAT_MACROS, too.
49672
49673 2005-09-01  Bruno Haible  <bruno@clisp.org>
49674
49675         * gnulib-tool (import): In the first-use case, provide defaults.
49676
49677 2005-09-01  Bruno Haible  <bruno@clisp.org>
49678
49679         * gnulib-tool (func_import): Remove the .tmp files.
49680
49681 2005-09-01  Bruno Haible  <bruno@clisp.org>
49682
49683         * gnulib-tool (func_import): Fix handling of symbolic links.
49684
49685 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49688         old glibc regex code mishandles strings longer than 2**31 bytes.
49689         This patch fixes this when the regex code is used in gnulib
49690         (i.e., outside glibc).
49691
49692         This patch should not affect the use of the regex code inside
49693         glibc.  No doubt this problem also needs to be handled for glibc
49694         as well, but the result will be an incompatible change to the
49695         glibc ABI, and the old ABI will have to be supported too.  That
49696         can be the the subject for another patch.
49697
49698         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49699         governing whether the rest of this patch is active.  By default,
49700         the macro is disabled and the patch has no effect.
49701         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49702         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49703         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49704         (re_match_2, re_set_registers): Use the new types.
49705         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49706         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49707         New macros.
49708         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49709         (re_string_context_at, bin_tree_t, re_dfastate_t):
49710         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49711         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49712         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49713         (re_string_char_size_at, re_string_wchar_at):
49714         (re_string_elem_size_at):
49715         Use the new types and macros to port to 64-bit hosts.
49716         Use unsigned types for internal values, so that the code
49717         mostly works even for arrays larger than SSIZE_MAX.
49718         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49719         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49720         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49721         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49722         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49723         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49724         (calc_inveclosure, parse_dup_op, build_range_exp):
49725         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49726         (fetch_number, create_token_tree, mark_opt_subexp):
49727         Likewise.
49728         * lib/regex_internal.c (re_string_construct_common,
49729         create_ci_newstate):
49730         (create_cd_newstate, re_string_allocate, re_string_construct):
49731         (re_string_realloc_buffers, build_wcs_upper_buffer):
49732         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49733         (re_string_reconstruct, re_string_peek_byte_case):
49734         (re_string_fetch_byte_case, re_string_context_at):
49735         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49736         (re_node_set_init_copy, re_node_set_add_intersect):
49737         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49738         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49739         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49740         (re_acquire_state, re_acquire_state_context, register_state):
49741         Likewise.
49742         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49743         search_cur_bkref_entry):
49744         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49745         (re_search_internal, re_search_2_stub, re_search_stub)
49746         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49747         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49748         (update_cur_sifted_state, check_dst_limits):
49749         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49750         (check_subexp_limits, sift_states_bkref, merge_state_array):
49751         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49752         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49753         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49754         (expand_bkref_cache, check_node_accept_bytes):
49755         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49756         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49757         (acquire_init_state_context, check_halt_node_context):
49758         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49759         (sift_states_backward, clean_state_log_if_needed):
49760         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49761         (find_recover_state, transit_state_sb, transit_state_mb):
49762         (transit_state_bkref, build_trtable, match_ctx_clean):
49763         Likewise.
49764         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49765         to work around an assumption that REG_MISSING is negative.
49766
49767         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49768         (seek_collating_symbol_entry) [defined _LIBC]:
49769         (lookup_collation_sequence_value) [defined _LIBC]:
49770         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49771         Use prototypes rather than old-style function definitions.
49772         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49773         (transit_state_sb) [0]:
49774         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49775
49776         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49777         rm_eo.
49778
49779         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49780         (optimize_subexps, lower_subexp):
49781         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49782         since the signed shift might overflow.  Use 1u<<31 instead.
49783         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49784         Likewise.
49785         * lib/regexec.c (check_dst_limits_calc_pos_1,
49786         check_subexp_matching_top): Likewise.
49787
49788         * lib/regcomp.c (optimize_subexps, lower_subexp):
49789         Use CHAR_BIT rather than 8, for clarity.
49790         * lib/regexec.c (check_dst_limits_calc_pos_1):
49791         (check_subexp_matching_top): Likewise.
49792         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49793         have to worry about portability issues when shifting it left.
49794         Remove no-longer-needed test for table_size > 0.
49795         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49796         in a word, as the resulting behavior is undefined.
49797         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49798         in one case, a <= should have been an <, and in another case the
49799         whole test was missing.
49800         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49801         the standard name CHAR_BIT.
49802         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49803         this is not true on one's complement and signed-magnitude hosts.
49804
49805         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49806         next_last_offset.
49807         (struct re_dfa_t): Remove unused member states_alloc.
49808         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49809
49810 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49811
49812         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49813         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49814         and large-file glibc and in 32-bit large-file Solaris.
49815
49816 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49819         lengths fit in regoff_t; this isn't true if regoff_t is the same
49820         width as size_t.
49821         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49822         (= START + RANGE) instead of RANGE.  This avoids overflow
49823         problems when regoff_t is the same width as size_t.
49824         All callers changed.
49825         (re_search_2_stub): Check for overflow when adding the
49826         sizes of the two strings.
49827         (re_search_stub): Check for overflow when adding START
49828         to RANGE; if it occurs, substitute the extreme value.
49829
49830 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49831
49832         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49833
49834 2005-08-31  Jim Meyering  <jim@meyering.net>
49835
49836         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49837         a pointer-to-const.
49838         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49839         (register_state): Likewise.
49840         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49841         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49842         (group_nodes_into_DFAstates): Likewise.
49843
49844 2005-08-31  Jim Meyering  <jim@meyering.net>
49845
49846         * check-module: Add a FIXME comment.
49847
49848 2005-08-31  Eric Blake  <ebb9@byu.net>
49849
49850         * modules/unistd-safer (Files): Add unistd--.h.
49851         * modules/stdio-safer (Files): Add stdio--.h.
49852
49853 2005-08-31  Derek Price  <derek@ximbiot.com>
49854
49855         * lib/getdelim.c (getdelim): Return EOF on EOF.
49856         Reported by Larry Jones <lawrence.jones@ugs.com>.
49857
49858 2005-08-31  Bruno Haible  <bruno@clisp.org>
49859
49860         Avoid unnecessary diffs in the generated lib/Makefile.am.
49861         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49862         the generated files.
49863         (func_import): Don't set cmd.
49864
49865 2005-08-31  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/strstr.c: Include <stddef.h>, for NULL.
49868         * lib/strcasestr.c: Likewise.
49869         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49870
49871 2005-08-31  Bruno Haible  <bruno@clisp.org>
49872
49873         * gnulib-tool: New option --macro-prefix.
49874         (func_import): Use macro_prefix.
49875         (import): Handle option --macro-prefix.
49876
49877 2005-08-31  Bruno Haible  <bruno@clisp.org>
49878
49879         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49880         Also use new variables cached_lgpl, cached_libtool.
49881
49882 2005-08-31  Bruno Haible  <bruno@clisp.org>
49883
49884         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49885         always instantiating them.
49886
49887 2005-08-31  Bruno Haible  <bruno@clisp.org>
49888
49889         * gnulib-tool (func_import): Read the previous cached settings
49890         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49891         earlier added by gnulib but are now dropped. Warn when a gnulib file
49892         overwrites a non-gnulib file.
49893
49894 2005-08-31  Bruno Haible  <bruno@clisp.org>
49895
49896         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49897         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49898         projects that don't keep autogenerated files in CVS. Put into
49899         actioncmd only the specified modules, not the transitive closure.
49900
49901 2005-08-31  Bruno Haible  <bruno@clisp.org>
49902
49903         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49904         Create directories that shall be filled.
49905         (import): Don't look for gl_* macros in configure.ac. Recurse across
49906         all directories containing a gnulib-cache.m4 files, if meaningful.
49907
49908 2005-08-31  Bruno Haible  <bruno@clisp.org>
49909
49910         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49911         (import): Set seen_libtool when we see gl_LIBTOOL.
49912
49913 2005-08-31  Bruno Haible  <bruno@clisp.org>
49914
49915         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49916         declaration macro definitions from generated gnulib.m4.
49917
49918 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49919
49920         * lib/iconvme.h: Add prototype for iconv_alloc.
49921
49922 2005-08-29  Simon Josefsson  <jas@extundo.com>
49923
49924         * lib/iconvme.c: Fix errno.
49925
49926 2005-08-29  Bruno Haible  <bruno@clisp.org>
49927
49928         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49929         that it works when the directory contains spaces.
49930
49931 2005-08-29  Bruno Haible  <bruno@clisp.org>
49932
49933         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49934
49935 2005-08-29  Bruno Haible  <bruno@clisp.org>
49936
49937         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49938         Emit more advice.
49939
49940 2005-08-29  Bruno Haible  <bruno@clisp.org>
49941         and Stepan Kasal  <kasal@ucw.cz>
49942
49943         * check-module: If more parameters are given, check each of them
49944         separately; add more exceptions, as noted by Jim Meyering.
49945         (check_module): New procedure.
49946         (%exempt_header): Now contains all exceptions.
49947
49948 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49949
49950         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49951
49952 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49953
49954         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49955
49956 2005-08-28  Bruno Haible  <bruno@clisp.org>
49957
49958         * m4/gnulib-tool.m4: New file.
49959
49960 2005-08-27  Jim Meyering  <jim@meyering.net>
49961
49962         * modules/unistd-safer (Files): Add pipe-safer.c.
49963         * modules/fcntl-safer (Files): Add creat-safer.c.
49964
49965 2005-08-27  Jim Meyering  <jim@meyering.net>
49966
49967         * m4/stdlib-safer.m4: New file.  From coreutils.
49968         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49969         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49970         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49971         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49972         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49973
49974 2005-08-27  Jim Meyering  <jim@meyering.net>
49975
49976         * lib/fopen-safer.c: Merge minor changes from coreutils.
49977         * lib/dup-safer.c: Likewise.
49978         * lib/fd-safer.c: Likewise.
49979
49980         Merge from coreutils.
49981         * lib/stdio--.h: New file.
49982         * lib/stdlib--.h: New file.
49983         * lib/mkstemp-safer.c: New file.
49984
49985         GNU tar needs these.
49986         * lib/pipe-safer.c: New file.
49987         * lib/creat-safer.c: New file.
49988         * lib/fcntl--.h (creat): Define to creat_safer.
49989         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49990         * lib/unistd--.h (pipe): Define to pipe_safer.
49991         * lib/unistd-safer.h: Declare pipe_safer.
49992
49993 2005-08-26  Simon Josefsson  <jas@extundo.com>
49994
49995         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49996         Haible <bruno@clisp.org>.
49997
49998 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49999
50000         * lib/regex_internal.h: Remove all references to
50001         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50002         or better.
50003         (bitset_not, bitset_merge, bitset_not_merge):
50004         (bitset_mask, re_string_allocate, re_string_construct):
50005         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50006         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50007         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50008         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50009         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50010         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50011         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50012         (re_acquire_state_context):
50013         Remove unnecessary forward decls.
50014         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50015         Put __attribute at function definition,
50016         now that the function decl has been removed.
50017         * lib/regex_internal.c (re_string_peek_byte_case):
50018         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50019         Likewise.
50020
50021 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50022
50023         * m4/regex.m4: Add AC_PREREQ(2.50).
50024         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50025
50026 2005-08-25  Simon Josefsson  <jas@extundo.com>
50027
50028         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50029         __fsetlocking.
50030
50031 2005-08-25  Simon Josefsson  <jas@extundo.com>
50032
50033         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50034         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50035         GLIBC specific code.
50036
50037 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50038
50039         Make regex safe for g++.  This fixes one real bug (an "err"
50040         that should have been "*err").  g++ problem reported by
50041         Sam Steingold.
50042         * lib/regex_internal.h (re_calloc): New macro, consistent with
50043         re_malloc etc.  All callers of calloc changed to use re_calloc.
50044         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50045         not int.  All callers changed.
50046         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50047         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50048         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50049         (find_recover_state): Change "err" to "*err"; this fixes what
50050         appears to be a real bug.
50051         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50052         versus int.
50053
50054 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50055
50056         * modules/regex (Depends-on): Add malloc, since the code
50057         assumes that !malloc(0) means failure.
50058
50059 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50060
50061         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50062
50063         alloca modernization/simplification for regex.
50064         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50065         needs to be at the start of the file, and can be moved into
50066         regex_internal.h and simplified.
50067         * lib/regex_internal.h: Include <alloca.h>.
50068         (__libc_use_alloca) [!defined _LIBC]: New macro.
50069         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50070         now works outside glibc.
50071
50072 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50073
50074         * config/srclist.txt: Add glibc bugs 1241, 1245.
50075
50076 2005-08-25  Jim Meyering  <jim@meyering.net>
50077
50078         * lib/open-safer.c: Include <config.h>.
50079         Otherwise, we'd lose LARGEFILE support in any file using
50080         e.g. "fcntl--.h"
50081
50082 2005-08-25  Bruno Haible  <bruno@clisp.org>
50083
50084         * m4/minmax.m4: Require autoconf 2.52.
50085         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50086         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50087         alternatives of translit over the alphabet.
50088         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50089
50090 2005-08-24  Simon Josefsson  <jas@extundo.com>
50091
50092         * tests/test-getpass.c: New file.
50093
50094 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50095
50096         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50097         for GNU regex features.
50098
50099 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50102         * lib/regex.h (regerror): Likewise.
50103
50104         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50105         requires this.  (The code never needed it.)
50106
50107         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50108         All uses of recently-renamed identifiers changed to use the new,
50109         POSIX-compliant names.  The code will build and run just fine
50110         without these changes, but it's better to eat our own dog food
50111         and use the standard-conforming names.
50112
50113         * lib/regex.h: Fix a multitude of POSIX name space violations.
50114         These changes have an effect only for programs that define
50115         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50116         do not change anything for programs compiled in the normal way.
50117         Also, there is no effect on the ABI.
50118
50119         (_REGEX_SOURCE): New macro.
50120         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50121         defined and _GNU_SOURCE is not; this fixes a name space violation.
50122
50123         Rename the following macros to obey POSIX requirements.
50124         The old names are still visible as macros if _REGEX_SOURCE is defined.
50125         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50126         RE_BACKSLASH_ESCAPE_IN_LISTS.
50127         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50128         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50129         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50130         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50131         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50132         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50133         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50134         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50135         (REG_INTERVALS): renamed from RE_INTERVALS.
50136         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50137         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50138         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50139         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50140         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50141         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50142         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50143         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50144         RE_UNMATCHED_RIGHT_PAREN_ORD.
50145         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50146         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50147         (REG_DEBUG): renamed from RE_DEBUG.
50148         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50149         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50150         unusual, since we can't clash with the POSIX REG_ICASE.
50151         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50152         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50153         (REG_NO_SUB): renamed from RE_NO_SUB.
50154         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50155         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50156         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50157         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50158         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50159         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50160         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50161         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50162         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50163         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50164         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50165         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50166         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50167         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50168         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50169         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50170         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50171         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50172         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50173         (REG_FIXED): Renamed from REGS_FIXED.
50174         (REG_NREGS): Renamed from RE_NREGS.
50175
50176         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50177         of other REG_* macros, since POSIX says the user is allowed to
50178         #undef these macros selectively.
50179
50180         (reg_errcode_t): Update comment stating what other tables need
50181         to be consistent.
50182
50183         Rename the following enum values to obey POSIX requirements.
50184         The old names are still visible as macros.
50185         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50186         is not defined, since GNU is supposed to be a superset of POSIX as
50187         much as possible, and since we want reg_errcode_t to be a signed
50188         type for implementation consistency.
50189         (_REG_NOERROR): Renamed from REG_NOERROR.
50190         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50191         (_REG_BADPAT): Renamed from REG_BADPAT.
50192         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50193         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50194         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50195         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50196         (_REG_EBRACK): Renamed from REG_EBRACK.
50197         (_REG_EPAREN): Renamed from REG_EPAREN.
50198         (_REG_EBRACE): Renamed from REG_EBRACE.
50199         (_REG_BADBR): Renamed from REG_BADBR.
50200         (_REG_ERANGE): Renamed from REG_ERANGE.
50201         (_REG_ESPACE): Renamed from REG_ESPACE.
50202         (_REG_BADRPT): Renamed from REG_BADRPT.
50203         (_REG_EEND): Renamed from REG_EEND.
50204         (_REG_ESIZE): Renamed from REG_ESIZE.
50205         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50206         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50207         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50208         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50209         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50210
50211         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50212         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50213         changed.  But support the old name if the new one is not defined
50214         and if _REGEX_SOURCE.
50215
50216         Change the following member names in struct re_pattern_buffer.
50217         The old names are still supported if !_REGEX_SOURCE.
50218         The new names are always supported, regardless of _REGEX_SOURCE.
50219         (re_buffer): Renamed from buffer.
50220         (re_allocated): Renamed from allocated.
50221         (re_used): Renamed from used.
50222         (re_syntax): Renamed from syntax.
50223         (re_fastmap): Renamed from fastmap.
50224         (re_translate): Renamed from translate.
50225         (re_can_be_null): Renamed from can_be_null.
50226         (re_regs_allocated): Renamed from regs_allocated.
50227         (re_fastmap_accurate): Renamed from fastmap_accurate.
50228         (re_no_sub): Renamed from no_sub.
50229         (re_not_bol): Renamed from not_bol.
50230         (re_not_eol): Renamed from not_eol.
50231         (re_newline_anchor): Renamed from newline_anchor.
50232
50233         Change the following member names in struct re_registers.
50234         The old names are still supported if !_REGEX_SOURCE.
50235         The new names are always supported, regardless of _REGEX_SOURCE.
50236         (rm_num_regs): Renamed from num_regs.
50237         (rm_start): Renamed from start.
50238         (rm_end): Renamed from end.
50239
50240         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50241         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50242         Prepend __ to parameter names.
50243
50244         Undo yesterday's changes.
50245
50246 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50247
50248         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50249         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50250         lib/regex.c.
50251
50252 2005-08-24  Jim Meyering  <jim@meyering.net>
50253
50254         Sync from coreutils.
50255         * m4/fcntl-safer.m4: New file.
50256
50257         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50258         and object files for this module.
50259
50260 2005-08-24  Jim Meyering  <jim@meyering.net>
50261
50262         Sync from coreutils.
50263         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50264
50265 2005-08-24  Jim Meyering  <jim@meyering.net>
50266
50267         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50268         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50269
50270 2005-08-24  Jim Meyering  <jim@meyering.net>
50271
50272         * modules/fcntl-safer: New module.
50273         * modules/fts (Depends-on): Add fcntl-safer.
50274         * MODULES.html.sh (File descriptor based Input/Output):
50275         Add fcntl-safer.
50276
50277 2005-08-24  Bruno Haible  <bruno@clisp.org>
50278
50279         Support for unit test modules.
50280         * modules/README: Mention tests modules.
50281         * modules/TEMPLATE-TESTS: New file.
50282         * gnulib-tool: New options --extract-tests-module, --with-tests and
50283         --tests-base (unused for the moment).
50284         (testsbase, inctests): New variables.
50285         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50286         (func_verify_module): Exclude TEMPLATE-TESTS.
50287         (func_verify_nontests_module, func_verify_tests_module): New functions.
50288         (func_get_dependencies): Add implicit dependency for tests modules.
50289         (func_get_tests_module): New function.
50290         (func_modules_transitive_closure): When --with-tests was specified,
50291         include the unit tests as well, unless explicitly avoided.
50292         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50293         (func_emit_tests_Makefile_am): New function.
50294         (func_create_testdir): When --with-tests was specified, emit a
50295         tests/ directory.
50296         * MODULES.html.sh (Future developments): Update.
50297
50298 2005-08-24  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/tls-tests: New file.
50301         * tests/test-tls.c: New file, from GNU gettext.
50302
50303 2005-08-24  Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/lock-tests: New file.
50306         * tests/test-lock.c: New file, from GNU gettext.
50307
50308 2005-08-24  Bruno Haible  <bruno@clisp.org>
50309
50310         * lib/lock.h: Add multiple inclusion guard.
50311         * lib/tls.h: Add multiple inclusion guard.
50312
50313 2005-08-24  Bruno Haible  <bruno@clisp.org>
50314
50315         * gnulib-tool: Add support for the --aux-dir option to
50316         --create-testdir, --create-megatestdir, --test, --megatest.
50317         (func_create_testdir, func_create_megatestdir): Optionally emit a
50318         AC_CONFIG_AUX_DIR directive.
50319         (create-testdir, create-megatestdir, test, megatest): Provide a
50320         default value for $auxdir.
50321
50322 2005-08-24  Bruno Haible  <bruno@clisp.org>
50323
50324         * gnulib-tool (import): Use compound statement instead of subshell
50325         where possible.
50326
50327 2005-08-24  Bruno Haible  <bruno@clisp.org>
50328
50329         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50330
50331 2005-08-24  Bruno Haible  <bruno@clisp.org>
50332
50333         * gnulib-tool (func_version): Update.
50334
50335 2005-08-24  Bruno Haible  <bruno@clisp.org>
50336
50337         * gnulib-tool (func_import, func_create_testdir,
50338         func_create_megatestdir): Quote all autoconf macro arguments.
50339
50340 2005-08-24  Bruno Haible  <bruno@clisp.org>
50341
50342         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50343         option --force, because --force causes the aclocal.m4 of each
50344         subdirectory to be newer than the corresponding config.h.in.
50345
50346 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50349         All contents moved to gl_REGEX.
50350         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50351         assume that it does.
50352
50353 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50354
50355         * lib/regex.h (REG_NOSYS)
50356         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50357         Define, since POSIX requires it as of 2001.
50358         (_REG_ENOSYS)
50359         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50360         New private symbol, used to keep the enum signed in all cases.
50361         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50362         Youngman in
50363         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50364
50365         * lib/regex_internal.c (re_string_skip_chars, register_state):
50366         (calc_state_hash):
50367         Remove forward decls; no longer needed now that we use prototypes.
50368         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50369         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50370         (clean_state_log_if_needed): Likewise.
50371
50372 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * config/srclist.txt: Add glibc bugs 1231-1233.
50375
50376 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50377
50378         Fix problems reported by Sam Steingold in
50379         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50380         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50381         assumed that reg_errcode_t is a signed type, which is not
50382         necessarily true if _XOPEN_SOURCE is not defined.
50383         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50384         since some compilers warn about it otherwise.
50385
50386 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50387
50388         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50389         (init_word_char, create_initial_state, duplicate_node_closure):
50390         (fetch_token, peek_token_bracket, build_range_exp):
50391         (build_collating_symbol): Remove forward decls; no longer needed
50392         now that we use prototypes.
50393
50394         * lib/regcomp.c:
50395         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50396         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50397         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50398         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50399         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50400         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50401         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50402         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50403         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50404         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50405         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50406         (build_charclass, build_charclass_op, fetch_number, create_tree):
50407         (create_token_tree, mark_opt_subexp, duplicate_tree):
50408         Use prototypes rather than old-style definitions.
50409
50410         * lib/regex_internal.c:
50411         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50412         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50413         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50414         (re_string_reconstruct, re_string_peek_byte_case):
50415         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50416         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50417         (re_node_set_init_copy, re_node_set_add_intersect):
50418         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50419         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50420         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50421         (re_acquire_state, re_acquire_state_context, register_state):
50422         (create_ci_newstate, create_cd_newstate, free_state):
50423         Likewise.
50424         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50425         re_search_2):
50426         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50427         (re_search_internal, prune_impossible_nodes):
50428         (acquire_init_state_context, check_matching, static):
50429         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50430         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50431         (update_regs, sift_states_backward, build_sifted_states):
50432         (clean_state_log_if_needed, merge_state_array):
50433         (update_cur_sifted_state, add_epsilon_src_nodes):
50434         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50435         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50436         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50437         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50438         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50439         (check_arrival, check_arrival_add_next_nodes):
50440         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50441         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50442         (check_node_accept_bytes, check_node_accept, extend_buffers):
50443         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50444         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50445         (sift_ctx_init):
50446         Likewise.
50447
50448         * lib/regex_internal.h:
50449         (re_string_allocate, re_string_construct, re_string_reconstruct):
50450         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50451         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50452         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50453         (re_string_context_at, re_string_peek_byte_case):
50454         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50455         is defined, since we now use prototypes always.
50456
50457         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50458         C89 or better.  All uses removed.
50459
50460 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50461
50462         * config/srclist.txt: Add glibc bugs 1220-1227.
50463
50464 2005-08-20  Jim Meyering  <jim@meyering.net>
50465
50466         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50467         of unused local, dfa.
50468
50469 2005-08-20  Bruno Haible  <bruno@clisp.org>
50470
50471         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50472
50473 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50476         (re_node_set_insert_last, re_dfa_add_node):
50477         Rename local variables to avoid GCC shadowing warnings.
50478
50479 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50482         [defined lint]: Suppress bogus uninitialized-variable warnings.
50483
50484         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50485         and let the caller return REG_ESPACE if out of space.  This
50486         removes an uninitialied-variable warning with GCC 4.0.1, and also
50487         avoids taking the address of a local variable.  All callers
50488         changed.
50489
50490 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50491
50492         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50493         $LIBCSRC/posix/regexec.c.
50494         Add glibc bug 1217 for regcomp.c.
50495
50496 2005-08-19  Jim Meyering  <jim@meyering.net>
50497
50498         * lib/regexec.c (proceed_next_node): Redo local variables to
50499         avoid GCC shadowing warnings.
50500
50501 2005-08-18  Bruno Haible  <bruno@clisp.org>
50502
50503         * lib/strstr.c (strstr): Fix return value in multibyte case.
50504         * lib/strcasestr.c (strcasestr): Likewise.
50505
50506 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50507
50508         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50509
50510 2005-08-17  Jim Meyering  <jim@meyering.net>
50511
50512         Make the %s format (seconds since the epoch) work for a negative
50513         number and when used with a zero-padded field width, e.g. %015s.
50514
50515         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50516         label so that it precedes the code to set `digits'.  Otherwise,
50517         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50518         print `00-22'.  Now, it prints `-0022', as it should.
50519
50520 2005-08-17  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/strstr (Files): Add m4/mbrtowc.m4.
50523         (Depends-on): Add mbuiter.
50524
50525 2005-08-17  Bruno Haible  <bruno@clisp.org>
50526
50527         * modules/strcasestr: New file.
50528         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50529         strcasestr.
50530
50531 2005-08-17  Bruno Haible  <bruno@clisp.org>
50532
50533         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50534
50535 2005-08-17  Bruno Haible  <bruno@clisp.org>
50536
50537         * modules/mbuiter: New file.
50538         * MODULES.html.sh (Extended multibyte and wide character utilities):
50539         Add mbuiter.
50540
50541 2005-08-17  Bruno Haible  <bruno@clisp.org>
50542
50543         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50544         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50545
50546 2005-08-17  Bruno Haible  <bruno@clisp.org>
50547
50548         * m4/strcasestr.m4: New file.
50549
50550 2005-08-17  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50553         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50554
50555 2005-08-17  Bruno Haible  <bruno@clisp.org>
50556
50557         * lib/strcasestr.h: New file.
50558         * lib/strcasestr.c: New file.
50559
50560 2005-08-17  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/strcasecmp.c: Use mbuiter.h.
50563
50564 2005-08-17  Bruno Haible  <bruno@clisp.org>
50565
50566         * lib/mbuiter.h: New file.
50567
50568 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50569
50570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50571         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50572         and gl_GETOPT are both invoked via different paths (as happens
50573         with GNU tar CVS because it uses both argp and getopt), the former
50574         wins.
50575
50576 2005-08-16  Bruno Haible  <bruno@clisp.org>
50577
50578         * modules/tls: New file.
50579         * MODULES.html.sh (Multithreading): Add tls.
50580
50581 2005-08-16  Bruno Haible  <bruno@clisp.org>
50582
50583         * modules/strnlen1: New file.
50584         * MODULES.html.sh (String handling): Add strnlen1.
50585
50586 2005-08-16  Bruno Haible  <bruno@clisp.org>
50587
50588         * modules/strcase (Files): Add m4/mbrtowc.m4.
50589         (Depends-on): Add strnlen1, mbchar.
50590
50591 2005-08-16  Bruno Haible  <bruno@clisp.org>
50592
50593         * modules/mbiter: New file.
50594         * MODULES.html.sh (Extended multibyte and wide character utilities):
50595         Add mbiter.
50596
50597 2005-08-16  Bruno Haible  <bruno@clisp.org>
50598
50599         * modules/mbfile: New file.
50600         * MODULES.html.sh (Extended multibyte and wide character utilities):
50601         Add mbfile.
50602
50603 2005-08-16  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/mbchar: New file.
50606         * MODULES.html.sh (Extended multibyte and wide character utilities):
50607         New section.
50608
50609 2005-08-16  Bruno Haible  <bruno@clisp.org>
50610
50611         * m4/tls.m4: New file, from GNU gettext.
50612
50613 2005-08-16  Bruno Haible  <bruno@clisp.org>
50614
50615         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50616         always.
50617         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50618
50619 2005-08-16  Bruno Haible  <bruno@clisp.org>
50620
50621         * m4/mbiter.m4: New file.
50622
50623 2005-08-16  Bruno Haible  <bruno@clisp.org>
50624
50625         * m4/mbfile.m4: New file.
50626
50627 2005-08-16  Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/mbchar.m4: New file.
50630
50631 2005-08-16  Bruno Haible  <bruno@clisp.org>
50632
50633         * lib/tls.h: New file, from GNU gettext.
50634         * lib/tls.c: New file, from GNU gettext.
50635
50636 2005-08-16  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/strnlen1.h: New file.
50639         * lib/strnlen1.c: New file.
50640
50641 2005-08-16  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
50644         (mbi_init): Update.
50645         (mbi_avail, mbi_advance): Let the iteration end before the terminating
50646         NUL byte, not after it.
50647
50648 2005-08-16  Bruno Haible  <bruno@clisp.org>
50649
50650         * lib/strcase.h (strcasecmp): Add note in comments.
50651         * lib/strncasecmp.c: Use code from strcasecmp.c.
50652         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
50653         (strcasecmp): Work correctly in multibyte locales.
50654
50655 2005-08-16  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/mbiter.h: New file.
50658
50659 2005-08-16  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/mbfile.h: New file.
50662
50663 2005-08-16  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/mbchar.h: New file.
50666         * lib/mbchar.c: New file.
50667
50668 2005-08-16  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50671         the valid ones. Makes the comparison operations transitive:
50672         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50673         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50674
50675 2005-08-15  Simon Josefsson  <jas@extundo.com>
50676
50677         * modules/ssize_t (License): Change to 'unlimited'.
50678
50679         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50680
50681 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50684         Add comments for each pending glibc patch.
50685
50686 2005-08-15  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50689         __cplusplus is defined.
50690
50691 2005-08-14  Jim Meyering  <jim@meyering.net>
50692
50693         Sync from coreutils.
50694
50695         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50696         Use the hash-table-based cycle-detection code not just when
50697         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50698         Reported by James Youngman in
50699         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50700         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50701         FTS_TIGHT_CYCLE_CHECK.
50702         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50703         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50704         once again.
50705         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50706         * lib/fts.c (fd_safer): Remove decl.
50707         Include fcntl--.h rather than unistd-safer.h
50708         (fts_safe_changedir): Don't call fd_safer; no longer needed
50709         now that we include fcntl--.h.
50710
50711 2005-08-12  Simon Josefsson  <jas@extundo.com>
50712
50713         * modules/getndelim2: Use ssize_t module.
50714         * modules/getnline: Likewise.
50715         * modules/safe-read: Likewise.
50716         * modules/xreadlink: Likewise.
50717
50718         * modules/ssize_t: New file.
50719
50720 2005-08-12  Simon Josefsson  <jas@extundo.com>
50721
50722         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50723
50724 2005-08-12  Simon Josefsson  <jas@extundo.com>
50725
50726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50727         ssize_t.
50728
50729 2005-08-12  Simon Josefsson  <jas@extundo.com>
50730
50731         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50732         readline, getdelim and check_version.
50733         (Support for systems lacking ISO C 99: Sizes of integer types):
50734         Add size_max.
50735
50736 2005-08-12  Bruno Haible  <bruno@clisp.org>
50737
50738         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50739
50740 2005-08-11  Simon Josefsson  <jas@extundo.com>
50741
50742         * modules/readline: New file.
50743
50744         * modules/strnlen (Files): Add strnlen.h.
50745
50746 2005-08-11  Simon Josefsson  <jas@extundo.com>
50747
50748         * m4/readline.m4: New file.
50749
50750 2005-08-11  Simon Josefsson  <jas@extundo.com>
50751
50752         * lib/readline.h, readline.c: New file.
50753
50754 2005-08-11  Simon Josefsson  <jas@extundo.com>
50755
50756         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50757         gl_AVOID.
50758
50759 2005-08-11  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50762
50763 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50764
50765         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50766
50767 2005-08-10  Simon Josefsson  <jas@extundo.com>
50768
50769         * tests/test-iconvme.c: New file.
50770
50771 2005-08-10  Simon Josefsson  <jas@extundo.com>
50772
50773         * m4/strnlen.m4: New file.
50774
50775         * m4/strndup.m4: Don't check for strnlen declaration, done in
50776         strnlen.m4.
50777
50778 2005-08-10  Simon Josefsson  <jas@extundo.com>
50779
50780         * lib/strndup.c: Use strnlen.h.
50781
50782         * lib/strnlen.h: New file.
50783
50784 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50785
50786         * README: Typos.
50787
50788 2005-08-02  Simon Josefsson  <jas@extundo.com>
50789
50790         * modules/readline: New file.
50791
50792 2005-08-02  Simon Josefsson  <jas@extundo.com>
50793
50794         * modules/getdelim: New file.
50795
50796         * modules/getline: Rewrite, don't use getndelim2.
50797
50798 2005-08-02  Simon Josefsson  <jas@extundo.com>
50799
50800         * m4/getline.m4: Separate out getdelim stuff into separate module.
50801
50802         * m4/getdelim.m4: New file.
50803
50804 2005-08-02  Simon Josefsson  <jas@extundo.com>
50805
50806         * lib/getline.h, getline.c: Rewrite.
50807
50808         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50809
50810 2005-07-31  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/lock.h (gl_lock_initializer): New macro.
50813         (gl_lock_define_initialized): Use it.
50814         (gl_rwlock_initializer): New macro.
50815         (gl_rwlock_define_initialized): Use it.
50816         (gl_recursive_lock_initializer): New macro.
50817         (gl_recursive_lock_define_initialized): Use it.
50818
50819 2005-07-30  Karl Berry  <karl@gnu.org>
50820
50821         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50822         Report from Ben Pfaff, regarding getopt.
50823
50824 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50825
50826         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50827         normal way.
50828         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50829         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50830         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50831         (gl_GETOPT): Use the new macros.  Most of the implementation
50832         is moved to the new macros.  This is for programs like Emacs
50833         that don't want all the functionality of gl_GETOPT.
50834
50835 2005-07-26  Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/lock.m4: Update from GNU gettext.
50838
50839 2005-07-26  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/lock.h: Update from GNU gettext.
50842         * lib/lock.c: Update from GNU gettext.
50843
50844 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50847         obsolescent AC_TRY_RUN.  Include the default includes files, for
50848         'exit'.
50849
50850 2005-07-24  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/visibility: New file.
50853         * MODULES.html.sh (Misc): Add visibility.
50854
50855 2005-07-24  Bruno Haible  <bruno@clisp.org>
50856
50857         * m4/visibility.m4: New file.
50858
50859 2005-07-24  Bruno Haible  <bruno@clisp.org>
50860
50861         * doc/visibility.texi: New file.
50862
50863 2005-07-22  Bruno Haible  <bruno@clisp.org>
50864
50865         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50866         $(ALLOCA_H), redundant through BUILT_SOURCES.
50867         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50868         redundant through BUILT_SOURCES.
50869         * modules/byteswap (Makefile.am): Remove explicit dependency on
50870         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50871         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50872         $(FNMATCH_H), redundant through BUILT_SOURCES.
50873         * modules/getopt (Makefile.am): Remove explicit dependency on
50874         $(GETOPT_H), redundant through BUILT_SOURCES.
50875         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50876         redundant through BUILT_SOURCES.
50877         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50878         redundant through BUILT_SOURCES.
50879         * modules/stdbool (Makefile.am): Remove explicit dependency on
50880         $(STDBOOL_H), redundant through BUILT_SOURCES.
50881         * modules/stdint (Makefile.am): Remove explicit dependency on
50882         $(STDINT_H), redundant through BUILT_SOURCES.
50883         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50884         Remove explicit dependency on $(SYSEXITS_H).
50885         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50886
50887 2005-07-18  Simon Josefsson  <jas@extundo.com>
50888
50889         * lib/check-version.c (check_version): Accept identical versions too.
50890
50891 2005-07-18  Bruno Haible  <bruno@clisp.org>
50892
50893         * modules/lock: New file.
50894         * MODULES.html.sh (Multithreading): New section.
50895
50896 2005-07-18  Bruno Haible  <bruno@clisp.org>
50897
50898         * m4/lock.m4: New file, from GNU gettext.
50899
50900 2005-07-18  Bruno Haible  <bruno@clisp.org>
50901
50902         * lib/lock.h: New file, from GNU gettext.
50903         * lib/lock.c: New file, from GNU gettext.
50904
50905 2005-07-18  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/lock.h (gl_once_t): New type.
50908         (gl_once_define, gl_once): New macros.
50909         * lib/lock.c (fresh_once): New variable.
50910         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50911         functions.
50912
50913 2005-07-16  Simon Josefsson  <jas@extundo.com>
50914
50915         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50916         workaround, suggested by Bruno.
50917
50918 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * modules/xalloc (Depends-on): Add xalloc-die.
50921         * modules/xvasprintf (Depends-on): Add xalloc-die.
50922
50923 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50926         with a minor change.
50927
50928 2005-07-15  Bruno Haible  <bruno@clisp.org>
50929
50930         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50931         When using lib/poll.c, define poll as rpl_poll.
50932
50933 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50934
50935         * modules/argp (Depends-on): Remove unlocked-io.
50936
50937 2005-07-14  Derek Price  <derek@ximbiot.com>
50938
50939         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50940         for glob symlink bug.
50941
50942 2005-07-14  Bruno Haible  <bruno@clisp.org>
50943
50944         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50945         Instead, test for *_unlocked function declarations directly.
50946
50947 2005-07-11  Simon Josefsson  <jas@extundo.com>
50948
50949         * modules/size_max: New file.
50950
50951         * modules/xsize: Depend on size_max module for size_max.m4.
50952
50953 2005-07-11  Simon Josefsson  <jas@extundo.com>
50954
50955         * lib/size_max.h: New file.
50956
50957 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50958
50959         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50960         copyright symbol and the year.
50961         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50962         (version_etc_va): Use parameterized copyright notice.
50963         Reword to conform to the current GNU coding standards.
50964
50965 2005-07-11  Karl Berry  <karl@gnu.org>
50966
50967         * doc/gnulib.texi (Quoting): new node.
50968         (Initial import): more info, from Patrice.
50969
50970 2005-07-11  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool (func_usage): Document option --avoid.
50973         (Command line options): Handle --avoid.
50974         (func_acceptable): New function.
50975         (func_modules_transitive_closure): Use it.
50976
50977 2005-07-11  Bruno Haible  <bruno@clisp.org>
50978
50979         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50980         Reported by Jim Meyering.
50981
50982 2005-07-10  Bruno Haible  <bruno@clisp.org>
50983
50984         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50985         Needed when size_t is smaller than 'unsigned int'.
50986         Reported by Paul Eggert.
50987
50988 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50989
50990         * modules/argp (Depends-on): Add unlocked-io
50991
50992 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50993
50994         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50995         block of defines.
50996
50997 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50998
50999         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51000         fix now.
51001
51002 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51003         and Paul Eggert  <eggert@cs.ucla.edu>
51004
51005         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51006         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51007
51008 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51009
51010         * modules/regex (Files): Add lib/regex_internal.c,
51011         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51012         (Depends-on): Add extensions.
51013         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51014
51015 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51016
51017         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51018         pathconf.
51019         * m4/same.m4 (gl_SAME): Likewise.
51020         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51021
51022         * m4/regex.m4: Adjust to new libc regex implementation.
51023         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51024         all the .c and .h parts of (the new) regex.
51025         Quote the m4 stuff better.
51026         Check for RE_ICASE bug of old gnulib.
51027         Check for REG_STARTEND of recent libc.
51028         Rename local variables from jm_* to gl_*.
51029         Quote operand of "test -f".
51030         Say "recent enough" version of libc, not "version 2".
51031         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51032         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51033         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51034         Remove check for btowc, isascii.
51035         Require AM_LANGINFO_CODESET.
51036
51037 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         * lib/regex.c, regex.h: Sync from libc.
51040         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51041         * lib/regexec.c:
51042         New files, synced from libc, except that regex_internal.h
51043         currently has a small porting fix.
51044
51045 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51046
51047         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51048         regex_internal.c, regexec.c.
51049         Add regex_internal.h too, but as a comment, since the libc version
51050         is currently broken in gnulib mode.
51051
51052 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         Support programs like Emacs that use gnulib but not gettext.
51055         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51056         * modules/gettext-h: New file.
51057         * modules/gettext (Files): Remove lib/gettext.h.
51058         (Depends-on): Add gettext-h.
51059         (Makefile.am): Remove lib_SOURCES.
51060         * modules/argmatch, modules/c-stack, modules/closeout:
51061         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51062         * modules/execute, modules/file-type, modules/getaddrinfo:
51063         * modules/getopt, modules/human, modules/javacomp:
51064         * modules/javaexec, modules/mkdir-p, modules/obstack:
51065         * modules/openat, modules/pagealign_alloc, modules/pipe:
51066         * modules/quotearg, modules/regex, modules/rpmatch:
51067         * modules/unicodeio, modules/userspec, modules/version-etc:
51068         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51069         * modules/xsetenv:
51070         Depend on gettext-h, not gettext.
51071
51072 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * gnulib-tool (func_import): Add support for 'public domain' license.
51075         * modules/alloca, modules/atexit, modules/memmove:
51076         Now public domain, not GPL.
51077         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51078         * modules/realloc, modules/strerror, modules/strtod:
51079         Now LGPL, not GPL.
51080
51081 2005-07-05  Bruno Haible  <bruno@clisp.org>
51082
51083         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51084         autoconf CVS. Needed for mingw.
51085
51086 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51087
51088         Remove the dependency of the strftime module on the tzset module.
51089         * modules/strftime (Depends-on): Remove dependency on tzset.
51090
51091 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51092
51093         Remove the dependency of the strftime module on the tzset module.
51094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51095         gl_FUNC_TZSET_CLOBBER.
51096
51097 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51098
51099         Remove the dependency of the strftime module on the tzset module.
51100         * lib/strftime.c (my_strftime)
51101         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51102         Copy the input structure, to work around some of the bug with
51103         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51104         Solaris releases, you should also use the tzset module, but we won't
51105         require it as a dependency any more since we don't want LGPLed code
51106         to depend on GPLed code.
51107
51108 2005-07-02  Jim Meyering  <jim@meyering.net>
51109
51110         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51111         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51112         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51113         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51114
51115 2005-07-02  Jim Meyering  <jim@meyering.net>
51116
51117         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51118
51119 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51122         declares only 'struct timespec;' (!).
51123
51124 2005-07-01  Jim Meyering  <jim@meyering.net>
51125
51126         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51127         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51128         * lib/save-cwd.c, tempname.c:
51129         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51130         and don't include <sys/file.h>).
51131
51132 2005-06-29  Jim Meyering  <jim@meyering.net>
51133
51134         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51135         type name.  Use the variable name instead.
51136         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51137         Likewise.
51138
51139 2005-06-28  Simon Josefsson  <jas@extundo.com>
51140
51141         * modules/check-version (Files): Add check-version.m4.
51142
51143 2005-06-28  Simon Josefsson  <jas@extundo.com>
51144
51145         * m4/check-version.m4: New file, suggested by Jim Meyering
51146         <jim@meyering.net>.
51147
51148 2005-06-28  Simon Josefsson  <jas@extundo.com>
51149
51150         * lib/check-version.h, lib/check-version.c: New files.
51151
51152 2005-06-28  Simon Josefsson  <jas@extundo.com>
51153
51154         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51155         collision with global variable.  Better indentation.  Don't
51156         increment buffer pointer beyond buffer end.  Based on comments
51157         from Paul Eggert <eggert@cs.ucla.edu>.
51158
51159         * lib/base64.h: Indent.
51160
51161 2005-06-28  Simon Josefsson  <jas@extundo.com>
51162
51163         * doc/gnulib.texi (Library version handling): New section.
51164
51165 2005-06-28  Jim Meyering  <jim@meyering.net>
51166
51167         * check-module (find_included_lib_files): Hard-code another
51168         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51169         but modules/fts-lgpl (correctly) does not list those files.
51170
51171         * modules/canonicalize (Files): Add lib/pathmax.h.
51172
51173 2005-06-25  Simon Josefsson  <jas@extundo.com>
51174
51175         * modules/check-version: New file.
51176
51177 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51178
51179         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51180         initializer of struct addrinfo, as an indication that we don't
51181         care how many members the structure has.
51182
51183 2005-06-24  Derek Price  <derek@ximbiot.com>
51184         and Bruno Haible  <bruno@clisp.org>
51185
51186         Remove stat module & update lstat.
51187         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51188         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51189         * m4/stat.m4: Remove this file.
51190
51191 2005-06-24  Derek Price  <derek@ximbiot.com>
51192         and Bruno Haible  <bruno@clisp.org>
51193
51194         Remove stat module & update lstat.
51195         * lib/stat.c: Remove this file...
51196         (slash_aware_lstat): ...moving this content and its support...
51197         * lib/lstat.c (rpl_lstat): ...into here.
51198         * lib/lstat.h: New file.
51199
51200 2005-06-24  Derek Price  <derek@ximbiot.com>
51201         and Bruno Haible  <bruno@clisp.org>
51202
51203         Remove stat module & update lstat.
51204         * config/srclist.txt (libc sources): Remove stat.
51205
51206 2005-06-24  Derek Price  <derek@ximbiot.com>
51207         and Bruno Haible  <bruno@clisp.org>
51208
51209         Remove stat module & update lstat.
51210         * MODULES.html.sh (stat): Remove.
51211         * MODULES.html: Regenerated.
51212         * modules/lstat (Description): Correct function name.
51213         (Files): Add "lstat.h".
51214         (Depends-on): Remove stat, add xalloc, stat-macros.
51215         * modules/stat: Remove this file.
51216         (Include): Add "lstat.h", remove <sys/stat.h>.
51217
51218 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51221         (ranged_convert): Don't save conversion in a temporary struct.
51222         This causes a warning with GCC 4.0.0, and anyway in the typical
51223         case it's not worth the extra 100 bytes or so of code.
51224         (ranged_convert, __mktime_internal): When calling a function via a
51225         pointer P, use P () rather than (*P) (), as we now assume C89 or
51226         better.
51227
51228 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51231         "who -r" failed to give output.  Problem reported by Tim Waugh.
51232
51233         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51234         (xcalloc): Use it to avoid needless tests.
51235         Problem reported by Jim Meyering.
51236
51237 2005-06-20  Derek Price  <derek@ximbiot.com>
51238
51239         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51240         unnecessary for Autoconfs > 2.59c.
51241
51242 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51243
51244         * lib/argp.h (__option_is_short): Check upper limit of
51245         __key. Isprint() requires its argument to have the value
51246         of an unsigned char or EOF.
51247
51248 2005-06-16  Jim Meyering  <jim@meyering.net>
51249
51250         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51251         when either N or S is zero.
51252
51253 2005-06-16  Derek Price  <derek@ximbiot.com>
51254
51255         * m4/bison.m4: Declare YACC & YFLAGS precious.
51256
51257 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51260         multibyte string or pattern, fall back on unibyte matching.
51261         Problem reported by James Youngman.
51262
51263 2005-06-08  Bruno Haible  <bruno@clisp.org>
51264
51265         * modules/csharpcomp: New file.
51266         * MODULES.html.sh (C#): Add csharpcomp.
51267
51268 2005-06-08  Bruno Haible  <bruno@clisp.org>
51269
51270         * m4/csharpcomp.m4: New file, from GNU gettext.
51271
51272 2005-06-08  Bruno Haible  <bruno@clisp.org>
51273
51274         * lib/csharpcomp.h: New file, from GNU gettext.
51275         * lib/csharpcomp.c: New file, from GNU gettext.
51276         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51277
51278 2005-06-08  Bruno Haible  <bruno@clisp.org>
51279
51280         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51281         warning on mingw.
51282
51283 2005-06-07  Derek Price  <derek@ximbiot.com>
51284
51285         Sync from CVS.
51286         * lib/glob_.h: Indent nested #ifdef.
51287
51288 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         Sync from coreutils.
51291         Use "file name" when talking about file names, instead of "filename"
51292         or "path", as per the GNU coding standards.
51293         * lib/mkdir-p.c: Renamed from makepath.c.
51294         (make_dir_parents): Renamed from make_path.  All callers changed.
51295         * lib/mkdir-p.h: Likewise.  All includers changed.
51296         * lib/filenamecat.c: Renamed from path-concat.c.
51297         (file_name_concat): Renamed from path_concat.  All callers changed.
51298         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51299         * lib/filenamecat.h: Likewise.  All includers changed.
51300         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51301         in comments or local variable names.
51302         * lib/basename.c: Likewise.
51303         * lib/canonicalize.c, canonicalize.h: Likewise.
51304         * lib/dirname.c, dirname.h: Likewise.
51305         * lib/euidaccess.c: Likewise.
51306         * lib/exclude.c: Likewise
51307         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51308         * lib/fsusage.c, fsuage.h: Likewise.
51309         * lib/fts.c, fts_.h: Likewise.
51310         * lib/getcwd.c: Likewise.
51311         * lib/getloadavg.c: Likewise.
51312         * lib/mkstemp.c: Likewise.
51313         * lib/mountlist.c, mountlist.h: Likewise.
51314         * lib/openat.c, openat.h: Likewise.
51315         * lib/readlink-stub.c: Likewise.
51316         * lib/readutmp.c, readutmp.h: Likewise.
51317         * lib/rename.c: Likewise.
51318         * lib/rmdir.c: Likewise.
51319         * lib/same.c: Likewise.
51320         * lib/savedir.c: Likewise.
51321         * lib/stripslash.c: Likewise.
51322         * lib/tempname.c: Likewise.
51323         * lib/xreadlink.c: Likewise.
51324         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51325         All uses changed.
51326         * lib/exclude.h: Likewise.
51327
51328         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51329         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51330         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51331         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51332         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51333         files have been getting away with it for years (MORE/BSD 4.3
51334         is extinct now).
51335         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51336         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51337
51338         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51339         Define to 256, not 255, as per modern POSIX.
51340
51341 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51342
51343         Sync from coreutils.
51344         Use "file name" when talking about file names, instead of "filename"
51345         or "path", as per the GNU coding standards.
51346         * MODULES.html.sh: mkdir-p renamed from makepath.
51347         filenamecat renamed from path-concat.
51348         * modules/filenamecat: Renamed from modules/path-concat.
51349         (Files): filenamecat.h and filenamecat.c renamed from
51350         path-concat.h and path-concat.c.
51351         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51352         (Include): filenamecat.h, not path-concat.h.
51353         * modules/mkdir-p: Renamed from modules/makepath.
51354         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51355         makepath.c.
51356         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51357         (Include): mkdir-p.h, not makepath.h.
51358
51359 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51360
51361         Sync from coreutils.
51362         * m4/mkdir-p.m4: Renamed from makepath.m4.
51363         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51364         Rename files from makepath.c to mkdir-p.c, and from
51365         makepath.h to mkdir-p.h.
51366         * m4/filenamecat.m4: Renamed from path-concat.m4.
51367         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51368         Rename files from path-concat.c to filenamecat.c,
51369         and from path-concat.h to filenamecat.h.
51370         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51371         "file name" in local variables or comments.
51372         * m4/rename.m4: Likewise.
51373
51374 2005-06-01  Bruno Haible  <bruno@clisp.org>
51375
51376         * modules/csharpexec: New file.
51377         * MODULES.html.sh (C#): New section.
51378
51379 2005-06-01  Bruno Haible  <bruno@clisp.org>
51380
51381         * m4/csharp.m4: New file, from GNU gettext.
51382         * m4/csharpexec.m4: New file, from GNU gettext.
51383
51384 2005-06-01  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/csharpexec.h: New file, from GNU gettext.
51387         * lib/csharpexec.c: New file, from GNU gettext.
51388         * lib/csharpexec.sh.in: New file, from GNU gettext.
51389
51390 2005-05-31  Derek Price  <derek@ximbiot.com>
51391             Paul Eggert  <eggert@cs.ucla.edu>
51392
51393         Sync from cvs.
51394         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51395
51396 2005-05-31  Derek Price  <derek@ximbiot.com>
51397             Paul Eggert  <eggert@cs.ucla.edu>
51398
51399         Sync from cvs.
51400         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51401
51402 2005-05-29  Derek Price  <derek@ximbiot.com>
51403
51404         * config/srclist.txt (glob_.h, glob.c): Add these files.
51405
51406 2005-05-29  Derek Price  <derek@ximbiot.com>
51407
51408         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51409         * modules/glob: New file.
51410         * modules/getlogin_r: Add link to POSIX spec in description.
51411
51412 2005-05-29  Derek Price  <derek@ximbiot.com>
51413             Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         * m4/glob.m4: New file.
51416
51417 2005-05-29  Derek Price  <derek@ximbiot.com>
51418             Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         * lib/glob_.h, lib/glob.c: New files.
51421
51422 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51423
51424         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51425         * modules/fts-lgpl (Depends-on): Remove gettext.
51426
51427 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51428
51429         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51430         and don't require gt_INTTYPES_PRI.
51431
51432 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51433
51434         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51435
51436         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51437         the configuration hassle isn't worth it.
51438         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51439         (LONGEST_MODIFIER, PRIuMAX): Remove.
51440
51441 2005-05-27  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51444
51445 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51446
51447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51448         _POSIX_PTHREAD_SEMANTICS for Solaris.
51449
51450 2005-05-25  Derek Price  <derek@ximbiot.com>
51451
51452         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51453
51454 2005-05-25  Derek Price  <derek@ximbiot.com>
51455             Paul Eggert  <eggert@cs.ucla.edu>
51456
51457         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51458         * lib/getlogin_r.c, getlogin_r.h: New files.
51459
51460 2005-05-25  Bruno Haible  <bruno@clisp.org>
51461             Derek Price  <derek@ximbiot.com>
51462
51463         * lib/getlogin_r.h: Simplify API documentation.
51464
51465 2005-05-23  Derek Price  <derek@ximbiot.com>
51466
51467         * modules/minmax (Files): Add m4/minmax.m4.
51468         (configure.ac): Add gl_MINMAX.
51469
51470 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51473         so that unistd-safer.h (GPL'ed code) need not be included.
51474
51475 2005-05-22  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/minmax.m4: New file.
51478         Based on a patch by Derek Price <derek@ximbiot.com>.
51479
51480 2005-05-22  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51483         (INT64_MIN): Fix definition.
51484         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51485
51486         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51487         NEED_SIGNED_INT_TYPES.
51488
51489         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51490         HAVE_SYSTEM_INTTYPES.
51491
51492 2005-05-22  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51495         Also include <sys/param.h> if it defines MIN, MAX.
51496         Based on a patch by Derek Price <derek@ximbiot.com>.
51497
51498 2005-05-21  Jim Meyering  <jim@meyering.net>
51499
51500         * modules/fts (Files): Add m4/inttypes-pri.m4.
51501         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51502
51503 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51504
51505         New fts module.
51506         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51507         (setup_dir, free_dir): New functions.
51508         (enter_dir, leave_dir): Define trivial
51509         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51510         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51511         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51512         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51513         Move to fts-cycle.c.
51514         (fts_open): Use setup_dir.
51515         (fts_close): Use free_dir.
51516         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51517         This adds a label and some gotos, but the alternatives were messier.
51518         Check for memory allocation failure when entering a dir.
51519         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51520         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51521         (FTS): New member fts_cycle, that is a union that contains the
51522         old active_dir_ht and cycle_state.  All uses changed to mention
51523         fts_cycle.ht and fts_cycle.state.
51524         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51525         fts.c, with the following changes:
51526         (setup_dir, free_dir): New functions.
51527         (enter_dir): Now returns bool.  Return true if successful, false
51528         if memory exhausted.  All callers changed.
51529         Do not bother partly cleaning up on
51530         memory allocation failure; that is free_dir's job.
51531         However, free ad if hash_insert fails, to avoid memory leak.
51532         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51533         fts->fts_options to see which union member to use.
51534
51535 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51538         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51539
51540 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51543
51544 2005-05-20  Jim Meyering  <jim@meyering.net>
51545
51546         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51547         Now a macro, to pacify GCC.
51548
51549 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51550
51551         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51552         of -1.
51553
51554 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51555
51556         * lib/chown.c (rpl_chown): Return -1 on failure.
51557
51558 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51559
51560         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51561         Don't check for stddef.h.
51562         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51563         don't use its results.
51564         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51565         since we include them unconditionally.  Don't require
51566         AM_STDBOOL_H, since stdbool is a prerequisite.
51567         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51568         since we assume C89 or better.
51569         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51570         as we don't use their results.
51571         Don't check for fchdir, memmove, memset, strrchr, as we use
51572         them unconditionally.
51573         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51574         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51575
51576 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51577
51578         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51579         Include <stddef.h> unconditionally, since we assume C89 now.
51580         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51581         * lib/fts.c: Include fts_.h first, to check interface.
51582         Do not include intprops.h; no longer needed.
51583         Include cycle-check.h and hash.h, since fts_.h no longer does.
51584         Remove unnecessary casts of closedir to void.
51585         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51586         decide whether to decrement nlinks.
51587         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51588         (FTS): Use struct hash_table * instead of Hash_table, so that
51589         we no longer need to include hash.h here.
51590
51591 2005-05-18  Jim Meyering  <jim@meyering.net>
51592
51593         * modules/dirfd (License): Change to LGPL.  Most of the code
51594         is already in the public domain.
51595
51596 2005-05-18  Jim Meyering  <jim@meyering.net>
51597
51598         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51599         Reported by Yoann Vandoorselaere.
51600
51601 2005-05-17  Jim Meyering  <jim@meyering.net>
51602
51603         * m4/fts.m4: New file, from coreutils.
51604
51605 2005-05-17  Jim Meyering  <jim@meyering.net>
51606
51607         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51608
51609 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51610
51611         Sync from coreutils.
51612         * m4/unlinkdir.m4: New file.
51613
51614 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51615
51616         Sync from coreutils.
51617         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51618         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51619         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51620         White space changes only.
51621         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51622         special.
51623         * lib/yesno.c: Include getline.h, not ctype.h.
51624         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51625         Use getline to remove arbitrary restriction on response length.
51626
51627 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51628
51629         * config/srclist-update: Spell out "Street" in FSF postal
51630         mail address; this is the style the FSF seems to prefer.
51631
51632         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51633         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51634         this updates FSF postal mail address.
51635
51636         Sync from coreutils.
51637         * modules/unlinkdir: New file.
51638         * modules/yesno (Depends-on): Add getline.
51639         * MODULES.html.sh (File system functions): Add unlinkdir.
51640
51641 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51642
51643         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
51644         lib/strsep.h:
51645         Change the initial comment to refer to GPL, not LGPL.
51646         gnulib-tool will change it to LGPL as needed.
51647
51648         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
51649         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
51650         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
51651         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
51652         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
51653         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
51654         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
51655         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
51656         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51657         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51658         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51659         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51660         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51661         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51662         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51663         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51664         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51665         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51666         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51667         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51668         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51669         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51670         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51671         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51672         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51673         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51674         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51675         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51676         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51677         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51678         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51679         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51680         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51681         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51682         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51683         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51684         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51685         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51686         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51687         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51688         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51689         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51690         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51691         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51692         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51693         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51694         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51695         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51696         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51697         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51698         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51699         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51700         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51701         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51702         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51703         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51704         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51705         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51706         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51707         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51708         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51709         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51710         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51711         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51712         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51713         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51714         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51715         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51716         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51717         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51718         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51719         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51720         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51721         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51722         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51723         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51724         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51725         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51726         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51727         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51728         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51729         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51730         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51731         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51732         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51733         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51734         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51735         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51736         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51737         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51738         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51739         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51740         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51741         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51742         lib/yesno.c, lib/yesno.h:
51743         Update FSF postal mail address.
51744
51745 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51748         tests/test-memmem.c, tests/test-stpncpy.c:
51749         Update FSF postal mail address.
51750
51751 2005-05-13  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51754         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51755         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51756         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51757         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51758         Add support for 64-bit integers in the MSVC compiler.
51759
51760 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51761
51762         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51763
51764 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51765
51766         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51767
51768 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51769
51770         * doc/getdate.texi (General date syntax): Don't say that date
51771         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51772         Problem reported by Nic Ferrier.
51773
51774 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51775
51776         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51777         specified in ai_socktype. Fix invalid ai_protocol
51778         check. ai_protocol is usually set to 0 or depending on
51779         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51780         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51781         ai_socktype / ai_protocol in the returned addrinfo structure.
51782
51783 2005-05-10  Simon Josefsson  <jas@extundo.com>
51784
51785         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51786         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51787
51788 2005-05-10  Karl Berry  <karl@gnu.org>
51789
51790         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51791         (from http://www.gnu.org/licenses).
51792         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51793         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51794         fdl.texi suffices.
51795
51796 2005-05-10  Karl Berry  <karl@gnu.org>
51797
51798         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51799         (COPYING.DOC): remove.
51800
51801         * config/srclist-update: new FSF address.
51802
51803 2005-05-10  Derek Price  <derek@ximbiot.com>
51804
51805         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51806         possible.
51807
51808 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51809             Bruno Haible  <bruno@clisp.org>
51810
51811         * modules/inet_ntop: New file.
51812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51813         inet_ntop.
51814
51815 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51816             Bruno Haible  <bruno@clisp.org>
51817
51818         * m4/inet_ntop.m4: New file.
51819
51820 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51821             Bruno Haible  <bruno@clisp.org>
51822
51823         * lib/inet_ntop.h: New file.
51824         * lib/inet_ntop.c: New file, from glibc with modifications.
51825
51826 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51827
51828         * modules/time_r (License): Change to LGPL.
51829         * modules/extensions (License): Change to LGPL.  Actually,
51830         the license is more permissive than that, but currently gnulib-tool
51831         doesn't know how to handle more-permissive licenses.
51832
51833         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51834         Problem reported by Dave Love.
51835
51836 2005-05-08  Jim Meyering  <jim@meyering.net>
51837
51838         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51839         blank.
51840
51841 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * modules/argmatch (Depends-on): Add stdbool.
51844         * modules/backupfile (Depends-on): Likewise.
51845         * modules/chdir-long (Depends-on): Likewise.
51846         * modules/closeout (Depends-on): Likewise.
51847         * modules/cycle-check (Depends-on): Likewise.
51848         * modules/dirname (Depends-on): Likewise.
51849         * modules/fnmatch (Depends-on): Likewise.
51850         * modules/fsusage (Depends-on): Likewise.
51851         * modules/fwriteerror (Depends-on): Likewise.
51852         * modules/getcwd (Depends-on): Likewise.
51853         * modules/getloadavg (Depends-on): Likewise.
51854         * modules/hard-locale (Depends-on): Likewise.
51855         * modules/makepath (Depends-on): Likewise.
51856         * modules/mountlist (Depends-on): Likewise.
51857         * modules/nanosleep (Depends-on): Likewise.
51858         * modules/posixtm (Depends-on): Likewise.
51859         * modules/quotearg (Depends-on): Likewise.
51860         * modules/readtokens (Depends-on): Likewise.
51861         * modules/readtokens0 (Depends-on): Likewise.
51862         * modules/readutmp (Depends-on): Likewise.
51863         * modules/save-cwd (Depends-on): Likewise.
51864         * modules/strftime (Depends-on): Likewise.
51865         * modules/userspec (Depends-on): Likewise.
51866         * modules/utimecmp (Depends-on): Likewise.
51867         * modules/xgetcwd (Depends-on): Likewise.
51868         * modules/xnanosleep (Depends-on): Likewise.
51869         * modules/xstrtod (Depends-on): Likewise.
51870         * modules/yesno (Depends-on): Likewise.
51871
51872 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51875         needless checks.
51876
51877 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51878
51879         Merge from coreutils.  Among other things,
51880         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51881         * lib/fd-safer.c: New file.
51882         * lib/fcntl-safer.h, open-safer.c: Remove.
51883         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51884         * lib/dup-safer.c: Include unistd-safer.h first.
51885         Don't include errno.h.
51886         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51887         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51888         * lib/file-type.c: Rely on file-type.h change.
51889         * lib/getloadavg.c: Include unistd-safer.h.
51890         (getloadavg): Use safer open.
51891         * lib/getusershell.c: Include "stdio-safer.h".
51892         (getusershell): Use safer fopen.
51893         * lib/long-options.c (long_options): Use NULL rather than 0.
51894         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51895         'free'.
51896         * lib/modechange.c: Likewise.
51897         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51898         (MODE_DONE): New constant.
51899         (struct mode_change): Remove 'next' member.
51900         (make_node_op_equals): New function; like the old one of the
51901         same name, except it allocates an array.
51902         (mode_compile, mode_create_from_ref): Use it.
51903         (mode_compile): Allocate result as an array, not a linked list.
51904         Parse octal string ourself, so that we catch mistakes like "+0".
51905         (mode_adjust): Arg is an array, not a linked list.
51906         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51907         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51908         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51909         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51910         Remove.  This is now stat-macros.h's job.
51911         (talloc): Remove.  All callers replaced by xalloc, so that
51912         our invokers don't have to worry about reporting memory failures.
51913         (make_node_op_equals): Remove.
51914         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51915         New constants.
51916         (struct mode_change): Moved here from modechange.h.
51917         (mode_append_entry): Remove.
51918         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51919         apps to have incorrect behavior.  Use simpler algorithm for head
51920         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51921         Detect more invalid usages rather than having somewhat-random behavior.
51922         Don't insert an "a=" action, as that leads to incorrect behavior.
51923         (mode_compile, mode_create_from_ref): Return NULL on error instead
51924         of an enum, since now there's only one way to have an error.  All
51925         callers changed.
51926         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51927         at the correct time.  Simplify calculation of "+u" and its ilk.
51928         Don't mishandle "+X".
51929         (mode_free): Remove "register" and localize decls.
51930         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51931         (struct mode_change): Move to modechange.c; callers don't
51932         need to see this stuff.
51933         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51934         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51935         (mode_change, mode_adjust): Reflect the new signatures noted above.
51936         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51937         that might redefine system include files.
51938         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51939         (my_usleep): Use NULL rather than (void *) 0.
51940         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51941         Use siginterrupt to specify that system calls should be interrupted.
51942         (rpl_nanosleep): Move initialization of suspended closer to call of
51943         my_usleep.
51944         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51945         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51946         (desirable_utmp_entry): New function.
51947         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51948         using x2nrealloc, to simplify logic.
51949         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51950         size calculation.  Do not assume utmp file is a regular file.
51951         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51952         (READ_UTMP_CHECK_PIDS): New constant.
51953         * lib/save-cwd.c: Include unistd-safer.h.
51954         (save_cwd): Use fd_safer.
51955         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51956         [!_LIBC] Include "stat-macros.h" instead.
51957         * lib/unistd-safer.h (fd_safer): New decl.
51958
51959 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51960
51961         * modules/getloadavg (Depends-on): Add unistd-safer.
51962         * modules/getusershell (Depends-on): Add stdio-safer.
51963         * modules/lstat (Depends-on): Remove xalloc.
51964         * modules/mkstemp (Depends-on): Add stat-macros.
51965         * modules/modechange (Depends-on): Remove xstrtol.
51966         Add stat-macros, xalloc.
51967         * modules/save-cwd (Depends-on): Add unistd-safer.
51968         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51969         * modules/unistd-safer (Files): Add lib/fd-safer.c
51970         (Makefile.am): Remove lib_SOURCES.
51971
51972         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51973         Remove fcntl-safer; unistd-safer supersedes it.
51974
51975 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51978         AC_HEADER_STAT.
51979         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51980         (gl_PREREQ_CHOWN): Remove.
51981         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51982         it.  Don't require AC_HEADER_STAT.
51983         (gl_PREREQ_LSTAT): Remove.
51984         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51985         Don't require AC_HEADER_STAT.
51986         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51987         (gl_PREREQ_RMDIR): Remove.
51988         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51989         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51990         the stat-macros module a prerequisite.
51991         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51992         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51993         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51994         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51995         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51996         variable names.
51997         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51998         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51999         variable prefixes.
52000         * m4/fcntl-safer.m4: Remove.
52001         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52002         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52003         Invoke gl_PREREQ_FD_SAFER.
52004         (gl_PREREQ_FD_SAFER): New macro.
52005         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52006         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52007         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52008         Remove duplicate call to AC_LIBOBJ(readutmp).
52009         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52010
52011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52012         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52013
52014 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52015
52016         * MODULES.html.sh (Misc): Add byteswap.
52017
52018 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52019
52020         * modules/getcwd (Depends-on): Add extensions.
52021         * modules/openat (Depends-on): Likewise.
52022
52023 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52024
52025         * modules/byteswap: New file.
52026
52027 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52028
52029         * m4/byteswap.m4: New file.
52030
52031 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52032
52033         * lib/byteswap_.h: New file.
52034
52035 2005-04-25  Karl Berry  <karl@gnu.org>
52036
52037         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52038
52039 2005-04-25  Albert Chin  <china@thewrittenword.com>
52040
52041         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52042         Toolkit C bug.
52043
52044 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52045
52046         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52047         (func_ln_if_changed) Remove forcibly for no error message
52048         in case file does not exist.
52049
52050 2005-04-19  Simon Josefsson  <jas@extundo.com>
52051
52052         * gnulib-tool (Options): Make --symlink mean --symbolic.
52053
52054 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52055
52056         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52057
52058 2005-04-16  Simon Josefsson  <jas@extundo.com>
52059
52060         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52061
52062 2005-04-15  Simon Josefsson  <jas@extundo.com>
52063
52064         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52065
52066 2005-04-15  Simon Josefsson  <jas@extundo.com>
52067
52068         * gnulib-tool: Rename --symlink to --symbolic.
52069
52070 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52071
52072         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52073         symbolic links to files instead of copying/moving.  Add --aux-dir,
52074         specifying directory relative --dir where auxiliary build tools
52075         are placed.
52076
52077 2005-04-14  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/allocsa (License): Change to LGPL.
52080         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52081
52082 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52083
52084         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52085         that "UTC +1 second" continues to work.  Problem reported
52086         by Dmitry V. Levin.
52087         (relunit_snumber): New rule.
52088         (relunit): Use it.
52089
52090 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         * lib/getdate.y (universal_time_zone_table): New constant.
52093         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52094         universal_time_zone_table.
52095         (lookup_zone): Prefer universal_time_zone_table to
52096         local_time_zone_table, so that "GMT" time stamps are allowed in
52097         London during the summer.  Problem reported by Ian Abbott.
52098
52099 2005-04-12  Jim Meyering  <jim@meyering.net>
52100
52101         * lib/human.c (humblock): Set *options even when returning due to
52102         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52103         warning from gcc-4.
52104
52105 2005-04-09  Jim Meyering  <jim@meyering.net>
52106
52107         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52108         -Wuninitialized: initialize tm0.tm_year.
52109
52110 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52111
52112         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52113         count, since there's no maximum.  All uses changed.
52114         Add member dsts_seen.
52115         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52116         not being INT_MAX.
52117         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52118         Use pc_rels_seen to decide whther a date is absolute.
52119
52120         * lib/getdate.y (number): Don't overwrite year.
52121         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52122         check.
52123
52124 2005-04-02  Simon Josefsson  <jas@extundo.com>
52125
52126         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52127         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52128
52129 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52130
52131         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52132         where no absolute path name can be longer than PATH_MAX.
52133
52134 2005-03-27  Jim Meyering  <jim@meyering.net>
52135
52136         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52137
52138 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52139
52140         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52141         "one's complement" -> "ones' complement" in comment, as per Knuth.
52142         "value of type" -> "type or expression" in comment.
52143         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52144
52145 2005-03-26  Jim Meyering  <jim@meyering.net>
52146
52147         Comment nits.
52148         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52149         Correct typos: s/or/of/.
52150
52151 2005-03-26  Jim Meyering  <jim@meyering.net>
52152
52153         * modules/check-include-files: Move to ../ and rename to...
52154         * check-module: ...this.
52155
52156 2005-03-25  Jim Meyering  <jim@meyering.net>
52157
52158         * modules/xvasprintf (Files): Add xalloc.h.
52159
52160 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52161
52162         * modules/gettext (Files): config/config.rpath ->
52163         build-aux/config.rpath
52164         * modules/iconv (Files): Likewise.
52165         Problem reported by Oskar Liljeblad.
52166
52167 2005-03-23  Jim Meyering  <jim@meyering.net>
52168
52169         * modules/check-include-files: New script to check for
52170         missing dependencies, multiple includes, etc.
52171
52172         * modules/c-strtold (Depends-on): Add xalloc.
52173         * modules/c-strtod (Depends-on): Add xalloc.
52174         * modules/hash (Depends-on): Add xalloc.
52175         (Files): Remove lib/xalloc.h.
52176
52177         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52178         * modules/userspec (Files): Add lib/inttostr.h.
52179
52180 2005-03-23  Jim Meyering  <jim@meyering.net>
52181
52182         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52183
52184 2005-03-22  Jim Meyering  <jim@meyering.net>
52185
52186         * modules/stat-macros: New module.
52187         * modules/canonicalize, modules/euidaccess, modules/file-type,
52188         * modules/filemode, modules/lchown, modules/makepath,
52189         * modules/rmdir, modules/stat: Depend on new stat-macros module
52190         rather than listing lib/stat-macros.h manually.
52191         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52192
52193 2005-03-22  Jim Meyering  <jim@meyering.net>
52194
52195         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52196
52197 2005-03-22  Bruno Haible  <bruno@clisp.org>
52198
52199         * config/srclist.txt: Replace target directory 'config' with
52200         'build-aux'.
52201         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52202         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52203         ../build-aux/.
52204
52205 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         * modules/chdir-long (Depends-on): Add mempcpy.
52208
52209         * modules/acl, modules/backupfile, modules/c-strtod,
52210         modules/c-strtold, modules/canon-host, modules/canonicalize,
52211         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52212         modules/exclude, modules/exitfail, modules/file-type,
52213         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52214         modules/getdate, modules/getline, modules/getpagesize,
52215         modules/getpass, modules/getugroups, modules/group-member,
52216         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52217         modules/inttostr, modules/long-options, modules/makepath,
52218         modules/md5, modules/memcasecmp, modules/memcoll,
52219         modules/modechange, modules/mountlist, modules/path-concat,
52220         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52221         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52222         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52223         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52224         modules/strftime, modules/strndup, modules/strverscmp,
52225         modules/timespec, modules/unlocked-io, modules/userspec,
52226         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52227         modules/yesno:
52228         Remove lib_SOURCES line from Makefile.am section, as this is now
52229         done automatically by the corresponding Autoconf macro.
52230
52231 2005-03-21  Jim Meyering  <jim@meyering.net>
52232
52233         Changes imported from coreutils.
52234
52235         * lib/cycle-check.c: Don't include xalloc.h.
52236
52237         * lib/path-concat.c: Don't include assert.h.
52238         (path_concat): Remove assertion that would have triggered
52239         for ABASE starting with more than one slash.
52240         Reported by Andreas Schwab.
52241
52242         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52243         properly when ABASE is an absolute file name.
52244         Correct the description of this function.
52245         Include <assert.h>.
52246         Add an assertion and a test driver.
52247         This fixes a bug introduced on 2004-07-02.
52248         Andreas Schwab reported the resulting failure of cp --parents:
52249         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52250
52251 2005-03-21  Jim Meyering  <jim@meyering.net>
52252
52253         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52254         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52255
52256 2005-03-21  Jim Meyering  <jim@meyering.net>
52257         and  Paul Eggert  <eggert@cs.ucla.edu>
52258
52259         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52260         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52261         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52262         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52263         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52264         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52265         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52266         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52267         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52268         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52269         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52270         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52271         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52272         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52273         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52274         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52275         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52276         for these modules.
52277
52278 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52279
52280         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52281         (which shouldn't happen), generate nothing instead of returning 0
52282         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52283
52284 2005-03-16  Bruno Haible  <bruno@clisp.org>
52285
52286         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52287         HAVE_LONGLONG_64BIT.
52288
52289 2005-03-16  Bruno Haible  <bruno@clisp.org>
52290
52291         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52292         HAVE_LONGLONG_64BIT.
52293
52294 2005-03-16  Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52297         HAVE_LONGLONG_64BIT.
52298
52299 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52300
52301         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52302         reliably distinguish strftime failure from empty output on POSIX
52303         hosts.
52304
52305 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52306
52307         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52308         (iconv_string): Don't guess a size-zero buffer, as that might cause
52309         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52310         result would be 'too large', where 'too large' is (heuristically)
52311         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52312         overflow concerns.  This will prevent some unwanted malloc failures
52313         when the inputs are very large.
52314
52315 2005-03-15  Karl Berry  <karl@gnu.org>
52316
52317         * config/srclist.txt (config.rpath): from gettext.
52318         * config/config.rpath: update.
52319
52320 2005-03-15  Bruno Haible  <bruno@clisp.org>
52321
52322         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52323         to 'negate'.
52324
52325         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52326         variable.
52327
52328         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52329         results.
52330
52331 2005-03-14  Simon Josefsson  <jas@extundo.com>
52332
52333         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52334         <fx@gnu.org>.
52335
52336 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52339         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52340         intprops.h.
52341         * lib/strtol.c: Likewise.
52342
52343 2005-03-14  Jim Meyering  <jim@meyering.net>
52344
52345         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52346         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52347         to be nonzero so that we (and caller) can detect the difference
52348         between a valid zero-length expansion and an error return, even
52349         when the underlying strftime fails before writing anything into
52350         that location.
52351
52352 2005-03-14  Bruno Haible  <bruno@clisp.org>
52353
52354         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52355         Update from GNU gettext 0.14.3.
52356
52357 2005-03-10  Jim Meyering  <jim@meyering.net>
52358
52359         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52360
52361 2005-03-10  Jim Meyering  <jim@meyering.net>
52362
52363         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52364         so that this module works on systems without fchdir.
52365
52366 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52367
52368         Factor int-properties macros into a single file, except for
52369         glibc-related files.
52370         * lib/intprops.h: New file.
52371         * lib/getloadavg.c: Include it instead of limits.h.
52372         (INT_STRLEN_BOUND): Remove.
52373         * lib/human.c: Include intprops.h.
52374         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52375         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52376         302/1000.
52377         * lib/inttostr.h: Include intprops.h instead of limits.h.
52378         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52379         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52380         for consistency with intprops.h.
52381         (time_t_is_integer, twos_complement_arithmetic): Use them.
52382         * lib/sig2str.h: Include <signal.h>, intprops.h.
52383         (INT_STRLEN_BOUND): Remove.
52384         * lib/strftime.c (TYPE_SIGNED): Remove.
52385         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52386         * lib/strtol.c: Adjust comments to match intprops.h.
52387         * lib/userspec.c: Include intprops.h.
52388         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52389         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52390         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52391         instead of rolling our own expressions.
52392         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52393
52394         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52395         instead of int.
52396         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52397         the right thing even if adding 1900 would overflow.  Similarly
52398         for tm_mon + 1 and tm_yday + 1.
52399         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52400         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52401         (DO_SIGNED_NUMBER): New macro.
52402         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52403
52404 2005-03-07  Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52407
52408 2005-03-07  Bruno Haible  <bruno@clisp.org>
52409
52410         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52411
52412 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52413
52414         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52415         (func_import): Only replace files via --import when they have actually
52416         changed.
52417
52418 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52419
52420         * m4/mmap-anon.m4: New file.
52421         * m4/pagealign_alloc.m4: New file.
52422
52423 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52424             Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/pagealign_alloc: New file.
52427         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52428
52429 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52430             Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/pagealign_alloc.h: New file.
52433         * lib/pagealign_alloc.c: New file.
52434
52435 2005-03-03  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52438         Use an all-permissive copyright notice, recommended by RMS.
52439
52440 2005-03-02  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52443         of AIX, the replacement has to be done only after <string.h> is
52444         included, therefore not in config.h. stpncpy.h does the replacement,
52445         and stpncpy.c uses it.
52446
52447 2005-03-02  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52450         stpncpy.c uses it.
52451
52452 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52455         The workaround isn't strictly needed for POSIX conformance, and
52456         it's too much of a pain to configure and maintain.  We'll ask
52457         people to fix their kernels instead.
52458         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52459         (NANOSLEEP_BUG_WORKAROUND): Remove.
52460         (xnanosleep): Remove the workaround.
52461
52462 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52463
52464         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52465         Reported by Derek Price.
52466         (Include): Add "timespec.h".
52467
52468         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52469
52470 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52473         to detect nanosleep bug.
52474
52475 2005-03-01  Bruno Haible  <bruno@clisp.org>
52476
52477         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52478
52479 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * modules/gethrxtime: New file.
52482         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52483         (Depends-on): Add gethrxtime.
52484         (configure.ac): Add gl_XNANOSLEEP.
52485         (Makefile.am): Remove lib_SOURCES line.
52486
52487 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52488
52489         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52490         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52491
52492 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52495         * lib/timespec.h (gettime): Return void, since it always
52496         succeeds now.  All uses changed.
52497         * lib/gettime.c (gettime) Likewise.
52498         [HAVE_NANOTIME]: Prefer nanotime.
52499         Assume gettimeofday succeeds, as POSIX requires.
52500         Assime time () succeeds, since other code already does.
52501         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52502         (timespec_subtract): Remove.
52503         (NANOSLEEP_BUG_WORKAROUND): New constant.
52504         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52505         things considerably.  Use it only on GNU/Linux hosts, since the
52506         workaround shouldn't be needed elsewhere.
52507
52508 2005-02-24  Bruno Haible  <bruno@clisp.org>
52509
52510         * modules/gettext (Files): Add m4/glibc2.m4.
52511
52512 2005-02-24  Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52515         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52516         * m4/progtest.m4:
52517         Update from GNU gettext 0.14.2.
52518         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52519
52520 2005-02-24  Bruno Haible  <bruno@clisp.org>
52521
52522         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52523         * lib/config.charset: Update from GNU gettext 0.14.2.
52524
52525 2005-02-24  Bruno Haible  <bruno@clisp.org>
52526
52527         * lib/gettext.h: Update from GNU gettext 0.14.2.
52528
52529 2005-02-23  Simon Josefsson  <jas@extundo.com>
52530
52531         * m4/iconvme.m4: New file.
52532
52533 2005-02-23  Jim Meyering  <jim@meyering.net>
52534
52535         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52536         change.
52537         Thanks to Bruno Haible for catching it.
52538
52539 2005-02-22  Simon Josefsson  <jas@extundo.com>
52540
52541         * modules/iconvme: New file.
52542
52543         * MODULES.html.sh: Add iconvme.
52544
52545 2005-02-22  Simon Josefsson  <jas@extundo.com>
52546
52547         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52548
52549 2005-02-22  Simon Josefsson  <jas@extundo.com>
52550
52551         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52552
52553 2005-02-22  Jim Meyering  <jim@meyering.net>
52554
52555         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52556         s/ifndef/ifdef/.
52557
52558 2005-02-20  Neil Conway  <neilc@samurai.com>
52559
52560         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52561         returned by OSX/Darwin if the specified buffer is not large
52562         enough for the hostname.
52563
52564 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52565
52566         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52567         pass it to _help, otherwise the latter coredumps trying to
52568         dereference state.root_argp.
52569
52570 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * modules/chdir-long (Depends-on): Add memrchr.
52573         * modules/memrchr (Files): Add lib/memrchr.h.
52574         (Include): "memrchr.h".
52575
52576 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52577
52578         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52579
52580 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         * lib/memrchr.h: New file.
52583         * lib/chdir-long.c: Include it.
52584         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52585         Don't bother including stddef.h.
52586
52587 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52588
52589         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52590         inclusion.
52591         Include <sys/types.h>, for dev_t.
52592         (ME_DUMMY, ME_REMOTE): Move from here....
52593         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52594         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52595         Dmitry V. Levin.
52596         Include mountlist.h first, to test the interface.
52597
52598 2005-01-29  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/progname.c (program_name): Initialize.
52601         Needed when linking statically on MacOS X.
52602
52603 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52604
52605         Sync from coreutils.
52606         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52607         (Depends-on): Add c-strtod.
52608         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52609
52610 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         Sync from coreutils.
52613         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52614
52615         Remove files that are specific to coreutils.
52616         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52617
52618 2005-01-28  Bruno Haible  <bruno@clisp.org>
52619
52620         * modules/javacomp: New file.
52621         * MODULES.html.sh (Java): Add javacomp.
52622
52623 2005-01-28  Bruno Haible  <bruno@clisp.org>
52624
52625         * m4/javacomp.m4: New file, from GNU gettext.
52626
52627 2005-01-28  Bruno Haible  <bruno@clisp.org>
52628
52629         * lib/javacomp.sh.in: New file, from GNU gettext.
52630         * lib/javacomp.h: New file, from GNU gettext.
52631         * lib/javacomp.c: New file, from GNU gettext.
52632
52633 2005-01-26  Simon Josefsson  <jas@extundo.com>
52634
52635         * lib/gai_strerror.c: Use GPL in header.
52636
52637 2005-01-26  Bruno Haible  <bruno@clisp.org>
52638
52639         * modules/javaexec: New file.
52640         * MODULES.html.sh (Java): Add javaexec.
52641
52642 2005-01-26  Bruno Haible  <bruno@clisp.org>
52643
52644         * m4/javaexec.m4: New file, from GNU gettext.
52645
52646 2005-01-26  Bruno Haible  <bruno@clisp.org>
52647
52648         * lib/javaexec.sh.in: New file, from GNU gettext.
52649         * lib/javaexec.h: New file, from GNU gettext.
52650         * lib/javaexec.c: New file, from GNU gettext.
52651
52652 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52653
52654         * modules/lchown (Depends-on): Remove lchown.h
52655
52656 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52657
52658         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52659         must be defined if the header file was not found, in order
52660         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52661
52662 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52663
52664         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52665         initializers for struct pentry_state.
52666         (__argp_error): Check return value of __asprintf
52667         (__argp_failure): Translate error message
52668
52669         * lib/argp-parse.c: Removed braces around the expansion of N_()
52670
52671 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52674         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52675         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52676         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52677         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52678         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52679         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52680         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52681         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52682         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52683         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52684         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52685         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52686         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52687         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52688         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52689         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52690         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52691         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52692         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52693         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52694         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52695         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52696         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52697         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52698         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52699         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52700         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52701         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52702         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52703         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52704         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52705         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52706         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52707         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52708         Use an all-permissive copyright notice, recommended by RMS.
52709
52710 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52711
52712         * modules/chdir-long (Depends-on): Remove mempcpy.
52713
52714 2005-01-21  Jim Meyering  <jim@meyering.net>
52715
52716         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52717         same value as for Solaris 9.
52718
52719         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52720         component length.  This included changing the parameter to be
52721         of type `char *' rather than `char const *'.
52722         * lib/chdir-long.h (chdir_long): Update prototype.
52723
52724         * lib/openat.c (fdopendir, fstatat): New functions.
52725         * lib/openat.h: Include headers required for use of DIR and struct
52726         stat.
52727         [AT_SYMLINK_NOFOLLOW]: Define.
52728         (fdopendir, fstatat): Add prototypes.
52729
52730 2005-01-21  Bruno Haible  <bruno@clisp.org>
52731
52732         * modules/classpath: New file.
52733         * MODULES.html.sh (Java): Add classpath.
52734
52735 2005-01-21  Bruno Haible  <bruno@clisp.org>
52736
52737         * lib/classpath.h: New file, from GNU gettext.
52738         * lib/classpath.c: New file, from GNU gettext.
52739
52740 2005-01-20  Simon Josefsson  <jas@extundo.com>
52741
52742         * modules/version-etc-fsf: New file.
52743
52744 2005-01-20  Simon Josefsson  <jas@extundo.com>
52745
52746         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52747         * lib/version-etc.c: Remove version_etc_copyright.
52748         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52749         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52750
52751 2005-01-20  Simon Josefsson  <jas@extundo.com>
52752
52753         * lib/base64.h (isbase64): Add.
52754
52755         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52756         using a unsigned prototype, don't inline.
52757         (base64_decode): Use it.
52758
52759 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52762         it.
52763
52764 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * lib/save-cwd.c (save_cwd): Remove code to support the case
52767         where fchdir is missing or flaky.
52768
52769 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52772
52773 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52774
52775         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52776         AC_LIBSOURCES now does this.
52777         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52778         with new ullong_max module.
52779
52780 2005-01-19  Bruno Haible  <bruno@clisp.org>
52781
52782         * modules/sh-quote: New file.
52783         * MODULES.html.sh (Executing programs): Add sh-quote.
52784
52785 2005-01-19  Bruno Haible  <bruno@clisp.org>
52786
52787         * lib/sh-quote.h: New file, from GNU gettext.
52788         * lib/sh-quote.c: New file, from GNU gettext.
52789
52790 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         Merge from coreutils.
52793         * m4/ullong_max.m4: New file.
52794         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52795         (gl_MACROS): Assume localeconv exists.
52796
52797 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         Merge changes from coreutils, as described below in several
52800         changelogs dated today.
52801
52802         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52803         (O_DIRECTORY): Remove; not needed here, since "." must be
52804         a directory.  All uses removed.
52805         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52806         universal on Suns, and we also need to test for IRIX.
52807         Revamp code to use 'if' rather than '#if'.
52808         Avoid unnecessary comparison of cwd->desc to 0.
52809
52810         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52811         for known valid error numbers rather than observed invalid ones.
52812
52813 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * modules/ullong_max: New file.
52816
52817         * modules/chdir-long, modules/openat: New files.
52818         * modules/save-cwd (Depends-on): Depend on chdir-long.
52819         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52820
52821 2005-01-18  Jim Meyering  <jim@meyering.net>
52822
52823         Merge from coreutils.
52824         * m4/chdir-long.m4, m4/openat.m4: New files.
52825         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52826         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52827         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52828         is sane and DOES follow symlinks.  Besides, testing 20 different
52829         systems found no broken chown implementations.
52830         Prompted by a change in rsync's copy of this macro.
52831         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52832
52833         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52834
52835         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52836         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52837         NULL-means-set-to-current-time semantics.
52838         Remove temporary file immediately, rather than waiting
52839         for configure's at-exit trap code to do it.
52840
52841 2005-01-18  Jim Meyering  <jim@meyering.net>
52842
52843         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52844
52845         * lib/utimens.c (futimens): Account for the fact that futimes
52846         can also fail with errno == ENOSYS or errno == ENOENT.
52847         Patch from Dmitry V. Levin.
52848
52849         Change the name of the robust chdir function from chdir to chdir_long.
52850         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52851         (restore_cwd): Use chdir_long, not chdir.
52852         * lib/chdir-long.c: Renamed from chdir.c.
52853         * lib/chdir-long.h: Renamed from chdir.h.
52854         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52855         Hurd.
52856
52857 2005-01-18  Bruno Haible  <bruno@clisp.org>
52858
52859         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52860         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52861         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52862         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52863         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52864         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52865         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52866         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52867         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52868         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52869         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52870         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52871         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52872         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52873         Use an all-permissive copyright notice, recommended by RMS.
52874
52875 2005-01-18  Bob Proulx  <bob@proulx.com>
52876
52877         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52878         simplify offsetof() macro construct to avoid compile failure with
52879         native HP-UX 11.0 ANSI C compiler.
52880
52881 2005-01-17  Bruno Haible  <bruno@clisp.org>
52882
52883         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52884         redundant because stpncpy.m4 takes care of it.
52885
52886 2005-01-17  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52889
52890 2005-01-17  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52893         used.
52894
52895 2005-01-17  Bruno Haible  <bruno@clisp.org>
52896
52897         * lib/fwriteerror.h (fwriteerror): Change specification to include
52898         fclose.
52899         * lib/fwriteerror.c: Include <stdbool.h>.
52900         (fwriteerror): At the end, close the file stream. Record whether
52901         stdout was already closed.
52902
52903 2005-01-17  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/execute.c (environ): Declare if needed.
52906         * lib/pipe.c (environ): Likewise.
52907         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52908
52909 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52910
52911         * modules/argp: Depend on vsnprintf
52912
52913 2005-01-10  Jim Meyering  <jim@meyering.net>
52914
52915         * modules/closeout (Depends-on): Add atexit.
52916
52917 2005-01-06  Bruno Haible  <bruno@clisp.org>
52918
52919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52920
52921 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52922
52923         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52924         definitions to be after all include files, to avoid collisions.
52925         Problem reported by Bob Proulx.
52926
52927 2005-01-04  Jim Meyering  <jim@meyering.net>
52928
52929         Changes imported from coreutils.
52930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52931         as the mkstemp template, use a temporary directory and an
52932         8.3-friendly template to avoid trouble on systems like DJGPP.
52933         Reported by Juan M. Guerrero via Stepan Kasal.
52934         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52935         close. Remove the temporary directory right away, rather than waiting
52936         for configure's at-exit trap code to do it.
52937         Suggestion from Stepan Kasal.
52938
52939 2005-01-01  Simon Josefsson  <jas@extundo.com>
52940
52941         * gnulib-tool: Print #include directives when --import'ing.
52942
52943 2004-12-28  Simon Josefsson  <jas@extundo.com>
52944
52945         * tests/test-base64.c: Include required header files.  Remove
52946         unused variables.
52947
52948 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * modules/error (Depends-on): Remove gettext.
52951
52952 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52953
52954         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52955         not needed.  This removes a dependency on the gettext module.
52956         [defined _LIBC]: Do not include <libintl.h>; not needed.
52957
52958 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52961         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52962
52963 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52966         HAVE_DECL_STRTOLD.
52967
52968 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         * modules/getdate (Depends-on): Remove alloca-opt.
52971
52972 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52975
52976 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52977
52978         * lib/argp-parse.c: Include <stddef.h>.
52979         (alignof, alignto): New macros.
52980         (parser_init): Don't assume that void * is aligned sufficiently
52981         for struct option.
52982
52983         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52984         need to extend the stack.
52985         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52986         large.
52987
52988 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52989
52990         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52991
52992 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52995         (2004-10-24) change.  Apparently this was a false alarm.
52996
52997         * modules/getdate: Depend on alloca-opt, not alloca.
52998
52999 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53000
53001         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53002         Remove now-obsolete comment about AIX.
53003         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53004         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53005         (YYMAXDEPTH): New macro.
53006
53007 2004-12-18  Simon Josefsson  <jas@extundo.com>
53008
53009         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53010
53011 2004-12-18  Bruno Haible  <bruno@clisp.org>
53012
53013         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53014
53015 2004-12-18  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/fatal-signal.c (fatal_signals): Make non-const.
53018         (init_fatal_signals): New function.
53019         (uninstall_handlers, install_handlers): Ignore signals that were set to
53020         SIG_IGN.
53021         (at_fatal_signal): Call init_fatal_signals.
53022         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53023         SIG_IGN.
53024         Reported by Paul Eggert.
53025
53026 2004-12-18  Bruno Haible  <bruno@clisp.org>
53027
53028         * doc/alloca.texi: New file.
53029         * doc/alloca-opt.texi: New file.
53030
53031 2004-12-17  Jim Meyering  <jim@meyering.net>
53032
53033         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53034         Otherwise, install-sh could exit with improper exit status when
53035         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53036
53037 2004-12-16  Simon Josefsson  <jas@extundo.com>
53038
53039         * tests/test-base64.c: Add license.
53040
53041 2004-12-15  Stepan Kasal  <address@hidden>
53042
53043         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53044
53045 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53046
53047         * modules/getcwd (Files): Add m4/d-ino.m4.
53048         Suggested by Mark D. Baushke.
53049
53050 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         * lib/getdate.y (textint): New member "negative".
53053         (time_zone_hhmm): New function.
53054         Expect 14 shift-reduce conflicts, not 13.
53055         (o_colon_minutes): New rule.
53056         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53057         (yylex): Set the "negative" member of signed numbers.
53058
53059 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * doc/getdate.texi (Time of day items, Time zone items):
53062         Describe new formats +00:00, UTC+00:00.
53063
53064 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53067         spurious "-l"s.  Problem reported by Stepan Kasal.
53068
53069 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53072         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53073
53074 2004-12-04  Simon Josefsson  <jas@extundo.com>
53075
53076         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53077         Vandoorselaere <yoann@prelude-ids.org>.
53078
53079 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53080
53081         Changes imported from coreutils.
53082         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53083         exist.
53084         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53085
53086 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53087
53088         Changes imported from coreutils.
53089         * lib/hard-locale.c: Assume <locale.h> exists.
53090         Include "strdup.h".
53091         (GLIBC_VERSION): New macro.
53092         (hard_locale): Assume setlocale exists.
53093         Rewrite to avoid #ifdef.
53094         Use strdup rather than malloc + strcpy.
53095         * lib/human.c: Assume <locale.h> exists.
53096         (human_readable): Assume localeconv exists.
53097
53098 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53099
53100         * modules/hard-locale (Depends-on): Add strdup.
53101
53102 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53103
53104         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53105         convert T2, not T.  (Imported from libc.)
53106
53107 2004-11-30  Simon Josefsson  <jas@extundo.com>
53108
53109         * modules/restrict (License): Change to LGPL.
53110
53111 2004-11-30  Simon Josefsson  <jas@extundo.com>
53112
53113         * m4/restrict.m4: Add copyright and copying conditions.
53114
53115 2004-11-30  Simon Josefsson  <jas@extundo.com>
53116
53117         * m4/base64.m4: New file.
53118
53119 2004-11-30  Simon Josefsson  <jas@extundo.com>
53120
53121         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53122         base64.
53123
53124         * tests/test-base64.c: New file.
53125
53126         * modules/base64: New file.
53127
53128 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53129
53130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53131         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53132
53133         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53134
53135 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53136
53137         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53138         (__getcwd.c): Don't restore errno; glibc doesn't.
53139         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53140         first, falling back to our code only if its results look suspicious.
53141         Ensure that the resulting buffer is only as large as necessary.
53142
53143         * lib/readutmp.c: Include readutmp.h first.
53144         Include <errno.h>, since readutmp.h no longer does that.
53145         * lib/readutmp.h: Don't include <errno.h>,
53146         <sys/param.h>, <time.h>; not needed to establish interface.
53147         (errno): Remove decl.
53148         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53149         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53150         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53151
53152 2004-11-28  Simon Josefsson  <jas@extundo.com>
53153
53154         * lib/base64.h, base64.c: New file.
53155
53156 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53157
53158         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53159
53160 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53161
53162         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53163         (Depends-on): Remove pathmax, same.  Add mempcpy.
53164         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53165         (Makefile.am): Append getcwd.h to lib_SOURCES.
53166         (Include): Add getcwd.h.
53167         (Maintainer): Change from Jim Meyering to "all, glibc",
53168         since getdate now uses intended-for-glibc code.
53169         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53170         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53171
53172 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53173
53174         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53175         HP's ANSI C compiler.
53176         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53177         Declaring int functions causes warnings on some modern systems and
53178         shouldn't be needed to compile on ancient ones.
53179         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53180         defined.
53181
53182         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53183         with the following changes.
53184         (__set_errno): Parenthesize properly.
53185         Include <stdbool.h>.
53186         (MIN, MAX, MATCHING_INO): New macros.
53187         (__getcwd): Define with prototype, not K&R form.
53188         Use heuristics to allocate default buffer on stack if possible.
53189         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53190         behavior, and to avoid the PATH_MAX limit when computing
53191         ../../../../...
53192         Use MATCHING_INO to compare inode number to file.
53193         Check for arithmetic overflow in size calculations.
53194         Fix bug in reallocation of dot array that caused getcwd to fail
53195         on directories nested deeper than 75.
53196         Be more careful about saving errno on error.
53197         Do not use realloc; use only free+malloc, as this is a bit
53198         more flexible and avoids a needless copy operation.
53199         Do not inspect st_dev and st_ino for symbolic links; POSIX
53200         doesn't specify the latter.
53201         Check for closedir errors.
53202         Avoid needless casts.
53203         Use "#ifdef weak_alias" around weak_alias, to be like other
53204         glibc code.
53205         The following changes to getcwd.c have effect only when used in
53206         gnulib; they have no effect inside glibc proper.
53207         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53208         as alloca isn't used.
53209         (alloca, __alloca): Likewise.
53210         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53211         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53212         unconditionally, as gnulib assumes C89 or better.
53213         Do not include <sys/param.h>.
53214         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53215         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53216         better.
53217         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53218         Include <dirent.h> in a way that is compatible with modern Autoconf.
53219         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53220         New macros, if not already defined.
53221         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53222         Use "_LIBC", not "defined _LIBC", for consistency.
53223         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53224         a mempcpy module.
53225         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53226         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53227         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53228         credit only to Jim Meyering and adjust the copyright dates.
53229         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53230         <stdlib.h>, <unistd.h>, "pathmax.h".
53231         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53232         (INITIAL_BUFFER_SIZE): Remove.
53233         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53234
53235 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53236
53237         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53238         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53239         Use the _ONCE methods, for efficiency.
53240         Check for fcntl.h.  In test program, include <errno.h>
53241         and <fcntl.h> if available.  Remove old K&R cruft from
53242         test program.  Check for common errors in GNU/Linux,
53243         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53244         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53245         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53246         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53247         name accordingly.
53248         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53249         accommodate new getcwd.c.
53250         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53251         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53252         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53253         that's all we need now.
53254
53255 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53256
53257         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53258         argp-parse.c depends on getopt internals, that means we should
53259         always use our getopt, to be on the safe side.
53260         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53261         order not to spoil the result of an eventual previous invocation
53262         of gl_GETOPT_SUBSTITUTE.
53263
53264 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53265
53266         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53267         redefinition warnings. To avoid them, include the defines
53268         in `#if !defined __need_getopt ... #endif'. The only place
53269         where __getopt_argv_const is used is in definitions
53270         of getopt_long and getopt_long_only below, which are as well
53271         protected by `#ifndef __need_getopt'.
53272         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53273         __need_getopt after including <stdio.h> and <unistd.h> These
53274         headers might have defined it.
53275
53276 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53279
53280 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53281
53282         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53283         (futimens): New function, which uses futimes if available.
53284         (futimens, utimens): Support timespec==NULL, with same semantics
53285         as utime and utimens.
53286         * lib/utimens.h (futimens): New decl.
53287
53288 2004-11-23  Jim Meyering  <jim@meyering.net>
53289
53290         * lib/getopt_.h: Remove trailing blanks.
53291
53292 2004-11-23  Jim Meyering  <jim@meyering.net>
53293
53294         * lib/__fpending.c: Add comment.
53295
53296 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * modules/canonicalize (Depends-on): Add xreadlink.
53299         Problem reported by James Youngman.
53300
53301 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53302
53303         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53304         New macros.
53305         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53306         optopt): Use them instead of invoking ## directly; otherwise, the
53307         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53308
53309 2004-11-19  Bruno Haible  <bruno@clisp.org>
53310
53311         * lib/strtok_r.c: Move comments from here...
53312         * lib/strtok_r.h: ... to here.
53313
53314 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53317         implementations that mishandle size_t overflow.
53318
53319 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53322         might fail.  Problem reported by Yoann Vandoorselaere.
53323         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53324         implementations that mishandle size_t overflow.
53325
53326 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         * modules/canon-host (Depends-on): Add strdup.
53329
53330 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53331
53332         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53333
53334 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * lib/canon-host.c: Include "strdup.h".
53337         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53338         Use strdup instead of malloc/strcpy to duplicate strings.
53339
53340         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53341         (human_space_before_unit): New constant.
53342         * lib/human.c (human_readable): Support it.
53343
53344         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53345         (xgetcwd): Set errno correctly when failing.
53346         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53347         the failure is actually due to a PATH_MAX problem.
53348
53349         Further getopt changes to make it more likely that glibc will
53350         buy the changes back.
53351         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53352         (getopt): Use it, so to preserve glibc semantic
53353         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53354         when compiling for libc.
53355         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53356         (getopt_long, getopt_long_only): Use it.
53357
53358         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53359         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53360         (getopt): Argv is now char * const *, as per standard.
53361         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53362         not char *__getopt_argv_const *.
53363         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53364         _getopt_long_only_r): Likewise.
53365         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53366         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53367         _getopt_long_r, _getopt_long_only_r): Likewise.
53368         * lib/getopt_.h (__getopt_argv_const): Remove.
53369         (getopt): Argv is now char * const *, as per standard.
53370
53371         * lib/getdate.y (tORDINAL): New token.
53372         (day, relunit): Allow it for relative times.
53373         (relative_time_table): Use tORDINAL for ordinals.
53374
53375 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53376
53377         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53378         Document that "second" isn't allowed as an ordinal number.
53379
53380 2004-11-16  Jim Meyering  <jim@meyering.net>
53381
53382         * modules/closeout (Depends-on): Add fpending.
53383
53384 2004-11-15  Jim Meyering  <jim@meyering.net>
53385
53386         * lib/closeout.c: Include "__fpending.h" once again.
53387         Include <stdbool.h>.
53388         (close_stdout): Don't fail just because stdout was closed initially,
53389         since some programs don't write to stdout in the normal course of
53390         operation (other than --version and --help), and we don't want this
53391         function to make e.g. `touch file >&-' fail.
53392         But do fail if it was closed and someone has tried to write to it.
53393         E.g., `printf foo >&-' must fail.
53394
53395 2004-11-13  Jim Meyering  <jim@meyering.net>
53396
53397         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53398
53399 2004-11-12  Simon Josefsson  <jas@extundo.com>
53400
53401         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53402         small doc fix is still pending.
53403
53404 2004-11-11  Simon Josefsson  <jas@extundo.com>
53405
53406         * modules/strtok_r: New file.
53407
53408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53409         strtok_r.
53410
53411 2004-11-11  Simon Josefsson  <jas@extundo.com>
53412
53413         * m4/strtok_r.m4: New file.
53414
53415         * m4/getopt.m4: Replace opterr.
53416
53417 2004-11-11  Simon Josefsson  <jas@extundo.com>
53418
53419         * lib/strtok_r.h, strtok_r.c: New file.
53420
53421 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53424         of replacing opterr, getopt, etc.  This should handle the
53425         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53426
53427 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53428
53429         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53430         we can stop lying to compilers about the constness of argv when we
53431         are compiled outside glibc.
53432         (getopt, getopt_long, getopt_long_only): Use it.
53433         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53434         _getopt_internal, getopt): Likewise.
53435         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53436         _getopt_long_only_r): Likewise.
53437         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53438         _getopt_long_r, _getopt_long_only_r): Likewise.
53439
53440         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53441         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53442         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53443         the other external symbols.
53444         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53445         declaration, since the above renaming now works around collisions.
53446
53447 2004-11-11  Jim Meyering  <jim@meyering.net>
53448
53449         * lib/linebreak.c: Remove trailing blanks.
53450         * lib/alloca_.h: Likewise.
53451         * lib/acosl.c: Likewise.
53452         * lib/euidaccess.c: Likewise.
53453         * lib/allocsa.h: Likewise.
53454
53455 2004-11-10  Simon Josefsson  <jas@extundo.com>
53456
53457         * m4/getaddrinfo.m4: New file.
53458
53459 2004-11-10  Simon Josefsson  <jas@extundo.com>
53460
53461         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53462
53463 2004-11-10  Simon Josefsson  <jas@extundo.com>
53464
53465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53466         getaddrinfo.
53467
53468         * modules/getaddrinfo: New file.
53469
53470 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53471
53472         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53473
53474 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53475
53476         * lib/mktime.c (SHR): New macro, which is a portable
53477         substitute for >> that should work even on Crays.
53478         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53479         Problem reported by Mark D. Baushke in
53480         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53481         * lib/getdate.y (SHR): Likewise.
53482         (tm_diff): Use it.
53483         * lib/strftime.c (SHR): Likewise.
53484         (tm_diff): Use it.
53485         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53486         quote_these_too, so that right shifts are well defined.  All uses
53487         changed.
53488
53489 2004-11-10  Jim Meyering  <jim@meyering.net>
53490
53491         Ensure that no close failure goes unreported.
53492         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53493         return early when it seems there's nothing to flush.
53494         Don't include __fpending.h.
53495
53496 2004-11-10  Jim Meyering  <jim@meyering.net>
53497
53498         * modules/closeout (Depends-on): Remove fpending.
53499
53500 2004-11-10  Jim Meyering  <jim@meyering.net>
53501
53502         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53503
53504 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53507         gl_FUNC_STRFTIME.
53508         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53509         and AC_REQUIRE when possible, to avoid duplicate checks.
53510         Check for <wchar.h>.
53511
53512 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53515
53516 2004-11-09  Bruno Haible  <bruno@clisp.org>
53517
53518         * m4/sockpfaf.m4: New file.
53519
53520 2004-11-05  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53523         Reported by Mark D. Baushke <mdb@cvshome.org>.
53524
53525 2004-11-04  Bruno Haible  <bruno@clisp.org>
53526
53527         2004-09-11  Bruno Haible  <bruno@clisp.org>
53528                 * allocsa.valgrind: New file.
53529         2004-02-06  Bruno Haible  <bruno@clisp.org>
53530                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53531                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53532                 Reported by Christopher Seip <chris.seip@hp.com>.
53533
53534 2004-11-04  Bruno Haible  <bruno@clisp.org>
53535
53536         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53537         (Makefile.am): Distribute it.
53538
53539 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53542         with errno == ERANGE if the buffer is too small.
53543         Problem reported by Mark D. Baushke.
53544
53545 2004-11-03  Albert Chin  <china@thewrittenword.com>
53546             Paul Eggert  <eggert@cs.ucla.edu>
53547
53548         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53549         equivalent, substitute $ac_type for equivalent type rather than
53550         blindly using uint32_t *always* which won't work if uint32_t is not
53551         available.  Define _UINT32_T to work around typedef of uint32_t if
53552         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53553         2.5.1.
53554
53555 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * m4/jm-macros.m4: Sync from coreutils.
53558         (gl_MACROS): Check for mbrlen, for pathchk.
53559         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53560
53561 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53562
53563         * lib/xreadlink.c (MAXSIZE): New macro.
53564         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53565         size does not exceed MAXSIZE.  Avoid cast.
53566         As suggested by Mark D. Baushke in
53567         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53568         if readlink fails with buffer size just under MAXSIZE, try again
53569         with MAXSIZE.
53570
53571 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53574
53575 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53576         and  Paul Eggert  <eggert@cs.ucla.edu>
53577
53578         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53579         (get_date): Overparenthesize to avoid GCC warning.
53580
53581 2004-11-02  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53584         returns void.
53585
53586 2004-11-02  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53589         function returns void.
53590
53591 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53594         fflush_unlocked, flockfile, funlockfile, funlockfile,
53595         fputs_unlocked, putc_unlocked.
53596
53597 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53600         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53601         already declared.
53602
53603 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * modules/getdate (Files): Add doc/getdate.texi.
53606         (Depends-on): Add setenv, xalloc.
53607
53608 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         * lib/getdate.y: Add support for TZ="foo" within a date string.
53611         Fix some bugs near time_t boundaries.  Reject dates with
53612         out-of-range components, e.g., "Sept 31".
53613         Include <stdlib.h>, "setenv.h", "xalloc.h".
53614         (ISDIGIT_LOCALE): Remove; unused.
53615         Note that the TZ and time functions used here are not reentrant.
53616         (mktime_ok, get_tz): New functions.
53617         (TZBUFSIZE): New constant.
53618         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53619         This requires that we sometimes generate our own TZ="XXX..." setting.
53620
53621 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         * doc/getdate.texi: New file, from coreutils with modifications for
53624         the new TZ parsing.
53625
53626 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53627
53628         * lib/mktime.c (not_equal_tm): Remove redundant check.
53629
53630 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53631
53632         * modules/regex (lib_SOURCES): Add regex.c.
53633         Reported by James Youngman in
53634         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53635
53636 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * lib/getdate.y: Use Bison 1.875 features, and some minor
53639         code cleanups.  This change does not affect semantics.
53640         Don't include <stdlib.h>; no longer needed.
53641         Don't include unlocked-io.h; only the "#if TEST" code uses
53642         stdio, and performance isn't crucial there.
53643         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
53644         Bison 1.875 features as described below.
53645         All uses of "PC." replaced by "pc->".
53646         (YYSTYPE): Add a forward declaration.
53647         (yylex, yyerror): Use full prototypes in forward decls.
53648         Use "%pure-parser" rather than obsolescent "%pure_parser".
53649         Use %parse-param and %lex-param instead of obsolescent
53650         YYPARSE_PARAM and YYLEX_PARAM.
53651         (meridian_table, month_and_day_table, time_units_table,
53652         relative_time_table, time_zone_table, military_table,
53653         lookup_zone, lookup_word, get_date):
53654         Use NULL instead of 0 where appropriate.
53655         (to_hour): Avoid abort (), to avoid a dependency on
53656         stdlib.h.
53657         (yyerror, yylex): Now accepts parser_control * arg.
53658         (main) [TEST]: Use '\0' rather than 0 for char.
53659
53660 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53663
53664 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53667         It's now the caller's responsibility to handle the case where
53668         !HAVE_GETPAGESIZE && !defined getpagesize.
53669
53670         * lib/mktime.c (leapyear): Arg is long int, not int.
53671
53672 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53673
53674         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53675
53676 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53679         missing.  Problem reported by James Youngman.
53680
53681 2004-10-16  Simon Josefsson  <jas@extundo.com>
53682
53683         * gnulib-tool: Fix comments.  Fix parse problem.
53684         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53685
53686 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53687
53688         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53689         implementation of getopt_long.  Problem reported by Alexander Taler in:
53690         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53691
53692 2004-10-15  Bruno Haible  <bruno@clisp.org>
53693
53694         * gnulib-tool: Untabify. Initialize supplied_libname.
53695         (func_usage): More homogenous output.
53696         (func_modules_transitive_closure, func_modules_to_filelist,
53697         func_emit_lib_Makefile_am): New functions.
53698         (func_import): New function, extracted from big case statement. Use
53699         func_get_license, func_modules_transitive_closure,
53700         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53701         opt_lgpl. Don't use test -a, as it's not portable.
53702         (func_create_testdir): Use func_modules_transitive_closure,
53703         func_modules_to_filelist, func_emit_lib_Makefile_am.
53704
53705 2004-10-15  Bruno Haible  <bruno@clisp.org>
53706
53707         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53708
53709 2004-10-15  Bruno Haible  <bruno@clisp.org>
53710
53711         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53712         the portions belonging to each module.
53713         Suggested by Derek Robert Price <derek@ximbiot.com>.
53714
53715 2004-10-12  Simon Josefsson  <jas@extundo.com>
53716
53717         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53718         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53719         to real functions.
53720
53721 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53722
53723         * modules/vsnprintf: New file.
53724
53725 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53726
53727         * m4/vsnprintf.m4: New file.
53728
53729 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53730
53731         * lib/vsnprintf.h: New file.
53732         * lib/vsnprintf.c: New file.
53733
53734 2004-10-11  Bruno Haible  <bruno@clisp.org>
53735
53736         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53737         vsnprintf.
53738
53739 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53740
53741         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53742
53743 2004-10-07  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53746         fits into the provided buffer.
53747
53748 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * lib/diacrit.c, diacrit.h: Add GPL notice.
53751
53752         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53753         notice.
53754         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53755         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53756         This avoids a potential constant-folding bug.
53757
53758 2004-10-05  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53761         for the declaration of strsep.
53762
53763 2004-10-05  Bruno Haible  <bruno@clisp.org>
53764
53765         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53766
53767 2004-10-04  Simon Josefsson  <jas@extundo.com>
53768
53769         * modules/memmem: New file.
53770         * tests/test-memmem.c: New file.
53771         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53772
53773 2004-10-04  Simon Josefsson  <jas@extundo.com>
53774
53775         * m4/memmem.m4: New file.
53776
53777 2004-10-04  Simon Josefsson  <jas@extundo.com>
53778
53779         * lib/memmem.h: New file.
53780         * lib/memmem.c: New file, taken from glibc.
53781
53782 2004-10-04  Simon Josefsson  <jas@extundo.com>
53783
53784         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53785         '#ifdef USE_UNLOCKED_IO'.
53786
53787 2004-10-04  Simon Josefsson  <jas@extundo.com>
53788
53789         * config/srclist.txt: Add memmem from glibc.
53790
53791 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53794
53795         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53796         modules/exclude, modules/getdate, modules/getline,
53797         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53798         modules/getusershell, modules/linebuffer, modules/md5,
53799         modules/mountlist, modules/posixtm, modules/readtokens,
53800         modules/readutmp, modules/regex, modules/sha1,
53801         modules/version-etc, modules/yesno:
53802         Remove dependency on unlocked-io.
53803
53804 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53805
53806         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53807
53808         * m4/unlocked-io.m4: Add copyright notice.
53809         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53810
53811 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53812
53813         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53814         * lib/xmalloc.c (xmemdup): Likewise.
53815         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53816         XFREE): Remove these long-obsolescent macros.
53817         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53818         * lib/xstrdup.c: Remove.
53819
53820         * lib/regex.c (re_comp): Cast gettext return value to char *,
53821         Problem reported by Martin Neitzel via Mark D. Baushke.
53822
53823 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53824
53825         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53826         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53827         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53828         regex.c, sha1.c, version-etc.c, yesno.c:
53829         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53830         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53831         the includer's responsibility.
53832
53833         Sync from coreutils.
53834
53835         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53836         points to the start of a string, as the C Standard says the
53837         resulting behavior is undefined.
53838
53839         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53840         simple -> simple_backups, numbered_existing ->
53841         numbered_existing_backups, numbered -> numbered_backups
53842         to avoid shadowing problems.  All uses changed.
53843         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53844         * lib/backupfile.c (check_extension, numbered_backup):
53845         Rename locals to avoid shadowing 'basename'.
53846         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53847         once.
53848
53849         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53850         * lib/.cvsignore: Add getopt.h.
53851
53852 2004-10-04  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/README: New file.
53855         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53856         not a module.
53857
53858 2004-10-02  Jim Meyering  <jim@meyering.net>
53859
53860         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53861
53862 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53863
53864         * modules/strsep: New file.
53865
53866 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53867
53868         * m4/strsep.m4: New file.
53869
53870 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53871
53872         * lib/strsep.h: New file.
53873         * lib/strsep.c: New file.
53874
53875 2004-10-01  Simon Josefsson  <jas@extundo.com>
53876
53877         * lib/snprintf.c (snprintf): Handle size==0.
53878
53879 2004-10-01  Simon Josefsson  <jas@extundo.com>
53880             Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53883         (snprintf): Declare 'args'.
53884
53885 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53886
53887         * lib/snprintf.c: Remove comments as to why each header is needed.
53888
53889 2004-10-01  Bruno Haible  <bruno@clisp.org>
53890
53891         * MODULES.html.sh: Add strsep.
53892
53893 2004-09-30  Simon Josefsson  <jas@extundo.com>
53894
53895         * modules/snprintf: New file.
53896
53897 2004-09-30  Simon Josefsson  <jas@extundo.com>
53898
53899         * m4/snprintf.m4: New file.
53900
53901 2004-09-30  Simon Josefsson  <jas@extundo.com>
53902
53903         * lib/snprintf.h, lib/snprintf.c: New files.
53904
53905 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53906
53907         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53908         (hol_entry_help): Never translate an empty string.
53909         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53910         * lib/argp.h (OPTION_NO_TRANS): New option.
53911
53912 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53913
53914         * modules/argp (Maintainer): Replace Simon Josefsson
53915         by Sergey Poznyakoff.
53916
53917 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53920         changes merged back into glibc.
53921
53922 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53925
53926 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53927
53928         * lib/xvasprintf.c: Include xalloc.h.
53929         (xvasprintf): Use xalloc_die, not xmalloc_die.
53930
53931 2004-09-29  Bruno Haible  <bruno@clisp.org>
53932
53933         * modules/alloca-opt: New file, derived from modules/alloca.
53934         * modules/allocsa: Depend on alloca-opt instead of alloca.
53935         * modules/setenv: Likewise.
53936         * modules/vasnprintf: Likewise.
53937         * MODULES.html.sh: Add alloca-opt.
53938
53939 2004-09-28  Simon Josefsson  <jas@extundo.com>
53940
53941         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53942         LGPL, and to replace license template from GPL to LGPL.
53943
53944 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53945
53946         * modules/dummy: Change license to LGPL.
53947
53948 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53951
53952 2004-09-24  Simon Josefsson  <jas@extundo.com>
53953
53954         * modules/minmax (License): Change from GPL to LGPL.
53955
53956 2004-09-23  Simon Josefsson  <jas@extundo.com>
53957
53958         * gnulib-tool (--import): Typo.
53959
53960 2004-09-23  Simon Josefsson  <jas@extundo.com>
53961
53962         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53963
53964 2004-09-22  Bruno Haible  <bruno@clisp.org>
53965
53966         * modules/*: Add 'License' field.
53967         * gnulib-tool: Accept --extract-license option.
53968         (func_get_license): New function.
53969
53970 2004-09-21  Bruno Haible  <bruno@clisp.org>
53971
53972         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53973         Reported by Simon Josefsson.
53974
53975 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53978         gl_AC_TYPE_LONG_LONG.
53979
53980 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53983
53984 2004-09-18  Simon Josefsson  <jas@extundo.com>
53985         and  Paul Eggert  <eggert@cs.ucla.edu>
53986
53987         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53988         calls with autoreconf.  Define GL_LIB.
53989
53990 2004-09-14  Karl Berry  <karl@gnu.org>
53991
53992         * config/srclist.txt: unsync setenv.c, sigh.
53993
53994 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53995
53996         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53997         Problem reported by Bruno Haible in:
53998         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53999
54000 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54001
54002         * config/srclist.txt: Comment out argp-pvh.c.
54003
54004 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54005
54006         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54007         in case some system header has #define'd it.  Problem reported by
54008         Soeren D. Schulze in
54009         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54010
54011 2004-09-09  Karl Berry  <karl@gnu.org>
54012
54013         * regex.[ch]: delete from the root.  These were supposed to be
54014                 synced with emacs cvs, but this has not happened for about
54015                 a year, and anyway nothing else uses emacs regex.[ch].
54016                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54017                 lib/regex[.ch] is untouched.
54018
54019 2004-09-09  Bruno Haible  <bruno@clisp.org>
54020
54021         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54022
54023 2004-09-09  Bruno Haible  <bruno@clisp.org>
54024
54025         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54026         modifications.
54027         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54028
54029 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54030
54031         * modules/xvasprintf: New file.
54032         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54033
54034 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54035
54036         * lib/xvasprintf.h: New file.
54037         * lib/xvasprintf.c: New file.
54038         * lib/xasprintf.c: New file.
54039
54040 2004-09-08  Bruno Haible  <bruno@clisp.org>
54041
54042         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54043
54044 2004-09-08  Bruno Haible  <bruno@clisp.org>
54045
54046         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54047         length is > INT_MAX.
54048         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54049         more.
54050
54051 2004-09-08  Bruno Haible  <bruno@clisp.org>
54052
54053         * lib/stdint_.h: New file, taken from GNU clisp.
54054
54055 2004-09-08  Bruno Haible  <bruno@clisp.org>
54056             Oskar Liljeblad  <oskar@osk.mine.nu>
54057
54058         * modules/stdint: New file.
54059         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54060
54061 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         Import from coreutils.
54064         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54065         strings on unbounded length.  alloca's performance benefits aren't
54066         that important here.
54067         (V_STRDUP): Remove.
54068         (parse_with_separator): New function, with most of the internals
54069         of the old parse_user_spec.  Allow user to omit both user and group,
54070         for compatibility with FreeBSD.
54071         Clone only the user name, not the entire spec.
54072         Do not set *uid, *gid unless entirely successful.
54073         Avoid memory leak in some failing cases.
54074         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54075         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54076         (parse_user_spec): Rewrite to use parse_with_separator.
54077
54078 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54079
54080         * modules/userspec: Don't depend on alloca.
54081
54082 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54085
54086 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54089         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54090         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54091
54092 2004-08-16  Simon Josefsson  <jas@extundo.com>
54093
54094         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54095         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54096         Add --dry-run for --import.
54097         Let user provided command line parameters override configure.ac
54098         settings.
54099
54100 2004-08-12  Simon Josefsson  <jas@extundo.com>
54101
54102         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54103         as discussed with Paul Eggert in threads rooted at
54104         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54105         and
54106         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54107         Before, the test was empty, and relied on ELIDE_CODE in source
54108         code.)
54109         (gl_PREREQ_GETOPT): New macro.
54110         (gl_GETOPT): Use them.
54111
54112 2004-08-12  Simon Josefsson  <jas@extundo.com>
54113
54114         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54115         * lib/getopt_.h: Renamed from getopt.h.
54116
54117 2004-08-12  Simon Josefsson  <jas@extundo.com>
54118
54119         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54120         Change default library name from libfoo to libgnu.
54121         Now, if you have a configure.ac that says:
54122                 gl_SOURCE_BASE(gl)
54123                 gl_M4_BASE(gl/m4)
54124                 gl_MODULES(error getopt etcetera)
54125                 gl_INIT
54126         you can import all you need by running:
54127                 ../gnulib/gnulib-tool --import
54128
54129         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54130         (Makefile.am): Rewrite, use logic from argz.
54131         (Include): Use <getopt.h> instead of "getopt.h".
54132
54133 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54134
54135         * modules/argp (Files): Add m4/unlocked-io.m4.
54136         (Depends-on): Add extensions.
54137
54138 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54141         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54142         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54143         Check for program_invocation_name, program_invocation_short_name,
54144         flockfile, funlockfile, features.h, _getopt_long_only_r.
54145
54146 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54147
54148         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54149         its complicated substitute.
54150         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54151         and program_invocation_name.
54152         (__argp_basename) [!_LIBC]: Remove; the only use was
54153         replaced by its body.
54154         (__argp_short_program_name): Change condition from
54155         !defined __argp_short_program_name to
54156         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54157         to match argp-namefrob.h.
54158         (__argp_failure): Don't assume strerror_r returns char *.
54159         * lib/argp-parse.c (N_): Define unconditionally.
54160         (argp_default_options): Fill out initializers with 0 to avoid
54161         gcc warnings.
54162
54163 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54164
54165         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54166         getopt1.c.
54167
54168 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54169
54170         Merge from coreutils.
54171
54172         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54173
54174         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54175         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54176
54177 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54178
54179         Merge from coreutils.
54180
54181         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54182         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54183         for Reliant Unix 5.43.
54184
54185         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54186         (union fooround): Use uintmax_t, not long int.
54187         The rest is a merge from libc:
54188         [defined _LIBC]: Include <shlib-compat.h>.
54189         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54190
54191         * lib/settime.c (settime): Recode to avoid warning with
54192         Sun Forte C 6U2.
54193
54194         * lib/strverscmp.c: Convert to UTF-8.
54195
54196 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54199         m4/uintmax_t.m4.
54200
54201 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * modules/xalloc-die: New file.
54204         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54205
54206         * modules/md5 (Files): Add m4/uint32_t.m4.
54207         * modules/sha1: Renamed from modules/sha.
54208         (Files):
54209         Rename lib/sha.h to lib/sha1.h.
54210         Rename lib/sha.c to lib/sha1.c.
54211         Rename m4/sha.m4 to m4/sha1.m4.
54212         (lib_SOURCES): Likewise.
54213         (configure.ac): Rename gl_SHA to gl_SHA1.
54214         (Include): sha.h -> sha1.h.
54215
54216 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54217
54218         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54219         * m4/sha1.m4: Renamed from sha.m4.
54220         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54221
54222 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * lib/obstack.h (obstack_empty_p):
54225         Don't assume that chunk->contents is suitably aligned.
54226         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54227         Likewise. Problem reported by Benno in
54228         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54229
54230         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54231         readable.  This could be improved further but it'd take some work.
54232
54233 2004-08-08  Simon Josefsson  <jas@extundo.com>
54234
54235         * modules/xgethostname (Depends-on): Remove exit and error (not
54236         used).
54237
54238         * modules/getpass-gnu: Add getpass.h.
54239         (Depends-on): Add stdbool.
54240         * modules/getpass: Add getpass.h.
54241
54242 2004-08-08  Simon Josefsson  <jas@extundo.com>
54243
54244         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54245         Check getpass declaration.
54246
54247 2004-08-08  Simon Josefsson  <jas@extundo.com>
54248
54249         * lib/xgethostname.c: Don't include error.h (not used).
54250
54251         * lib/getpass.h: Add.
54252         * lib/getpass.c: Include getpass.h first.
54253
54254 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54255
54256         * lib/xalloc-die.c: New file.
54257         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54258         All uses removed.
54259         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54260         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54261         xalloc-die.c.
54262         (_, N_, xalloc_die): Move to xalloc-die.c.
54263         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54264         so that we needn't mess with xalloc_msg_memory_exhausted.
54265
54266         * lib/sha1.h: Renamed from sha.h.
54267         (SHA1_H): Renamed from _SHA_H.
54268         (sha1_ctx): Renamed from sha_ctx.
54269         (sha1_init_ctx): Renamed from sha_init_ctx.
54270         (sha1_process_block): Renamed from sha_process_block.
54271         (sha1_process_bytes): Renamed from sha_process_bytes.
54272         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54273         (sha1_read_ctx): Renamed from sha_read_ctx.
54274         (sha1_stream): Renamed from sha_stream.
54275         (sha1_buffer): Renamed from sha_buffer.
54276         * lib/sha1.c: Likewise; renamed from sha.c.
54277         Do not include <sys/types.h>.
54278         Include <stddef.h> rather than <stdlib.h>.
54279
54280 2004-08-08  Bruno Haible  <bruno@clisp.org>
54281
54282         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54283         FILESYSTEM_PREFIX_LEN.
54284         * lib/progreloc.c: Likewise.
54285         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54286
54287 2004-08-06  Simon Josefsson  <jas@extundo.com>
54288
54289         * modules/progname (Depends-on): Don't depend on stdbool.
54290
54291 2004-08-06  Simon Josefsson  <jas@extundo.com>
54292
54293         * modules/getsubopt: New file.
54294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54295         getsubopt.
54296
54297 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54298
54299         More merge from coreutils.
54300
54301         * m4/utimens.m4, m4/utimecmp.m4: New files.
54302         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54303         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54304         prereq.m4, sha.m4: Import changes from coreutils.
54305
54306 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54307
54308         More merge from coreutils.
54309         * modules/raise, modules/readtokens0, modules/utimens:
54310         * modules/utimecmp, module/xnanosleep: New files.
54311         * modules/strftime: Add lib/strftime.h.
54312         Change include from <time.h> to "strftime.h".
54313         * modules/yesno: Add lib/yesno.h.
54314         * modules/backupfile: Remove lib/addext.c.
54315         * modules/euidaccess: Add stat-macros.h.
54316         * modules/canonicalize, modules/euidaccess,
54317         modules/filemode, modules/lchown, modules/makepath,
54318         modules/rmdir, modules/stat: Likewise.
54319
54320 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54321
54322         Merge from tar.
54323         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54324         SIZE_MAX is a valid preprocessor constant.
54325         (__argp_basename): Change from "#ifndef _LIBC"
54326         to "#ifndef __argp_short_program_name", so that
54327         we don't compile these functions for tar.
54328
54329         More merges from coreutils.
54330         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54331         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54332         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54333         * lib/addext.c: Remove; no longer needed.
54334         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54335         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54336         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54337         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54338         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54339         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54340         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54341         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54342         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54343         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54344         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54345         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54346         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54347         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54348         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54349         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54350         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54351         Import changes from coreutils.
54352
54353 2004-08-05  Simon Josefsson  <jas@extundo.com>
54354
54355         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54356
54357 2004-08-05  Simon Josefsson  <jas@extundo.com>
54358
54359         * m4/getsubopt.m4: New file.
54360
54361 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         Merge from coreutils.
54364
54365         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54366         * m4/getcwd-path-max.m4: New files.
54367
54368         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54369         FILESYSTEM_PREFIX_LEN ->
54370         FILE_SYSTEM_PREFIX_LEN.
54371         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54372         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54373         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54374         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54375
54376         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54377         prerequisite modules now handle the DOS stuff.
54378         Don't check for unistd.h.
54379
54380 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54381
54382         Merge from coreutils.
54383
54384         * lib/.gdb-history: Remove; this doesn't belong here.
54385
54386         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54387         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54388         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54389         * lib/getcwd.c: New files.
54390
54391         * lib/dirname.h: Include <stdbool.h>.
54392         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54393         for consistency with POSIX terminology.  All uses changed.
54394         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54395         (strip_trailing_slashes): Use bool for booleans.
54396         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54397
54398         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54399         sometimes returns a positive errno value even when it succeeds.
54400         (print_errno_message) [!LIBC]: Fall back on strerror if
54401         __strerror_r fails.
54402
54403         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54404         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54405         (longest_relative_suffix): New function.
54406         (path_concat): Use it.  Assume first argument is not NULL.
54407         Port to DOS.  Omit redundant separators.
54408         Report an error instead of returning NULL.
54409         Use mempcpy instead of memcpy.
54410         (xpath_concat): Remove: not declared or used.
54411
54412         * lib/same.h: Include <stdbool.h>
54413         (same_name): Return bool, not int.
54414         * lib/same.c (same_name): Likewise.
54415         (errno): Don't declare; we assume C89 or better now.
54416
54417         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54418         if not already defined.
54419
54420         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54421         * lib/dup-safer.c (errno): Likewise.
54422
54423 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         Merge from coreutils.
54426         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54427         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54428         * modules/path-concat: Don't depend on strdup.
54429
54430 2004-08-03  Simon Josefsson  <jas@extundo.com>
54431
54432         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54433         * lib/progname.h: Don't include stdbool.h.
54434
54435 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54438         * MODULES.html.sh (func_all_modules): Remove fatal.
54439
54440 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54443
54444 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54447         working.
54448
54449 2004-08-02  Simon Josefsson  <jas@extundo.com>
54450
54451         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54452         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54453         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54454
54455 2004-08-01  Simon Josefsson  <jas@extundo.com>
54456
54457         * lib/xgetdomainname.c: Include stdlib.h, for free().
54458
54459 2004-07-19  Bruno Haible  <bruno@clisp.org>
54460
54461         * MODULES.html.sh (func_all_modules): Add dummy.
54462
54463 2004-07-16  Simon Josefsson  <jas@extundo.com>
54464
54465         * modules/dummy: New file.
54466
54467 2004-07-16  Simon Josefsson  <jas@extundo.com>
54468
54469         * lib/dummy.c: New file.
54470
54471 2004-07-16  Bruno Haible  <bruno@clisp.org>
54472
54473         * lib/backupfile.h: Add extern "C" for C++.
54474         * lib/closeout.h: Likewise.
54475         * lib/copy-file.h: Likewise.
54476         * lib/findprog.h: Likewise.
54477         * lib/full-write.h: Likewise.
54478         * lib/pathname.h: Likewise.
54479         * lib/progname.h: Likewise.
54480         * lib/stpcpy.h: Likewise.
54481         * lib/stpncpy.h: Likewise.
54482         * lib/strcase.h: Likewise.
54483         * lib/strstr.h: Likewise.
54484         * lib/xalloc.h: Likewise.
54485
54486         * lib/mbswidth.h: Add extern "C" for C++.
54487         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54488
54489 2004-07-13  Robert Millan  <robertmh@gnu.org>
54490
54491         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54492
54493 2004-07-09  Simon Josefsson  <jas@extundo.com>
54494
54495         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54496         failed without this.)
54497
54498 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54499
54500         * modules/chown (Files): Add lib/fchown-stub.c, since
54501         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54502
54503 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54504
54505         * lib/fchown-stub.c: New file.
54506
54507 2004-06-24  Jim Meyering  <jim@meyering.net>
54508
54509         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54510
54511 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * modules/argz: Omit "#include".
54514
54515         * MODULES.html.sh (func_all_modules): Add calloc, to match
54516         2004-06-01 addition of calloc module.
54517
54518 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54519
54520         * m4/argz.m4: New file, which is autoupdated from libtool.
54521
54522 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54523
54524         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54525         libtool.
54526
54527 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * config/srclist-update: Don't insist on "USA." before the
54530         close-comment, as libtool omits the period and puts the */ on a
54531         separate line.
54532         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54533         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54534
54535 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54536
54537         * modules/argz: New file.
54538         * MODULES.html.sh (func_all_modules): Add argz.
54539
54540 2004-06-12  Jim Meyering  <jim@meyering.net>
54541         and  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         * modules/hash (Files): Add lib/xalloc.h.
54544         * modules/pipe (Depends-on): Add wait-process.
54545         * modules/stat (Depends-on): Add xalloc.
54546         * modules/userspec (Files): Add lib/userspec.h.
54547         * modules/xstrto
54548
54549         Upgrade from gettext-0.13.
54550         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54551         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54552         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54553
54554 2004-06-10  Jim Meyering  <jim@meyering.net>
54555
54556         * lib/calloc.c: New file.
54557
54558 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * lib/getdate.y (yylex): Allow space between sign and number.
54561         Problem reported by Dan Jacobson.
54562
54563 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54564
54565         Merge from coreutils CVS.
54566
54567         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54568         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54569         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54570         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54571         xstrtol.m4: Fix copyright date and/or serial number.
54572
54573         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54574         See if we need an fchown replacement.
54575         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54576         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54577         and use the replacement function if we detect either defect.
54578
54579         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54580         gl_UTIMECMP.
54581
54582 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54583         and  Jim Meyering  <jim@meyering.net>
54584
54585         Merge from coreutils CVS.
54586
54587         * lib/stat-macros.h: New file, with contents from file-type.h
54588         and coreutils' system.h.
54589         * lib/file-type.c: Include "stat-macros.h".
54590         * lib/file-type.h (file_type): Move all macro definitions to new file,
54591         stat-macros.h.
54592
54593         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54594         Wrap old code with this conditional.
54595         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54596         function that does not dereference symlinks.
54597         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54598
54599         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54600         dependency problems.
54601         (xreadlink): Accept new arg SIZE, for efficiency.
54602         All decls and uses changed.
54603         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54604
54605         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54606         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54607
54608         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54609         sysexits.h.
54610
54611 2004-06-01  Jim Meyering  <jim@meyering.net>
54612
54613         * m4/calloc.m4: New file.
54614
54615 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54618         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54619         Also, fix a typo in a diagnostic.
54620
54621 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54622
54623         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54624         or AC_FUNC_REALLOC.
54625
54626 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54629         macros to be defined.
54630         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54631         the allocator returns NULL because the requested size is zero.
54632
54633 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54634
54635         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54636         var.  Add comment explaining why libc still defines it.  This
54637         merges the following patch from glibc:
54638         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
54639
54640 2004-05-20  Andreas Schwab  <schwab@suse.de>
54641
54642         * m4/free.m4: Replace free if it not known to work, not the other
54643         way round.
54644
54645 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
54648         present in glibc since revision 1.1 of this file.
54649         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
54650         obstack_alignment_mask, obstack_alloc, obstack_base,
54651         obstack_blank, obstack_blank_fast, obstack_chunk_size,
54652         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
54653         obstack_grow0, obstack_init, obstack_int_grow,
54654         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
54655         obstack_next_free, obstack_object_size, obstack_ptr_grow,
54656         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54657         nonexistent functions.
54658
54659 2004-05-18  Karl Berry  <karl@gnu.org>
54660
54661         * config/srclist.txt: break link for vasnprintf.c.
54662
54663 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         Port obstack to the AS/400, where pointers are 16 bytes wide and
54666         you cannot cast an integer to a valid pointer.  This patch is
54667         currently waiting to be integrated into glibc; see
54668         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54669
54670         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54671         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54672         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54673         (struct obstack): temp member is now a union of a pointer and
54674         an integer, instead of an integer.  All integer uses changed.
54675         This does not affect the physical layout of struct obstack,
54676         except on hosts (like the AS/400) where the size or alignment of
54677         void * is greater than that of ptrdiff_t.
54678         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54679         __STDC__)]: Store temporary in pointer member of union, not
54680         integer member.
54681         * lib/obstack.c: Include <stddef.h>, for offsetof.
54682         (struct fooalign): Remove; it doesn't need a name.
54683         (union fooround): Change double to long double, and add void *.
54684         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54685         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54686         not a macro.  Hence the values are always int; so remove all
54687         casts-to-int in uses.
54688
54689 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54690
54691         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54692         we can get this patch merged into glibc.
54693
54694 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54695             Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         * m4/argp: Depend on alloca.
54698
54699 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54700             Paul Eggert  <eggert@cs.ucla.edu>
54701
54702         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54703         freecoding.
54704
54705 2004-05-17  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54708         precision that consists of a '.' followed by an empty digit string.
54709         Patch by Tor Lillqvist <tml@iki.fi>.
54710
54711 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54714         for backward compatibility with older code.  We need our own
54715         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54716         it under some other name, and our alloca.h will define it.
54717
54718 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54719             Derek Price  <derek@ximbiot.com>
54720
54721         * lib/alloca.c: Include <alloca.h>, to get our interface.
54722         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54723         include <alloca.h> first.  Use C89 prototype for alloca; this
54724         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54725         Use #elif for simplicity, since we can assume C89 now.
54726         Don't try to source the system alloca.h since it will not be found
54727         and to prevent recursively including its replacement.
54728         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54729         * lib/regex.c: Likewise.
54730
54731 2004-05-16  Derek Price  <derek@ximbiot.com>
54732             Paul Eggert  <eggert@cs.ucla.edu>
54733
54734         getline cleanup.  This changes the getndelim2 API: both order of
54735         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54736         no delimiter).
54737
54738         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54739         interface does that.
54740         (getline): Always use getdelim, so that we don't have two
54741         copies of this code.
54742         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54743         if available.
54744         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54745         (GETNDELIM2_MAXIMUM): New macro.
54746         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54747         instead of the old practice of delim2==0.  All callers changed.
54748         Return -1 on overflow, instead of returning junk.
54749         Do not set *linesize unless allocation succeeds.
54750         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54751         that we include sys/types.h.
54752         * lib/getnline.h: Likewise.
54753         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54754         (getndelim2): Reorder arguments.
54755         * lib/getnline.c (getnline, getndelim):
54756         Don't discard the NMAX argument.
54757         (getnline): Invoke getndelim, to avoid code duplication.
54758         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54759         of (size_t) -1 by callers of the getnline family.
54760
54761 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54764         Check for gettimeofday.
54765         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54766         Check for settimeofday, stime.
54767
54768 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54769
54770         * lib/nanosleep.c (suspended): Change its type from int to
54771         sig_atomic_t volatile.
54772         (first_call): Make it private to rpl_nanosleep, and have it
54773         be zero initially as that's a bit faster.
54774         (my_usleep): Round up fractional times instead of truncating them,
54775         as this is the usual meaning for 'sleep'.
54776
54777         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54778         doesn't work.
54779         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54780         (ENOSYS): Define if not defined.
54781         (settime): Fall back on stime if it exists and settimeofday fails.
54782         But don't bother with fallbacks if a method fails with errno == EPERM.
54783
54784 2004-05-11  Jim Meyering  <jim@meyering.net>
54785
54786         Prior to this change, the save_cwd caller required read access to the
54787         current directory on most systems (ones with the fchdir function).
54788
54789         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54790         fails, try write-only, and finally, resort to using xgetcwd.
54791
54792 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54793
54794         * lib/obstack.c, obstack.h: Import changes from libc.
54795
54796 2004-04-28  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54799         also implicitly appends .exe to executables.
54800         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54801         accepts Windows pathnames.
54802         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54803         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54804         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54805         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54806         Reported by Derek Robert Price <derek@ximbiot.com>.
54807
54808 2004-04-21  Karl Berry  <karl@gnu.org>
54809
54810         * config/srclist.txt (localcharset.c): break sync.
54811
54812 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54813
54814         * m4/host-os.m4: Add a copyright notice.
54815
54816 2004-04-20  Jim Meyering  <jim@meyering.net>
54817
54818         Change UTILS_ to gl_ in AC_DEFINE'd names.
54819         Change utils_- and jm_-prefixed variables, too.
54820         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54821         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54822         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54823
54824         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54825         Don't emit trailing blanks.
54826         Also rename jm_-prefixed variables to have gl_ prefix.
54827
54828         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54829         Also rename jm_-prefixed variables to have gl_ prefix.
54830
54831         * m4/jm-macros.m4: Reflect the renamings.
54832         * m4/prereq.m4: Likewise.
54833
54834 2004-04-20  Jim Meyering  <jim@meyering.net>
54835
54836         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54837         memory.
54838
54839 2004-04-20  Jim Meyering  <jim@meyering.net>
54840             Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54843         memory when realloc fails.
54844
54845 2004-04-19  Jim Meyering  <jim@meyering.net>
54846
54847         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54848         now that readutmp.c may call `free (0)'.
54849
54850 2004-04-19  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54853         * m4/inttypes_h.m4: Likewise.
54854         * m4/stdint_h.m4: Likewise.
54855         * m4/intmax_t.m4: Likewise.
54856         * m4/uintmax_t.m4: Likewise.
54857
54858 2004-04-18  Jim Meyering  <jim@meyering.net>
54859
54860         * m4/prereq.m4: Don't forbid jm_ prefix.
54861
54862         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54863         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54864         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54865         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54866         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54867         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54868         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54869         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54870         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54871         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54872         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54873         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54874         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54875         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54876         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54877         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54878         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54879         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54880         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54881
54882 2004-04-18  Jim Meyering  <jim@meyering.net>
54883
54884         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54885         failure, don't leak memory and do call END_UTMP_ENT.
54886
54887 2004-04-16  Jim Meyering  <jim@meyering.net>
54888
54889         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54890         coreutils' stat program.
54891         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54892
54893 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54894
54895         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54896         C89.
54897         (CHAR_BIT): Remove, since we assume C89.
54898         Include <stdint.h> if available, as per current Autoconf CVS advice.
54899
54900 2004-03-31  Jim Meyering  <jim@meyering.net>
54901
54902         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54903         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54904         * m4/xalloc.m4: Likewise.
54905
54906 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54907
54908         Merge from coreutils.
54909
54910         * m4/inttostr.m4: New file.
54911         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54912         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54913         Require gl_CLOCK_TIME.
54914         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54915
54916 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54917
54918         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54919         not bool, to be more consistent with Unix conventions.
54920         Suggested by Bruno Haible.
54921
54922         Merge from coreutils.
54923
54924         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54925         * lib/umaxtostr.c: New files.
54926
54927         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54928         the usual <time.h> dance.
54929         (get_date): Change signature to support fractional time stamps.
54930         All callers changed.
54931         * lib/getdate.y: Include "getdate.h" first, as we can now
54932         assume C89 and don't need to worry about 'const'.
54933         Similarly, include "unlocked-io.h" near start, not in middle.
54934         Include <limits.h>.
54935         (textint.value): Use long int rather than int.
54936         (textint.digits): Use size_t rather than int.
54937         (BILLION, LOG10_BILLION): New constants.
54938         (parser_control): New member rel_ns.  Members day_ordinal,
54939         time_zone, month, day, hour, minutes, rel_year, rel_month,
54940         rel_day, rel_hour, rel_minutes, rel_seconds
54941         are now long int, not int.  Member seconds is now struct timespec,
54942         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54943         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54944         not int.
54945         (%union.intval): Now long int, not int.
54946         New member timespec.
54947         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54948         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54949         (spec): Now is a timespec or an item list.
54950         (timespec, items): New nonterminals.
54951         (time, rel, relunit, number, get_date):
54952         Add support for fractional seconds.
54953         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54954         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54955         (to_hour): First arg is now long int, not int.
54956         (to_year): Returns long int, not int.
54957         Don't treat year -70 like 70.
54958         (tm_diff): Returns long int, not int.
54959         (lookup_word): Use bool instead of int when appropriate.
54960         (yylex): Use size_t for count, not int.
54961         Detect overflow when parsing large integer constants.
54962         Add support for fractions.
54963         (get_date): Make pointers 'const' if possible.
54964         Use more-portable code to detect integer overflow.
54965         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54966         Don't use ctime; it's not reliable if the year has >4 digits.
54967
54968         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54969         This is for compatibility with BSD.
54970
54971         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54972         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54973         From coreutils' system.h.
54974
54975         * lib/userspec.c: Don't include "posixver.h".
54976         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54977         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54978         compatible extension.  Simplify code by removing a boolean int
54979         that was always nonzero if a string was nonnull.
54980
54981 2004-03-30  Jim Meyering  <jim@meyering.net>
54982
54983         Merge from coreutils.
54984
54985         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54986         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54987         on some systems one must include <grp.h> before it.
54988         Reported by Christian Krackowizer.
54989
54990 2004-03-30  Jim Meyering  <jim@meyering.net>
54991
54992         Merge from coreutils.
54993
54994         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54995
54996         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54997         an empty input stream.
54998
54999         * lib/readtokens.c: Include <stdbool.h>.
55000         (readtoken): Use `size_t' rather than int/long.
55001         All callers adjusted.
55002         Use `bool' rather than `int' where appropriate.
55003         Use memset rather than an explicit loop.
55004         Use x2nrealloc rather than xrealloc.
55005         Allow the use of `\0' as a delimiter.
55006         (readtokens): Likewise.
55007         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55008
55009 2004-03-30  Jim Meyering  <jim@meyering.net>
55010
55011         * m4/realloc.m4: Remove file, since now it does no more than
55012         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55013         the `configure.ac' section of module/realloc.
55014         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55015
55016 2004-03-30  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55019         nonnull.
55020
55021 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55022
55023         Merge changes to getloadavg.c from coreutils and Emacs.
55024
55025         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55026         Define to an expression, not to the empty string.
55027         Include cloexec.h and xalloc.h.
55028         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55029         Use set_cloexec_flag rather than rolling our own.
55030         * lib/cloexec.c, lib/cloexec.h: New files.
55031
55032 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55033
55034         * m4/cloexec.m4: New file.
55035
55036 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55037
55038         * lib/getopt.h: Sync with libc CVS.
55039
55040 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55041             Bruno Haible  <bruno@clisp.org>
55042
55043         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55044         mbswidth.
55045
55046 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55047             Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/mbswidth.h: Include <wchar.h> only if
55050         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55051         <wchar.h>.
55052         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55053
55054 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55055
55056         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55057         Sync with libc CVS.
55058         * lib/getopt_int.h: New file, also synced from libc.
55059
55060 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55061
55062         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55063         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55064         Bring back getopt.c, getopt.h, getopt1.c.
55065
55066 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55067
55068         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55069         All uses changed.  Check for sa_sigaction member; this fixes
55070         a bug first reported by Jason Andrade in
55071         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55072
55073 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55074
55075         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55076         '#if' expressions.  Unlike the code it replaces, it does not
55077         depend on (defined _SC_PAGESIZE).  However, it does depend on
55078         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55079         first reported by Jason Andrade in
55080         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55081
55082 2004-02-25  Simon Josefsson  <jas@extundo.com>
55083
55084         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55085
55086 2004-02-25  Simon Josefsson  <jas@extundo.com>
55087
55088         * lib/strdup.h: New file.
55089         * lib/strdup.c: Include it.
55090         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55091         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55092
55093 2004-02-23  Karl Berry  <karl@gnu.org>
55094
55095         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55096         (from fencepost.gnu.org:/gd/gnuorg).
55097
55098 2004-02-23  Karl Berry  <karl@gnu.org>
55099
55100         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55101         * config/srclist.txt: add maintain/standards documents.
55102
55103 2004-02-18  Bruno Haible  <bruno@clisp.org>
55104
55105         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55106         Reported by Derek Robert Price <derek@ximbiot.com>.
55107
55108 2004-02-16  Karl Berry  <karl@gnu.org>
55109
55110         * config/mkinstalldirs, install-sh: update from automake.
55111
55112 2004-02-06  Karl Berry  <karl@gnu.org>
55113
55114         * m4/po.m4: update from gettext 0.14.1.
55115
55116 2004-02-06  Karl Berry  <karl@gnu.org>
55117
55118         * lib/config.charset: update from gettext 0.14.1.
55119
55120 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55121
55122         Add comments and code, prompted by suggestions from Bruno Haible
55123         for sh-quote.
55124         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55125         describing the enum quoting_style values.
55126         * lib/quotearg.c (quotearg_alloc): New function.
55127         (quotearg_buffer_restyled): Treat lone { and } as special.
55128         Treat = as special.  Work around bug with older shells
55129         that "see" a '\' that is really the 2nd byte of a multibyte char.
55130         Quote empty string with shell_quoting_style.
55131
55132 2004-02-03  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/pipe.m4: New file, from GNU gettext.
55135
55136 2004-02-03  Bruno Haible  <bruno@clisp.org>
55137
55138         * lib/pipe.h: New file, from GNU gettext.
55139         * lib/pipe.c: New file, from GNU gettext.
55140
55141 2004-01-27  Bruno Haible  <bruno@clisp.org>
55142
55143         * m4/execute.m4: New file, from GNU gettext.
55144
55145 2004-01-27  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/execute.h: New file, from GNU gettext.
55148         * lib/execute.c: New file, from GNU gettext.
55149         * lib/w32spawn.h: New file, from GNU gettext.
55150
55151 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55152
55153         Merge from diffutils.
55154
55155         * lib/file-type.c (file_type): Add typed memory objects.
55156         * lib/file-type.h (S_TYPEISTMO): New macro.
55157
55158         * lib/c-stack.h (c_stack_action): Remove argv argument.
55159         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55160         (die): Don't calculate message unless segv_action returns.
55161         (get_stack_location, min_address_from_argv, max_address_from_argv,
55162         volatile stack_base, volatile_stack_size): Remove.
55163         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55164         that every segmentation violation is a stack overflow.  (Ouch!)
55165         See Debian bug 136249 (still outstanding) for more info about why
55166         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55167
55168 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55169
55170         Exit-status fix from coreutils.
55171
55172         Use exit_failure consistently in place of EXIT_FAILURE,
55173         so that program exit statuses are consistent on failure.
55174
55175         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55176         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55177         * lib/argmatch.h: Comment fix to match the above.
55178         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55179         Now a macro referring to exit_failure, instead of a separate
55180         variable.  Include "exitfail.h" to get it.
55181         * lib/xstrtol.h: Include "exitfail.h".
55182         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55183
55184         * lib/long-options.c (parse_long_options): Use prototype
55185         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55186         for clarity.
55187
55188 2004-01-21  Jim Meyering  <jim@meyering.net>
55189
55190         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55191         so as not to conflict with a different-sized __mktime_internal
55192         function in GNU libc.
55193         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55194         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55195
55196 2004-01-20  Karl Berry  <karl@gnu.org>
55197
55198         * config/config.guess: update from config.
55199
55200         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55201
55202 2004-01-20  Bruno Haible  <bruno@clisp.org>
55203
55204         Safer stack allocation.
55205         * lib/setenv.c: Include allocsa.h.
55206         (alloca): Remove fallback definition.
55207         (freea): Remove macro.
55208         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55209         instead of freea.
55210
55211 2004-01-20  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/eealloc.m4: New file, from GNU gettext.
55214
55215 2004-01-20  Bruno Haible  <bruno@clisp.org>
55216
55217         * m4/allocsa.m4: New file, from GNU gettext.
55218
55219 2004-01-20  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/xallocsa.h: New file, from GNU gettext.
55222         * lib/xallocsa.c: New file, from GNU gettext.
55223
55224 2004-01-20  Bruno Haible  <bruno@clisp.org>
55225
55226         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55227
55228 2004-01-20  Bruno Haible  <bruno@clisp.org>
55229
55230         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55231         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55232         specially.
55233
55234 2004-01-20  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55237         patch.
55238
55239 2004-01-20  Bruno Haible  <bruno@clisp.org>
55240
55241         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55242
55243 2004-01-20  Bruno Haible  <bruno@clisp.org>
55244
55245         * lib/eealloc.h: New file.
55246
55247 2004-01-20  Bruno Haible  <bruno@clisp.org>
55248
55249         * lib/binary-io.h: Avoid warnings on Cygwin.
55250
55251 2004-01-20  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/allocsa.h: New file, from GNU gettext.
55254         * lib/allocsa.c: New file, from GNU gettext.
55255
55256 2004-01-18  Karl Berry  <karl@gnu.org>
55257
55258         * doc/gpl.texi, doc/lgpl.texi: new files.
55259
55260 2004-01-18  Karl Berry  <karl@gnu.org>
55261
55262         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55263         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55264
55265 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55266
55267         Merge from coreutils.
55268
55269         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55270         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55271         (gl_DEFAULT_POSIX2_VERSION): Move
55272         the documentation from 'configure' into 'config.hin',
55273         so that 'configure --help' isn't burdened by it and
55274         we don't have to worry about its formatting there.
55275         Reword the documentation so that it's more succinct
55276         and can be run together into a single paragraph.
55277         * m4/same.m4 (gl_SAME): Check for pathconf.
55278
55279 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55280
55281         Merge from coreutils.
55282
55283         * lib/posixver.c: Include posixver.h.
55284
55285         * lib/same.c: Include <stdbool.h>, <limits.h>.
55286         (_POSIX_NAME_MAX): Define if not defined.
55287         (MIN): New macro.
55288         (same_name): If file names are silently truncated, report
55289         that the file names are the same if they are the same after
55290         the silent truncation.
55291
55292         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55293         conversion function.
55294         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55295         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55296         longer needed.
55297
55298 2004-01-15  Jim Meyering  <jim@meyering.net>
55299
55300         Merge from coreutils.
55301
55302         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55303         if no library is required.
55304         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55305         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55306         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55307         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55308         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55309         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55310         value, $ac_cv_search_crypt, if it's "none required".
55311         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55312         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55313         not gl_FUNC_GETLOADAVG.
55314         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55315         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55316
55317 2004-01-15  Jim Meyering  <jim@meyering.net>
55318
55319         Merge from coreutils.
55320
55321         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55322         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55323         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55324
55325         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55326         optional configure-time default.
55327
55328         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55329
55330         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55331
55332 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55333
55334         Merge from coreutils.
55335
55336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55337         value, $ac_cv_search_nanosleep, if it's "none required".
55338
55339 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55340
55341         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55342         with like-named macro in fnmatch.c.
55343         (EXT): Use an internal constant instead.
55344
55345         Merge fnmatch patches from glibc.
55346         * lib/fnmatch.c (mbsinit): Remove define.
55347         Add libc_hidden_ver (__fnmatch, fnmatch).
55348         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55349         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55350
55351 2004-01-14  Karl Berry  <karl@gnu.org>
55352
55353         * config/install-sh: update from automake.
55354
55355 2004-01-13  Karl Berry  <karl@gnu.org>
55356
55357         * config/install-sh: update from automake.
55358
55359 2004-01-09  Karl Berry  <karl@gnu.org>
55360
55361         * config/install-sh: update from automake.
55362
55363 2004-01-05  Karl Berry  <karl@gnu.org>
55364
55365         * config/config.{sub,guess}: update from config.
55366
55367 2003-12-31  Karl Berry  <karl@gnu.org>
55368
55369         * config/depcomp: update from automake.
55370
55371 2003-12-14  Karl Berry  <karl@gnu.org>
55372
55373         * lib/config.charset: update from gettext-runtime.
55374
55375 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55376
55377         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55378         Bug reported by Alfred M. Szmidt.
55379
55380 2003-12-03  Bruno Haible  <bruno@clisp.org>
55381
55382         * m4/gettext.m4: Upgrade from gettext-0.13.
55383         * m4/po.m4: Upgrade from gettext-0.13.
55384         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55385         * m4/intmax.m4: New file, from gettext-0.13.
55386         * m4/printf-posix.m4: New file, from gettext-0.13.
55387
55388 2003-11-29  Karl Berry  <karl@gnu.org>
55389
55390         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55391
55392 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55393             Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/printf-parse.h: Don't include sys/types.h.
55396         (ARG_NONE): New macro.
55397         (char_directive): Change type of *arg_index fields to size_t.
55398         * lib/printf-parse.c: Don't include sys/types.h.
55399         (SSIZE_MAX): Remove macro.
55400         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55401         Remove unnecessary overflow check.
55402         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55403         fields.
55404
55405 2003-11-25  Bruno Haible  <bruno@clisp.org>
55406
55407         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55408
55409 2003-11-25  Bruno Haible  <bruno@clisp.org>
55410
55411         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55412         gt_TYPE_SSIZE_T.
55413
55414 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55415
55416         * modules/alloca: Remove dependency on xalloc.
55417
55418 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55419
55420         * lib/alloca.c: Remove dependency on xalloc module.
55421         (xalloc_die): Remove.
55422         (memory_full) [!defined emacs]: New macro.
55423         [!defined emacs]: Don't include xalloc.h.
55424         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55425         address arithmetic overflows.  Change datatypes a bit to avoid
55426         unnecessary casts.
55427
55428 2003-11-22  Jim Meyering  <jim@meyering.net>
55429
55430         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55431         s/size/size_t/.
55432
55433 2003-11-21  Karl Berry  <karl@gnu.org>
55434
55435         * config/config.{sub,guess}: update from config.
55436
55437 2003-11-18  Karl Berry  <karl@gnu.org>
55438
55439         * config/config.{sub,guess}: update from config.
55440
55441         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55442
55443 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55444
55445         * README: Mention that S+T cannot overflow if S is the size of
55446         an existing object and T is sufficiently small.
55447
55448 2003-11-17  Jim Meyering  <jim@meyering.net>
55449
55450         On systems without utime and without a utimes function capable of
55451         dealing with a NULL struct utimbuf* argument, this utime replacement
55452         could -- in unusual circumstances -- leak a file descriptor.
55453         * lib/utime.c: Include <unistd.h> and <errno.h>.
55454         (utime_null): Be sure to close `fd' and to preserve errno.
55455         Reported by Geoff Collyer via Arnold Robbins.
55456
55457 2003-11-17  Bruno Haible  <bruno@clisp.org>
55458
55459         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55460         (Depends-on): Add xsize.
55461
55462 2003-11-17  Bruno Haible  <bruno@clisp.org>
55463
55464         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55465
55466 2003-11-17  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/vasnprintf.c (alloca): Remove fallback definition.
55469         (freea): Remove definition.
55470         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55471         Reported by Paul Eggert.
55472
55473 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55474             Bruno Haible  <bruno@clisp.org>
55475
55476         Protect against address arithmetic overflow.
55477         * lib/printf-args.h: Include stddef.h.
55478         (arguments): Change type of field 'count' to size_t.
55479         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55480         'unsigned int' where appropriate.
55481         * lib/printf-parse.h: Include sys/types.h.
55482         (char_directive): Change type of *arg_index fields to ssize_t.
55483         (char_directives): Change type of fields 'count', max_*_length to
55484         size_t.
55485         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55486         (SSIZE_MAX): Define fallback value.
55487         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55488         instead of 'int' where appropriate. Check a_allocated, d_allocated
55489         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55490         * lib/vasnprintf.c: Include xsize.h.
55491         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55492         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55493         overflow. Avoid wraparound when converting a width or precision from
55494         decimal to binary.
55495
55496 2003-11-16  Bruno Haible  <bruno@clisp.org>
55497
55498         Update from GNU gettext.
55499         * lib/printf-parse.c: Generalize to it can be compiled for wide
55500         strings.
55501         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55502         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55503         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55504         SNPRINTF): New macros.
55505         Don't include <alloca.h> if the file is used inside libintl.
55506         (local_wcslen): New function, for Solaris 2.5.1.
55507         (VASNPRINTF): Use it instead of wcslen.
55508
55509 2003-11-16  Bruno Haible  <bruno@clisp.org>
55510
55511         * lib/xsize.h (xmax): New function.
55512         (xsum, xsum3, xsum4): Declare as "pure" functions.
55513
55514 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55515
55516         * modules/xalloc (Files): Undo latest change, since xalloc.h
55517         no longer needs SIZE_MAX or PTRDIFF_MAX.
55518
55519 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55520
55521         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55522         gl_PTRDIFF_MAX.
55523
55524 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55525
55526         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55527         "return", to pacify some unknown compiler.  Problem reported
55528         by Joerg Schilling.
55529
55530 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55531
55532         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55533         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55534         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55535         heuristic is just as accurate as far as we know, and it removes a
55536         dependency on size_max.m4 and ptrdiff_max.m4.
55537
55538 2003-11-11  Bruno Haible  <bruno@clisp.org>
55539
55540         * modules/xsize (Files): Add m4/size_max.m4.
55541         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55542
55543 2003-11-11  Bruno Haible  <bruno@clisp.org>
55544
55545         * m4/size_max.m4: New file.
55546         * m4/ptrdiff_max.m4: New file.
55547         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55548         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55549         (gl_XALLOC): Invoke it.
55550
55551 2003-11-11  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55554         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55555         defined.
55556
55557 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55558
55559         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55560         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55561         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55562         From Bruno Haible.
55563         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55564         not (size_t) -1, since it's defined here.
55565
55566 2003-11-09  Karl Berry  <karl@gnu.org>
55567
55568         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55569
55570 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55571
55572         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55573         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55574         Reject sizes of exactly SIZE_MAX bytes.
55575         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55576         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55577
55578 2003-11-05  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55581         SIZE_MAX defined in <limits.h> on Solaris.
55582
55583 2003-11-04  Jim Meyering  <jim@meyering.net>
55584
55585         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55586         variable names, rather than @VAR@.
55587         * modules/poll: Likewise.
55588
55589 2003-11-04  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/xsize: New file.
55592         * modules/linebreak: Depend on xsize.
55593         * MODULES.html.sh (func_all_modules): Add xsize.
55594
55595 2003-11-04  Bruno Haible  <bruno@clisp.org>
55596
55597         * m4/xsize.m4: New file.
55598
55599 2003-11-04  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/xsize.h: New file.
55602         * lib/linebreak.c: Include xsize.h.
55603         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55604         argument for overflow.
55605         Suggested by Paul Eggert.
55606
55607 2003-11-03  Karl Berry  <karl@gnu.org>
55608
55609         * config/config.{guess,sub}: update from config.
55610
55611 2003-11-03  Jim Meyering  <jim@meyering.net>
55612
55613         * modules/userspec (lib_SOURCES): Add userspec.h.
55614         (Include): Add "userspec.h".
55615         Improve description.
55616
55617 2003-11-03  Jim Meyering  <jim@meyering.net>
55618
55619         * lib/userspec.c: Include "userspec.h".
55620         * lib/userspec.h: New file.
55621
55622 2003-11-03  Bruno Haible  <bruno@clisp.org>
55623
55624         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55625
55626 2003-11-03  Bruno Haible  <bruno@clisp.org>
55627
55628         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55629         available, to avoid (extremely rare) race condition.
55630         Suggested by Paul Eggert.
55631
55632 2003-11-02  Karl Berry  <karl@gnu.org>
55633
55634         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55635
55636 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55637
55638         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
55639         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
55640         (read_filesystem_list): Set and use me_type_malloced.
55641         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
55642         whatever the type happens to be), for brevity and consistency.
55643         Check for size calculation overflow on Alphas running OSF/1.
55644
55645 2003-10-31  Jim Meyering  <jim@meyering.net>
55646
55647         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
55648
55649         * lib/linebuffer.c: Include <string.h> for declaration of memset.
55650
55651 2003-10-30  Paul Eggert  <eggert@twinsun.com>
55652             Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
55655         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
55656
55657 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55658
55659         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55660         netbsd*-gnu*.  Suggested by Robert Millan.
55661
55662 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55663
55664         * modules/group-member: Depend on stdbool.
55665
55666 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55667
55668         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55669
55670 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55671
55672         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55673         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55674         after the 'gnu' in these cases.  This fixes some bugs in the
55675         previous change, and is based on suggestions by Robert Millan.
55676
55677 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55678
55679         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55680         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55681         no longer needed.
55682         * lib/quotearg.c (quotearg_n_options): Use it.
55683         * lib/group-member.c: Include <stdbool.h>.
55684         (free_group_info): Arg is now const *; don't free arg.
55685         (get_group_info): Now returns bool and accepts struct group_info *,
55686         rather than returning a malloc'ed struct group_info *.
55687         All uses changed.  Check for overflow in internal size calculation.
55688
55689         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55690         rather than xmalloc/xrealloc.
55691         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55692         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55693         conformance bug: the old code used a pointer after freeing the
55694         storage that it addressed.
55695         * lib/hash.c (hash_initialize): Simplify the code by using
55696         xalloc_oversized rather than doing it by hand.
55697         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55698         the buffer preserved.  Use free and xmalloc instead.
55699         * lib/quotearg.c (quotearg_n_options): Likewise.
55700         Use a simpler test for size overflow.  Don't use xalloc_oversized
55701         because unsigned int might be wider than size_t (!); this suggests
55702         that we should switch from unsigned int to size_t for slot numbers.
55703
55704 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55705
55706         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55707         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55708         NetBSD kernels.  Requested by Richard Stallman.
55709
55710 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55711
55712         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55713         to allocate the returned structure.  Do not allocate a subarray,
55714         as x2nrealloc will do that.
55715         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55716         instead of xnrealloc.
55717         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55718
55719 2003-10-27  Bruno Haible  <bruno@clisp.org>
55720
55721         * lib/stdbool_.h: Better support for BeOS.
55722
55723 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55724
55725         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55726         now uses inline.
55727
55728 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55729
55730         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55731         callers that want to do their own size-overflow checking.  Include
55732         <stdbool.h>, since xalloc_oversized returns bool.
55733         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55734         to use xalloc_oversized.
55735
55736         Add two functions x2realloc, x2nrealloc, for programs that grow
55737         arrays dynamically by doubling their sizes.
55738         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55739         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55740         New functions.
55741
55742         Port to C99 semantics for 'inline' of external functions.
55743         Bug reported by Bruno Haible.
55744         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55745         with the old contents of xnmalloc.
55746         (xnmalloc, xmalloc): Use it.
55747         (xnrealloc_inline): New static inline function,
55748         with the old contents of xnrealloc.
55749         (xnrealloc, xrealloc): Use it.
55750
55751         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55752         that.
55753
55754 2003-10-26  Karl Berry  <karl@gnu.org>
55755
55756         * config/srclist.txt (COPYING.DOC): no longer available from
55757         /gd/gnuorg; don't know where the ultimate source is.
55758
55759 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55760
55761         Fix several address-calculation bugs in the hash modules,
55762         plus some minor code cleanup.
55763
55764         * lib/hash.h: Include <stdbool.h>, for bool.
55765         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55766         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55767         hash_get_n_entries, hash_get_max_bucket_length,
55768         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55769         hash_rehash): Use size_t rather than unsigned.
55770         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55771         hash_get_n_buckets_used, hash_get_n_entries,
55772         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55773         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55774         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55775         Likewise.
55776         (SIZE_MAX): Define if not defined.
55777         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55778         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55779         hash_print):
55780         Use const * when possible.
55781         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55782         (check_tuning): Fix bug: if tuning parameters were very close to
55783         0 or 1, rounding errors could have caused subscript violations.
55784         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55785         (hash_initialize): Add 'fail:' label
55786         to free table and return NULL, and use it to simplify code.
55787         Use calloc rather than clearing the storage ourself.
55788         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55789         buffer size calculations.
55790         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55791         Include <stddef.h>, for size_t.
55792         * lib/hash-pjw.c (hash_pjw): Likewise.
55793         Switch to method described by Bruno Haible.
55794         Include <limits.h>, for CHAR_BIT.
55795         (SIZE_BITS): New macro.
55796
55797 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55798
55799         * m4/getline.m4 (AM_FUNC_GETLINE):
55800         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55801         hosts.  Problem reported by Derek Robert Price in
55802         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55803         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55804         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55805
55806 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55807
55808         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55809         ceiling the allocation at NMAX bytes rather than silently
55810         discarding input bytes before NMAX is reached.  This makes
55811         a difference only if NMAX exceeds SIZE_MAX / 2.
55812
55813         * lib/obstack.c: Merge from glibc.
55814         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55815         Add libc_hidden_def (_obstack_newchunk).
55816         (_obstack_free) [! defined _LIBC]: Remove.
55817         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55818         a clone of the function body.
55819         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55820         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55821
55822         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55823         glibc.
55824         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55825         arg to memcpy.
55826
55827         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55828         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55829         Don't use lvalue casts, as GCC plans to remove support for them
55830         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55831         was also present in the non-GCC version, indicating that this
55832         code had always been buggy and had never been widely used.
55833         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55834         Use the fast variant of each macro, rather than copying the
55835         definiens of the fast variant; that way, we'll be more likely to
55836         catch future bugs in the fast variants.
55837
55838 2003-10-20  Bruno Haible  <bruno@clisp.org>
55839
55840         * modules/wait-process: New file.
55841         * MODULES.html.sh (func_all_modules): Add wait-process.
55842
55843 2003-10-20  Bruno Haible  <bruno@clisp.org>
55844
55845         * m4/wait-process.m4: New file.
55846
55847 2003-10-20  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/wait-process.h: New file, from GNU gettext.
55850         * lib/wait-process.c: New file, from GNU gettext.
55851
55852 2003-10-19  Jim Meyering  <jim@meyering.net>
55853
55854         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55855         HPUX 10.20.
55856
55857 2003-10-18  Karl Berry  <karl@gnu.org>
55858
55859         * config/config.guess: update from config.
55860
55861 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55862
55863         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55864         (getgroups): First arg is int, not size_t.
55865         Don't let 'free' mangle errno.
55866
55867 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55868
55869         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55870
55871 2003-10-16  Karl Berry  <karl@gnu.org>
55872
55873         * config/config.{guess,sub}: update from config.
55874
55875 2003-10-16  Jim Meyering  <jim@meyering.net>
55876
55877         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55878         memcpy.
55879
55880 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55881
55882         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55883         (SIZE_MAX): Remove.
55884         (new_exclude, add_exclude_file): Initial size no longer needs to
55885         be a power of 2.
55886         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55887         our own address arithmetic overflow checking.
55888
55889         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55890         (fnmatch): Do not alloca more than 2000 wide characters;
55891         instead, use malloc for large buffers.
55892         Check for address arithmetic overflow, and return -1
55893         with errno set to ENOMEM in that case.
55894         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55895         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55896         instead, return -1.  Check for address arithmetic overflow.
55897
55898 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55899
55900         Handle invalid suffixes and overflow independently, so that
55901         callers can treat them independently as needed.  Fix some bugs in
55902         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55903         suffix for a human-readable blocksize.  The major caller-visible
55904         change is the addition of a new
55905         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55906         that both overflow and suffix chars were found.
55907
55908         * lib/human.c (humblock): Don't check separately for invalid suffix
55909         char; that is xstrtoumax's job (now that its bug is fixed).
55910         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55911         INTMAX_MAX]: New macros.
55912         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55913         TYPE_MAXIMUM): New macros.
55914         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55915         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55916         if overflow occurs, as it's what __strtol does and it's more useful
55917         in practice.
55918         (__xstrtol): If __strtol reports some error other than ERANGE,
55919         reflect it to the caller as LONGINT_INVALID.  If it reports
55920         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55921         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55922         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55923         value.
55924         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55925         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55926         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55927         [defined UINTMAX_MAX]: New macros.
55928
55929 2003-10-14  Bruno Haible  <bruno@clisp.org>
55930
55931         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55932
55933 2003-10-14  Bruno Haible  <bruno@clisp.org>
55934
55935         * m4/sig_atomic_t: New file, from GNU gettext.
55936         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55937
55938 2003-10-14  Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55941         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55942         Also use volatile where needed.
55943
55944 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55945
55946         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55947         Change maintainer from Bruno Haible to 'all'.
55948
55949 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55950
55951         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55952
55953 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55954
55955         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55956         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55957         and define in terms of the other primitives.
55958         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55959         (SIZE_MAX): Define if not already defined.
55960         (array_size_overflow): New function.
55961         (xalloc_die): Abort instead of exiting if 'error' returns.
55962         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55963         (xmalloc, xrealloc): Use them.
55964         (xcalloc): Check for address arithmetic overflow.
55965         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55966         a bit faster than strcpy.
55967
55968 2003-10-10  Simon Josefsson  <jas@extundo.com>
55969
55970         * modules/argp (Depends-on): Add restrict and strcase.
55971
55972 2003-10-10  Simon Josefsson  <jas@extundo.com>
55973
55974         * m4/argp.m4: Add AC_C_INLINE.
55975
55976 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55977
55978         Merge getpass from libc, plus a few fixes.
55979
55980         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55981         Include <stdbool.h>.
55982         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55983         __fsetlocking to empty.
55984         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55985         do include <bits/libc-lock.h>.
55986         Do not include <fcntl.h>; not needed.
55987         [_LIBC]: Include <wchar.h>.
55988         (NOTCANCEL_MODE): New macro.
55989         (flockfile, funlockfile) [_LIBC]: New macros.
55990         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55991         [!_LIBC]: New macros.
55992         (call_fclose): New function.
55993         (getpass): Use it.  Save tty stream separately; this simplifies the
55994         code and makes it more reliable if stdin happens to equal stdout.
55995         Invoke __fsetlocking on tty.
55996         Handle thread cancellation if needed.
55997         Namespace cleanup (use __tcgetattr, __getline).
55998         Use bool for Booleans.
55999         [USE_IN_LIBIO]: Handle wide streams.
56000         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56001         stream might go where.
56002
56003         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56004         doesn't have to include <stdio.h> before us.
56005         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56006         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56007         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56008         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56009         if not declared, so that we can use getpass.c code from libc without
56010         rewriting it.
56011         (flockfile, ftrylockfile, funlockfile): New macros.
56012
56013 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56014
56015         * modules/getpass: Depend on stdbool.
56016
56017 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56018
56019         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56020
56021 2003-10-07  Karl Berry  <karl@gnu.org>
56022
56023         * config/config.{guess,sub}: update from config.
56024
56025 2003-10-06  Jim Meyering  <jim@meyering.net>
56026             Bruno Haible  <bruno@clisp.org>
56027
56028         This lets translators provide better translations for the
56029         "Written by ..." part of --version output.
56030         * lib/version-etc.h: Include stdarg.h.
56031         (version_etc_copyright): Declare as readonly.
56032         (version_etc): Make this function variadic with a NULL-terminated list
56033         of author name strings.
56034         (version_etc_va): New declaration.
56035         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56036         (version_etc_copyright): Declare as readonly.
56037         (version_etc_va): New function. Provide a different translatable string
56038         for each possible number of authors < 10. Abbreviate when there are 10
56039         authors or more.
56040         (version_etc): Make this function variadic. Call version_etc_va.
56041         Suggestion from Gary V. Vaughan.
56042
56043         * lib/long-options.h (parse_long_options): Change prototype: the
56044         authors string is moved to the end and becomes variadic.
56045         * lib/long-options.c: Include stdarg.h.
56046         (parse_long_options): Make this function variadic, too.
56047         Call version_etc_va, not version_etc.
56048
56049 2003-10-06  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/version-etc-2: Remove file.
56052         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56053
56054 2003-10-06  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/fatal-signal: New file.
56057         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56058
56059 2003-10-06  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/fatal-signal.m4: New file.
56062         * m4/signalblocking.m4: New file, from GNU gettext.
56063
56064 2003-10-06  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/version-etc-2.h: Remove file.
56067         * lib/version-etc-2.c: Remove file.
56068
56069 2003-10-06  Bruno Haible  <bruno@clisp.org>
56070
56071         * lib/fatal-signal.h: New file, from GNU gettext.
56072         * lib/fatal-signal.c: New file, from GNU gettext.
56073
56074 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56075
56076         * README: Rework advice for preventing empty .o files.
56077         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56078         not <sys/types.h>.
56079
56080 2003-10-04  Karl Berry  <karl@gnu.org>
56081
56082         * lib/argp*: update from libc.
56083
56084 2003-10-04  Karl Berry  <karl@gnu.org>
56085
56086         * config/config.{guess,sub}: update from config.
56087
56088 2003-10-02  Bruno Haible  <bruno@clisp.org>
56089
56090         * modules/lchown (Include): Add lchown.h.
56091         * modules/time_r (Include): Use "..." syntax.
56092         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56093
56094 2003-10-01  Simon Josefsson  <jas@extundo.com>
56095
56096         * MODULES.html.sh (func_all_modules): Move gethostname from section
56097         'based on' to section 'lacking' POSIX:2001.
56098
56099 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56100
56101         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56102         to output mode on the same stream.
56103
56104 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56105
56106         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56107         Fix arg typo in previous patch.
56108
56109 2003-09-28  Jim Meyering  <jim@meyering.net>
56110
56111         * lib/error.c: Correct cpp indentation.
56112
56113 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56114
56115         * modules/free: New file.
56116
56117 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56118
56119         * m4/free.m4: New file.
56120
56121 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56122
56123         * lib/minmax.h (MIN, MAX)
56124         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56125         Omit the special code that used __typeof__, since we worry that
56126         it could be more trouble than it's worth.  See:
56127         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56128         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56129
56130         * lib/free.c: New file.
56131
56132 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56133
56134         Trivial fixes to Makefile.am parts of module listings.
56135         * modules/strstr: Append strstr.h to lib_SOURCES.
56136         * modules/strcase: Likewise, for strcase.h.
56137
56138 2003-09-27  Karl Berry  <karl@gnu.org>
56139
56140         * config/mkinstalldirs: update from automake.
56141
56142 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56143
56144         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56145         (error_tail): Do not loop, reallocating temporary buffer, since
56146         the output cannot contain more wide characters than the input
56147         contains bytes, the size must be big enough already.  This avoids
56148         one potential size overflow calculation.  Check for size overflow
56149         when calculating temporary buffer size.  Free temporary buffer
56150         when done, if it was allocated with malloc; this plugs a memory
56151         leak.  Remove casts from void * to pointers, that are no longer
56152         needed now that we're assuming C89 or better.
56153
56154         Merge error changes from glibc.
56155
56156         * lib/error.c, error.h: Update copyright notice header to match glibc.
56157         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56158         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56159         Disable cancellation while printing error.
56160         * lib/error.h: Prepend __ to parameter names.
56161
56162 2003-09-26  Jim Meyering  <jim@meyering.net>
56163
56164         * lib/error.c (error_tail): Move some declarations
56165         into inner scope where the local variables are used.
56166
56167 2003-09-26  Bruno Haible  <bruno@clisp.org>
56168
56169         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56170         stpncpy().
56171         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56172
56173 2003-09-26  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56176         (stpncpy): Define as alias for gnu_stpncpy.
56177         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56178
56179 2003-09-25  Simon Josefsson  <jas@extundo.com>
56180
56181         * lib/xgetdomainname.h: New file.
56182         * lib/xgetdomainname.c: New file.
56183
56184 2003-09-25  Simon Josefsson  <jas@extundo.com>
56185             Bruno Haible  <bruno@clisp.org>
56186
56187         * modules/getdomainname: New file.
56188         * modules/xgetdomainname: New file.
56189         * MODULES.html.sh (func_all_modules): Add getdomainname,
56190         xgetdomainname.
56191
56192 2003-09-25  Simon Josefsson  <jas@extundo.com>
56193             Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/getdomainname.m4: New file.
56196
56197 2003-09-25  Simon Josefsson  <jas@extundo.com>
56198             Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/getdomainname.h: New file.
56201         * lib/getdomainname.c: New file.
56202
56203 2003-09-25  Karl Berry  <karl@gnu.org>
56204
56205         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56206
56207 2003-09-25  Karl Berry  <karl@gnu.org>
56208
56209         * config/install-sh: update from automake.
56210
56211 2003-09-25  Bruno Haible  <bruno@clisp.org>
56212
56213         * modules/version-etc-2: New file, from modules/version-etc with
56214         modifications.
56215         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56216
56217 2003-09-25  Bruno Haible  <bruno@clisp.org>
56218
56219         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56220         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56221
56222 2003-09-24  Simon Josefsson  <jas@extundo.com>
56223
56224         * modules/xgethostname: Add xgethostname.h.
56225
56226 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56227
56228         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56229         the buffer associated with the argument.  Bug reported by
56230         Simon Josefsson.
56231
56232 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56233
56234         * README: Document assumptions that 'int' is at least 32 bits
56235         wide, that integer arithmetic is 2's complement without overflow,
56236         that there are no holes in integer values, that adding sizes of
56237         two nonoverlapping objects can't overflow, and that all-bits-zero
56238         yields scalar zero.  Fix spelling and capitalization typos.
56239
56240 2003-09-19  Karl Berry  <karl@gnu.org>
56241
56242         * lib/argp.h: update from libc.
56243
56244 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56245
56246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56247         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56248         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56249
56250 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56251
56252         * gnulib-tool: Use "test -h", not "test -L", for portability
56253         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56254         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56255         (sed_extract_prog): Issue s commands one-by-one, rather than
56256         using \| in one s command.
56257
56258 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56259
56260         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56261         input error, instead of returning NULL the next time we are called
56262         (and therefore losing track of errno).
56263
56264 2003-09-16  Bruno Haible  <bruno@clisp.org>
56265
56266         * gnulib-tool (func_create_testdir): Warn about duplicated
56267         dependencies.
56268
56269 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56270
56271         * modules/argmatch, modules/fatal, modules/obstack,
56272         modules/xalloc, modules/xgethostname: Sort dependencies by
56273         importance, not alphabetically.
56274
56275 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56276
56277         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56278         fails, so that the caller gets the proper errno.
56279
56280         * lib/readutmp.c (read_utmp): Likewise.
56281         Check for fstat error.  Close stream and free storage
56282         when failing.
56283
56284 2003-09-14  Karl Berry  <karl@gnu.org>
56285
56286         * config/srclist.txt (strdup.c): disable for c89 changes.
56287
56288 2003-09-14  Jim Meyering  <jim@meyering.net>
56289
56290         * lib/getloadavg.c: Correct cpp indentation.
56291         * lib/strdup.c: Likewise.
56292         * lib/vasnprintf.c: Likewise.
56293
56294 2003-09-14  Bruno Haible  <bruno@clisp.org>
56295
56296         * modules/fwriteerror: New file.
56297         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56298
56299 2003-09-14  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/fwriteerror.h: New file.
56302         * lib/fwriteerror.c: New file.
56303
56304 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56305
56306         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56307         modules/xgethostname, modules/xalloc: Depend on exit.
56308
56309 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56310
56311         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56312
56313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56314         and AC_MINIX, too, so that their extensions are available.
56315
56316         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56317         This macro has been superseded by gl_BACKUPFILE.
56318
56319         More patches to assume C89 or better.
56320
56321         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56322
56323         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56324         unconditionally.
56325         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56326         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56327         Include <string.h>, <stdlib.h> unconditionally.
56328         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56329         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56330         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56331         headers or for string.h.
56332         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56333         or strtoul.
56334
56335         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56336         headers.
56337         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56338         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56339         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56340         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56341         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56343         memcpy, memset.
56344         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56345         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56346         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56347         strtol.
56348         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56349         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56350         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56351         strtoul.
56352
56353 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56354
56355         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56356         * lib/obstack.c [!defined _LIBC]: Likewise.
56357         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56358         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56359         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56360
56361         More changes to assume C89 or better.
56362
56363         * lib/error.c (error_tail): Assume vprintf.
56364
56365         * lib/argmatch.c (getenv): Remove decl.
56366         * lib/progreloc.c (get_full_program_name): Define via prototype.
56367         * lib/setenv.c (clearenv): Likewise.
56368         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56369         needed.
56370         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56371         (malloc, memcpy): Remove decls.
56372         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56373         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56374         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56375         (memcpy): Remove macro.
56376         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56377         (__P): Remove.  All uses removed.
56378         (PTR): Remove.  All uses changed to void *.
56379         (CHAR_BIT, NULL): Remove.
56380         (spaces, zeros, memset_space, memset_zero)
56381         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56382         Remove.
56383         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56384         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56385         Define with prototype.
56386         Remove now-unnecessary prototype decl.
56387         (extra_args_spec): Assume ANSI C.  All uses changed.
56388         (extra_args_spec_iso): Remove.
56389         (my_strftime, emacs_strftimeu): Define via prototype.
56390         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56391         unconditionally.
56392         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56393         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56394         (strtoul, strtol): Remove decls.
56395         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56396         LONG_MAX): Remove.
56397         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56398         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56399         (LOCALE_PARAM_PROTO): New macro.
56400         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56401         (INTERNAL (strtol), strtol): Define with a prototype.
56402         (PARAMS): Remove.  All uses removed.
56403         * lib/tempname.c: Include <string.h> unconditionally.
56404         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56405         * lib/xgethostname.c (main): Define with a prototype.
56406         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56407         Include <stdlib.h> unconditionally.
56408         (calloc, malloc, realloc, free): Remove decls.
56409         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56410         Include <stdlib.h> unconditionally.  Sort include file names.
56411         (strtod): Remove.
56412         (xstrtod): Define with a prototype.
56413         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56414         (strtol, strtoul): Remove decls.
56415
56416 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56417
56418         More patches to assume C89 or better.
56419         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56420         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56421         string.h, memchr, STDC_HEADERS.
56422
56423 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56424
56425         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56426         Include <stdlib.h>, <string.h> unconditionally.
56427         Remove now-unnecessary cast to char *.
56428         * lib/strnlen.c: Include <string.h> unconditionally.
56429         * lib/yesno.c (yesno): Define with a prototype.
56430
56431 2003-09-11  Bruno Haible  <bruno@clisp.org>
56432
56433         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56434
56435 2003-09-10  Jim Meyering  <jim@meyering.net>
56436
56437         * lib/error.c: Correct indentation of cpp directives.
56438
56439 2003-09-10  Bruno Haible  <bruno@clisp.org>
56440
56441         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56442         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56443         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56444         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56445         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56446         <stdlib.h> and <string.h> checks.
56447         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56448         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56449
56450 2003-09-10  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/strcspn.c: Include <string.h> unconditionally.
56453         * lib/strpbrk.c: Include <string.h> unconditionally.
56454         * lib/strstr.c: Include <string.h> unconditionally.
56455         * lib/unicodeio.c: Include <string.h> unconditionally.
56456         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56457         * lib/unsetenv.c: Likewise.
56458         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56459         * lib/yesno.c: Include <stdlib.h> unconditionally.
56460         (rpmatch): Add prototype.
56461
56462 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56463
56464         More patches to assume C89 or better.
56465         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56466         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56467         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56468         or for string.h.
56469         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56470         stdlib.h.
56471         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56472         C headers.
56473         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56474         string.h.
56475         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56476         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56477         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56478         or for string.h.
56479         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56480         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56481         C headers.
56482         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56483         memcpy.
56484         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56485         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56486         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56487         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56488         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56489         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56490         string.h, free.
56491         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56492         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56493         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56494         C headers, or for string.h.
56495         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56496         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56497         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56498         headers, memory.h, stdlib.h, string.h, strings.h.
56499         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56500         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56501         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56502         strchr.
56503         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56504         headers, memory.h, string.h.
56505         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56506         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56507         free.
56508         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56509         headers.
56510         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56511         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56512         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56513         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56514         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56515
56516 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56517
56518         More K&R removal.
56519
56520         * lib/acosl.c (main): Use a prototype.
56521         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56522         tanl.c: Likewise.
56523
56524         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56525
56526         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56527         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56528         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56529         with a prototype.
56530         * lib/getopt.c (const): Remove macro.
56531         Include <string.h> unconditionally.
56532         (my_index): Remove; all uses changed to strchr.
56533         (strlen): Remove decl.
56534         (exchange): Remove forward decl; no longer needed.
56535         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56536         Define with prototype.
56537         * lib/getopt1.c (const): Remove macro.
56538         (getopt_long, getopt_long_only, main): Define with prototype.
56539
56540         * lib/getugroups.c: Include <string.h> unconditionally.
56541
56542         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56543         (getusershell, setusershell, endusershell, readname, main):
56544         Define with prototypes.
56545
56546         * lib/group-member.c: Include group-member.h first.
56547         Include <stdlib.h> unconditionally.
56548
56549         * lib/hard-locale.c: Include hard-locale.h first.
56550         Include <stdlib.h>, <string.h> unconditionally.
56551
56552         * lib/hash.c (free, malloc): Remove decls.
56553         Include <stdlib.h> unconditionally.
56554
56555         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56556         (getenv): Do not declare.
56557
56558         * lib/idcache.c: Include <string.h> unconditionally.
56559
56560         * lib/long-options.c: Include long-options.h first, to test interface.
56561         Include <stdlib.h> unconditionally.
56562
56563         * lib/makepath.c: Include makepath.h first, to test interface.
56564         Include <stdlib.h> and <string.h> unconditionally.
56565
56566         * lib/linebuffer.c: Include <stdlib.h>.
56567         (free): Remove decl.
56568
56569         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56570         stddef.h. rpl_malloc returns void *, not char *.
56571         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56572         prototype.
56573
56574         * lib/md5.h: Include <limits.h> unconditionally.
56575         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56576         (__P): Remove; all uses removed.
56577         * lib/md5.c: Include "md5.h" first.
56578         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56579         md5_buffer, md5_process_bytes, md5_process_block):
56580         Define with prototypes.
56581         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56582         * lib/sha.c: Include "sha.h" first.
56583         Include <stdlib.h>, <string.h> unconditionally.
56584
56585         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56586         * lib/memcmp.c (__ptr_t): Likewise.
56587         * lib/memrchr.c (__ptr_t): Likewise.
56588         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56589         Include <string.h> unconditionally.
56590         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56591         * lib/memchr.c: Include <stdlib.h> unconditionally.
56592         * lib/memchr.c (LONG_MAX): Remove.
56593         * lib/memrchr.c (LONG_MAX): Likewise.
56594         * lib/memchr.c (__memchr): Define via a prototype.
56595         * lib/memrchr.c (__memrchr): Likewise.
56596         * lib/memcmp.c (__P): Remove, and remove all uses.
56597         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56598         Remove forward decls; no longer needed.
56599         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56600         Use types required by C89 in prototype.
56601
56602         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56603         * lib/savedir.c: Likewise.
56604         * lib/mkdir.c (free): Remove decl.
56605         * lib/rmdir.c (rmdir): Define with a prototype.
56606         * lib/savedir.c: Include savedir.h first, to test interface.
56607
56608         * lib/mktime.c (STDC_HEADERS): Remove.
56609         Include <stdlib.h>, <string.h> unconditionally.
56610
56611         * lib/modechange.c: Include <stdlib.h> unconditionally.
56612         (malloc): Remove decl.
56613
56614         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56615         (free): Remove decl.
56616
56617         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56618         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56619         (This type really should be intptr_t, but that's a C99ism.)
56620         (_obstack_memcpy): Remove: all uses changed to memcpy.
56621         Include <string.h> unconditionally.
56622         (struct obstack): Assume __STDC__ for types of members
56623         chunkfun, freefun, extra_arg.
56624         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56625         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56626         obstack_begin, obstack_specify_allocation,
56627         obstack_specify_allocation_with_arg, obstack_chunkfun,
56628         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56629         Remove unprototyped decls and the macros that use them.
56630         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56631         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56632         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56633         (defined __STDC__ && __STDC__)]:
56634         Remove nonprototyped code.
56635         Include <stdlib.h> unconditionally.
56636         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56637         _obstack_allocated_p, _obstack_free, obstack_free,
56638         _obstack_memory_used, print_and_abort):
56639         Define using prototypes.
56640         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
56641         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
56642         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
56643         obstack_next_free, obstack_object_size, obstack_room) [0]:
56644         Remove unused, unprototyped code.
56645
56646         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
56647
56648         * lib/physmem.c (physmem_total, physmem_available, main): Define
56649         with prototypes.
56650
56651         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
56652         (main): Define with a prototype.
56653
56654         * lib/posixver.c (getenv): Remove decl.
56655
56656         * lib/putenv.c (malloc): Returns void *, not char *.
56657         Include <string.h> unconditionally.
56658         (strchr, memcpy, NULL): Do not define.
56659
56660         * lib/readtokens.c: Include readtokens.h first, to test interface.
56661         Include <stdlib.h>, <string.h> unconditionally.
56662         (init_tokenbuffer): Define with a prototype.
56663
56664         * lib/regex.c (PARAMS): Remove.  All uses removed.
56665         All uses of _RE_ARGS removed, too.
56666         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56667         unconditionally.
56668         (bzero): Assume memset exists.
56669         (memcmp, memcpy, NULL): Remove.
56670         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56671         char, or assignments to local vars of type signed char.
56672         (init_syntax_once, PREFIX(extract_number_and_incr),
56673         PREFIX(print_partial_compiled_pattern),
56674         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56675         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56676         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56677         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56678         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56679         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56680         wcs_compile_range, byte_compile_range, truncate_wchar,
56681         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56682         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56683         count_mbs_length, wcs_re_match_2_internal,
56684         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56685         PREFIX(alt_match_null_string_p),
56686         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56687         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56688         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56689         now-unnecessary declaration, if any.
56690         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56691         regcomp, regexec):
56692         Remove now-unnecessary casts among pointer types.
56693         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56694
56695         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56696         (free): Remove decl.
56697
56698         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56699
56700         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56701         (free): Remove decl.
56702
56703         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56704         * lib/xgetcwd.c: Likewise.
56705
56706         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56707         (free): Remove decl.
56708
56709         * lib/strchrnul.c (strchrnul): Define with a prototype.
56710         Fix bug: c_in was not converted to char before searching.
56711
56712         The following changes are not K&R related:
56713
56714         * lib/group-member.h: Include <sys/types.h>, so that this file is
56715         self-contained.
56716         * lib/makepath.h: Likewise.
56717
56718         * lib/getusershell.c (readname, default_index, line_size, readname):
56719         Use size_t, not int, for sizes.
56720         (readname): If the size overflows, report an error instead of
56721         looping forever.
56722
56723 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56724
56725         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56726         libc.
56727
56728 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56729
56730         * README: New section: portability guidelines.
56731
56732 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56733
56734         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56735         C89 spec.
56736
56737 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56738
56739         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56740
56741 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56742
56743         Assume C89 or better; remove K&R cruft.
56744         A few of these changes were first proposed by Derek Robert Price
56745         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56746
56747         * lib/addext.c: Include <string.h> unconditionally.
56748         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56749         Don't declare getenv or malloc.
56750
56751         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56752         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56753         (NULL): Remove.
56754         (find_stack_direction, alloca): Use prototypes.
56755
56756         * lib/atexit.c (atexit): Define using a prototype.
56757
56758         * lib/basename.c, dirname.c, stripslash.c:
56759         Include <string.h> unconditionally.
56760
56761         * lib/bcopy.c: Include <stddef.h>.
56762         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56763
56764         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56765
56766         * lib/error.h (error, error_at_line, error_print_progname)
56767         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56768         * lib/error.c: Include error.h first, to check interface.
56769         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56770         (VA_START): Remove; all uses changeed to va_start.
56771         (exit, strerror): Remove decls.
56772         (error_print_progname): Prototype uncondionally.
56773         Don't include <errno.h>; no longer needed.
56774         (private_strerror): Remove.
56775         (error_tail): Always define.
56776         (error, error_at_line): Assume C89 or better; always use prototypes.
56777         * lib/fatal.c: Include "fatal.h" first, to test interface.
56778         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56779         (VA_START): Remove; all uses changed to va_start.
56780         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56781         this case.
56782         (exit): Remove decl.
56783         (fatal): Prototype unconditionally.  Assume va_start works.
56784         Abort at end, to pacify gcc.
56785
56786         * lib/euidaccess.c (main): Define with a prototype.
56787
56788         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56789
56790         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56791
56792         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56793         prototypes.
56794         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56795         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56796         (getenv): Remove decl.
56797         (fnmatch): Define using a prototype.
56798         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56799         (FCT): Define using a prototype.
56800
56801         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56802
56803         * lib/gethostname.c: Include <stddef.h>.
56804         (gethostname): Define with prototype.  Length is size_t, not int.
56805
56806 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56807
56808         Assume C89 or better; remove K&R cruft.
56809         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56810         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56811         string.h, getenv, malloc.
56812         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56813         headers.
56814         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56815         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56816         do not check for strerror.
56817         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56818         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56819         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56820         do not check for doprnt or vprintf.
56821         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56822         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56823
56824 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56825
56826         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56827         getversion.c should have been removed then, but was accidentally
56828         preserved.
56829
56830         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56831         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56832
56833 2003-09-08  Karl Berry  <karl@gnu.org>
56834
56835         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56836                 config, forget about prep.
56837
56838         * config/depcomp, missing: update from automake.
56839
56840 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56841
56842         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56843         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56844
56845 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56846
56847         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56848         copy_tm_result.  Bug reported by Simon Josefsson in
56849         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56850
56851 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56852
56853         * m4/time_r.m4: New file.
56854         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56855         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56856         is. Check for timegm declaration.
56857         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56858         Do not check for gmtime_r.
56859         Replace mktime if __mktime_internal does not exist and if mktime
56860         hasn't been replaced already.
56861
56862 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56863
56864         * lib/time_r.c, lib/time_r.h: New files.
56865
56866         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56867         __localtime_r.
56868         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56869         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56870
56871         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56872         __gmtime_r.
56873         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56874         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56875         Include <time_r.h>.
56876
56877         * lib/timegm.c: Switch to glibc implementation, with the following
56878         changes:
56879         [defined HAVE_CONFIG_H]: Include <config.h>.
56880         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56881         (__mktime_internal) [!defined _LIBC]: New decl.
56882         (__gmtime_r) [!defined _LIBC]: New macro and function.
56883         (timegm): Use a prototype, since gnulib assumes C89.
56884         Do not bother declaring tmp to be const, as it's not really usefu.
56885         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56886         (timegm): Declare only if HAVE_DECL_TIMEGM.
56887
56888 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56889
56890         * MODULES.html.sh (func_all_modules): Add time_r.
56891         * modules/time_r: New file.
56892         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56893         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56894
56895 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56896
56897         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56898         Bug reported by Lute Kamstra in
56899         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56900
56901         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56902         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56903         course with correspondingly smaller numbers for tomorrow and
56904         yesterday.  From Tadayoshi Funaba.  Originally installed into
56905         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56906         coreutils merge?).
56907
56908 2003-08-31  Simon Josefsson  <jas@extundo.com>
56909
56910         * modules/timegm: New file.
56911         * MODULES.html.sh (func_all_modules): Add timegm.
56912
56913 2003-08-31  Simon Josefsson  <jas@extundo.com>
56914
56915         * m4/timegm.m4: New file.
56916
56917 2003-08-31  Simon Josefsson  <jas@extundo.com>
56918
56919         * lib/timegm.h: New file.
56920         * lib/timegm.c: New file.  Based on
56921         wget-1.8.2/src/http.c:mktime_from_utc.
56922
56923 2003-08-31  Karl Berry  <karl@gnu.org>
56924
56925         * lib/argp.h: update from libc.
56926
56927 2003-08-28  Bruno Haible  <bruno@clisp.org>
56928
56929         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56930         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56931         followed by '#define fnmatch fnmatch_posix' gives an error.
56932
56933 2003-08-28  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56936         warning on QNX, which defines O_BINARY to 000000.
56937
56938 2003-08-27  Jim Meyering  <jim@meyering.net>
56939
56940         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56941         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56942         would fail after 32.  Reported by Danny Levinson.  Details here:
56943         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56944
56945 2003-08-24  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56948         MSVC7 <stdio.h> is included later.
56949
56950 2003-08-22  Simon Josefsson  <jas@extundo.com>
56951
56952         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56953
56954 2003-08-20  Karl Berry  <karl@gnu.org>
56955
56956         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56957
56958 2003-08-20  Bruno Haible  <bruno@clisp.org>
56959
56960         * modules/progname: New file.
56961         * MODULES.html.sh (func_all_modules): Add progname.
56962
56963 2003-08-20  Bruno Haible  <bruno@clisp.org>
56964
56965         * lib/progname.h: New file, from GNU gettext.
56966         * lib/progname.c: New file, from GNU gettext.
56967         * lib/progreloc.c: New file, from GNU gettext.
56968
56969 2003-08-19  Jim Meyering  <jim@meyering.net>
56970
56971         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56972         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56973
56974 2003-08-19  Bruno Haible  <bruno@clisp.org>
56975
56976         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56977         more.
56978
56979 2003-08-19  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/xstrdup.c: Assume <string.h> exists.
56982
56983 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56984
56985         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56986         in makefile rules.
56987
56988 2003-08-18  Jim Meyering  <jim@meyering.net>
56989
56990         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56991         * m4/lib-ld.m4: Likewise.
56992
56993 2003-08-18  Jim Meyering  <jim@meyering.net>
56994
56995         * lib/setenv.h: Indent nested cpp directive.
56996         * lib/vasnprintf.c: Remove trailing blanks.
56997
56998 2003-08-17  Simon Josefsson  <jas@extundo.com>
56999
57000         * modules/xstrndup: New file.
57001         * MODULES.html.sh (func_all_modules): Add xstrndup.
57002
57003 2003-08-17  Simon Josefsson  <jas@extundo.com>
57004
57005         * modules/argp: Fix autoconf macro name. Add more dependencies.
57006
57007 2003-08-17  Simon Josefsson  <jas@extundo.com>
57008
57009         * m4/xstrndup.m4: New file.
57010
57011 2003-08-17  Simon Josefsson  <jas@extundo.com>
57012
57013         * m4/argp.m4: New file.
57014
57015 2003-08-17  Simon Josefsson  <jas@extundo.com>
57016             Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/xstrndup.h: New file.
57019         * lib/xstrndup.c: New file.
57020
57021 2003-08-17  Bruno Haible  <bruno@clisp.org>
57022
57023         * modules/strndup (Files, Include): Add lib/strndup.h.
57024
57025 2003-08-17  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/euidaccess (Files): Add lib/euidaccess.h.
57028
57029 2003-08-17  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/strndup.h: New file.
57032
57033 2003-08-17  Bruno Haible  <bruno@clisp.org>
57034
57035         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57036         like AC_GNU_SOURCE.
57037         * modules/extensions (configure.ac): Comment out the invocation of
57038         gl_USE_SYSTEM_EXTENSIONS.
57039
57040 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57041
57042         Merges from coreutils, etc.
57043         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57044         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57045         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57046         fixing a typo.
57047         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57048         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57049
57050 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57051
57052         Document merge from coreutils.
57053         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57054         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57055         * modules/utime: Add m4/utimes-null.m4.
57056
57057 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57058
57059         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57060         space, undoing this 2003-08-12 change:
57061         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57062
57063 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57064
57065         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57066         strtoul.c from libc, undoing this 2003-08-12 change:
57067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57068
57069 2003-08-16  Jim Meyering  <jim@meyering.net>
57070
57071         Merges from coreutils.
57072         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57073         prefix.  Adjust cache variables similarly.  Create 500 rather than
57074         just 300 files, to exercise bug on Darwin6.5, too.
57075         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57076         $missing_dir.
57077         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57078         AM_SYS_POSIX_TERMIOS.
57079         Reported by mkc@mathdogs.com.
57080         Also change use of $am_cv_sys_posix_termios
57081         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57082         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57083         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57084         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57085         in /proc/mounts until it finds one with matching device number.  This
57086         is unnecessary when the FILE argument *is* a mount point.  No stat call
57087         is necessary in that case.  So, disable the statvfs-testing code on
57088         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57089         as RedHat bug# 84846.
57090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57091         to 1MB, so as not to render systems with no stack size limit (e.g.,
57092         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57093         Include <unistd.h>.  On some systems,
57094         it is required for the definition of _SC_PAGESIZE.
57095
57096 2003-08-16  Jim Meyering  <jim@meyering.net>
57097
57098         Merge from coreutils.
57099         * lib/xstrtoimax.c: #else #if -> #elif.
57100         * lib/xstrtoumax.c: Likewise.
57101
57102 2003-08-16  Jim Meyering  <jim@meyering.net>
57103
57104         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57105         * m4/utimes.m4: Removed.
57106         * m4/utimes-null.m4: Renamed from utimes.m4.
57107
57108         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57109         to 1MB, so as not to render systems with no stack size limit (e.g.,
57110         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57111         Include <unistd.h>.  On some systems,
57112         it is required for the definition of _SC_PAGESIZE.
57113
57114 2003-08-16  Jim Meyering  <jim@meyering.net>
57115         and Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         Merges from coreutils, etc.
57118
57119         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57120         using the latest version from cvs.  This avoids problems with #line
57121         directives using a vendor (Sun) compiler.
57122         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57123         Don't set GETGROUPS_LIB here; now it's
57124         done via getgroups.m4's wrapper function.
57125         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57126         rather than just in sh-util/configure.in, so that the
57127         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57128         same.
57129         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57130         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57131         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57132         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57133         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57134         Remove code that is now done by the newly-required macros.
57135         Append $(EXEEXT) to DF_PROG.
57136         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57137         Do not invoke or require the following here,
57138         since prereq.m4 or some gnulib .m4 now does this for us:
57139         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57140         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57141         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57142         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57143         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57144         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57145         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57146         AC_FUNC_OBSTACK.
57147         Do not replace the following functions, as this is now the job
57148         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57149         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57150         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57151         atexit getpass, strdup, getpagesize.
57152         Replace 'raise'.
57153         Do not check for the following functions, as this is now the job
57154         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57155         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57156         setregid.
57157         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57158         Check for sys/sysctl.h.
57159         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57160         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57161         of checking for ssize_t ourselves.
57162
57163         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57164         Require every macro that gnulib/modules/* suggests for us.
57165         (jm_PREREQ_ADDEXT): New macro.
57166         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57167         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57168
57169         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57170         (gl_PHYSMEM): Use it.
57171         Also check for `table' function.
57172         Check for new headers and functions.
57173         Add check for sys/sysmp.h.
57174         With suggestions from Kaveh Ghazi.
57175         Ignore headers that are present but cannot be compiled.  This
57176         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57177         C 5.4.
57178
57179 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57180
57181         Document merge from coreutils.
57182         * modules/userspec: Depend on posixver.
57183         * modules/strftime: Depend on tzset.
57184
57185 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57186
57187         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57188         rather than tab, after '#' in shell-script copyright notices.
57189         Suggested by Bruno Haible.
57190
57191 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57192
57193         * config/srclist-update: Use three spaces, rather than tab, after '#'
57194         in shell-script copyright notices.  Suggested by Bruno Haible.
57195         Remove unnecessary parenthesization in regular expression.
57196
57197 2003-08-15  Jim Meyering  <jim@meyering.net>
57198
57199         Merge from coreutils.
57200         * lib/xgethostname.c: Include <stdlib.h>.
57201         (xghostname): Don't exit for anything other than memory-related
57202         failure; just return NULL.
57203         * lib/userspec.c: Include "posixver.h".
57204         (parse_user_spec): Accept `.' as a separator only
57205         in pre-POSIX-200112 mode.
57206         * lib/strtoimax.c: Use #elif rather than #else #if.
57207         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57208         Remove function, now that we can rely on a working tzset function.
57209         [!_LIBC]: Ensure that the required autoconf test has been run.
57210         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57211         Use underlying_strftime for %r.
57212         * lib/sha.c: Merge in some clean-up and optimization changes from
57213         glibc.
57214         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57215         Ensure that it is a multiple of 64.
57216         Rearrange loop exit tests so as to avoid performing an
57217         additional fread after encountering an error or EOF.
57218         * lib/realloc.c: Update copyright date.
57219
57220 2003-08-15  Jim Meyering  <jim@meyering.net>
57221         and Paul Eggert  <eggert@twinsun.com>
57222
57223         Merge from coreutils.
57224         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57225         member but strut utmpx does not.  Needed for AIX 4.3.3.
57226         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57227
57228 2003-08-15  Jim Meyering  <jim@meyering.net>
57229         and Paul Eggert  <eggert@cs.ucla.edu>
57230
57231         Merges from coreutils, etc.
57232         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57233         Require gl_FUNC_TZSET_CLOBBER.
57234         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57235         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57236         members.
57237
57238 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57239
57240         Help the merge from coreutils.
57241         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57242         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57243         * m4/tzset.m4: Use it too.
57244
57245 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57246
57247         * modules/tzset: New file.
57248
57249 2003-08-14  Jim Meyering  <jim@meyering.net>
57250
57251         Merges from coreutils.
57252         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57253         variable names, rather than @FNMATCH_H@.
57254         * modules/alloca: Likewise for $(ALLOCA_H).
57255
57256         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57257         the three copies of the literal target, `fnmatch.h'.
57258         * modules/alloca (alloca.h): Likewise.
57259
57260 2003-08-14  Jim Meyering  <jim@meyering.net>
57261
57262         Merge from coreutils.
57263         * m4/tzset.m4: New file.
57264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57265         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57266         otherwise, AIX 5.1 systems would end up using the latter.
57267         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57268         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57269         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57270         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57271
57272 2003-08-14  Jim Meyering  <jim@meyering.net>
57273
57274         Merge from coreutils.
57275         * lib/obstack.h: Whitespace changes.
57276         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57277         and xcalloc return values.
57278         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57279         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57280         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57281         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57282         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57283         error from mntctl.
57284         Use mntctl's return value to drive the entry-processing loop, since
57285         we can't rely on the value of the vmt_length member in the last
57286         entry.  On some systems doing so could result in exhausting
57287         virtual memory.  Based in part on a patch from Mike Jetzer.
57288
57289 2003-08-14  Jim Meyering  <jim@meyering.net>
57290         and Paul Eggert  <eggert@twinsun.com>
57291
57292         Merges from coreutils, plus other fixes.
57293         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57294         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57295         for credits and details.  Thanks to Kaveh Ghazi for helping
57296         to keep these files in sync.
57297         (ARRAY_SIZE): Define it.
57298         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57299         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57300         (memcasecmp): Don't assume size_t fits in unsigned int.
57301         Remove casts and duplicate code.
57302         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57303         (memcpy): Remove definition.
57304         Merge in some clean-up and optimization changes from glibc.
57305         [BLOCKSIZE]: Move definition to top of file.
57306         Ensure that it is a multiple of 64.
57307         Rearrange loop exit tests so as to avoid performing an
57308         additional fread after encountering an error or EOF.
57309         * lib/md5.h (md5_uintptr): Define.
57310         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57311         return to the initial working directory.  Preserve errno
57312         for caller.
57313         * lib/idcache.c: Include "xalloc.h".
57314         (xmalloc, xrealloc): Remove decls.
57315         (getuser): Remove casts no longer required in C89.
57316         * lib/human.c: Include stdio.h, for sprintf.
57317         * lib/group-member.c: Include "xalloc.h".
57318         (xmalloc, xrealloc): Remove decls.
57319         (get_group_info): Remove casts no longer required in C89.
57320         * lib/getusershell.c (readname): Remove casts no longer required in
57321         C89.
57322         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57323         * lib/getline.c: Whitespace fix, from coreutils.
57324
57325 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57326
57327         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57328         Check for isascii.
57329
57330         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57331         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57332         Undo previous (whitespace-only) change.
57333
57334 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57335
57336         * lib/exclude.c: Include <ctype.h>
57337         (IN_CTYPE_DOMAIN): New macro.
57338         (is_space): New fn.
57339         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57340         and empty lines.
57341
57342         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57343         Undo previous (whitespace-only) change.
57344
57345 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57346
57347         * config/srclist-update: Change update back to the old behavior,
57348         leaving whitespace alone.  Use one 'sed' command rather than a
57349         pipeline.
57350         (fixlicense): Now a variable, not a function.
57351         (remove_trailing_blanks): Remove.
57352         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57353         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57354         Undo previous (whitespace-only) change.
57355
57356 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57357
57358         Merge from coreutils.
57359         * modules/euidaccess: Add lib_SOURCES, include for new
57360         file euidaccess.h
57361
57362 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57363
57364         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57365         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57366         Normalize leading white space and remove trailing white space.
57367
57368         Merge from coreutils
57369         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57370
57371         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57372         0.12.1.  These files are now being upgraded automatically by
57373         ../config/srclist-update.
57374
57375 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57376
57377         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57378         Normalize leading white space and remove trailing white space.
57379         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57380         notice, as per ../config/srclist-update.
57381
57382         Merge from coreutils.
57383         * lib/euidaccess.h: New file.
57384         * lib/euidaccess.c: Include it.
57385         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57386         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57387         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57388
57389 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57390
57391         * config/srclist-update: Add copyright notice.
57392         (remove_id_lines, remove_trailing_blanks): New constants.
57393         (fixfile): Use them to normalize spacing a bit in copied files.
57394         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57395         Normalize leading white space and remove trailing white space.
57396
57397         * config/texinfo.tex: Sync with texinfo.
57398
57399         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57400         strtoul.c from libc, to merge coreutils whitespace changes.
57401
57402         * config/srclist.txt: Get the following m4 files from gettext:
57403         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57404         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57405         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57406         wint_t.m4.
57407
57408 2003-08-12  Karl Berry  <karl@gnu.org>
57409
57410         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57411         been made.
57412
57413 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57414
57415         * modules/gnu-source, m4/gnu-source.m4:
57416         Remove; we're assuming Autoconf 2.54 or later now.
57417         Suggested by Bruno Haible.
57418         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57419
57420 2003-08-11  Bruno Haible  <bruno@clisp.org>
57421
57422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57423
57424 2003-08-11  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57427         (vasnprintf): Use it instead of wcslen.
57428
57429 2003-08-11  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57432         value to ensure that _Bool promotes to int. Use #define for _Bool when
57433         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57434
57435 2003-08-10  Karl Berry  <karl@gnu.org>
57436
57437         * lib/regex.h: update from libc (whitespace fix).
57438
57439 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57440
57441         Merge some files from coreutils.  These changes were
57442         originally made by Jim Meyering.
57443         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57444         many older Unixes require this.
57445         * lib/alloca.c (alloca): Remove cast to argument of free;
57446         no longer needed in C89.
57447         * lib/alloca_.h, regex.h: Fix white space to match
57448         what GNU indent does.
57449
57450 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57451
57452         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57453         apparently Emacs's Unicode mode got confused before my 2003-08-05
57454         checkin.
57455
57456 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57457
57458         * m4/extensions.m4: New file.
57459         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57460         Require gl_USE_SYSTEM_EXTENSIONS.
57461         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57462         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57463
57464 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57465
57466         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57467         * modules/extensions, modules/gnu-source: New files.
57468         * modules/timespec, modules/unlocked-io: Depend on extensions.
57469
57470 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57471
57472         * modules/restrict: New file.
57473         * MODULES.html.sh (func_all_modules): Add restrict.
57474         * modules/regex: Depend on restrict.
57475
57476 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57477
57478         * m4/restrict.m4: New file.
57479         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57480
57481 2003-08-07  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57484         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57485
57486 2003-08-07  Bruno Haible  <bruno@clisp.org>
57487
57488         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57489         makes the module 'getndelim2' compatible with the module 'getline'.
57490
57491 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57492
57493         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57494         byte with "\201" to avoid glitches when editing that source file
57495         with multi-gnome-terminal.
57496
57497 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57498
57499         * lib/bumpalloc.h: Remove.
57500
57501 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57502
57503         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57504         * modules/bumpalloc: Remove.
57505
57506 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57507
57508         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57509         GNU coding style.
57510
57511         Merge from coreutils.
57512         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57513         1. From glibc.
57514         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57515         from Karl Berry, implemented by Jim Meyering.
57516         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57517         from Dmitry V. Levin.
57518         Remove anachronistic cast of xrealloc.
57519         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57520         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57521         type. Otherwise, it wouldn't compile with at least /bin/cc on
57522         ymp-cray-unicos9.0.2.X.
57523         Combine two mostly-identical uses of alloca into one.
57524         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57525
57526 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57527
57528         [From Emacs.]
57529
57530         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57531         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57532         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57533         obsolete NLIST_NAME_UNION.
57534         [__GNU__]: Undef BSD and FSCALE.
57535         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57536
57537 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57538
57539         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57540         an enum type, so that it's guaranteed to promote to int.  See:
57541         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57542
57543 2003-08-03  Karl Berry  <karl@gnu.org>
57544
57545         * config/depcomp: update from automake.
57546
57547 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57548
57549         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57550         (strerror): Don't assume that a printable int fits in 14 bytes.
57551
57552 2003-07-31  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/getpass-gnu: New file.
57555         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57556
57557 2003-07-31  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57560
57561 2003-07-24  Karl Berry  <karl@gnu.org>
57562
57563         * config/missing: update from automake.
57564
57565 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57566             Bruno Haible  <bruno@clisp.org>
57567
57568         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57569         * lib/getline.c (getline, getdelim): Likewise.
57570         Remove _GNU_SOURCE define; now it's defined in config.h through
57571         m4/getline.m4.
57572
57573 2003-07-23  Karl Berry  <karl@gnu.org>
57574
57575         * config/config.sub: update from prep.
57576
57577 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57578
57579         * modules/xalloc (Depends-on): Add exitfail.
57580         * modules/xmemcoll: Likewise.
57581
57582 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57583
57584         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57585         over-parenthesization in macros.
57586
57587         Sync with coreutils.
57588
57589         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57590         required by C99.
57591
57592         Use `exit_failure' for xalloc and xmemcoll instead of their own
57593         private exit-failure variables.
57594         * lib/xalloc.h (xalloc_exit_failure): Remove.
57595         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57596         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57597         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57598         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57599         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57600
57601 2003-07-20  Jim Meyering  <jim@meyering.net>
57602
57603         * modules/closeout (Depends-on): Add exitfail.
57604         Suggestion from Bruno Haible.
57605
57606 2003-07-19  Karl Berry  <karl@gnu.org>
57607
57608         * config/config.sub: update from prep.
57609
57610 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57611
57612         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57613         Remove.
57614         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57615         to test that it can stand by itself.  Include "exitfail.h".
57616         Clients should set exit_failure instead.
57617         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57618
57619 2003-07-18  Bruno Haible  <bruno@clisp.org>
57620
57621         * modules/getndelim2: New file.
57622         * modules/getline: Share files with module getndelim2.
57623         * modules/getnline: Depend on getndelim2 instead of sharing files with
57624         it. Add getnline.c to lib_SOURCES.
57625         * MODULES.html.sh (func_all_modules): Add getndelim2.
57626
57627 2003-07-18  Bruno Haible  <bruno@clisp.org>
57628
57629         * m4/getndelim2.m4: New file.
57630         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57631         invoke gl_PREREQ_GETNDELIM2.
57632         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57633         gl_PREREQ_GETNDELIM2.
57634         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57635         gl_GETNDELIM2.
57636
57637 2003-07-18  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/getndelim2.h: New file.
57640         * lib/getndelim2.c: Make into a module of its own. Include config.h,
57641         getndelim2.h.
57642         (getndelim2): Make non-static. Change return type to ssize_t.
57643         * lib/getline.h: Change argument names.
57644         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
57645         * lib/getnline.c: Include getndelim2.h.
57646
57647 2003-07-18  Andreas Schwab  <schwab@suse.de>
57648
57649         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
57650
57651 2003-07-17  Karl Berry  <karl@gnu.org>
57652
57653         * config/config.sub: update from prep.
57654
57655 2003-07-17  Bruno Haible  <bruno@clisp.org>
57656
57657         * modules/getnline: New file.
57658         * modules/getline: Add lib/getndelim2.c to source file list.
57659         * MODULES.html.sh (func_all_modules): Add getnline.
57660
57661 2003-07-17  Bruno Haible  <bruno@clisp.org>
57662
57663         * m4/getnline.m4: New file.
57664
57665 2003-07-17  Bruno Haible  <bruno@clisp.org>
57666
57667         * m4/Makefile.am.in: Remove file.
57668         * m4/Makefile.am: Remove file.
57669         * m4/Makefile.in: Remove file.
57670
57671 2003-07-17  Bruno Haible  <bruno@clisp.org>
57672
57673         * lib/getnline.h: New file.
57674         * lib/getnline.c: New file.
57675         * lib/getndelim2.c: New file, extracted from getline.c.
57676         (getndelim2): Renamed from getdelim2, with added nmax argument.
57677         * lib/getline.c: Include getndelim2.c.
57678         (getdelim2): Moved out to getndelim2.c.
57679         (getline, getdelim): Update.
57680
57681 2003-07-17  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/Makefile.am: Remove file.
57684         * lib/Makefile.in: Remove file.
57685
57686 2003-07-17  Bruno Haible  <bruno@clisp.org>
57687
57688         * configure.in: Remove file.
57689         * Makefile.in: Remove file.
57690
57691 2003-07-17  Bruno Haible  <bruno@clisp.org>
57692
57693         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57694
57695 2003-07-16  Karl Berry  <karl@gnu.org>
57696
57697         * config/srclist-update: was running fixlicense twice, which caused
57698                 texinfo.tex to be nullified for some reason.  Simplify,
57699                 $gplsrc is no longer needed as far as I can see?
57700
57701 2003-07-16  Jim Meyering  <jim@meyering.net>
57702
57703         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57704
57705 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57706
57707         * config/srclist.txt: Get the following files from gettext-runtime/intl
57708         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57709         ref-del.sin.  From Bruno Haible.
57710         * config/srclist-update (fixfile): Change grep pattern again, since the
57711         previous fix didn't work (there was another trailing $).  Use
57712         '[$]' to escape the $s.
57713
57714 2003-07-15  Karl Berry  <karl@gnu.org>
57715
57716         * lib/vasnprintf.c: update from gettext.
57717
57718 2003-07-15  Karl Berry  <karl@gnu.org>
57719
57720         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57721         gets expanded when surrounded by '$'.
57722
57723 2003-07-15  Jim Meyering  <jim@meyering.net>
57724
57725         * modules/save-cwd: Don't depend on error.  From Derek Price.
57726
57727 2003-07-15  Jim Meyering  <jim@meyering.net>
57728
57729         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57730
57731 2003-07-14  Simon Josefsson  <jas@extundo.com>
57732
57733         * modules/mempcpy: New file.
57734         * MODULES.html.sh (func_all_modules): Add mempcpy.
57735
57736 2003-07-14  Simon Josefsson  <jas@extundo.com>
57737
57738         * m4/mempcpy.m4: New file.
57739
57740 2003-07-14  Simon Josefsson  <jas@extundo.com>
57741
57742         * lib/mempcpy.h: New file.
57743         * lib/mempcpy.c: New file.
57744
57745 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57746
57747         * modules/getdate, modules/posixtm: Depend on mktime.
57748
57749 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57750
57751         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57752         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57753         unicodeio.c, unicodeio.h, unlocked-io.h:
57754         Switch from LGPL to GPL.
57755
57756 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57757
57758         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57759         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57760         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57761         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57762         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57763         updated automatically by ../config/srclist-update.  This changes
57764         their license from LPGL to GPL.
57765
57766 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57767
57768         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57769         assumed to refer to the root of the most recent stable gettext version.
57770         * config/srclistvars.sh: Add defaults for eggert.
57771         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57772         Match "This program" as well as "The program".  This is needed
57773         for gettext.
57774
57775 2003-07-14  Jim Meyering  <jim@meyering.net>
57776
57777         Don't emit diagnostics.  Let callers do that.
57778         * lib/save-cwd.c: Don't include "error.h".
57779         (save_cwd): Don't call error.  Ensure that errno is valid
57780         when returning nonzero.
57781
57782         * lib/save-cwd.h (restore_cwd): Update prototype.
57783         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57784         Simplify.  Don't call error upon failure.  Let callers do that.
57785         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57786         when auditing is enabled.  But don't bother updating the #if.
57787
57788 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57789
57790         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57791         it breaks C++ compilation.
57792         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57793
57794 2003-07-10  Simon Josefsson  <jas@extundo.com>
57795
57796         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57797
57798 2003-07-10  Jim Meyering  <jim@meyering.net>
57799
57800         * m4/clock_time.m4: Remove trailing blank.
57801         * m4/intmax_t.m4: Likewise.
57802
57803 2003-07-10  Jim Meyering  <jim@meyering.net>
57804
57805         * lib/vasnprintf.c: Remove trailing blanks.
57806         Make cpp indentation consistent.
57807
57808 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57809
57810         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57811         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57812         Switch from LGPL to GPL.
57813
57814 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57815
57816         * config/srclist.txt: Sort sublists.  Add
57817         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57818         that differ from gnulib for one reason or another; we'd like this list
57819         to be smaller but for now let's document what we have.
57820
57821 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57822
57823         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57824         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57825         and sweeter "eval x=$x".
57826         * config/srclist.txt: Get lib/argp* from glibc.
57827
57828 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57829
57830         * lib/mktime.c: Fix some boundary cases and remove need for floating
57831         point.
57832
57833         Issue a compile-time diagnostic if time_t is floating point, or if
57834         two's complement arithmetic is not in effect, or if arithmetic
57835         right shift does not propagate the sign.  These assumptions were
57836         all in the original code but they weren't checked.
57837
57838         (TIME_T_MIDPOINT, verify): New macros.
57839         (__isleap): Remove; it has integer overflow problems.
57840         (leapyear): New function, without those problems.
57841         (ydhms_tm_diff): Remove; splitting into two parts.
57842         (ydhms_diff): New function, containing the arithmetic part of
57843         the old ydhms_tm_diff function.  Issue a compile-time
57844         diagnostic if we are not using C99 integer division.
57845         Avoid casts when possible.
57846         (guess_time_tm): New function, containing the checking part of
57847         the old ydhms_tm_diff function.  Return the new value, rather than
57848         the difference between it and the old.  Accept a new argument T
57849         so that *T specifies the old value.  Check for overflow in the result.
57850
57851         (__mktime_internal): Use a time_t offset, not a long int offset.
57852         This undoes the 2003-06-04 change, which is no longer needed now
57853         that we have better overflow checking.
57854         (localtime_offset): Likewise.
57855
57856         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57857         and long are 64-bit but int is only 32-bit.
57858         (ydhms_diff): Use long int to store year1 and yday1.
57859         Issue a compile-time diagnostic if long int is not wide enough.
57860
57861         (__mktime_internal): Use long int to store adjusted year and yday.
57862         Use plain C rather than preprocessor commands, if that doesn't
57863         affect efficiency.
57864         Check for overflow (and try to repair) after each probe
57865         rather than checking only at the very end.  This avoids some bugs
57866         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57867         does not equal GMT offset at maximum time).
57868         Use integer to check for overflow rather than floating point; this
57869         is more portable to non-IEEE hosts, and is a tad faster.
57870         When we detect that we are oscillating between two values,
57871         don't check whether tm_isdst has the requested value, since
57872         we already know the answer.  When tm_isdst has the wrong value,
57873         use a different heuristic to find the right one, based on the
57874         extreme values actually observed in practice in tz2003a,
57875         rather than the (overly optimistic) "previous 3 calendar quarters".
57876
57877         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57878         "T const" to accommodate glibc style.
57879         (check_result): Use less-confusing report format.  "long" -> "long int.
57880         (main): Likewise.
57881         Don't loop if the iteration overflows time_t.
57882         Allow a negative step in the iteration.
57883
57884 2003-07-06  Karl Berry  <karl@gnu.org>
57885
57886         * config/depcomp: update from automake.
57887         * config/config.sub: update from prep.
57888
57889 2003-07-03  Karl Berry  <karl@gnu.org>
57890
57891         * config/config.guess: update from prep.
57892
57893 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57894
57895         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57896         xreadlink.c now includes it unconditionally.
57897
57898 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57899
57900         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57901         having it depend on HAVE_SYS_TYPES_H.
57902
57903 2003-07-01  Bruno Haible  <bruno@clisp.org>
57904
57905         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57906         <sys/types.h> should be sufficient.
57907         Reported by Paul Eggert.
57908
57909 2003-06-26  Karl Berry  <karl@gnu.org>
57910
57911         * config/depcomp: update from automake.
57912
57913 2003-06-26  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/human: Depend on module stdbool.
57916
57917 2003-06-25  Bruno Haible  <bruno@clisp.org>
57918
57919         * modules/readlink: New file.
57920         * modules/xreadlink: Depend on it.
57921         * MODULES.html.sh (func_all_modules): Add readlink.
57922
57923 2003-06-25  Bruno Haible  <bruno@clisp.org>
57924
57925         * m4/readlink.m4: New file.
57926
57927 2003-06-25  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/readlink.c: New file.
57930
57931 2003-06-22  Karl Berry  <karl@gnu.org>
57932
57933         * config/srclist.txt: update mkinstalldirs from automake.
57934         * config/mkinstalldirs: update.
57935
57936 2003-06-22  Bruno Haible  <bruno@clisp.org>
57937
57938         Portability to mingw32.
57939         * m4/ssize_t.m4: New file, from GNU gettext.
57940         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57941         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57942
57943 2003-06-22  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/safe-read: Add m4/ssize_t.m4.
57946         * modules/xreadlink: Add m4/ssize_t.m4.
57947
57948 2003-06-20  Bruno Haible  <bruno@clisp.org>
57949
57950         Assume C89, so PARAMS isn't needed.
57951         * lib/unicodeio.h (PARAMS): Remove.
57952         * lib/unicodeio.c: Don't use PARAMS.
57953
57954 2003-06-18  Karl Berry  <karl@gnu.org>
57955
57956         * config/config.{guess,sub}: update from prep.
57957
57958 2003-06-18  Jim Meyering  <jim@meyering.net>
57959
57960         Merge changes from coreutils.
57961         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57962         Remove explicit declarations of xmalloc and realloc.
57963         Include xalloc.h.
57964         (read_utmp): Remove anachronistic cast of xmalloc.
57965
57966 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57967
57968         Assume C89, so PARAMS isn't needed.
57969         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57970         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57971         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57972         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57973         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57974         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57975         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57976         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57977         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57978         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57979         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57980         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57981         no longer needed. Anyway, config.h should always be included before any
57982         other file.
57983
57984 2003-06-11  Simon Josefsson  <jas@extundo.com>
57985
57986         * modules/sysexits: New file.
57987         * MODULES.html.sh (func_all_modules): Add sysexits.
57988
57989 2003-06-11  Simon Josefsson  <jas@extundo.com>
57990
57991         * lib/sysexit_.h: New file.
57992
57993 2003-06-11  Derek Price  <derek@ximbiot.com>
57994
57995         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57996         necessary.
57997
57998 2003-06-11  Bruno Haible  <bruno@clisp.org>
57999
58000         * m4/sysexits.m4: New file.
58001
58002 2003-06-10  Simon Josefsson  <jas@extundo.com>
58003
58004         * lib/argp.h: New file, from glibc.
58005         * lib/argp-ba.c: New file, from glibc.
58006         * lib/argp-eexst.c: New file, from glibc.
58007         * lib/argp-fmtstream.c: New file, from glibc.
58008         * lib/argp-fmtstream.h: New file, from glibc.
58009         * lib/argp-fs-xinl.c: New file, from glibc.
58010         * lib/argp-help.c: New file, from glibc.
58011         * lib/argp-namefrob.h: New file, from glibc.
58012         * lib/argp-parse.c: New file, from glibc.
58013         * lib/argp-pv.c: New file, from glibc.
58014         * lib/argp-pvh.c: New file, from glibc.
58015         * lib/argp-xinl.c: New file, from glibc.
58016
58017 2003-06-10  Simon Josefsson  <jas@extundo.com>
58018
58019         * modules/strchrnul: New file.
58020
58021 2003-06-10  Simon Josefsson  <jas@extundo.com>
58022
58023         * modules/argp: New file.
58024
58025 2003-06-10  Simon Josefsson  <jas@extundo.com>
58026
58027         * m4/strchrnul.m4: New file.
58028
58029 2003-06-10  Simon Josefsson  <jas@extundo.com>
58030
58031         * lib/strchrnul.h: New file.
58032         * lib/strchrnul.c: New file.
58033
58034 2003-06-10  Bruno Haible  <bruno@clisp.org>
58035
58036         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58037
58038 2003-06-07  Karl Berry  <karl@gnu.org>
58039
58040         * config/config.{guess,sub}: update from prep.
58041
58042 2003-06-07  Jim Meyering  <jim@meyering.net>
58043
58044         * modules/strtod: Use $(...) notation, not @...@ for
58045         AC_REPLACE'd variables.
58046         * modules/localcharset: Likewise.
58047
58048 2003-06-07  Jim Meyering  <jim@meyering.net>
58049
58050         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58051         in place of my name in the copyright comment.
58052         Remove definition and uses of __P.
58053
58054         From coreutils.
58055         * lib/stat.c: Don't declare xmalloc explicitly.
58056         Instead, include "xalloc.h".
58057         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58058         xrealloc, and xcalloc return values.
58059         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58060         Improve comment.
58061         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58062
58063 2003-06-07  Bruno Haible  <bruno@clisp.org>
58064
58065         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58066         avoid AC_CONFIG_LINKS.
58067         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58068         fnmatch.h, to avoid AC_CONFIG_LINKS.
58069         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58070
58071 2003-06-07  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58074         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58075         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58076         directory.
58077         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58078         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58079         directory.
58080
58081 2003-06-06  Jim Meyering  <jim@meyering.net>
58082
58083         Merge from coreutils.
58084         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58085         Consolidate declarations and initializations of *_base* locals.
58086
58087         Merge from coreutils.
58088         This avoids a core dump on systems without GNU putenv,
58089         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58090         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58091         (unsetenv): New static function, from GNU libc.
58092         (rpl_putenv): Use it.
58093
58094         * lib/modechange.c: Remove trailing blanks.
58095
58096         Merge from coreutils.
58097         * lib/fsusage.c: Remove declaration of statfs.
58098         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58099
58100         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58101
58102 2003-06-06  Jim Meyering  <jim@meyering.net>
58103
58104         * lib/stdbool_.h: Renamed from stdbool.h.in.
58105
58106 2003-06-06  Jim Meyering  <jim@meyering.net>
58107             Bruno Haible  <bruno@clisp.org>
58108
58109         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58110         Adjust Makefile.am snippet not to redirect directly to target.
58111         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58112
58113 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58114
58115         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58116         mismatch, look in future quarters as well as past.  This fixes a
58117         bug when processing fall-backwards gaps immediately after a long
58118         period of daylight-saving time.
58119
58120         * lib/mktime.c: Assume freestanding C89 or better.
58121         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58122         (__P): Remove; not used.
58123         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58124         (mktime, not_equal_tm, print_tm, check_result,
58125         main): Use prototypes.  Use const * where appropriate.
58126         (main): Fix typo in testing code that uncovered by above changes.
58127         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58128
58129 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58130
58131         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58132         locale.h, localeconv.  This merges changes from coreutils.
58133
58134         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58135         It can be removed after the next Autoconf is released.
58136         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58137         needed.
58138
58139 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58140
58141         * lib/mktime.c: Fix Debian bug 177940
58142         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58143         (localtime_offset): Now long int, not time_t, because we want it
58144         to be guaranteed to be signed.  All uses changed.
58145         (__mktime_internal): If overflow would occur when adding offset,
58146         don't add it.
58147
58148         Merge 'human' changes from coreutils.  Rewrite to support
58149         locale-specific notations like thousands separators.
58150         * lib/human.c: Simplify authorship notice.
58151         Include human.h immediately after config.h.
58152         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58153         <limits.h>: Do not include, since human.h does.
58154         (SIZE_MAX, UINTMAX_MAX): New macros.
58155         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58156         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58157         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58158         (power_letter): Renamed from suffixes.
58159         (generate_suffix_backwards): Remove.
58160         (adjust_value): Now takes int style (because of human.h changes)
58161         and long double value (for greater precision on some platforms).
58162         (group_number): New function.
58163         (human_readable): Use it.  Use integer options, not enum.
58164         Put the options before the sizes in the arg list.
58165         Support all the new options.
58166         The old human_readable function has been removed;
58167         use inttostr.h instead.
58168         (human_readable, default_block_size, humblock):
58169         Use uintmax_t, not int, for block sizes.
58170         (human_readable_inexact, block_size_types): Remove.
58171         (block_size_opts): New constant.
58172         (human_options): Renamed from human_block_size, with new signature
58173         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58174         * lib/human.h: Add copyright and authorship notice.
58175         Include <limits.h> and <stdbool.h> unconditionally.
58176         (PARAMS): Remove.  All uses removed.
58177         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58178         (enum human_inexact_style): Remove tag; now a nameless enum.
58179         (human_floor, human_ceiling, human_round_to_even): Now have
58180         values 2, 0, 1 rather than -1, 1, 0.
58181         (human_group_digits, human_suppress_point_zero, human_autoscale,
58182         human_base_1024, human_SI, human_B): New constants.
58183         (human_readable_inexact, human_block_size): Remove.
58184         (human_readable): Size args are now uintmax_t, not int.
58185         (human_options): New decl.
58186
58187         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58188         unnecessary now that we assume C89 or better.  This change
58189         imported from coreutils.
58190
58191         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58192         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58193         in the 2003-05-30 sync from glibc.
58194
58195         .h files should stand alone, but we shouldn't include <sys/types.h>
58196         if we can get away with just <stddef.h>.
58197
58198         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58199         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58200         rather than <sys/types.h>, as we merely need size_t.
58201         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58202         to get size_t.
58203         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58204         Include <stdio.h>, to get FILE.
58205         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58206         memcasecmp.h has included <stddef.h> and all we need is size_t.
58207         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58208         our interface, instead of including <sys/types.h>
58209
58210 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58211
58212         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58213         now, as glibc mktime is buggy on non-glibc systems.
58214
58215 2003-06-03  Karl Berry  <karl@gnu.org>
58216
58217         * config/config.sub: update from prep.
58218
58219 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58220
58221         [from coreutils]
58222         Fix some minor time-related bugs with POSIX time arguments.
58223         Some valid time stamps were being rejected (notably -1, and
58224         time stamps before 1900 on 64-bit hosts).  And some invalid
58225         time stamps were being accepted, e.g. September 31.
58226
58227         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58228         that we can return (time_t) -1 successfully.
58229         * lib/posixtm.c: Likewise.
58230         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58231         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58232         (t): Remove static var.
58233         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58234         of static var.  All uses changed.
58235         (year): Do not reject years before 1900; they can occur with
58236         64-bit time_t.
58237         (posix_time_parse): Do not check for out-of-range components;
58238         that is now the caller's responsibility, since our checks were
58239         only approximations.
58240         (posixtime): Use mktime to check for out-of-range components,
58241         since it knows them exactly.
58242         If mktime returns (time_t) -1, check whether an error actually occurred
58243         by invoking localtime on -1.
58244         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58245         posixtime failures better.
58246         Improve the test data (in comments only).
58247
58248 2003-06-02  Karl Berry  <karl@gnu.org>
58249
58250         * config/mkinstalldirs (version): new variable.
58251         (--version): new option.
58252         (usage): improve message.
58253
58254 2003-05-30  Karl Berry  <karl@gnu.org>
58255
58256         * lib/mktime.c: update from libc.
58257
58258 2003-05-30  Bruno Haible  <bruno@clisp.org>
58259
58260         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58261         * config/config.rpath: Upgrade to gettext-0.12.1.
58262
58263 2003-05-30  Bruno Haible  <bruno@clisp.org>
58264
58265         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58266         * m4/nls.m4: New file, from gettext-0.12.1.
58267         * m4/po.m4: New file, from gettext-0.12.1.
58268         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58269
58270 2003-05-30  Bruno Haible  <bruno@clisp.org>
58271
58272         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58273         * lib/localcharset.h: Likewise.
58274         * lib/localcharset.c: Likewise.
58275
58276 2003-05-29  Karl Berry  <karl@gnu.org>
58277
58278         * config/config.rpath: update from gettext.
58279
58280 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58281
58282         Assume the headers required for C89 freestanding compilers.
58283         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58284         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58285         * m4/human.m4 (gl_HUMAN): Likewise.
58286         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58287         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58288         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58289         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58290         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58291         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58292
58293 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58294
58295         Assume the headers required for C89 freestanding compilers.
58296         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58297         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58298         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58299         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58300         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58301         define, since <limits.h> is guaranteed to do that.
58302         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58303         * lib/exclude.c: Include <stdbool.h> unconditionally.
58304         * lib/tempname.c: Include <stddef.h> unconditionally.
58305         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58306         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58307         <stddef.h> does that.
58308         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58309         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58310         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58311         needed.
58312         * lib/xstrtol.c: Likewise.
58313         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58314         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58315
58316         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58317         warnings on some platforms.
58318
58319         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58320         arbitrarily.
58321
58322 2003-05-26  Jim Meyering  <jim@meyering.net>
58323
58324         Merge in a change from coreutils:
58325         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58326         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58327         that condition, rather than `-1' which is slightly misleading.
58328         Change the name of the cache variable to have the gl_ prefix.
58329         Prompted by a patch from Richard Dawe for DJGPP.
58330
58331 2003-05-24  Karl Berry  <karl@gnu.org>
58332
58333         * config/config.guess: update from prep.
58334
58335 2003-05-22  Karl Berry  <karl@gnu.org>
58336
58337         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58338
58339 2003-05-20  Karl Berry  <karl@gnu.org>
58340
58341         * config/config.guess: update from prep.
58342
58343 2003-05-18  Karl Berry  <karl@gnu.org>
58344
58345         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58346         might actually be set by the user.
58347
58348         * config/depcomp, install-sh, mdate-sh: update from automake.
58349
58350 2003-05-17  Bruno Haible  <bruno@clisp.org>
58351
58352         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58353         invalid expansion for AC_EGREP_CPP.
58354         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58355         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58356         Suggested by Akim Demaille <akim@epita.fr> in
58357         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58358
58359 2003-05-12  Jim Meyering  <jim@meyering.net>
58360
58361         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58362         the space-padded-by-default conversion specifiers, %e, %k, %l.
58363
58364 2003-05-12  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58367         the string is longer than 4 KB.
58368
58369 2003-05-11  Karl Berry  <karl@gnu.org>
58370
58371         * config/config.{guess,sub}: update from prep.
58372
58373 2003-05-09  Bruno Haible  <bruno@clisp.org>
58374
58375         * modules/error: Add m4/strerror_r.m4 to file list.
58376
58377 2003-05-03  Bruno Haible  <bruno@clisp.org>
58378
58379         Upgrade to Unicode-4.0.
58380         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58381         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58382         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58383         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58384         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58385         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58386         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58387         Change width of U+E0100..U+E01EF from 1 to 0.
58388
58389 2003-04-25  Jim Meyering  <jim@meyering.net>
58390
58391         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58392         of type size_t, not int.
58393
58394 2003-04-25  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/copy-file.c: Include <stddef.h>, for size_t.
58397
58398 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58399
58400         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58401         code which expansion is under static control.  Patch imported from
58402         Akim Demaille's patch to Bison; see
58403         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58404
58405 2003-04-14  Bruno Haible  <bruno@clisp.org>
58406
58407         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58408
58409 2003-04-11  Jim Meyering  <jim@meyering.net>
58410
58411         Merge changes from Coreutils.
58412
58413         2003-03-22  Jim Meyering  <jim@meyering.net>
58414
58415         * lib/strftime.c (widen): Cast alloca return value to proper type.
58416
58417         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58418
58419         From GNU libc.
58420         * lib/strftime.c (my_strftime): Handle very large width
58421         specifications for numeric values correctly.  Improve checks for
58422         overflow.
58423
58424         2003-01-19  Jim Meyering  <jim@meyering.net>
58425
58426         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58427         definitions.
58428         (nl_get_alt_digit) [! defined my_strftime]: Define.
58429         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58430         _nl_get_alt_digit and _nl_get_walt_digit.
58431
58432         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58433         libc. These changes have no effect outside of _LIBC.
58434
58435 2003-04-10  Bruno Haible  <bruno@clisp.org>
58436
58437         * modules/findprog: New file.
58438         * MODULES.html.sh (func_all_modules): Add it.
58439
58440 2003-04-10  Bruno Haible  <bruno@clisp.org>
58441
58442         * m4/findprog.m4: New file.
58443         * m4/eaccess.m4: New file.
58444
58445 2003-04-10  Bruno Haible  <bruno@clisp.org>
58446
58447         * lib/findprog.h: New file, from GNU gettext.
58448         * lib/findprog.c: New file, from GNU gettext.
58449
58450 2003-04-05  Jim Meyering  <jim@meyering.net>
58451
58452         Merge changes from Coreutils.
58453
58454         * lib/exclude.h (PARAMS): Remove definition and uses.
58455         * lib/exclude.c: Remove uses of `PARAMS'.
58456
58457         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58458         Add test-cases for DOS filenames. Declare program_name.
58459         (main): Set up program_name.  Patch by Rich Dawe.
58460
58461         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58462         error from mntctl.
58463         Use mntctl's return value to drive the entry-processing loop, since
58464         we can't rely on the value of the vmt_length member in the last
58465         entry.  On some systems doing so could result in exhausting
58466         virtual memory.  Based in part on a patch from Mike Jetzer.
58467
58468 2003-04-04  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/linebreak: New file.
58471         * MODULES.html.sh (func_all_modules): Add it.
58472
58473 2003-04-04  Bruno Haible  <bruno@clisp.org>
58474
58475         * m4/linebreak.m4: New file.
58476
58477 2003-04-04  Bruno Haible  <bruno@clisp.org>
58478
58479         * lib/linebreak.h: New file, from GNU gettext.
58480         * lib/linebreak.c: New file, from GNU gettext with slight
58481         modifications.
58482         * lib/lbrkprop.h: New file, from GNU gettext.
58483
58484 2003-04-03  Bruno Haible  <bruno@clisp.org>
58485
58486         * modules/utf8-ucs4: New file.
58487         * modules/utf16-ucs4: New file.
58488         * modules/ucs4-utf8: New file.
58489         * modules/ucs4-utf16: New file.
58490         * MODULES.html.sh (func_all_modules): Add them.
58491
58492 2003-04-03  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/utf-ucs4.m4: New file.
58495         * m4/ucs4-utf.m4: New file.
58496
58497 2003-04-03  Bruno Haible  <bruno@clisp.org>
58498
58499         * lib/utf8-ucs4.h: New file, from GNU gettext.
58500         * lib/utf16-ucs4.h: New file, from GNU gettext.
58501         * lib/ucs4-utf8.h: New file, from GNU gettext.
58502         * lib/ucs4-utf16.h: New file, from GNU gettext.
58503
58504 2003-04-02  Bruno Haible  <bruno@clisp.org>
58505
58506         * modules/binary-io: New file.
58507         * MODULES.html.sh (func_all_modules): Add it.
58508
58509 2003-04-02  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/binary-io.h: New file, from GNU gettext.
58512
58513 2003-04-01  Bruno Haible  <bruno@clisp.org>
58514
58515         * modules/pathname: New file.
58516         * MODULES.html.sh (func_all_modules): Add it.
58517
58518 2003-04-01  Bruno Haible  <bruno@clisp.org>
58519
58520         * lib/pathname.h: New file, from GNU gettext.
58521         * lib/concatpath.c: New file, from GNU gettext.
58522
58523 2003-03-30  Bruno Haible  <bruno@clisp.org>
58524
58525         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58526
58527 2003-03-30  Bruno Haible  <bruno@clisp.org>
58528
58529         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58530         function chown() doesn't exist.
58531
58532 2003-03-28  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/copy-file: New file.
58535         * MODULES.html.sh (func_all_modules): Add it.
58536
58537 2003-03-28  Bruno Haible  <bruno@clisp.org>
58538
58539         * m4/copy-file.m4: New file.
58540
58541 2003-03-28  Bruno Haible  <bruno@clisp.org>
58542
58543         * lib/copy-file.h: New file, from GNU gettext.
58544         * lib/copy-file.c: New file, from GNU gettext.
58545
58546 2003-03-18  Jim Meyering  <jim@meyering.net>
58547
58548         * lib/quote.c (quote_n): Fix typo in comment.
58549
58550 2003-03-18  Bruno Haible  <bruno@clisp.org>
58551
58552         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58553         checking.
58554         * m4/onceonly_2_57.m4: Likewise.
58555
58556 2003-03-17  Bruno Haible  <bruno@clisp.org>
58557
58558         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58559         (m4_quote): Remove macro.
58560         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58561
58562 2003-03-14  Jim Meyering  <jim@meyering.net>
58563
58564         Merge changes from Coreutils.
58565         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58566         to be const, in order to avoid warnings.
58567         (obstack_room): Likewise.
58568         (obstack_empty_p): Likewise.
58569
58570 2003-03-14  Bruno Haible  <bruno@clisp.org>
58571
58572         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58573         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58574
58575 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58576
58577         Merge changes from Bison.
58578         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58579         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58580         when compiling Bison 1.875's `bitset bset = obstack_alloc
58581         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58582         * lib/hash.c: Include <stdbool.h> unconditionally.
58583
58584 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58585
58586         * m4/onceonly.m4 (m4_quote): New macro.
58587         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58588         Quote AC_FOREACH variable-expansions properly.
58589
58590 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58591
58592         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58593
58594 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58595
58596         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58597         Reported by Bruce Becker; see:
58598         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58599
58600 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58601             Bruno Haible  <bruno@clisp.org>
58602
58603         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58604         Reported by John Hughes, see
58605         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58606
58607 2003-02-20  Bruno Haible  <bruno@clisp.org>
58608
58609         * MODULES.html.sh (func_all_modules): Add poll.
58610
58611 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58612
58613         * modules/poll: New file.
58614
58615 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58616
58617         * lib/poll_.h: New file.
58618         * lib/poll.c: New file.
58619
58620 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58621
58622         * m4/poll.m4: New file.
58623
58624 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58625
58626         * modules/mathl: New file.
58627
58628 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58629
58630         * lib/mathl.h: New file.
58631         * lib/acosl.c: New file.
58632         * lib/asinl.c: New file.
58633         * lib/atanl.c: New file.
58634         * lib/ceill.c: New file.
58635         * lib/cosl.c: New file.
58636         * lib/expl.c: New file.
58637         * lib/floorl.c: New file.
58638         * lib/frexpl.c: New file.
58639         * lib/ldexpl.c: New file.
58640         * lib/logl.c: New file.
58641         * lib/sincosl.c: New file.
58642         * lib/sinl.c: New file.
58643         * lib/sqrtl.c: New file.
58644         * lib/tanl.c: New file.
58645         * lib/trigl.c: New file.
58646         * lib/trigl.h: New file.
58647
58648 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58649
58650         * m4/mathl.m4: New file.
58651
58652 2003-02-18  Bruno Haible  <bruno@clisp.org>
58653
58654         * MODULES.html.sh (func_all_modules): Add mathl.
58655
58656 2003-02-17  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/mkdtemp: New module.
58659         * MODULES.html.sh (func_all_modules): Add it.
58660
58661 2003-02-17  Bruno Haible  <bruno@clisp.org>
58662
58663         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58664
58665 2003-02-17  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/mkdtemp.h: New file, from GNU gettext.
58668         * lib/mkdtemp.c: New file, from GNU gettext.
58669
58670 2003-02-02  Jim Meyering  <jim@meyering.net>
58671
58672         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58673         e.g. glibc-2.2.93.
58674
58675 2003-01-31  Bruno Haible  <bruno@clisp.org>
58676
58677         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58678         'rpl_rename'.
58679         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58680         'rpl_strnlen'.
58681         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58682         'rpl_strtod'.
58683         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58684         'rpl_utime'.
58685
58686 2003-01-31  Bruno Haible  <bruno@clisp.org>
58687
58688         * lib/rename.c: #undef rename before defining rpl_rename.
58689         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58690
58691 2003-01-30  Bruno Haible  <bruno@clisp.org>
58692
58693         * modules/vasnprintf, modules/vasprintf: New modules.
58694         * MODULES.html.sh (func_all_modules): Add them.
58695
58696 2003-01-30  Bruno Haible  <bruno@clisp.org>
58697
58698         * m4/signed.m4: New file, from GNU gettext.
58699         * m4/longdouble.m4: New file, from GNU gettext.
58700         * m4/wchar_t.m4: New file, from GNU gettext.
58701         * m4/wint_t.m4: New file, from GNU gettext.
58702         * m4/vasnprintf.m4: New file.
58703         * m4/vasprintf.m4: New file.
58704
58705 2003-01-30  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/printf-args.h: New file, from GNU gettext.
58708         * lib/printf-args.c: New file, from GNU gettext.
58709         * lib/printf-parse.h: New file, from GNU gettext.
58710         * lib/printf-parse.c: New file, from GNU gettext.
58711         * lib/vasnprintf.h: New file, from GNU gettext.
58712         * lib/vasnprintf.c: New file, from GNU gettext.
58713         * lib/asnprintf.c: New file, from GNU gettext.
58714         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58715         * lib/vasprintf.c: New file, from GNU gettext.
58716         * lib/asprintf.c: New file, from GNU gettext.
58717
58718 2003-01-29  Bruno Haible  <bruno@clisp.org>
58719
58720         * modules/stpncpy: New module.
58721         * MODULES.html.sh (func_all_modules): Add it.
58722
58723 2003-01-29  Bruno Haible  <bruno@clisp.org>
58724
58725         * m4/stpncpy.m4: New file.
58726
58727 2003-01-29  Bruno Haible  <bruno@clisp.org>
58728
58729         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58730         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58731
58732 2003-01-28  Bruno Haible  <bruno@clisp.org>
58733
58734         * modules/c-ctype: New module.
58735         * MODULES.html.sh (func_all_modules): Add it.
58736
58737 2003-01-28  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58740         Paul Eggert.
58741         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58742         Paul Eggert.
58743
58744 2003-01-27  Bruno Haible  <bruno@clisp.org>
58745
58746         * modules/xsetenv: New module.
58747         * MODULES.html.sh (func_all_modules): Add it.
58748
58749 2003-01-27  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/xsetenv.h: New file, from GNU gettext.
58752         * lib/xsetenv.c: New file, from GNU gettext.
58753
58754 2003-01-23  Jim Meyering  <jim@meyering.net>
58755
58756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58757         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58758
58759 2003-01-23  Bruno Haible  <bruno@clisp.org>
58760
58761         * modules/minmax: New module.
58762         * MODULES.html.sh (func_all_modules): Add it.
58763
58764 2003-01-23  Bruno Haible  <bruno@clisp.org>
58765
58766         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58767         Eggert.
58768
58769 2003-01-22  Bruno Haible  <bruno@clisp.org>
58770
58771         * modules/exit: New module.
58772         * MODULES.html.sh (func_all_modules): Add it.
58773
58774 2003-01-22  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/exit.h: New file, from GNU gettext.
58777
58778 2003-01-19  Bruno Haible  <bruno@clisp.org>
58779
58780         * gnulib-tool: Recognize option --extract-maintainer.
58781         (func_get_maintainer): New function.
58782         * modules/*: Add Maintainer entry.
58783
58784 2003-01-16  Jim Meyering  <jim@meyering.net>
58785
58786         * m4/regex.m4: The `regex' struct is both input and output.
58787         Initialize it before each use.  Patch by Tim Waugh.
58788
58789 2003-01-16  Bruno Haible  <bruno@clisp.org>
58790
58791         * MODULES.html.sh: Add a table of contents. Add the module name as
58792         leftmost column. Add hyperlinks.
58793
58794 2003-01-15  Bruno Haible  <bruno@clisp.org>
58795
58796         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58797
58798 2003-01-15  Bruno Haible  <bruno@clisp.org>
58799
58800         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58801         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58802         suffix.
58803
58804 2003-01-15  Bruno Haible  <bruno@clisp.org>
58805
58806         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58807
58808 2003-01-15  Bruno Haible  <bruno@clisp.org>
58809
58810         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58811         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58812
58813 2003-01-14  Jim Meyering  <jim@meyering.net>
58814
58815         * lib/same.c (same_name): Tweak a comment.
58816
58817 2003-01-14  Bruno Haible  <bruno@clisp.org>
58818
58819         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58820         when a string comparison is sufficient.
58821
58822 2003-01-14  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58825         'unsigned int'.
58826
58827 2003-01-14  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/hash-pjw.c: Add comment about low quality of this function.
58830
58831 2003-01-13  Bruno Haible  <bruno@clisp.org>
58832
58833         * modules/stpcpy: Distribute lib/stpcpy.h.
58834         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58835
58836 2003-01-13  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/*: Add a description.
58839         * modules/strpbrk: Fix Makefile.am snippet.
58840         * modules/strtoimax: Fix dependencies.
58841         * modules/strtoumax: Likewise.
58842
58843 2003-01-13  Bruno Haible  <bruno@clisp.org>
58844
58845         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58846         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58847         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58848
58849 2003-01-13  Bruno Haible  <bruno@clisp.org>
58850
58851         * gnulib-tool (func_create_testdir): Store config/* files in the main
58852         directory.
58853         * config.rpath: Move to ...
58854         * config/config.rpath: ... here.
58855         * modules/gettext: Contains config/config.rpath, not config.rpath.
58856         * modules/iconv: Likewise.
58857
58858 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58859
58860         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58861         to avoid collisions with libcurses and libreadline.
58862
58863         * m4/getstr.m4: Remove.
58864         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58865
58866 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58867
58868         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58869         to avoid collisions with libcurses and libreadline.
58870
58871         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58872         * lib/getstr.h, getstr.c: Remove.
58873         * lib/getline.c: Include "getline.h", to check interface.
58874         Move body of old getstr.c here: this defines MIN_CHUNK and
58875         declares getdelim2, which is renamed from getstr.
58876         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58877
58878         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58879         All uses changed.
58880         * lib/linebuffer.h: Likewise.
58881         (readline): Remove backward-compatibility macro.
58882
58883 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58884
58885         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58886         to avoid collisions with libcurses and libreadline.
58887         * getstr: Remove.
58888         * MODULES.html.sh: Remove getstr.
58889         * modules/getline: Depend on unlocked-io, not getstr.
58890
58891 2003-01-12  Jim Meyering  <jim@meyering.net>
58892
58893         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58894
58895 2003-01-10  Bruno Haible  <bruno@clisp.org>
58896
58897         * modules/alloca: Change Makefile.am requirements. Simplify Include
58898         requirements. Add lib/alloca_.h to file list.
58899
58900 2003-01-10  Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58903
58904 2003-01-10  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/alloca_.h: New file.
58907         * lib/getdate.y: Unconditionally include alloca.h.
58908         * lib/makepath.c: Likewise.
58909         * lib/setenv.c: Likewise.
58910         * lib/userspec.c: Likewise.
58911
58912 2003-01-09  Karl Berry  <karl@gnu.org>
58913
58914         * MODULES.html.sh: include `dirname $0` in PATH, to find
58915         gnulib-tool.
58916
58917 2003-01-09  Bruno Haible  <bruno@clisp.org>
58918
58919         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58920         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58921
58922 2003-01-09  Bruno Haible  <bruno@clisp.org>
58923
58924         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58925
58926 2003-01-09  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/stdbool.h.in: New file.
58929
58930 2003-01-09  Bruno Haible  <bruno@clisp.org>
58931
58932         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58933         * MODULES.html.sh: Likewise.
58934
58935 2003-01-08  Jim Meyering  <jim@meyering.net>
58936
58937         * lib/full-write.c: Undefine and define-away `const' after inclusion
58938         of errno.h, not before.  Suggestion from Bruno Haible.
58939
58940 2003-01-08  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/full-read: Depend on full-write.
58943
58944 2003-01-08  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/safe-read.c: Include specification header first, to ensure its
58947         selfcontainedness.
58948         * lib/full-write.c: Likewise.
58949
58950 2003-01-07  Jim Meyering  <jim@meyering.net>
58951
58952         * lib/full-write.c: Rework so that it may serve to define full_read,
58953         too.
58954         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58955
58956 2003-01-07  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58959         <inttypes.h>.
58960         * lib/xstrtol.h: Likewise.
58961         * lib/xstrtoimax.c: Likewise.
58962         * lib/xstrtoumax.c: Likewise.
58963         * lib/human.h: Likewise.
58964
58965         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58966         on systems that have <inttypes.h> but not <stdint.h>.
58967
58968 2003-01-07  Bruno Haible  <bruno@clisp.org>
58969
58970         * MODULES.html.sh: Add copyright notice.
58971         (missed_files): Omit CVS directory entries.
58972         (func_module): Make it work with sed-3.02.
58973         * MODULES.txt: Remove file.
58974
58975 2003-01-06  Jim Meyering  <jim@meyering.net>
58976
58977         * lib/version-etc.c: Update year in translatable copyright string.
58978
58979 2003-01-03  Karl Berry  <karl@gnu.org>
58980
58981         * config/config.{guess,sub}: update from prep.
58982
58983 2003-01-02  Karl Berry  <karl@gnu.org>
58984
58985         * doc/COPYING.DOC: belatedly updated to 1.2.
58986
58987 2003-01-01  Karl Berry  <karl@gnu.org>
58988
58989         * gnulib-tool (func_verify_module): report module name $module in
58990         error message, not $1.
58991         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58992         be created, only if it doesn't exist.
58993         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58994
58995 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58996
58997         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58998
58999 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59000
59001         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59002         memcmp if strcoll doesn't work.
59003
59004 2002-12-31  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59007         nonempty.
59008
59009 2002-12-31  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/memcoll.c (STRCOLL): New macro.
59012         (memcoll): Use it.
59013
59014 2002-12-31  Bruno Haible  <bruno@clisp.org>
59015
59016         * lib/localcharset.h: New file.
59017         * lib/localcharset.c: Include it.
59018         * lib/unicodeio.c: Likewise.
59019
59020 2002-12-31  Bruno Haible  <bruno@clisp.org>
59021
59022         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59023         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59024
59025 2002-12-31  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/getline.h: Include <stddef.h>, for size_t.
59028
59029         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59030         * lib/unicodeio.c: Don't include <stddef.h>.
59031
59032 2002-12-31  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59035         HAVE_TM_ZONE.
59036
59037 2002-12-24  Karl Berry  <karl@gnu.org>
59038
59039         * config/config.guess: update from prep.
59040
59041 2002-12-24  Bruno Haible  <bruno@clisp.org>
59042
59043         General infrasructure.
59044         * m4/README: Rewritten.
59045         * m4/onceonly.m4: New file.
59046         * m4/onceonly_2_57.m4: New file.
59047
59048         Module atexit.
59049         * m4/atexit.m4: New file.
59050
59051         Module strtod.
59052         * m4/strtod.m4: New file.
59053
59054         Module strtol.
59055         * m4/strtol.m4: New file.
59056
59057         Module strtoul.
59058         * m4/strtoul.m4: New file.
59059
59060         Module memchr.
59061         * m4/memchr.m4: New file.
59062
59063         Module memcmp.
59064         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59065         (jm_FUNC_MEMCMP): Invoke it.
59066
59067         Module memcpy.
59068         * m4/memcpy.m4: New file.
59069
59070         Module memmove.
59071         * m4/memmove.m4: New file.
59072
59073         Module memset.
59074         * m4/memset.m4: New file.
59075
59076         Module strcspn.
59077         * m4/strcspn.m4: New file.
59078
59079         Module strpbrk.
59080         * m4/strpbrk.m4: New file.
59081
59082         Module strstr.
59083         * m4/strstr.m4: New file.
59084
59085         Module strerror.
59086         * m4/strerror.m4: New file.
59087
59088         Module mktime.
59089         * m4/mktime.m4: Renamed from jm-mktime.m4.
59090         (gl_PREREQ_MKTIME): New macro.
59091         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59092
59093         Module malloc.
59094         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59095         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59096         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59097
59098         Module realloc.
59099         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59100         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59101         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59102
59103         Module strftime.
59104         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59106         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59107         gl_TM_GMTOFF.
59108         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59109
59110         Module xalloc.
59111         * m4/xalloc.m4: New file.
59112
59113         Module alloca.
59114         * m4/alloca.m4: New file.
59115
59116         Module putenv.
59117         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59118         (jm_FUNC_PUTENV): Invoke it.
59119
59120         Module setenv.
59121         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59122         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59123         when invoked twice.
59124         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59125         gt_FUNC_SETENV.
59126
59127         Module memrchr.
59128         * m4/memrchr.m4: New file.
59129
59130         Module stpcpy.
59131         * m4/stpcpy.m4: New file.
59132
59133         Module strcase.
59134         * m4/strcase.m4: New file.
59135
59136         Module strdup.
59137         * m4/strdup.m4: New file.
59138
59139         Module strnlen.
59140         * m4/strnlen.m4: New file.
59141
59142         Module strndup.
59143         * m4/strndup.m4: New file.
59144
59145         Module xstrtod.
59146         * m4/xstrtod.m4: New file.
59147
59148         Module xstrtol.
59149         * m4/xstrtol.m4: New file.
59150
59151         Module getdate.
59152         * m4/getdate.m4: New file.
59153
59154         Module unlocked-io.
59155         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59156         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59157         * m4/jm-glibc-io.m4n: Remove file.
59158
59159         Module long-options.
59160         * m4/long-options.m4: New file.
59161
59162         Module md5.
59163         * m4/md5.m4: New file.
59164
59165         Module sha.
59166         * m4/sha.m4: New file.
59167
59168         Module getstr.
59169         * m4/getstr.m4: New file.
59170
59171         Module getline.
59172         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59173         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59174         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59175         simply getline. Infoke gl_PREREQ_GETLINE.
59176
59177         Module obstack.
59178         * m4/obstack.m4: New file.
59179
59180         Module hash.
59181         * m4/hash.m4: New file.
59182
59183         Module readtokens.
59184         * m4/readtokens.m4: New file.
59185
59186         Module strverscmp.
59187         * m4/strverscmp.m4: New file.
59188
59189         Module stdbool.
59190         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59191         OSF/1.
59192
59193         Module strtoll.
59194         * m4/strtoll.m4: New file.
59195
59196         Module strtoull.
59197         * m4/strtoull.m4: New file.
59198
59199         Module strtoimax.
59200         * m4/strtoimax.m4: New file.
59201
59202         Module strtoumax.
59203         * m4/strtoumax.m4: New file.
59204
59205         Module xstrtoimax.
59206         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59207         jm_AC_PREREQ_XSTRTOIMAX.
59208         Moved the strtol prerequisites to strtol.m4.
59209         Moved the strtoll prerequisites to strtoll.m4.
59210         Moved the strtoimax prerequisites to strtoimax.m4.
59211
59212         Module xstrtoumax.
59213         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59214         jm_AC_PREREQ_XSTRTOUMAX.
59215         Moved the strtoul prerequisites to strtoul.m4.
59216         Moved the strtoull prerequisites to strtoull.m4.
59217         Moved the strtoumax prerequisites to strtoumax.m4.
59218
59219         Module chown.
59220         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59221         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59222
59223         Module dup2.
59224         * m4/dup2.m4: New file.
59225
59226         Module ftruncate.
59227         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59228         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59229
59230         Module getgroups.
59231         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59232         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59233
59234         Module gettimeofday.
59235         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59236         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59237         gl_PREREQ_GETTIMEOFDAY.
59238
59239         Module mkdir.
59240         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59241         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59242
59243         Module mkstemp.
59244         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59245         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59246         jm_AC_TYPE_UINTMAX_T.
59247         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59248
59249         Module stat.
59250         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59251         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59252
59253         Module lstat.
59254         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59255         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59256
59257         Module timespec.
59258         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59259         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59260         * m4/st_mtim.m4: Indentation.
59261
59262         Module nanosleep.
59263         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59264         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59265         gl_PREREQ_NANOSLEEP.
59266
59267         Module regex.
59268         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59269         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59270         (gl_REGEX): New macro.
59271
59272         Module rename.
59273         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59274         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59275
59276         Module rmdir.
59277         * m4/rmdir.m4: New file.
59278
59279         Module utime.
59280         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59281         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59282         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59283
59284         Module dirname.
59285         * m4/dirname.m4: New file.
59286
59287         Module getopt.
59288         * m4/getopt.m4: New file.
59289
59290         Module unistd-safer.
59291         * m4/unistd-safer.m4: New file.
59292
59293         Module fnmatch.
59294         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59295         declaration.
59296         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59297         (gl_FUNC_FNMATCH_POSIX): New macro.
59298         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59299         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59300         simply fnmatch.
59301
59302         Module exclude.
59303         * m4/exclude.m4: New file.
59304
59305         Module human.
59306         * m4/human.m4: New file.
59307
59308         Module acl.
59309         * m4/acl.m4: Nop.
59310
59311         Module backupfile.
59312         * m4/backupfile.m4: New file.
59313         * m4/d-ino.m4: Indentation.
59314
59315         Module fsusage.
59316         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59317         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59318         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59319
59320         Module dirfd.
59321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59322         requirements.
59323
59324         Module euidaccess.
59325         * m4/euidaccess.m4: New file.
59326
59327         Module file-type.
59328         * m4/file-type.m4: New file.
59329
59330         Module fileblocks.
59331         * m4/fileblocks.m4: New file.
59332
59333         Module filemode.
59334         * m4/filemode.m4: New file.
59335
59336         Module isdir.
59337         * m4/isdir.m4: New file.
59338
59339         Module lchown.
59340         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59341         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59342
59343         Module makepath.
59344         * m4/makepath.m4: New file.
59345
59346         Module modechange.
59347         * m4/modechange.m4: New file.
59348
59349         Module mountlist.
59350         * m4/mountlist.m4: New file.
59351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59352         Indentation.
59353
59354         Module path-concat.
59355         * m4/path-concat.m4: New file.
59356
59357         Module pathmax.
59358         * m4/pathmax.m4: New file.
59359
59360         Module same.
59361         * m4/same.m4: New file.
59362
59363         Module save-cwd.
59364         * m4/save-cwd.m4: New file.
59365
59366         Module savedir.
59367         * m4/savedir.m4: New file.
59368
59369         Module xgetcwd.
59370         * m4/xgetcwd.m4: New file.
59371         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59372
59373         Module xreadlink.
59374         * m4/xreadlink.m4: New file.
59375
59376         Module safe-read.
59377         * m4/safe-read.m4: New file.
59378
59379         Module safe-write.
59380         * m4/safe-write.m4: New file.
59381
59382         Module closeout.
59383         * m4/closeout.m4: New file.
59384
59385         Module stdio-safer.
59386         * m4/stdio-safer.m4: New file.
59387
59388         Module getpass.
59389         * m4/getpass.m4: New file.
59390
59391         Module getugroups.
59392         * m4/getugroups.m4: New file.
59393
59394         Module group-member.
59395         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59396         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59397
59398         Module idcache.
59399         * m4/idcache.m4: New file.
59400
59401         Module userspec.
59402         * m4/userspec.m4: New file.
59403
59404         Module gettime.
59405         * m4/clock_time.m4: New file.
59406         * m4/gettime.m4: New file.
59407
59408         Module settime.
59409         * m4/settime.m4: New file.
59410
59411         Module posixtm.
59412         * m4/posixtm.m4: New file.
59413
59414         Module gethostname.
59415         * m4/gethostname.m4: New file.
59416
59417         Module canon-host.
59418         * m4/canon-host.m4: New file.
59419
59420         Module gettext.
59421         * m4/codeset.m4: New file, from gettext-0.11.5.
59422         * m4/gettext.m4: New file, from gettext-0.11.5.
59423         * m4/glibc21.m4: New file, from gettext-0.11.5.
59424         * m4/iconv.m4: New file, from gettext-0.11.5.
59425         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59426         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59427         * m4/inttypes.m4: New file, from gettext-0.11.5.
59428         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59429         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59430         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59431         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59432         * m4/lib-link.m4: New file, from gettext-0.11.5.
59433         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59434         * m4/progtest.m4: New file, from gettext-0.11.5.
59435         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59436         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59437         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59438
59439         Module localcharset.
59440         * m4/localcharset.m4: New file.
59441
59442         Module hard-locale.
59443         * m4/hard-locale.m4: New file.
59444
59445         Module mbswidth.
59446         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59447         onceonly macros.
59448         * m4/mbrtowc.m4: Add comment.
59449
59450         Module memcasecmp.
59451         * m4/memcasecmp.m4: New file.
59452
59453         Module memcoll.
59454         * m4/memcoll.m4: New file.
59455
59456         Module unicodeio.
59457         * m4/unicodeio.m4: New file.
59458
59459         Module rpmatch.
59460         * m4/rpmatch.m4: New file.
59461
59462         Module yesno.
59463         * m4/yesno.m4: New file.
59464
59465         Module exitfail.
59466         * m4/exitfail.m4: New file.
59467
59468         Module c-stack.
59469         * m4/c-stack.m4 (gl_C_STACK): New macro.
59470         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59471
59472         Module error.
59473         * m4/error.m4 (gl_ERROR): New macro.
59474         (jm_PREREQ_ERROR): Use onceonly macros.
59475
59476         Module fatal.
59477         * m4/fatal.m4: New file.
59478
59479         Module getloadavg.
59480         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59481         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59482
59483         Module getpagesize.
59484         * m4/getpagesize.m4: New file.
59485
59486         Module getusershell.
59487         * m4/getusershell.m4: New file.
59488
59489         Module physmem.
59490         * m4/physmem.m4: New file.
59491
59492         Module posixver.
59493         * m4/posixver.m4: New file.
59494
59495         Module quotearg.
59496         * m4/quotearg.m4: New file.
59497
59498         Module quote.
59499         * m4/quote.m4: New file.
59500
59501         Module readutmp.
59502         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59503
59504         Module sig2str.
59505         * m4/sig2str.m4: New file.
59506
59507         Other.
59508         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59509         ulonglong.m4.
59510         * m4/intmax_t.m4: New file.
59511         * m4/d-type.m4: Indentation.
59512         * m4/jm-macros.m4: Update.
59513         * m4/prereq.m4 (jm_PREREQ): Update.
59514         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59515         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59516         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59517         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59518         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59519         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59520         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59521         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59522         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59523         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59524         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59525         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59526         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59527         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59528         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59529         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59530         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59531         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59532         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59533
59534 2002-12-24  Bruno Haible  <bruno@clisp.org>
59535
59536         * MODULES.txt: Update according to m4/ changes.
59537
59538         Module gettext.
59539         * config.rpath: New file, from gettext-0.11.5.
59540
59541         * modules/*: New module descriptions.
59542         * gnulib-tool: New file.
59543         * MODULES.html.sh: New file.
59544
59545 2002-12-21  Karl Berry  <karl@gnu.org>
59546
59547         * doc/fdl.texi: update to version 1.2.
59548
59549 2002-12-19  Karl Berry  <karl@gnu.org>
59550
59551         * config/config.guess: update from prep.
59552
59553 2002-12-18  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59556         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59557
59558 2002-12-17  Bruno Haible  <bruno@clisp.org>
59559
59560         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59561         stdlib.h, string.h.
59562
59563 2002-12-17  Bruno Haible  <bruno@clisp.org>
59564
59565         * lib/canon-host.c (strdup): Remove unused declaration.
59566
59567         * lib/fsusage.c: Include full_read.h.
59568         (get_fs_usage): Use full_read instead of safe_read.
59569
59570         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59571
59572 2002-12-12  Karl Berry  <karl@gnu.org>
59573
59574         * config/config.guess: update from prep.
59575
59576 2002-12-11  Bruno Haible  <bruno@clisp.org>
59577
59578         * m4/setenv.m4: New file, from gettext-0.11.5.
59579
59580 2002-12-11  Bruno Haible  <bruno@clisp.org>
59581
59582         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59583         not unsetenv().
59584         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59585         modifications:
59586
59587         2002-12-11  Bruno Haible  <bruno@clisp.org>
59588
59589                 * setenv.c (alloca): Fall back to malloc.
59590                 (freea): New macro.
59591                 (setenv): Use freea() to free memory allocated with alloca().
59592
59593         2002-11-13  Bruno Haible  <bruno@clisp.org>
59594
59595                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59596                 function declarations.
59597                 * unsetenv.c (unsetenv): Likewise.
59598
59599         2002-03-04  Bruno Haible  <bruno@clisp.org>
59600
59601                 Portability to AIX 4.3.3.
59602                 * unsetenv.c: New file, extracted from setenv.c.
59603                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59604
59605         2001-12-20  Bruno Haible  <bruno@clisp.org>
59606
59607                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59608                 use malloc instead. For SunOS 4.
59609
59610         2001-12-11  Bruno Haible  <bruno@clisp.org>
59611
59612                 * setenv.c: Declare alloca.
59613                 (compar_fn_t): New typedef.
59614                 (KNOWN_VALUE, STORE_VALUE): Use it.
59615
59616         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59617         setenv.h.
59618
59619 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59620
59621         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59622         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59623         Choose values that are less likely to collide with system fnmatch
59624         options.
59625         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59626         defined (e.g., a pure POSIX system).
59627         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59628         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59629
59630 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59631
59632         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59633         a pain in practice to deal with generated m4 files.  This change
59634         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59635
59636         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59637         and jm-glibc-io.m4, as they are no longer a special case.
59638         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
59639         kludge and the auto-generation stuff.  Check only whether the
59640         functions are declared, not whether they exist, since older hosts
59641         that don't declare the functions can't use the optimization anyway.
59642
59643 2002-12-06  Jim Meyering  <jim@meyering.net>
59644
59645         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
59646
59647         Merge in changes from libc's misc/error.c, in preparation
59648         for the merge of gnulib's changes back into libc.
59649
59650         * lib/error.c (_): Define only if not already defined.
59651         Move definition to follow all #include directives.
59652         Include unlocked-io.h only if !_LIBC.
59653         [_LIBC]: Include <libio/libioP.h>.
59654         [USE_IN_LIBIO]: Include <libio/iolibio.h>
59655         (fflush): Tweak definition to use INTUSE.
59656         (putc): Define.
59657
59658 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59659
59660         * lib/alloca.c [defined emacs]: Include "lisp.h".
59661         (xalloc_die) [defined emacs]: New macro.
59662         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59663         [! defined emacs]: Include <xalloc.h>.
59664         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59665         (pointer): Typedef to POINTER_TYPE *.
59666         (malloc): Remove decl; we now always use xmalloc.
59667         (alloca): Use old-style definition, since Emacs needs this.
59668         Check for arithmetic overflow when computing combined size.
59669
59670 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59671
59672         Do not generate unlocked-io.h automatically, since it's easier to
59673         maintain it by hand.
59674
59675         * lib/unlocked-io.h: New file, from GNU diffutils,
59676         but with proper copyright notice and attribution.
59677         * lib/gen-uio: Remove.
59678         * lib/Makefile.am: Add copyright notice.
59679         (libfetish_a_SOURCES): Add unlocked-io.h.
59680         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59681         (DISTCLEANFILES, io_functions): Remove macros.
59682         (EXTRA_DIST): Remove gen_uio.
59683         (unlocked-io.h): Remove rule.
59684
59685 2002-12-04  Jim Meyering  <jim@meyering.net>
59686
59687         Reflect the fact that stat.c and lstat.c are no longer generated.
59688         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59689         (DISTCLEANFILES): Likewise.
59690         (EXTRA_DIST): Likewise.
59691         (all_local): Don't depend on stat.c or lstat.c.
59692         (stat.c, lstat.c): Remove rules.
59693         (EXTRA_DIST): Remove xstat.in.
59694
59695         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59696         * lib/stat.c: New file.  Contents mostly from xstat.in.
59697         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59698         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59699
59700         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59701         too.
59702         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59703
59704 2002-12-03  Jim Meyering  <jim@meyering.net>
59705
59706         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59707         but not semantics, to minimize the differences between these two files.
59708         (safe_read): Change comment to mention SAFE_READ_ERROR.
59709
59710         * lib/safe-read.c (IS_EINTR): Define.
59711         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59712
59713 2002-12-02  Jim Meyering  <jim@meyering.net>
59714
59715         * lib/safe-read.c (EINTR): Define.
59716         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59717         (INT_MAX): Provide fallback.
59718         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59719
59720         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59721
59722 2002-12-02  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59725         Define, taken from safe-read.c.
59726         (INT_MAX): Provide fallback.
59727         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59728         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59729
59730         * lib/safe-read.c (EINTR): Remove definition.
59731         (safe_read): Don't use EINTR if it is absent.
59732
59733 2002-12-01  Jim Meyering  <jim@meyering.net>
59734
59735         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59736         zero.
59737         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59738
59739 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59740
59741         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59742         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59743         with `if (! (value < limit)) abort ();', for readability.
59744
59745 2002-11-26  Karl Berry  <karl@gnu.org>
59746
59747         * lib/strdup.c: copy from libc again, with jim's ok.
59748         * lib/.cppi-disable: re-add strdup.c
59749
59750 2002-11-25  Karl Berry  <karl@gnu.org>
59751
59752         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59753         instead of "strtol.c".
59754
59755 2002-11-25  Karl Berry  <karl@gnu.org>
59756
59757         * config/install-sh: update from automake for variable quoting, $0 in
59758         error msgs, etc.
59759
59760         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59761         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59762         entry.
59763
59764 2002-11-25  Jim Meyering  <jim@meyering.net>
59765
59766         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59767
59768 2002-11-24  Karl Berry  <karl@gnu.org>
59769
59770         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59771         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59772
59773 2002-11-24  Jim Meyering  <jim@meyering.net>
59774
59775         Update from coreutils:
59776
59777         * lib/mktime.c: Merge in changes from libc.
59778
59779         Avoid a link-time failure on some Linux systems.
59780         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59781         (otherwise).
59782         (__mon_yday): Declare with the STATIC attribute.
59783         (__mktime_internal): Likewise.
59784         Based on a report from Greg Schafer.
59785
59786 2002-11-23  Jim Meyering  <jim@meyering.net>
59787
59788         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59789         Use `unsigned', not `int', as type of index.
59790
59791         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59792
59793         * lib/fsusage.c: Remove unneeded parentheses around operands of
59794         `defined'.
59795
59796 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59797
59798         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59799         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59800         so that we can be included first.
59801         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59802         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59803         No need to include stddef.h or sys/types.h any more.
59804         Surround local include files with "", not "<>".
59805         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59806         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59807         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59808         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59809         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59810         (ISPRINT): Remove; no longer needed now that we assume C89.
59811
59812         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59813         Preserve errno.
59814
59815         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59816         quotearg_char): Use SIZE_MAX rather than
59817         (size_t) -1 when we are talking about "infinity".
59818
59819         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59820
59821 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59822
59823         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59824         hint that one should use `if (! x) abort ();' rather than `assert
59825         (x);', and anyway it's one less thing to worry about configuring.
59826         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59827         hash_rehash, hash_insert): Use abort rather than assert.
59828
59829 2002-11-22  Bruno Haible  <bruno@clisp.org>
59830
59831         * lib/safe-read.h: Assume C89. Add comments.
59832         (safe_read): Change return type to size_t.
59833         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59834         byte counts > SSIZE_MAX correctly.
59835         * lib/safe-write.h: New file.
59836         * lib/safe-write.c: New file.
59837         * lib/full-read.h: New file.
59838         * lib/full-read.c: New file.
59839         * lib/full-write.h: Assume C89. Add comments.
59840         * lib/full-write.c: Include safe-write.h.
59841         (full_write): Rewritten to use safe_write.
59842         Suggested by Jim Meyering and Paul Eggert.
59843
59844 2002-11-21  Jim Meyering  <jim@meyering.net>
59845
59846         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59847
59848         Merge in changes from the coreutils.
59849
59850         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59851         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59852         <stdint.h>.
59853         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59854         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59855         int.  Work more efficiently if X is the same width as uintmax_t.
59856         Do not compare X to -1, to avoid bogus compiler warning.
59857         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59858         Don't assume that f_frsize and f_bsize are the same type.
59859
59860         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59861         warning on FreeBSD.
59862
59863         * lib/makepath.c (make_path): Restore umask *before* creating the final
59864         component.
59865         (make_path): Minor reformatting.
59866
59867         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59868         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59869         HAVE_MALLOC/HAVE_REALLOC.
59870
59871         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59872         dummy ones.  At least on GNU/Linux systems, `auto' means something
59873         else.
59874         From Michael Stone.
59875
59876 2002-11-21  Bruno Haible  <bruno@clisp.org>
59877
59878         Remove case insensitive option matching.
59879         * lib/argmatch.h (argcasematch): Remove declaration.
59880         (ARGCASEMATCH): Remove macro.
59881         (__xargmatch_internal): Remove case_sensitive argument.
59882         (XARGMATCH): Update.
59883         (XARGCASEMATCH): Remove macro.
59884         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59885         case_sensitive argument.
59886         (argcasematch): Remove function.
59887         (__xargmatch_internal): Remove case_sensitive argument.
59888         (main): Use XARGMATCH instead of XARGCASEMATCH.
59889
59890         * lib/xmalloc.c: Change compile-time error message. Add comment about
59891         required autoconf version.
59892
59893 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59894
59895         Merge argmatch cleanups from Bison.  Assume C89.
59896
59897         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59898         Include stdlib.h, for EXIT_FAILURE.
59899         Always include <string.h>, since we assume C89.
59900         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59901         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59902         Include <stddef.h> instead, since it's all we need for size_t.
59903         (PARAMS): Remove.  All uses removed.
59904         (ARRAY_CARDINALITY): Do not bother to #undef.
59905         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59906         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59907         Remove unnecessary parentheses.
59908         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59909         Insert necessary parentheses.
59910         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59911         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59912
59913 2002-11-19  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59916         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59917
59918         * lib/mbswidth.h (PARAMS): Remove macro.
59919         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59920         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59921
59922         * lib/gcd.h (PARAMS): Remove macro.
59923         (gcd): Use ANSI C function declarations.
59924         * lib/gcd.c (gcd): Likewise.
59925
59926 2002-11-15  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/strcspn.c: Include <stddef.h>.
59929         (strcspn): Use ANSI C function declaration. Change return type to
59930         size_t. Use NULL.
59931         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59932         (strpbrk): Use NULL.
59933         * lib/strpbrk.h (PARAMS): Remove macro.
59934         (strpbrk): Use ANSI C function declaration.
59935         * lib/strstr.c: Don't include <sys/types.h>.
59936         * lib/strstr.h (PARAMS): Remove macro.
59937         (strstr): Use ANSI C function declarations.
59938
59939 2002-11-14  Karl Berry  <karl@gnu.org>
59940
59941         * config/mkinstalldirs: `do' on separate line, instead of
59942         `for var; do'.
59943
59944 2002-11-06  Bruno Haible  <bruno@clisp.org>
59945
59946         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59947         * lib/gcd.c (gcd): Likewise.
59948
59949 2002-11-05  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/gcd.h: New file, from gettext-0.11.5.
59952         * lib/gcd.c: New file, from gettext-0.11.5.
59953
59954 2002-11-05  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59957         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59958         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59959         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59960
59961         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59962         <libintl.h>.
59963         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59964         <libintl.h>.
59965
59966         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59967         * lib/human.c: Include gettext.h instead of <libintl.h>.
59968         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59969         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59970         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59971         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59972         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59973         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59974         (textdomain): Remove definition.
59975         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59976
59977         * lib/long-options.c: Remove include of <libintl.h> and definition of
59978         _.
59979         * lib/same.c: Remove include of <libintl.h> and definition of _.
59980
59981 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59982
59983         * lib/config.charset: A few additions for Solaris.
59984
59985 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59986
59987         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59988         * lib/localcharset.c (locale_charset): Declare as extern "C".
59989
59990 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59991
59992         * lib/config.charset: msdos in uk_UA uses CP1125.
59993
59994 2002-11-04  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59997         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59998         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59999         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60000         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60001
60002 2002-11-04  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/localcharset.c (locale_charset): Don't return an empty string.
60005
60006 2002-11-04  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60009         aliases.
60010
60011 2002-11-04  Bruno Haible  <bruno@clisp.org>
60012
60013         * lib/config.charset: Update for newest glibc. Add canonical names
60014         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60015
60016 2002-11-04  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/config.charset: Add support for NetBSD.
60019
60020 2002-11-04  Bruno Haible  <bruno@clisp.org>
60021
60022         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60023
60024 2002-11-01  Bruno Haible  <bruno@clisp.org>
60025
60026         * configure.in: Add AC_CONFIG_AUX_DIR call.
60027         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60028         test/Makefile.
60029         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60030
60031 2002-09-28  Karl Berry  <karl@gnu.org>
60032
60033         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60034         installed automake until the next release, since changes have been
60035         made.
60036
60037 2002-09-25  Karl Berry  <karl@gnu.org>
60038
60039         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60040         * lib/getopt*: copy from libc/posix.
60041         * lib/gettext.h: copy from gettext.
60042         * lib/.cppi-disable: add strdup.c, gettext.h.
60043
60044 2002-09-25  Karl Berry  <karl@gnu.org>
60045
60046         * config/srclist.txt: enable gettext.h check.
60047         * config/config.{guess,sub}: update from prep.
60048         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60049                 from automake 1.6.3.
60050         See srclist*.
60051
60052 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60053
60054         * regex.c (PATFETCH): Remove the translating fetch.
60055         (PATFETCH_RAW): Rename to PATFETCH.
60056         (set_image_of_range): New fun.
60057         (SET_RANGE_TABLE_WORK_AREA): Use it.
60058         (regex_compile): Don't translate the pattern chars so eagerly.
60059         Only do it when inserting an `exactn' bytecode or when handling
60060         a char-range.
60061         (mutually_exclusive_p): Avoid empty statement.
60062
60063 2002-07-06  Jim Meyering  <meyering@lucent.com>
60064
60065         * m4/README: Don't mention Makefile.am.in.
60066         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60067
60068 2002-07-01  Jim Meyering  <meyering@lucent.com>
60069
60070         * lib/c-stack.c: Include sys/time.h.
60071         From Volker Borchert.
60072
60073 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60074
60075         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60076
60077 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60078
60079         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60080         New macro.  Use it uniformly instead of
60081         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60082         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60083         reported by Vin Shelton.
60084
60085 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60086
60087         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60088         Do not assume SA_SIGINFO behavior.
60089         Bug reported by Jim Meyering on NetBSD 1.5.2.
60090
60091 2002-06-22  Jim Meyering  <meyering@lucent.com>
60092
60093         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60095
60096         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60097         now that configure.ac uses AC_GNU_SOURCE.
60098         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60099         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60100
60101         Update to latest tools.  Suggestions from Paul Eggert.
60102         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60103         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60104         * m4/fnmatch.m4: Likewise.
60105         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60106         to AC_HEADER_STDBOOL
60107
60108 2002-06-22  Jim Meyering  <meyering@lucent.com>
60109
60110         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60111         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60112
60113 2002-06-22  Jim Meyering  <meyering@lucent.com>
60114
60115         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60116
60117         * lib/exitfail.c, exitfail.h: Likewise.
60118         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60119
60120         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60121         of fnmatch.h.
60122         (EXTRA_DIST): Add fnmatch_loop.c.
60123         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60124
60125         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60126         * lib/fnmatch.c: Update from diffutils-2.8.2.
60127         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60128         * lib/fnmatch.h: Remove file.
60129
60130 2002-06-21  Jim Meyering  <meyering@lucent.com>
60131
60132         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60133         * m4/mbrtowc.m4: Likewise.
60134
60135         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60136         * m4/mbswidth.m4: Reflect name change:
60137         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60138         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60139
60140         * m4/lib-link.m4: Update from gettext-0.11.2.
60141         * m4/gettext.m4: Likewise.
60142
60143         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60144         From Alfred M. Szmidt.
60145
60146 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60147
60148         * lib/file-type.h: Report an error if neither S_ISREG nor
60149         S_IFREG is defined, instead of using a test specific to glibc
60150         2.2.  This should be safe, since POSIX requires S_ISREG and
60151         Unix Version 7 had S_IFREG.  We don't need to check for
60152         <sys/types.h> since we don't use any symbols that it defines.
60153
60154 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60155
60156         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60157         $@-t, so that each temporary file name is unique and valid in the first
60158         8 characters, for operation under DOS.
60159
60160 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60161
60162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60163
60164 2002-06-15  Jim Meyering  <meyering@lucent.com>
60165
60166         Work even with DJGPP 2.03, which lacks support for symlinks.
60167         From Richard Dawe.
60168         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60169         is defined.
60170         * lib/lchown.c (S_ISLNK): Likewise.
60171
60172 2002-06-15  Jim Meyering  <meyering@lucent.com>
60173
60174         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60175         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60176         have been included before this file.
60177
60178 2002-06-14  Jim Meyering  <meyering@lucent.com>
60179
60180         * lib/file-type.h: Use the version from diffutils-2.8.2.
60181         * lib/file-type.c: Likewise.
60182
60183 2002-06-07  Jim Meyering  <meyering@lucent.com>
60184
60185         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60186         They're needed at least for NetBSD 1.5.2.
60187         ($statxfs_includes): Include those same headers.
60188         ($statxfs_includes): Include sys/vfs.h if available.
60189         ($statxfs_includes): Likewise for sys/statvfs.h.
60190         Check for the following members in both structs statfs and statvfs:
60191         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60192
60193 2002-06-01  Jim Meyering  <meyering@lucent.com>
60194
60195         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60196         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60197
60198 2002-05-28  Jim Meyering  <meyering@lucent.com>
60199
60200         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60201         Reported by Volker Borchert.
60202
60203 2002-05-27  Jim Meyering  <meyering@lucent.com>
60204
60205         Fix a problem seen only on nonconforming systems whereby ls.c's
60206         use of localtime, and then of gettimeofday would cause trouble:
60207         the localtime call used to initialize rpl_gettimeofday's save
60208         mechanism would clobber ls's current local time information so
60209         that in any long listing the first file would always be listed
60210         with date 1970-01-01.  Analysis by Volker Borchert.
60211
60212         * lib/gettimeofday.c (localtime): Undefine.
60213         (rpl_localtime): New function.
60214
60215 2002-05-27  Jim Meyering  <meyering@lucent.com>
60216
60217         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60218         localtime.
60219
60220         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60221         use the replacement function; it wouldn't resolve at link time.
60222         Reported by Volker Borchert.
60223
60224 2002-05-22  Jim Meyering  <meyering@lucent.com>
60225
60226         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60227         file-type.h.
60228         * lib/file-type.h: New file.
60229         * lib/file-type.c (file_type): New file/function.  Extracted from
60230         diffutils.
60231
60232 2002-04-30  Jim Meyering  <meyering@lucent.com>
60233
60234         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60235
60236 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60237
60238         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60239
60240 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60241
60242         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60243         Do not check for alloca.h (no longer used) or stdbool.h (was never
60244         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60245
60246 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60247
60248         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60249
60250 2002-04-29  Jim Meyering  <meyering@lucent.com>
60251
60252         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60253         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60254         Use AC_FUNC_STRNLEN here instead.
60255
60256         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60257         With autoconf-2.53a, it's part of AC_PROG_CC.
60258
60259 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60260
60261         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60263
60264 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60265
60266         * lib/sig2str.h, lib/sig2str.c: New files.
60267         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60268
60269 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60270
60271         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60272         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60273         of 127, since 64 is the largest conceivable number for ancient
60274         nonstandard hosts.
60275         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60276
60277 2002-04-28  Jim Meyering  <meyering@lucent.com>
60278
60279         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60280
60281 2002-04-24  Jim Meyering  <meyering@lucent.com>
60282
60283         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60284         (jm_PREREQ): Use it.
60285
60286         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60287         mach/mach.h fcntl.h.
60288         Check for this function: setlocale.
60289
60290 2002-04-24  Jim Meyering  <meyering@lucent.com>
60291
60292         * lib/gettext.h: New file, from Gettext.
60293         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60294         (libfetish_a_SOURCES): Add gettext.h.
60295
60296 2002-04-16  Jim Meyering  <meyering@lucent.com>
60297
60298         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60299         ut_pid, ut_id, ut_exit.
60300
60301 2002-04-16  Jim Meyering  <meyering@lucent.com>
60302
60303         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60304         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60305         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60306
60307 2002-04-12  Jim Meyering  <meyering@lucent.com>
60308
60309         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60310         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60311         existence of the getmntinfo function.  Needed for Darwin 5.3.
60312
60313         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60314         This is necessary at least on Darwin 5.3.
60315
60316         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60317         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60318         strnlen.o in the library, and that makes some versions of ranlib
60319         object.
60320
60321 2002-04-12  Jim Meyering  <meyering@lucent.com>
60322
60323         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60324
60325 2002-04-09  Jim Meyering  <meyering@lucent.com>
60326
60327         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60328         to be more precise.  Rather than saying we're checking whether the
60329         function `works', say what we're testing.
60330         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60331         Reported by Bruno Haible.
60332
60333 2002-03-10  Jim Meyering  <meyering@lucent.com>
60334
60335         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60336         Suggestion from Santiago Vila.
60337
60338 2002-03-08  Jim Meyering  <meyering@lucent.com>
60339
60340         * lib/rename.c: Mention that this wrapper is needed also on
60341         mips-dec-ultrix4.4 systems.
60342
60343 2002-03-02  Jim Meyering  <meyering@lucent.com>
60344
60345         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60346         not HAVE_CLOCK_SETTIME.
60347
60348 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60349
60350         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60351         Check for clock_settime.
60352
60353 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60354
60355         * lib/nanosleep.h: Rename to....
60356         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60357
60358         * lib/gettime.c: New file.
60359         * lib/settime.c: New file.
60360         * lib/stime.c: Remove.
60361
60362         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60363         timespec.h.  Remove nanosleep.h.
60364
60365 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60366
60367         * m4/acl.m4: New file.
60368         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60369         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60370
60371 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60372
60373         * lib/acl.c, lib/acl.h: New files.
60374         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60375
60376 2002-02-24  Jim Meyering  <meyering@lucent.com>
60377
60378         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60379         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60380         cause trouble.  Reported by Nelson Beebe.
60381
60382 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60383
60384         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60385         compilers that don't know that xalloc_die never returns.
60386
60387 2002-02-20  Jim Meyering  <meyering@lucent.com>
60388
60389         * lib/getdate.c: Regenerate using bison-1.33.
60390
60391 2002-02-17  Jim Meyering  <meyering@lucent.com>
60392
60393         * config/config.guess (main): Don't use `head -1'; it's no longer
60394         portable. Use `sed 1q' instead.
60395
60396 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60397
60398         * m4/codeset.m4: Upgrade to gettext-0.11.
60399         * m4/gettext.m4: Upgrade to gettext-0.11.
60400         * m4/glibc21.m4: Upgrade to gettext-0.11.
60401         * m4/iconv.m4: Upgrade to gettext-0.11.
60402         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60403         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60404         * m4/lib-ld.m4: New file, from gettext-0.11.
60405         * m4/lib-link.m4: New file, from gettext-0.11.
60406         * m4/lib-prefix.m4: New file, from gettext-0.11.
60407         * m4/progtest.m4: Upgrade to gettext-0.11.
60408
60409 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60410
60411         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60412         (jm_PREREQ): Use it.
60413
60414 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60415
60416         * lib/posixver.c, lib/posixver.h: New files.
60417         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60418
60419 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60420             Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60423         (fwrite_success_callback): New declaration.
60424         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60425         print_unicode_char. Call failure callback instead of error.
60426         (fwrite_success_callback): New function.
60427         (exit_failure_callback): New function.
60428         (fallback_failure_callback): New function.
60429         (print_unicode_char): Call unicode_to_mb.
60430
60431 2002-01-26  Jim Meyering  <meyering@lucent.com>
60432
60433         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60434         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60435
60436 2002-01-26  Jim Meyering  <meyering@lucent.com>
60437
60438         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60439
60440 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60441
60442         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60443
60444 2002-01-22  Jim Meyering  <meyering@lucent.com>
60445
60446         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60447         Otherwise, some versions of automake would omit the rule that makes
60448         Makefile from Makefile.in.
60449
60450 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60451
60452         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60453         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60454         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60455         (memcoll): Set errno to zero if there is no error.
60456
60457         * lib/quotearg.c (quotearg_buffer_restyled):
60458         Fix bug with quoting buffers containing NUL when backslashing escapes.
60459         This bug was exposed by the other changes in this patch.
60460         (quotearg_n_options): New arg ARGSIZE.
60461         All callers changed.
60462         (quoting_options_from_style): New function.
60463         (quotearg_n_style): Use it.
60464         (quotearg_n_style_mem): New function.
60465
60466         * lib/quotearg.h (quotearg_n_style_mem): New function.
60467
60468 2002-01-19  Jim Meyering  <meyering@lucent.com>
60469
60470         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60471         Remove useless quotes: DF_PROG="df".
60472         * m4/strnlen.m4: New file.
60473
60474 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60475
60476         * lib/backupfile.c (ISDIGIT): Comment fix.
60477         * lib/getdate.y (ISDIGIT): Likewise.
60478         * lib/posixtm.c (ISDIGIT, year): Likewise.
60479         * lib/strverscmp.c (ISDIGIT): Likewise.
60480         * lib/userspec.c (ISDIGIT): Likewise.
60481
60482 2002-01-16  Jim Meyering  <meyering@lucent.com>
60483
60484         * lib/getdate.y: Add three semicolons, each just before a closing
60485         brace. Bison (as of version 1.31) no longer papers over that mistake.
60486
60487 2002-01-05  Jim Meyering  <meyering@lucent.com>
60488
60489         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60490
60491 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60492
60493         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60494         not silently exit merely because the output buffer happens to
60495         have nothing pending.
60496
60497 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60498
60499         See the big note in ../ChangeLog.
60500         * lib/human.c (suffixes): Prefer K to k for 1024.
60501         (generate_suffix_backwards): New function.
60502         (human_readable_inexact): Use it.
60503         * lib/xstrtol.c (__xstrtol): If there is no number but there
60504         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60505         Accept 'K' as well as 'k'.
60506
60507 2001-12-15  Jim Meyering  <meyering@lucent.com>
60508
60509         * lib/regex.h (__restrict_arr): Update from libc.
60510
60511         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60512         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60513         (STREQ): Define.
60514
60515 2001-12-14  Jim Meyering  <meyering@lucent.com>
60516
60517         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60518         Suggestion from Bruno Haible.
60519
60520 2001-12-10  Jim Meyering  <meyering@lucent.com>
60521
60522         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60523         xrealloc, Instead, include "xalloc.h".
60524         (initbuffer): Don't cast xmalloc return value to char*.
60525         (readline): Reword comment.
60526         Don't cast xrealloc return value to char*
60527         Return NULL, not 0.
60528
60529 2001-12-09  Jim Meyering  <meyering@lucent.com>
60530
60531         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60532         about `signed and unsigned type in conditional expression'.
60533         * lib/posixtm.c (posix_time_parse): Likewise.
60534
60535         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60536
60537         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60538         to avoid a pedantic warning.
60539
60540         * lib/getstr.c: Don't include assert.h.
60541         (getstr): Remove warning-evoking assertions.
60542         Return -1 if offset parameter is out of bounds.
60543         Change the type of a local from int to size_t.
60544
60545         * lib/strftime.c (my_strftime_localtime_r): Include this function
60546         definition in the `#if ! HAVE_TM_GMTOFF' block.
60547
60548         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60549         Include xalloc.h instead.
60550
60551 2001-12-02  Jim Meyering  <meyering@lucent.com>
60552
60553         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60554         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60555         included.
60556
60557         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60558         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60559
60560 2001-11-30  Akim Demaille  <akim@epita.fr>
60561
60562         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60563         before being defined.
60564
60565 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60566
60567         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60568         First arg is int, not unsigned.
60569         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60570         (SIZE_MAX, UINT_MAX): New macros.
60571         (quotearg_n_options): Abort if N is negative.
60572         Avoid overflow check on hosts where size_t is 64 bits and int
60573         is 32 bits, as overflow is impossible there.
60574         Fix off-by-one typo that caused unnecessary reallocation.
60575
60576 2001-11-27  Jim Meyering  <meyering@lucent.com>
60577
60578         * lib/tempname.c: Merge with version from libc.
60579         * lib/regex.c: Likewise.
60580
60581         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60582         systems for which STDC_HEADERS is 0, it was not included, resulting in
60583         a warning about an integer-to-pointer conversion problem with getenv.
60584         Reported by Volker Borchert.
60585
60586 2001-11-26  Jim Meyering  <meyering@lucent.com>
60587
60588         * lib/gtod.h: Remove file.
60589         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60590         * lib/gettimeofday.c: Don't include gtod.h.
60591         (GTOD_init): Remove function.
60592         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60593         Suggestion from Volker Borchert.
60594
60595 2001-11-23  Jim Meyering  <meyering@lucent.com>
60596
60597         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60598         it.
60599         * lib/hash.c (struct hash_table): Define it here instead.
60600
60601 2001-11-22  Jim Meyering  <meyering@lucent.com>
60602
60603         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60604
60605 2001-11-20  Jim Meyering  <meyering@lucent.com>
60606
60607         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60608         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60609
60610 2001-11-19  Jim Meyering  <meyering@lucent.com>
60611
60612         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60613         directory.  Use "conftestXXXXXX" as the template.
60614         Suggestion from Paul Eggert.
60615
60616         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60617         immediately, so the test doesn't mistakenly hit the max-open-files
60618         limit.
60619
60620 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60621
60622         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60623         (TEMPORARIES): New macro.
60624         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60625         removes an artificial limitation (e.g. HP-UX 10.20, where
60626         TMP_MAX is 17576).
60627
60628 2001-11-18  Jim Meyering  <meyering@lucent.com>
60629
60630         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60631
60632 2001-11-18  Jim Meyering  <meyering@lucent.com>
60633
60634         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60635         on SunOS 4.
60636
60637         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60638         files will be created before anything else.
60639
60640 2001-11-17  Paul Eggert  <eggert@twinsun.com>
60641
60642         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
60643         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
60644
60645 2001-11-17  Jim Meyering  <meyering@lucent.com>
60646
60647         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
60648         Prompted by a report from Bob Proulx.
60649
60650         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
60651         Instead, require UTILS_FUNC_MKSTEMP.
60652
60653 2001-11-17  Jim Meyering  <meyering@lucent.com>
60654
60655         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
60656         Now, that's done as part of AC_FUNC_STRTOD.
60657
60658 2001-11-17  Jim Meyering  <meyering@lucent.com>
60659
60660         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60661         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60662         rather than group writable.  Patch by Juan F. Codagnone.
60663
60664         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60665         xrealloc, Instead, include "xalloc.h".
60666
60667         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60668         Remove explicit declarations of xmalloc, xrealloc,
60669         and xstrdup.  Instead, include "xalloc.h".
60670
60671         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60672         unlocked-io.h.
60673         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60674         Likewise.
60675         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60676
60677         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60678         Reported by Padraig Brady.
60679
60680         * lib/mkstemp.c: #undef mkstemp.
60681         Include config.h.
60682         (rpl_mkstemp): Rename from mkstemp.
60683         Protoize.
60684
60685 2001-11-16  Jim Meyering  <meyering@lucent.com>
60686
60687         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60688         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60689         determine the amount of total physical memory, use pstat_getstatic.
60690         HPUX-11 doesn't define _SC_PHYS_PAGES.
60691         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60692         If sysconf couldn't be used to determine the amount of available
60693         physical memory, use both pstat_getstatic and pstat_getdynamic.
60694         Based on a patch from Bob Proulx.
60695
60696 2001-11-10  Jim Meyering  <meyering@lucent.com>
60697
60698         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60699         (jm_PREREQ): Use it.
60700
60701 2001-11-09  Jim Meyering  <meyering@lucent.com>
60702
60703         * m4/jm-macros.m4: Require autoconf-2.52f.
60704         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60705         Use these AC_-prefixed names, not the AM_-prefixed ones.
60706
60707         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60708
60709 2001-11-05  Jim Meyering  <meyering@lucent.com>
60710
60711         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60712
60713 2001-11-04  Jim Meyering  <meyering@lucent.com>
60714
60715         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60716         $DEFS.
60717
60718 2001-11-03  Jim Meyering  <meyering@lucent.com>
60719
60720         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60721         of AC_DEFUN.
60722
60723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60724         know the name of the variable in the macro definition.
60725
60726 2001-11-03  Jim Meyering  <meyering@lucent.com>
60727
60728         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60729         in argmatch_to_argument call.
60730
60731         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60732         argument.
60733
60734         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60735         e.g., a fault due to an attempt to free a NULL pointer.
60736
60737 2001-11-01  Jim Meyering  <meyering@lucent.com>
60738
60739         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60740         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60741
60742 2001-11-01  Jim Meyering  <meyering@lucent.com>
60743
60744         * lib/dirfd.c, lib/dirfd.h: New files.
60745         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60746
60747         * lib/hash.c (hash_print) [TESTING]: Clean up.
60748
60749 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60750
60751         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60752         to avoid a warning if -Wall.
60753
60754 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60755
60756         * README: New file
60757         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60758         (per RMS's instructions, this is now the canonical source)
60759         * lgpl/, gpl/: New directories.
60760
60761 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60762
60763         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60764
60765 2001-10-21  Jim Meyering  <meyering@lucent.com>
60766
60767         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60768         this code would end up calling gettext even in packages built
60769         with --disable-nls.
60770         * lib/getopt.c (_): Likewise.
60771         * lib/regex.c (_): Likewise.
60772
60773 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60774
60775         * m4/error.m4 (jm_PREREQ_ERROR):
60776         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60777         AC_FUNC_STRERROR_R does that.
60778         Check for strerror declaration.
60779
60780         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60781         are supposed to have them these days.
60782         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60783         Merge changes from latest Autoconf CVS.
60784         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60785         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60786         POSIX decided to standardize on the int flavor of strerror_r.
60787
60788 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60789
60790         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60791         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60792         Use strerror_r that is only a macro, even if it is not a function.
60793         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60794         (private_strerror): Use prototypes, not old-style function definition.
60795         (print_errno_message): New function.
60796         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60797         char*-flavored one.
60798         (error_tail, error, error_at_line): Use it.
60799
60800 2001-10-11  Jim Meyering  <meyering@lucent.com>
60801
60802         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60803         and quote_n (1, ... to avoid clobbering a buffer.
60804
60805 2001-10-05  Jim Meyering  <meyering@lucent.com>
60806
60807         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60808         hash-pjw.h.
60809         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60810         * lib/hash-pjw.h: New file.
60811
60812 2001-09-30  Jim Meyering  <meyering@lucent.com>
60813
60814         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60815         `struct fsstat' has the `f_fstypename' member.
60816         Use that to define FS_TYPE, which is now used to make
60817         the getfsstat link test tighter.
60818
60819 2001-09-30  Jim Meyering  <meyering@lucent.com>
60820
60821         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60822         Include <sys/ucred.h>, for Apple Darwin.
60823         Include sys/mount.h and sys/fs_types.h only if available.
60824         (FS_TYPE): Define.
60825         (read_filesystem_list): Use FS_TYPE.
60826
60827 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60828
60829         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60830         a boolean context.
60831
60832 2001-09-29  Jim Meyering  <meyering@lucent.com>
60833
60834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60835         [one-argument getmntent function]): Include stdio.h before mntent.h.
60836         SunOS 4.1.x needs it for the declaration of `FILE'.
60837         Patch by Volker Borchert.
60838
60839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60840         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60841         sys/fs_types.h, and make the link-test for getfsstat guard #include
60842         directives with appropriate #if HAVE_*_H tests so that we can
60843         detect getfsstat on Apple Darwin1.3.7 systems.
60844         Reported by Nelson Beebe.
60845         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60846
60847 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60848
60849         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60850         #defines strtoimax.  Also treat the other strto* functions
60851         like strtoimax.
60852
60853         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60854         Check for strtoul and strtoumax,
60855         as those declarations are made even in the signed case.
60856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60857         Likewise, for strtol and strtoimax.
60858
60859 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60860
60861         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60862         #defines strtoimax.  Also treat the other strto* functions
60863         like strtoimax.
60864
60865         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60866         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60867         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60868
60869 2001-09-26  Jim Meyering  <meyering@lucent.com>
60870
60871         Most macros in unlocked-io.h had the wrong number of arguments.
60872         * lib/gen-uio: New script.
60873         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60874         * lib/unlocked-io.hin: Remove file.
60875         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60876         rather than trying to embed it here.
60877         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60878         Reported by Padraig Brady.
60879
60880 2001-09-25  Volker Borchert  <bt@teknon.de>
60881
60882         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60883         `result'.
60884
60885 2001-09-24  Jim Meyering  <meyering@lucent.com>
60886
60887         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60888
60889 2001-09-23  Jim Meyering  <meyering@lucent.com>
60890
60891         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60892         instead of the mere test for existence of mntent.h.  The latter
60893         would get a false-positive on AIX 3.4 systems.
60894         In the outer getmntent if-block, don't die if neither of the getmntent
60895         tests succeeds.  Instead, just fall through and continue with the
60896         remaining tests.
60897
60898 2001-09-23  Jim Meyering  <meyering@lucent.com>
60899
60900         * lib/mountlist.c: Remove useless parentheses in #if directives.
60901         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60902         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60903
60904 2001-09-22  Jim Meyering  <meyering@lucent.com>
60905
60906         * m4/gettext.m4: New file.  From gettext.
60907         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60908         * m4/progtest.m4: Likewise
60909         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60910         * m4/glibc21.m4: Likewise.
60911
60912         * m4/libintl.m4: Remove.  No longer used.
60913
60914 2001-09-22  Jim Meyering  <meyering@lucent.com>
60915
60916         * lib/localcharset.c: Update from latest gettext.
60917         * lib/config.charset: Likewise.
60918
60919 2001-09-20  Jim Meyering  <meyering@lucent.com>
60920
60921         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60922         strtoimax.
60923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60924         strtoumax.
60925
60926 2001-09-20  Jim Meyering  <meyering@lucent.com>
60927
60928         * lib/xstrtol.c (strtoimax): Guard declaration with
60929         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60930         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60931         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60932         (strtoumax): Likewise, for completeness (it wasn't necessary).
60933
60934 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60935
60936         * lib/strtoimax.c (HAVE_LONG_LONG):
60937         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60938         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60939         to work around bug in IBM C compiler.
60940
60941 2001-09-17  Jim Meyering  <meyering@lucent.com>
60942
60943         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60944         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60945         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60946         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60947         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60948         whenever the right hand side need not be expanded by the shell.
60949
60950 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60951
60952         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60953         library.  It's not correct, as some older glibcs are buggy.
60954         fnmatch wasn't fixed until glibc 2.2.
60955
60956         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60957         special shell magic here.
60958
60959 2001-09-16  Jim Meyering  <meyering@lucent.com>
60960
60961         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60962         * m4/jm-macros.m4: Require it.
60963
60964 2001-09-16  Jim Meyering  <meyering@lucent.com>
60965
60966         * lib/mkdir.c: New file.
60967
60968 2001-09-15  Jim Meyering  <meyering@lucent.com>
60969
60970         * m4/jm-macros.m4: Check for help2man.
60971
60972 2001-09-11  Jim Meyering  <meyering@lucent.com>
60973
60974         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60975         The body, by Paul Eggert, was moved here from configure.in.
60976         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60977
60978 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60979
60980         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60981         (jm_PREREQ): Use it.
60982
60983 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60984
60985         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60986         Use ssize_t, not int, to store result of readlink.
60987         Check for ssize_t overflow as well as size_t overflow,
60988         as POSIX says the result of readlink is implementation-defined
60989         when ssize_t overflows.
60990         Remove unnecessary cast to char*.
60991         Use free+malloc instead of realloc, as the storage doesn't need
60992         to be preserved and it's clearer and can be more efficient that way.
60993         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60994         * lib/xreadlink.h (xreadlink): Update prototype.
60995
60996 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60997
60998         * lib/xgetcwd.c: Revert some of the previous change; intead,
60999         fix the HAVE_GETCWD_NULL code to behave more like the
61000         !HAVE_GETCWD_NULL code used to.
61001
61002         Include "xalloc.h".
61003         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61004         invoke xalloc_die.
61005
61006 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61007
61008         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61009         sys/param.h, as pathmax.h includes them.
61010
61011 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61012
61013         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61014         (jm_PREREQ_XGETCWD): New macro.
61015
61016         * m4/getcwd.m4: New file.
61017
61018 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61019
61020         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61021         like the HAVE_GETCWD_NULL code.
61022         Include pathmax.h if not HAVE_GETCWD.
61023         Do not include xalloc.h.
61024         (INITIAL_BUFFER_SIZE): New symbol.
61025         Do not use xmalloc / xrealloc, since the caller is responsible for
61026         handling errors.  Preserve errno around `free' during failure.
61027         Do not overrun buffer when using getwd.
61028
61029 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61030
61031         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61032         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61033         getcwd (NULL, 0).
61034
61035 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61036
61037         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61038         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61039         spotted by Jim Meyering.
61040
61041 2001-09-03  Jim Meyering  <meyering@lucent.com>
61042
61043         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61044         failure.
61045
61046 2001-09-02  Jim Meyering  <meyering@lucent.com>
61047
61048         * lib/error.c: Update from GNU libc.
61049
61050 2001-09-01  Jim Meyering  <meyering@lucent.com>
61051
61052         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61053         Used by df.
61054
61055 2001-09-01  Jim Meyering  <meyering@lucent.com>
61056
61057         * lib/xreadlink.c: New file.
61058         * lib/xreadlink.h: New file.
61059         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61060         xreadlink.h.
61061
61062         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61063         doesn't conflict with sparc Solaris 7's definition in
61064         /usr/include/sys/int_types.h.
61065
61066         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61067         files.
61068         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61069         and strncasecmp as r-values.  Unixware didn't have declarations.
61070
61071 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61072
61073         * lib/xstrtol.h: Add copyright notice.
61074         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61075         LONGINT_INVALID_SUFFIX_CHAR.
61076
61077 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61078
61079         * lib/xstrtol.c (strtoimax): New decl.
61080
61081 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61082
61083         * lib/xgetcwd.c: Don't include pathmax.h.
61084         Include stdlib.h and unistd.h if available.
61085         Include xalloc.h.
61086         (xmalloc, xstrdup, free): Remove decls.
61087         (xgetcwd): Don't assume sizes fit in unsigned.
61088         Check for overflow when computing sizes.
61089         Simplify reallocation code.
61090
61091 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61092
61093         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61094         a directory's st_size can have an arbitrary value, so the old
61095         usage could waste an arbitrary amount of memory.  All uses
61096         changed.
61097         * lib/savedir.h: Update prototype.
61098
61099 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61100
61101         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61102
61103         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61104         old strtoimax.c.
61105
61106         Also, make the following further changes to make this file's
61107         configuration more similar to that of strtol.c:
61108         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61109         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61110         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61111         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61112         changed to signed values.
61113
61114         And make the following changes as well:
61115         Fix copyright notice, as 1999 was missing.
61116         (verify): New macro.
61117         (strtoimax): Check sizes at compile-time, not run-time.
61118         Prefer strtol to strtoll if both work.
61119         (main): Remove; it was not that useful and was a pain to maintain.
61120
61121         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61122
61123 2001-08-31  Jim Meyering  <meyering@lucent.com>
61124
61125         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61126         Use an initial, malloc'd, buffer of length 128 rather than
61127         a statically allocated one of length 1024.
61128
61129 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61130
61131         Simplify code, partly by assuming autoconf 2.52 semantics.
61132
61133         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61134
61135         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61136         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61137         All uses removed.
61138         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61139         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61140         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61141         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61142         jm_AC_HEADER_INTTYPES_H.
61143         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61144
61145         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61146
61147         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61148         Quote first arg of AC_DEFUN.
61149         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61150         since they are needed to parse the include file even if we need
61151         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61152         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61153         but with opposite signedness.
61154
61155 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61156
61157         Merge 'exclude' changes from tar 1.13.22.
61158         This fixes one or two unlikely storage allocation overflow bugs,
61159         but doesn't change user-visible behavior otherwise.
61160
61161 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61162
61163         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61164         (jm_PREREQ_EXCLUDE): New macro.
61165
61166 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61167
61168         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61169         tm to be declared.
61170
61171 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61172
61173         * lib/hash.c: Remove '2001' from copyright notice.
61174
61175 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61176
61177         * lib/full-write.h: New file.
61178         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61179         * lib/full-write.c: Correct credits, as cccp.c no longer
61180         exists and anyway it was so heavily changed from the old cccp
61181         code as to be unrecognizable.  Include full-write.h.
61182         (full_write) Return size_t, with short writes meaning failure.
61183         All callers changed.  This fixes a bug with large buffers
61184         on 64-bit hosts.
61185         * lib/utime.c: Include full-write.h.
61186
61187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61188
61189         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61190         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61191         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61192         Include if available.
61193         (<xalloc.h>): Include
61194         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61195         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61196         collide with FNM macros.
61197         (struct patopts): New struct.
61198         (struct exclude): Use it, as exclude patterns now come with options.
61199         (new_exclude): Support above changes.
61200         (new_exclude, add_exclude_file):
61201         Initial size must now be a power of two to simplify overflow checking.
61202         (free_exclude, fnmatch_no_wildcards): New function.
61203         (excluded_filename): No longer requires options arg, as the options
61204         are determined by add_exclude.  Now returns bool, not int.
61205         (excluded_filename, add_exclude):
61206         Add support for the fancy new exclusion options.
61207         (add_exclude, add_exclude_file): Now takes int options arg.
61208         Check for arithmetic overflow when computing sizes.
61209         (add_exclude_file): xrealloc might modify errno, so don't
61210         realloc until after errno might be used.
61211
61212         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61213         New macros.
61214         (free_exclude): New decl.
61215         (add_exclude, add_exclude_file): Now takes int options arg.
61216         (excluded_filename): No longer requires options arg, as the options
61217         are determined by add_exclude.  Now returns bool, not int.
61218
61219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61220
61221         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61222
61223 2001-08-27  Jim Meyering  <meyering@lucent.com>
61224
61225         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61226
61227         * lib/version-etc.c (N_): Remove definition.
61228         Revert most of last change.
61229         Instead, simply don't mark the `Copyright...' string for translation.
61230         Based on advice from Paul Eggert.
61231
61232         * lib/strtoxmax.c: Tweak comment.
61233
61234 2001-08-26  Jim Meyering  <meyering@lucent.com>
61235
61236         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61237
61238         * m4/xstrtoimax.m4: New file.
61239         * m4/xstrtoumax.m4: Add comments explaining why we
61240         AC_REPLACE_FUNCS(strtol).
61241
61242 2001-08-26  Jim Meyering  <meyering@lucent.com>
61243
61244         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61245         of copyright with `%s' so translators don't get an untranslated
61246         message in 2002.
61247         (COPYRIGHT_YEAR): Define.
61248         (version_etc): Use fprintf rather than fputs.
61249         Suggestion from Ulrich Drepper.
61250
61251         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61252
61253         * lib/strtoll.c: New file, from GNU libc.
61254         * lib/xstrtoimax.c: New file.
61255
61256         * lib/xstrtol.h: Add xstrtoimax.
61257         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61258         * lib/strtoimax.c: New file.  Likewise, but first define
61259         STRTOUXMAX_SIGNED.
61260
61261         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61262         ...
61263         * lib/strtoxmax.c: ... then renamed to this.
61264
61265 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61266
61267         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61268         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61269         (jm_AC_TYPE_INTMAX_T): New macro.
61270         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61271
61272         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61273
61274         * m4/longlong.m4: Renamed from ulonglong.m4.
61275         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61276         * m4/uintmax_t.m4: Removed.
61277
61278 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61279
61280         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61281         Port to Solaris 8, where 'sed' requires a space after the 'r'
61282         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61283         Redirect output to $tmp just once.
61284
61285 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61286
61287         * lib/addext.c (<errno.h>): Include.
61288         (errno): Declare if not defined.
61289         (addext): Work correctly when pathconf returns -1 and leaves
61290         errno alone because there is no limit.  Also, work even if
61291         pathconf returns a value greater than SIZE_MAX.
61292
61293 2001-08-12  Jim Meyering  <meyering@lucent.com>
61294
61295         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61296         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61297         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61298         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61299         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61300         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61301         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61302         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61303         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61304         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61305         utime.m4, utimes.m4, xstrtoumax.m4:
61306         Quote the first argument in each use of AC_DEFUN.
61307
61308 2001-08-12  Jim Meyering  <meyering@lucent.com>
61309
61310         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61311         Simply `return getcwd (NULL, 0);'.
61312         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61313         Use 1300 as initial value for length, not PATH_MAX.
61314
61315         * lib/pathmax.h: Clean up cpp syntax.
61316
61317 2001-08-12  Jim Meyering  <meyering@lucent.com>
61318
61319         * lib/gettimeofday.c: New file.
61320         * lib/gtod.h: New file.
61321         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61322
61323 2001-08-05  Jim Meyering  <meyering@lucent.com>
61324
61325         * m4/jm-macros.m4: Require autoconf-2.52.
61326
61327 2001-08-04  Jim Meyering  <meyering@lucent.com>
61328
61329         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61330         stmt, to get in sync with glibc.
61331
61332 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61333
61334         The following changes are from gettext 0.10.39 as maintained by
61335         Bruno Haible.
61336
61337         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61338         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61339         with inverted sense.  All uses changed.
61340
61341         * lib/mbswidth.c: Don't include <limits.h>.
61342         Include <stdlib.h> and <string.h> unconditionally.
61343         (iswcntrl, mbsinit, ISCNTRL): New macros.
61344         (mbsnwidth): Use K&R style function declarations.
61345         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61346         can optimize it when MB_CUR_MAX == 1.
61347         The width of control characters is zero, not 1.
61348
61349 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61350
61351         The following changes are from gettext 0.10.39 as maintained by
61352         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61353
61354         * m4/codeset.m4: Upgrade to serial AM1.
61355         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61356         all uses changed.  Quote first arg of AC_DEFUN.
61357         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61358
61359         * m4/iconv.m4: Upgrade to serial AM2.
61360         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61361         Add --with-libconv-prefix.
61362         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61363         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61364         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61365         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61366         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61367
61368         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61369         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61370         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61371         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61372         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61373         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61374         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61375         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61376         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61377
61378         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61379         string.h any more.
61380
61381         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61382         not the default value.
61383
61384         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61385         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61386         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61387         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61388         Also check for iswcntrl, used for wcwidth fallback.
61389         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61390         to Autoconf 2.13.
61391
61392 2001-08-03  Jim Meyering  <meyering@lucent.com>
61393
61394         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61395         as it was in the original.  Reported by Paul Eggert.
61396
61397 2001-07-16  Jim Meyering  <meyering@lucent.com>
61398
61399         * m4/gettimeofday.m4: New file.
61400         Prompted by a report from Bernhard Baehr.
61401
61402 2001-07-15  Jim Meyering  <meyering@lucent.com>
61403
61404         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61405         stuff. Now it's in ../Makefile.cfg.
61406
61407 2001-07-15  Jim Meyering  <meyering@lucent.com>
61408
61409         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61410         (BUILT_SOURCES): Add unlocked-io.h.
61411         (io_functions): Define.
61412         (unlocked-io.h): New rule.
61413         (DISTCLEANFILES): Add unlocked-io.h.
61414         (all-local): Depend on unlocked-io.h, to ensure it is created.
61415
61416         * lib/unlocked-io.hin: New file
61417
61418         * lib/regex.c: Update from glibc.
61419
61420 2001-07-05  Jim Meyering  <meyering@lucent.com>
61421
61422         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61423         recommendation.
61424         (libfetish_a_SOURCES): Put all .h files here instead.
61425         Remove a thus-exposed (better checks in automake) duplicate and
61426         two unnecessary .h files.
61427
61428 2001-07-04  Jim Meyering  <meyering@lucent.com>
61429
61430         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61431         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61432         distcheck failure.
61433
61434 2001-07-02  Jim Meyering  <meyering@lucent.com>
61435
61436         The following changes were prompted by suggestions from Bruno Haible.
61437
61438         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61439         is now generated.
61440         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61441         definition of EXTRA_DIST.
61442         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61443         ensure that the generated file is created/updated whenever the list
61444         of $(unlocked_functions) is changed.
61445         (jm-glibc-io.m4): New rule.
61446         (unlocked-io.h): New rule -- currently unused.
61447
61448 2001-06-24  Jim Meyering  <meyering@lucent.com>
61449
61450         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61451         unmatched right bracket, rather than kludging it with an extra,
61452         falsely-matching quote in a comment.  Patch by Akim Demaille.
61453
61454 2001-06-11  Jim Meyering  <meyering@lucent.com>
61455
61456         * lib/regex.c: Update from GNU libc.
61457
61458 2001-05-27  Jim Meyering  <meyering@lucent.com>
61459
61460         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61461         Check for ut_type in struct utmp.
61462
61463 2001-05-27  Jim Meyering  <meyering@lucent.com>
61464
61465         * lib/readutmp.h (UT_TYPE): Define.
61466
61467 2001-05-24  Jim Meyering  <meyering@lucent.com>
61468
61469         * lib/argmatch.c: Include "quote.h".
61470         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61471         quote function.  Reported by Göran Uddeborg.
61472
61473 2001-05-22  Jim Meyering  <meyering@lucent.com>
61474
61475         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61476         now that we use the package-supplied version unconditionally.
61477         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61478
61479 2001-05-21  Jim Meyering  <meyering@lucent.com>
61480
61481         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61482         shell syntax errors.
61483
61484 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61485
61486         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61487
61488 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61489
61490         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61491         Don't bother to check library strftime, since
61492         we'll be using our own my_strftime function anyway.
61493         Define my_strftime instead of strftime.
61494
61495 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61496
61497         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61498         which is not yet declared.
61499
61500 2001-05-15  Jim Meyering  <meyering@lucent.com>
61501
61502         * m4/regex.m4: Use proper quoting so brackets appear in the test
61503         program.
61504         Reported by, and with help from, Bruno Haible.
61505
61506 2001-05-13  Jim Meyering  <meyering@lucent.com>
61507
61508         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61509         undefined.
61510
61511 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61512
61513         dirname code cleanup.  base_name now behaves more compatibly
61514         with POSIX basename when given file names that have trailing
61515         slashes, and similarly for dir_name.  Add new primitives
61516         base_len and dir_len.  Put the directory-name-related decls
61517         into dirname.h.
61518
61519         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61520         * lib/backupfile.c (base_name): Likewise.
61521         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61522         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61523         * lib/makepath.c (strip_trailing_slashes): Likewise.
61524         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61525         ISSLASH): Likewise.
61526         * lib/rename.c (strip_trailing_slashes): Likewise.
61527         * lib/same.c (base_name): Likewise.
61528         * lib/stripslash.c (ISSLASH): Likewise.
61529
61530         * lib/addext.c: Include <dirname.h> after size_t is defined.
61531         * lib/backupfile.c: Likewise.
61532
61533         * lib/addext.c (addext): Use base_len to trim redundant
61534         trailing slashes instead of doing it ourselves.
61535         But do not trim the last slash if it is not redundant.
61536
61537         * lib/backupfile.c (find_backup_file_name,
61538         max_backup_version): Use base_len instead of rolling it ourselves.
61539         Handle the case of "" and (on DOS) "C:" correctly.
61540
61541         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61542         needed. Include <string.h>, <dirname.h>.
61543         (base_name): Allow file names ending in slashes, other than names
61544         that are all slashes.  In this case, return the basename followed
61545         by the slashes.  This is more general, and can be used in places
61546         where the original base_name purposely had an assertion failure.
61547         (base_len): New function.
61548
61549         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61550         Do not include <assert.h>; no longer needed.
61551         Include xalloc.h.
61552         (memrchr): Remove decl.
61553         (dir_name_r): Remove.
61554         (dir_len): Renamed from dirlen.  All callers changed.
61555         Rewrite in terms of base_name, for simplicity and consistency.
61556         (dir_name): Never return NULL.  All callers changed.
61557         Do not include <stdlib.h> in test program; no longer needed.
61558         return 0; is fine for test program.
61559
61560         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61561         New macros.
61562         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61563
61564         * lib/path-concat.c (path_concat): Use base_len to compute
61565         base length, not strlen; this means we cannot rely on memcpy
61566         to null-terminate.
61567
61568         * lib/same.c (STREQ): Remove.
61569         (same_name): Handle the case where the basename ends in trailing '/'.
61570
61571         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61572         a slash was stripped.  Do not strip the last slash after a
61573         file system prefix.
61574
61575 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61576
61577         * lib/Makefile.am (libfetish_a_SOURCES):
61578         Add strftime.c, since we now compile it on all hosts.
61579
61580         * lib/strftime.c (my_strftime):
61581         Define to nstrftime if emacs, but only if my_strftime is not defined.
61582         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61583         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61584         Add one more extra argument: a nanoseconds value.
61585         All uses changed.
61586         (ns): New macro.
61587         (my_strftime function): Add %N format.
61588         (emacs_strftimeu): Renamed from emacs_strftime,
61589         with extra ut argument.
61590
61591 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61592
61593         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61594
61595 2001-04-21  Jim Meyering  <meyering@lucent.com>
61596
61597         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61598         doesn't interfere.
61599
61600 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61601
61602         * m4/ftruncate.m4: Check for chsize.
61603         Link with ftruncate.o unconditionally if ftruncate is missing.
61604         This was required when cross-compiling to i586-mingw32msvc.
61605
61606 2001-04-08  Jim Meyering  <meyering@lucent.com>
61607
61608         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61609         recomputed; that's necessary when the offset spans a DST transition.
61610         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61611
61612 2001-04-02  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/regex.h, regex.c: Update from GNU libc.
61615
61616 2001-03-24  Jim Meyering  <meyering@lucent.com>
61617
61618         * m4/jm-macros.m4: Require autoconf-2.49d.
61619
61620 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61621
61622         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61623
61624 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61625
61626         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61627
61628 2001-03-17  Jim Meyering  <meyering@lucent.com>
61629
61630         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61631         now that the version in autoconf is equivalent.
61632         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61633
61634         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61635         Suggestion from Akim Demaille.
61636
61637         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61638         (jm_PREREQ_TEMPNAME): New function.
61639
61640 2001-03-16  Paul Eggert  <eggert@twinsun.com>
61641
61642         * lib/tempname.c (uint64_t): Define to uintmax_t if
61643         not defined, and if UINT64_MAX is not defined.
61644         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
61645         Reported by John David Anglin.
61646
61647 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
61648
61649         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
61650         resolve alias if codeset is empty.
61651         * lib/config.charset (BeOS): Use wildcard syntax.
61652
61653 2001-03-13  Jim Meyering  <meyering@lucent.com>
61654
61655         * lib/path-concat.c (path_concat)
61656         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61657         concatenating e.g., `C:' and `foo'.
61658         From Bruno Haible.
61659
61660 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61661
61662         * lib/localcharset.c (locale_charset): Don't use
61663         setlocale(LC_CTYPE,NULL). Don't return NULL.
61664         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61665
61666 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61667
61668         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61669         support for DOS/DJGPP.
61670
61671 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61672
61673         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61674         lacks mkstemp.  Compile our own tempname.c if we compile our own
61675         mkstemp.c, as mkstemp relies on tempname.
61676
61677 2001-03-01  Jim Meyering  <meyering@lucent.com>
61678
61679         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61680         AH_VERBATIM really does output its argument verbatim.
61681
61682 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61683
61684         * lib/Makefile.am (libfetish_a_SOURCES):
61685         Add dup-safer.c, fopen-safer.c.
61686         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61687
61688         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61689         * lib/unistd-safer.h: New files.
61690
61691 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61692
61693         The mkstemp replacement is taken from glibc 2.2.2, with some
61694         portability fixes for use outside glibc, as follows:
61695
61696         * lib/tempname.c (struct_stat64): New macro.
61697         (direxists, __gen_tempname): Use it.
61698         This avoids a portability problem with Solaris 8.
61699
61700         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61701         (<stddef.h>, <stdint.h>, <string.h>):
61702         Include only if STDC_HEADERS || _LIBC.
61703         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61704         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61705         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61706         (__set_errno): Define this macro if <errno.h> doesn't.
61707         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61708         Define these macros if <stdio.h> doesn't.
61709         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61710         Define these macros if <sys/stat.h>
61711         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61712         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61713         __xstat64): Define if not _LIBC.
61714         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61715         (__gen_tempname): Invoke gettimeofday only if
61716         HAVE_GETTIMEOFDAY || _LIBC;
61717         otherwise, fall back on plain "time".
61718         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61719
61720         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61721
61722         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61723
61724 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61725
61726         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61727
61728 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61729
61730         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61731         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61732         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61734
61735 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61736
61737         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61738         Remove workaround macros for hosts that have mbrtowc but not
61739         mbstate_t, as we now insist on proper declarations for both
61740         before using mbrtowc.
61741
61742 2001-02-17  Jim Meyering  <meyering@lucent.com>
61743
61744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61745         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61746         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61747         UnixWare 7.1.1.
61748
61749         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61750         rather than AC_CACHE_VAL.
61751
61752 2001-02-17  Jim Meyering  <meyering@lucent.com>
61753
61754         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61755         around included file name.
61756
61757         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61758
61759         * lib/strftime.c: Update from GNU libc (the only changes were to
61760         comments).
61761
61762 2001-02-17  Jim Meyering  <meyering@lucent.com>
61763
61764         * lib/regex.c: Update from libc.
61765
61766 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61767
61768         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61769         clash.
61770
61771 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61772
61773         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61774         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61775         Reported by Mark Hounschell via Paul Eggert.
61776
61777 2001-02-07  Jim Meyering  <meyering@lucent.com>
61778
61779         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61780
61781 2001-02-05  Jim Meyering  <meyering@lucent.com>
61782
61783         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61784         it includes the patch required for `large file' support with at least
61785         HP-UX's 10.20 /bin/cc.
61786
61787 2001-02-03  Jim Meyering  <meyering@lucent.com>
61788
61789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61790         AS_IF, now that it works once again (mysteriously).
61791         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61792
61793 2001-01-30  Jim Meyering  <meyering@lucent.com>
61794
61795         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61796         * m4/chown.m4: Rename conftestchown to conftest.chown.
61797         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61798         s/conftestdir2/conftest.d2/.
61799         * m4/utimes.m4: s/conftestdata/conftest.data/
61800         Inspired by Pavel Roskin's change in autoconf.
61801
61802 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61803
61804         * lib/config.charset: Update for FreeBSD 4.2.
61805
61806 2001-01-27  Jim Meyering  <meyering@lucent.com>
61807
61808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61809         a use of AS_IF.
61810         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61811
61812 2001-01-26  Jim Meyering  <meyering@lucent.com>
61813
61814         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61815         quotearg.c includes it.
61816
61817 2001-01-26  Jim Meyering  <meyering@lucent.com>
61818
61819         * lib/quotearg.c: Include stddef.h.
61820         * lib/quote.c: Include stddef.h.
61821         Reported by Axel Kittenberger.
61822
61823         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61824         line in double quotes so that it evokes a better diagnostic.
61825         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61826         Reported by Axel Kittenberger.
61827
61828 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61829
61830         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61831         as if it was a `charset'.
61832
61833 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61834
61835         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61836         has const.
61837
61838 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61839
61840         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61841         to avoid a warning.  Add back 'const' to inptr.
61842
61843 2001-01-20  Jim Meyering  <meyering@lucent.com>
61844
61845         Be sure that headers are checked before used in code compiled
61846         for the type checks.
61847         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61848         In place of that, invoke jm_CHECK_ALL_TYPES.
61849         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61850         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61851         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61852         The check for ssize_t was mistakenly run before the test for unistd.h.
61853
61854         The configure-time check for stdbool.h was missing.
61855         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61856         (jm_PREREQ_HASH): New function.
61857
61858 2001-01-17  Jim Meyering  <meyering@lucent.com>
61859
61860         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61861         for autoconf-2.49c.
61862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61863
61864 2001-01-16  Jim Meyering  <meyering@lucent.com>
61865
61866         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61867         From Bruno Haible.
61868
61869 2001-01-14  Jim Meyering  <meyering@lucent.com>
61870
61871         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61872         foo and bar.  Create conftestdir/ in the script, not in the C code.
61873         Remove directories in the script, not in the C code.
61874         Remove conftestdir{,2} before trying to create the directory.
61875         Make the entire configure script fail if the mkdir fails.
61876
61877 2001-01-14  Jim Meyering  <meyering@lucent.com>
61878
61879         * lib/rename.c: New file.  From Volker Borchert.
61880         Include stdlib.h, string.h or strings.h, and xalloc.h.
61881         Use strip_trailing_slashes rather than open-coding it.
61882
61883 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61884
61885         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61886
61887 2001-01-03  Jim Meyering  <meyering@lucent.com>
61888
61889         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61890         of local `inptr' to avoid warning with some system declarations of
61891         iconv.
61892
61893 2001-01-02  Volker Borchert  <bt@teknon.de>
61894
61895         * m4/rename.m4: New file.
61896         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61897
61898 2001-01-01  Jim Meyering  <meyering@lucent.com>
61899
61900         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61901         even on systems with utmpx.h.  It's necessary for the declaration of
61902         utmp's ut_user member.  Reported by Andreas Jaeger.
61903
61904         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61905         available. They are required for the declarations of getgrgid and
61906         getpwuid resp.
61907         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61908         Reported by Andreas Jaeger.
61909
61910 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61911
61912         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61913         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61914         so `make install' also works in VPATH builds.
61915
61916 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61917
61918         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61919         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61920         can be used in subdirectories.
61921
61922 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61923
61924         * lib/modechange.c: Do not assume that mode_t uses the
61925         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61926         the other-execute bit of FOO even if S_IXOTH != 1.
61927
61928         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61929         WOTH, XOTH, ALLM): New macros.
61930         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61931          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61932         Use them.
61933         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61934         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61935         (mode_compile):
61936         No need to use uintmax_t; unsigned long is long enough.
61937         Don't bother to get suffix since we don't use it.
61938
61939 2000-12-26  Jim Meyering  <meyering@lucent.com>
61940
61941         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61942         better with autoheader.
61943
61944 2000-12-24  Jim Meyering  <meyering@lucent.com>
61945
61946         * lib/hash.c (is_prime): Return explicit boolean values.
61947         (hash_get_first): Return NULL to appease Irix5.6's 89.
61948         Reported by Nelson Beebe.
61949
61950 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61951
61952         * lib/localcharset.c (locale_charset): Add support for Win32.
61953
61954 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61955
61956         * lib/physmem.h, lib/physmem.c: New files.
61957
61958         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61959         (noinst_HEADERS): Add physmem.h.
61960
61961         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61962         't' for compatibility with Solaris 8 sort.
61963
61964 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61965
61966         * lib/config.charset: Add support for BeOS.
61967
61968 2000-12-17  Jim Meyering  <meyering@lucent.com>
61969
61970         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61971         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61972
61973 2000-12-16  Jim Meyering  <meyering@lucent.com>
61974
61975         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61976         N and M) would have treated it like `chown N:N FILE'.
61977
61978         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61979
61980 2000-12-16  Jim Meyering  <meyering@lucent.com>
61981
61982         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61983         SHELLS_FILE to a file name that's useful on djgpp systems.
61984         Include stdlib.h.
61985         (ADDITIONAL_DEFAULT_SHELLS): Define.
61986         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61987         Based mostly on a patch from Prashant TR.
61988
61989 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61990
61991         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61992         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61993         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61994
61995 2000-12-08  Andreas Schwab  <schwab@suse.de>
61996
61997         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61998         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61999
62000 2000-12-07  Jim Meyering  <meyering@lucent.com>
62001
62002         * lib/stripslash.c (ISSLASH): Define.
62003         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62004         `/'.
62005         From Prashant TR.
62006
62007         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62008         (dir_name_r): Declare this function as static.
62009         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62010         manifest itself on a name containing a mix of slashes and
62011         backslashes.
62012         Make this function work with names starting with a DOS-style
62013         drive letter and colon prefix.
62014         (dir_name): Append `.' if necessary.
62015         Based mostly on patches from Prashant TR and Eli Zaretskii.
62016
62017         * lib/dirname.h (dir_name_r): Remove prototype.
62018
62019 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62020
62021         * m4/off_t-format.m4: Remove this file.
62022         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62023
62024 2000-12-06  Jim Meyering  <meyering@lucent.com>
62025
62026         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62027         replacement strtoull, we may well need the replacement strtoul, too.
62028         Check for declarations of strtoul and strtoull.
62029         Check for strtol.  Mainly as a cue to cause automake to include
62030         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62031         Check for limits.h -- strtol.c needs it.
62032
62033 2000-12-05  Jim Meyering  <meyering@lucent.com>
62034
62035         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62036
62037 2000-12-04  Jim Meyering  <meyering@lucent.com>
62038
62039         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62040         Also include memory.h, stdlib.h, unistd.h if appropriate.
62041         Reported by Andreas Jaeger (conflicting declaration of malloc).
62042
62043 2000-12-02  Jim Meyering  <meyering@lucent.com>
62044
62045         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62046         * m4/jm-macros.m4 (jm_MACROS): require it.
62047
62048 2000-12-02  Jim Meyering  <meyering@lucent.com>
62049
62050         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62051
62052 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62053
62054         * lib/memrchr.c: Include <config.h> before any system include file.
62055
62056 2000-11-30  Jim Meyering  <meyering@lucent.com>
62057
62058         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62059
62060 2000-11-30  Jim Meyering  <meyering@lucent.com>
62061
62062         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62063
62064 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62065
62066         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62067
62068 2000-11-26  Jim Meyering  <meyering@lucent.com>
62069
62070         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62071
62072 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62073
62074         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62075         size of (size_t) -1; it's not portable.
62076
62077 2000-11-17  Jim Meyering  <meyering@lucent.com>
62078
62079         * lib/strstr.c: Update from GNU libc.
62080
62081 2000-11-17  Akim Demaille  <akim@epita.fr>
62082
62083         * lib/obstack.h: Formatting changes.
62084         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62085         prevent type checking.
62086         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62087         cast the value to (void *): assigning a `foo *' to a `void *'
62088         variable is valid.
62089         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62090
62091 2000-11-16  Jim Meyering  <meyering@lucent.com>
62092
62093         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62094
62095 2000-11-11  Jim Meyering  <meyering@lucent.com>
62096
62097         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62098
62099 2000-11-10  Jim Meyering  <meyering@lucent.com>
62100
62101         * lib/obstack.h: Update from GNU libc.
62102         * lib/obstack.c: Likewise.
62103
62104 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62105
62106         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62107
62108 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62109
62110         * lib/getusershell.c (setusershell): Use rewind rather than
62111         fseek/fseeko, to avoid configuration hassles with fseeko.
62112         Don't bother opening SHELLS_FILE if shellstream is NULL;
62113         it's not necessary.
62114
62115 2000-11-05  Jim Meyering  <meyering@lucent.com>
62116
62117         * lib/makepath.h (make_dir): Declare.
62118         * lib/makepath.c (make_dir): Remove `static' attribute.
62119         Tweak a comment.
62120
62121 2000-11-04  Jim Meyering  <meyering@lucent.com>
62122
62123         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62124
62125 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62126
62127         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62128         last one in a bucket, advance to the next bucket.
62129
62130 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62131
62132         * lib/fnmatch.c: Do not comment out all the code if we are using
62133         the GNU C library, because in some cases we are replacing buggy
62134         code in the GNU C library itself.
62135
62136 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62137
62138         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62139         (regex_compile): Catch bogus \(\1\).
62140
62141 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62142
62143         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62144         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62145         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62146
62147 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62148
62149         * lib/error.h, getline.h, modechange.h:
62150         Remove "2000" from Copyright line, as the file hasn't been
62151         changed this year other than in the copyright notice.
62152
62153         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62154         was changed this year.
62155
62156 2000-10-29  Jim Meyering  <meyering@lucent.com>
62157
62158         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62159         renaming.
62160         * m4/ls-mntd-fs.m4: Likewise
62161
62162 2000-10-29  Jim Meyering  <meyering@lucent.com>
62163
62164         * lib/xstat.in: Fix grammar in comment.
62165
62166 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62167
62168         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62169         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62170         doesn't define __restrict_arr.
62171
62172 2000-10-28  Jim Meyering  <meyering@lucent.com>
62173
62174         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62175         (jm_PREREQ_MEMCHR): New function.
62176
62177 2000-10-28  Jim Meyering  <meyering@lucent.com>
62178
62179         * lib/memchr.c: Update from libc.
62180         Adjust for portability:
62181         [HAVE_STDLIB_H]: Include stdlib.h.
62182         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62183         Undef __memchr, too.
62184         [!weak_alias]: Define __memchr to memchr.
62185
62186         * lib/regex.c: Update from libc.
62187         * lib/regex.h: Likewise.
62188         * lib/getopt1.c: Likewise.
62189         * lib/memcmp.c: Likewise.
62190
62191         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62192         Avoid using fseek, when possible -- it's broken by design.
62193         Patch by Ulrich Drepper.
62194
62195 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62196
62197         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62198         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62199         Giving in to popular pressure to shut up the compiler with casts.
62200
62201 2000-10-26  Jim Meyering  <meyering@lucent.com>
62202
62203         * lib/strftime.c: Update from libc.
62204
62205 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62206
62207         * regex.c: More `unsigned char' -> `re_char' changes.
62208         Also change several `int' into `re_wchar_t'.
62209         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62210         (PUSH_FAILURE_POINTER): Don't cast any more.
62211         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62212         We want GCC to complain, since this piece of code makes
62213         re_match non-reentrant, which *should* be fixed.
62214         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62215         (EXTEND_BUFFER): Use RETALLOC.
62216         (SET_LIST_BIT): Don't cast.
62217         (re_wchar_t): New type.
62218         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62219         that those two functions will always properly return.
62220         (IMMEDIATE_QUIT_CHECK): Cast to void.
62221         (analyse_first): Use recursion rather than an explicit stack.
62222         (re_compile_fastmap): Can't fail anymore.
62223         (re_search_2): Don't check re_compile_fastmap for failure.
62224         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62225         Now also sets the new value (passed in a new argument).
62226         (re_match_2_internal): Use it.
62227         Also, use a new var `reg' of type size_t when looping through regs
62228         rather than reuse the inappropriate `mcnt'.
62229
62230 2000-10-25  Jim Meyering  <meyering@lucent.com>
62231
62232         * lib/obstack.c: Update from libc.
62233
62234 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62235
62236         * regex.c (regex_compile): Change the way of handling a range from
62237         a char less than 256 to a char not less than 256.
62238
62239 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62240
62241         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62242         NT-Emacs only.
62243         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62244         so that re_search functions only quit when callers expect them to.
62245
62246 2000-10-23  Jim Meyering  <meyering@lucent.com>
62247
62248         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62249         wrong.  That set_locale call must not have any side effects.
62250         From Paul Eggert.
62251
62252 2000-10-22  Jim Meyering  <meyering@lucent.com>
62253
62254         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62255         [CYCLIC]: Remove now-unused definition.
62256
62257         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62258         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62259         Suggestion from Ulrich Drepper.
62260
62261 2000-10-21  Jim Meyering  <meyering@lucent.com>
62262
62263         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62264         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62265         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62266
62267 2000-10-21  Jim Meyering  <meyering@lucent.com>
62268
62269         * lib/dirname.c (memrchr): Declare if necessary.
62270         (dir_name): Remove the restriction that there be no
62271         trailing slashes.  Now, this code skips past them, effectively
62272         ignoring them.
62273         [TEST_DIRNAME] (main): New unit tests.
62274
62275         * lib/memrchr.c: New file from GNU libc.
62276         Undef __memrchr, too.
62277         [!weak_alias]: Define __memrchr to memrchr.
62278         Guard weak_alias use with `#ifdef weak_alias'.
62279
62280 2000-10-21  Jim Meyering  <meyering@lucent.com>
62281
62282         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62283         (dir_name): Use dir_name_r.
62284         * lib/dirname.h (dir_name_r): Declare it.
62285
62286 2000-10-17  Jim Meyering  <meyering@lucent.com>
62287
62288         * lib/quote.h (PARAMS): Define and use.
62289         Reported by Akim Demaille.
62290
62291         * lib/getopt.c: Update from libc.
62292
62293 2000-10-16  Jim Meyering  <meyering@lucent.com>
62294
62295         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62296         setlocale.
62297         From Jan Fedak.
62298
62299 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62300
62301         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62302
62303 2000-09-25  Jim Meyering  <meyering@lucent.com>
62304
62305         * lib/md5.h (rol): Define (from GnuPG).
62306
62307         * lib/sha.c: Give credit (GnuPG) where due.
62308         (M): Use rol rather than open-coding it.
62309         Add a FIXME comment.
62310
62311 2000-09-21  Jim Meyering  <meyering@lucent.com>
62312
62313         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62314         Reported by Michael Stone.
62315
62316 2000-09-20  Jim Meyering  <meyering@lucent.com>
62317
62318         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62319         (noinst_HEADERS): Add sha.h.
62320         Based on code from Scott G. Miller and from GnuPG.
62321
62322 2000-09-18  Jim Meyering  <meyering@lucent.com>
62323
62324         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62325         LIBS. Otherwise, everyone ends up linking with -lelf for some
62326         configurations.
62327         Reported by Mike Stone.
62328
62329 2000-09-15  Jim Meyering  <meyering@lucent.com>
62330
62331         * lib/regex.c: Update from libc.
62332
62333 2000-09-10  Jim Meyering  <meyering@lucent.com>
62334
62335         * lib/getopt.c (_getopt_internal): Update from glibc.
62336
62337 2000-09-09  Jim Meyering  <meyering@lucent.com>
62338
62339         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62340         think it should be used as a general replacement for isascii.
62341         * lib/fnmatch.c: Likewise.
62342         * lib/mbswidth.c: Likewise
62343         * lib/regex.c: Likewise.
62344
62345         Don't use atoi.
62346         * lib/userspec.c: Include sys/param.h and limits.h.
62347         Include xstrtol.h.
62348         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62349         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62350         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62351         UID, GID.  Check range.
62352
62353 2000-09-06  Jim Meyering  <meyering@lucent.com>
62354
62355         * lib/getopt.c (_getopt_internal): Update from glibc.
62356
62357 2000-08-30  Jim Meyering  <meyering@lucent.com>
62358
62359         * lib/strftime.c: Merge in changes from GNU libc.
62360
62361 2000-08-26  Jim Meyering  <meyering@lucent.com>
62362
62363         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62364         * m4/fpending.m4: New file.
62365
62366 2000-08-26  Jim Meyering  <meyering@lucent.com>
62367
62368         * lib/closeout.c: Include "__fpending.h".
62369         (close_stdout_status): Return right away if there's nothing to flush.
62370
62371         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62372         * lib/__fpending.c: New file.
62373         * lib/__fpending.h: New file.
62374
62375 2000-08-20  Jim Meyering  <meyering@lucent.com>
62376
62377         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62378         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62379         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62380
62381 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62382
62383         Improve fileutils installation on systems where running
62384         programs (like install) can't be unlinked.
62385         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62386         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62387
62388 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62389
62390         Standardize on "memory exhausted" instead of "Memory exhausted"
62391         or "virtual memory exhausted".
62392         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62393         "virtual memory exhausted".
62394         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62395         our own message.
62396         * lib/userspec.c (parse_user_spec): Likewise.
62397         * lib/bumpalloc.h: comment fix
62398         * lib/same.c, userspec.c: Include xalloc.h.
62399
62400         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62401         not char *const and pointing to a constant array.
62402         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62403         (xrealloc): Comment fix.
62404
62405         * lib/userspec.c (parse_user_spec):
62406         Don't translate a message until just before returning,
62407         to avoid unnecessary translation.
62408
62409 2000-08-07  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62412         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62413         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62414         getgroups.c, gethostname.c, getopt.h, group-member.c,
62415         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62416         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62417         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62418         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62419         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62420         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62421         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62422         yesno.c: Back out Copyright date changes for each file with no change
62423         this year.  This eases coordination with other programs using the same
62424         source code modules.  From Paul Eggert.
62425
62426 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62427
62428         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62429         not char, for compatibility with glibc 2.1.3 strftime.c.
62430
62431 2000-08-03  Greg McGary  <greg@mcgary.org>
62432
62433         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62434         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62435         (EXTEND_BUFFER): Use them.
62436
62437 2000-08-01  Jim Meyering  <meyering@lucent.com>
62438
62439         * lib/dirname.c (ISSLASH): Define.
62440         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62441         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62442         both `\' and `/' may be use as path separators.
62443         Based on a patch from Prashant TR.
62444
62445 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62446
62447         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62448         slot vector a constant, since it might get modified.
62449
62450 2000-07-31  Jim Meyering  <meyering@lucent.com>
62451
62452         * lib/xmalloc.c: Use `virtual memory exhausted', not
62453         `Memory exhausted'.
62454         * lib/obstack.c (print_and_abort): Likewise.
62455
62456 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62457
62458         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62459         buffer, so that the caller can always quote one small
62460         component of a "memory exhausted" message in slot 0.
62461         From a suggestion by Jim Meyering.
62462
62463 2000-07-30  Jim Meyering  <meyering@lucent.com>
62464
62465         * lib/makepath.c (make_path): Quote the other instance, too.
62466
62467         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62468         (STATIC_BUF_SIZE): Define.
62469         (quotearg_n_options): Use only statically allocated storage when
62470         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62471         than STATIC_BUF_SIZE.
62472
62473 2000-07-29  Jim Meyering  <meyering@lucent.com>
62474
62475         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62476         * lib/dirname.c (dir_name): Likewise.
62477
62478         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62479         `/'.
62480
62481         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62482         (dir_name): Assert that there are no trailing slashes.
62483
62484 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62485
62486         * lib/mbswidth.h (mbswidth): Add a flags argument.
62487         (mbswidth): New declaration.
62488         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62489         * lib/mbswidth.c (mbswidth): Add a flags argument.
62490         (mbsnwidth): New function.
62491
62492 2000-07-24  Jim Meyering  <meyering@lucent.com>
62493
62494         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62495
62496 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62497
62498         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62499
62500 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62501
62502         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62503         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62504         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62505         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62506         invoke multibyte primitives.
62507
62508 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62509
62510         * lib/quotearg.c:
62511         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62512         so that mbstate_t is always defined.
62513
62514         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62515         be 1 in at least one GCC installation, and this configuration
62516         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62517         performance on hosts that have mbrtowc but have only unibyte
62518         locales, but I assume these hosts are rare.
62519
62520 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62521
62522         * lib/mbswidth.c (_XOPEN_SOURCE):
62523         Don't define; this causes problems on Solaris 7.
62524         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62525
62526 2000-07-23  Jim Meyering  <meyering@lucent.com>
62527
62528         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62529         too: getgrgid, getpwuid, getuid.
62530
62531 2000-07-23  Jim Meyering  <meyering@lucent.com>
62532
62533         * lib/basename.c (base_name): Add an assertion.
62534
62535 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62536
62537         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62538         shadow its mbsinit function.
62539
62540 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62541
62542         * lib/mbswidth.h: New file.
62543         * lib/mbswidth.c: New file.
62544         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62545         (noinst_HEADERS): Add mbswidth.h.
62546
62547 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62548
62549         * lib/config.charset: Add support for FreeBSD. Improve support for
62550         HP-UX and IRIX 6.
62551
62552 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62553
62554         * m4/mbswidth.m4: New file.
62555         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62556
62557 2000-07-15  Jim Meyering  <meyering@lucent.com>
62558
62559         * lib/makepath.c: Include quote.h.
62560         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62561         corresponding argument in a `quote (...)' call.
62562         Give better diagnostics.
62563
62564         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62565         (noinst_HEADERS): Add quote.h.
62566
62567         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62568         from tar's src/misc.c.
62569         * lib/quote.h: New file.  Prototypes for same.
62570
62571 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62572
62573         From a suggestion by Bruno Haible.
62574         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62575         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62576         to decide whether to define the BeOS workaround macro;
62577         this adjusts to the change to AC_MBSTATE_T.
62578
62579 2000-07-14  Jim Meyering  <meyering@lucent.com>
62580
62581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62582         jm_AC_TYPE_UINTMAX_T.
62583
62584 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62585
62586         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62587
62588         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62589         quotearg_buffer_restyled): Add support for
62590         clocale_quoting_style.  Undo previous change to
62591         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62592         and "{RIGHT QUOTATION MARK}" msgids.
62593
62594 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62595
62596         From a suggestion by Bruno Haible.
62597         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62598         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62599         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62600         and mbstate_t, to a single-part test that simply defines mbstate_t.
62601         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62602         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62603
62604 2000-07-10  Jim Meyering  <meyering@lucent.com>
62605
62606         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62607
62608         * m4/gnu-source.m4: Output to confdefs.h directly.
62609         Suggestion from Akim Demaille.
62610
62611 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62612
62613         The old behavior of quoting `like this' doesn't look good with
62614         newer, ISO-style fonts.  See:
62615         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62616
62617         Instead, quote "like this" by default.  Let the translator
62618         tailor the locale-specific quoting behavior by providing
62619         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62620
62621         * lib/quotearg.c (N_): New macro.
62622         (gettext_default): New function.
62623         (quotearg_buffer_restyled): Use
62624         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62625         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62626
62627 2000-07-09  Jim Meyering  <meyering@lucent.com>
62628
62629         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62630         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62631
62632         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62633         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62634
62635 2000-07-09  Jim Meyering  <meyering@lucent.com>
62636
62637         * lib/Most files: Update copyright dates to include 2000.
62638
62639 2000-07-08  Jim Meyering  <meyering@lucent.com>
62640
62641         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
62642         if not defined.
62643         (xgethostname): Remove now-unnecessary #ifdef.
62644         Move declaration of `err' into loop where it's used.
62645
62646 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62647         and Bruno Haible  <haible@clisp.cons.org>
62648
62649         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
62650         only if the test for an object-type mbstate_t fails.  This
62651         prevents us from mistakenly reporting that mbstate_t is a
62652         system object type after we "#define mbstate_t int" to work
62653         around its lack.
62654
62655 2000-07-05  Paul Eggert  <eggert@twinsun.com>
62656         and Bruno Haible  <haible@clisp.cons.org>
62657
62658         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62659
62660 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62661
62662         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62663         to strerror_r.
62664         Include <ctype.h> for use of isalpha.
62665
62666 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62667
62668         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62669         by allocating a larger buffer. Test the gethostname return value for
62670         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62671         returns an error and ENAMETOOLONG isn't defined.
62672
62673 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62674
62675         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62676         dimension.
62677
62678 2000-07-04  Jim Meyering  <meyering@lucent.com>
62679
62680         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62681         of the deprecated AC_CHECKING.
62682
62683 2000-07-04  Jim Meyering  <meyering@lucent.com>
62684
62685         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62686         Reported by Bruno Haible.
62687
62688 2000-07-04  Jim Meyering  <meyering@lucent.com>
62689
62690         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62691         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62692         lacks mbrtowc.
62693
62694 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62695
62696         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62697         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62698
62699 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62700         and Bruno Haible  <haible@clisp.cons.org>
62701
62702         * lib/quotearg.c (mbrtowc):
62703         Assign to *pwc, and return 1 only if result is nonzero.
62704         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62705
62706 2000-07-03  Jim Meyering  <meyering@lucent.com>
62707
62708         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62709
62710 2000-07-03  Jim Meyering  <meyering@lucent.com>
62711
62712         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62713         This is necessary to get a definition of e.g., UTMP_FILE on
62714         HP-UX 10.20.
62715         From Bob Proulx.
62716
62717 2000-07-02  Jim Meyering  <meyering@lucent.com>
62718
62719         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62720
62721         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62722         AC_LIBOBJ(function_name).
62723         * m4/chown.m4: Likewise.
62724         * m4/fnmatch.m4: Likewise.
62725         * m4/ftruncate.m4: Likewise.
62726         * m4/getgroups.m4: Likewise.
62727         * m4/getline.m4: Likewise.
62728         * m4/group-member.m4: Likewise.
62729         * m4/jm-macros.m4: Likewise.
62730         * m4/lstat.m4: Likewise.
62731         * m4/malloc.m4: Likewise.
62732         * m4/memcmp.m4: Likewise.
62733         * m4/nanosleep.m4: Likewise.
62734         * m4/putenv.m4: Likewise.
62735         * m4/realloc.m4: Likewise.
62736         * m4/regex.m4: Likewise.
62737         * m4/stat.m4: Likewise.
62738         * m4/strftime.m4: Likewise.
62739
62740 2000-07-02  Jim Meyering  <meyering@lucent.com>
62741
62742         * lib/quotearg.c (mbstate_t): Don't define here.
62743
62744 2000-07-02  Jim Meyering  <meyering@lucent.com>
62745
62746         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62747
62748 2000-07-01  Jim Meyering  <meyering@lucent.com>
62749
62750         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62751
62752 2000-07-01  Jim Meyering  <meyering@lucent.com>
62753
62754         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62755         problem.
62756
62757 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62758
62759         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62760         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62761
62762 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62763
62764         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62765         per change in ../m4/ls-mntd-fs.m4.
62766         (read_filesystem_list): Ignore symbolic links.
62767
62768 2000-06-29  Jim Meyering  <meyering@lucent.com>
62769
62770         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62771         for declaration of strcmp.
62772
62773         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62774
62775         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62776         Avoid warning by casting result to `char *' to remove `const'.
62777
62778 2000-06-28  Jim Meyering  <meyering@lucent.com>
62779
62780         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62781         included by quotearg.c, for which we perform this test.  From
62782         Bruno Haible.
62783
62784 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62785
62786         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62787         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62788         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62789
62790 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62791
62792         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62793
62794 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62795
62796         savedir now sets errno on failure and invokes xmalloc to get memory.
62797         Fix a couple of other minor bugs while we're at it.
62798
62799         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62800         (NAMLEN): Remove macro.
62801         (malloc, realloc): Remove decls.
62802         (stpcpy): Likewise.
62803         ("xalloc.h"): Include.
62804         (NAME_SIZE_DEFAULT): New macro.
62805         (savedir): Use xmalloc / xrealloc to allocate memory.
62806         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62807         Skip "" directory entries.
62808         Use strlen to calculate directory entry length, since the old method
62809         is rarely used these days and isn't worth supporting.
62810         Don't use a pointer after freeing it.
62811         Check for integer overflow when calculating allocation size.
62812         Use memcpy to copy entries, instead of stpcpy.
62813         Set errno properly when returning NULL.
62814         Check for readdir error.
62815
62816 2000-06-26  Jim Meyering  <meyering@lucent.com>
62817
62818         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62819
62820 2000-06-25  Jim Meyering  <meyering@lucent.com>
62821
62822         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62823         Linux header bug when _XOPEN_SOURCE is defined to 500.
62824
62825 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62826
62827         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62828         deficiency.
62829
62830 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62831
62832         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62833         Include xalloc.h.
62834         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62835
62836 2000-06-24  Jim Meyering  <meyering@lucent.com>
62837
62838         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62839         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62840         for which strerror does return char*, but which lacks a conveniently
62841         accessible declaration of the function.  If the compile-test says
62842         strerror_r doesn't work, then resort to a `run'-test that works on
62843         BeOS and segfaults on DEC Unix.
62844
62845 2000-06-24  Jim Meyering  <meyering@lucent.com>
62846
62847         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62848
62849 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62850
62851         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62852         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62853
62854 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62855
62856         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62857         (mbrtowc, mbstate_t): Define substitutes if
62858         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62859         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62860         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62861
62862 2000-06-23  Jim Meyering  <meyering@lucent.com>
62863
62864         * m4/afs.m4: Add missing AC_MSG_RESULT.
62865         Reported by Bruno Haible.
62866
62867         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62868         Suggestion from Bruno Haible.
62869
62870 2000-06-23  Jim Meyering  <meyering@lucent.com>
62871
62872         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62873
62874 2000-06-21  Jim Meyering  <meyering@lucent.com>
62875
62876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62877
62878 2000-06-21  Jim Meyering  <meyering@lucent.com>
62879
62880         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62881         (noinst_HEADERS): Add getstr.h.
62882
62883         * lib/getline.c (getstr): Move into a separate file.
62884         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62885         the following changes: new parameter, delim2; both delim[12]
62886         parameters have type `int', not `char'.  The latter would lose
62887         with 8-bit delimiters.
62888         * lib/getstr.h: New file.
62889
62890 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62891
62892         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62893         than 1024, return a memory chunk of least possible size, instead
62894         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62895         Use free/xmalloc instead of xrealloc to avoid copying for very long
62896         paths.
62897
62898 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62899
62900         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62901         the empty string.
62902
62903 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62904
62905         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62906         address, not strdup.  Include <stdlib.h> and don't declare free().
62907
62908 2000-06-19  Jim Meyering  <meyering@lucent.com>
62909
62910         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62911
62912 2000-06-18  Jim Meyering  <meyering@lucent.com>
62913
62914         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62915
62916         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62917         `checking whether...' message to be consistent with that of the
62918         lstat test.
62919
62920 2000-06-18  Jim Meyering  <meyering@lucent.com>
62921
62922         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62923         Besides, these days every porting target provides a mkdir function.
62924
62925         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62926         needed. (this snippet comes from src/system.h).
62927
62928 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62929
62930         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62931
62932 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62933
62934         * lib/human.c (adjust_value): New function.
62935         (human_readable_inexact): Apply rounding style even when
62936         printing approximate values.
62937
62938 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62939
62940         * lib/human.c (human_readable_inexact): Allow an input block
62941         size that is not a multiple of the output block size, and vice versa.
62942         Reported by Piergiorgio Sartor.
62943
62944 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62945
62946         * lib/getdate.y (get_date): Apply relative times after time
62947         zone indicator, not before.  Reported by Todd A. Jacobs.
62948
62949 2000-06-13  Jim Meyering  <meyering@lucent.com>
62950
62951         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62952
62953         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62954
62955 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62956
62957         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62958
62959 2000-06-12  Jim Meyering  <meyering@lucent.com>
62960
62961         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62962         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62963         optional argument.
62964         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62965         the optional argument, `lib'.
62966
62967 2000-06-08  Jim Meyering  <meyering@lucent.com>
62968
62969         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62970
62971 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62972
62973         Rewrite largefile configuration so that we don't need to run
62974         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62975         AC_CANONICAL_HOST in configure.in -- jmm]
62976
62977         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62978         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62979         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62980         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62981         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62982         All uses changed.
62983         Instead of inspecting the output of getconf, try to compile the
62984         test program without and with the macro definition.
62985         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62986         for getconf.  Instead, check for the needed flags by compiling
62987         test programs.
62988
62989 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62990
62991         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62992
62993 2000-06-04  Jim Meyering  <meyering@lucent.com>
62994
62995         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62996         SunOS 4.1.4 for which gid_t is an unsigned type.
62997
62998 2000-06-03  Jim Meyering  <meyering@lucent.com>
62999
63000         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63001         now that autoconf requires that.
63002
63003         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63004         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63005         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63006
63007 2000-06-03  Jim Meyering  <meyering@lucent.com>
63008
63009         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63010
63011 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63012
63013         * m4/glibc21.m4: New file.
63014         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63015
63016 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63017
63018         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63019         newer, don't install charset.alias.
63020         * lib/config.charset: Change the Linux/glibc rules so they become empty
63021         on glibc-2.1 or newer.
63022
63023 2000-06-02  Jim Meyering  <meyering@lucent.com>
63024
63025         * lib/mountlist.c: Back out last change.  Instead, do this...
63026         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63027         me_dummy member using the same `ignore'-testing code.
63028         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63029         fs_type strings.
63030         From Mark D. Roth.
63031
63032 2000-05-29  Jim Meyering  <meyering@lucent.com>
63033
63034         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63035         mounts with the `ignore' attribute.  Based on a patch from
63036         Mark D. Roth.
63037
63038 2000-05-28  Jim Meyering  <meyering@lucent.com>
63039
63040         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63041         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63042         * m4/stat.m4: Likewise.
63043         * m4/lstat.m4: Likewise.
63044         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63045
63046         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63047         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63048
63049 2000-05-26  Jim Meyering  <meyering@lucent.com>
63050
63051         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63052
63053 2000-05-24  Jim Meyering  <meyering@lucent.com>
63054
63055         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63056         autoconf requires that.
63057         * m4/lib-check.m4: Likewise.
63058         * m4/jm-macros.m4: Likewise.
63059         * m4/strftime.m4: Likewise.
63060
63061         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63062         AC_CHECK_DECLS, now that autoconf requires that.
63063
63064 2000-05-22  Jim Meyering  <meyering@lucent.com>
63065
63066         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63067         * m4/lstat.m4: Likewise.
63068
63069 2000-05-22  Jim Meyering  <meyering@lucent.com>
63070
63071         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63072
63073 2000-05-20  Jim Meyering  <meyering@lucent.com>
63074
63075         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63076         (jm_PREREQ): Use it.
63077
63078 2000-05-18  Jim Meyering  <meyering@lucent.com>
63079
63080         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63081         back, too, since it may have been modified by allocate_entry.
63082         (hash_delete): Rewrite to use neither the assignment operator
63083         nor the comma operator in an if-expression.
63084
63085 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63086
63087         * lib/closeout.c:
63088         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63089         Remove; no longer needed.
63090         "quotearg.h": Add include.
63091         (file_name): Do not bother to explicitly initialize to NULL; it's less
63092         efficient on some hosts.
63093         (close_stdout_status): Remove test as to whether stdout was already
63094         closed; it breaks for the case "echo x | sort >&-".
63095         Quote file name colons.
63096         Do not assume that _("write error") lacks format strings.
63097
63098 2000-05-15  Jim Meyering  <meyering@lucent.com>
63099
63100         * lib/version-etc.c (version_etc_copyright): Update the copyright
63101         string used in all --version output.
63102
63103 2000-05-14  Jim Meyering  <meyering@lucent.com>
63104
63105         * lib/closeout.c (close_stdout_set_file_name): New function.
63106         (close_stdout_status): Use new file-scoped global.
63107         Return right away if fstat says the stdout file descriptor is invalid.
63108         * lib/closeout.h (close_stdout_set_file_name): Declare.
63109
63110 2000-05-10  Jim Meyering  <meyering@lucent.com>
63111
63112         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63113         (close_stdout_set_status): New function.
63114         * lib/closeout.h (close_stdout_set_status): Declare.
63115
63116 2000-05-09  Jim Meyering  <meyering@lucent.com>
63117
63118         * m4/gettext.m4: Rename this...
63119         * m4/libintl.m4: ...to this.
63120
63121 2000-05-08  Jim Meyering  <meyering@lucent.com>
63122
63123         * lib/long-options.c: Don't include closeout.h.
63124         (parse_long_options): Don't call close_stdout for --version.
63125
63126 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63127
63128         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63129         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63130         2.1.3 bug.  This avoids a clash when files like regex.c define
63131         _GNU_SOURCE.
63132
63133 2000-05-06  Jim Meyering  <meyering@lucent.com>
63134
63135         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63136         (AC_REPLACE_FUNCS): Add strnlen.
63137
63138         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63139         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63140
63141         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63142         AC_SEARCH_LIBS call for nanosleep.
63143         (LIB_NANOSLEEP): Set and AC_SUBST.
63144
63145 2000-05-06  Jim Meyering  <meyering@lucent.com>
63146
63147         * lib/strnlen.c: Undefine __strnlen and strnlen.
63148         [!weak_alias]: Define __strnlen to strnlen.
63149
63150         * lib/atexit.c: New file, from libiberty.
63151
63152 2000-05-06  Jim Meyering  <meyering@lucent.com>
63153
63154         * lib/closeout.c (close_stdout_status): Also check for errors on the
63155         stderr stream.
63156
63157 2000-05-05  Jim Meyering  <meyering@lucent.com>
63158
63159         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63160         AC_SEARCH_LIBS call for clock_gettime.
63161         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63162
63163         * m4/search-libs.m4: Update from autoconf.
63164
63165         su doesn't work on Solaris 2.6.
63166         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63167         <shadow.h>.  Reported by Dragos Harabor.
63168
63169 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63170
63171         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63172         memcpy instead of xmalloc, xrealloc, path_concat.
63173         (locale_charset): Treat empty environment variables as absent.
63174         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63175
63176 2000-05-04  Jim Meyering  <meyering@lucent.com>
63177
63178         * lib/getopt.c: Update from glibc.
63179         * lib/obstack.c: Likewise.
63180         * lib/obstack.h: Likewise.
63181         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63182         file
63183
63184         * lib/regex.h: Likewise.
63185         * lib/strndup.c: Likewise.
63186         * lib/strnlen.c: New file, from glibc.
63187
63188 2000-05-03  Jim Meyering  <meyering@lucent.com>
63189
63190         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63191
63192 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63193
63194         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63195         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63196         compile-time test, rather than inspecting host and OS, to
63197         decide whether to define _LARGEFILE_SOURCE.
63198
63199 2000-05-01  Jim Meyering  <meyering@lucent.com>
63200
63201         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63202
63203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63204         Based on a patch from Bruno Haible.
63205
63206 2000-05-01  Jim Meyering  <meyering@lucent.com>
63207
63208         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63209
63210 2000-04-29  Jim Meyering  <meyering@lucent.com>
63211
63212         * lib/path-concat.c: Declare strdup only if it's not defined.
63213         * lib/canon-host.c: Likewise.
63214
63215 2000-04-28  Jim Meyering  <meyering@lucent.com>
63216
63217         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63218         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63219         is included first, then limits.h is included by locale.h by libintl.h.
63220         From John David Anglin.
63221
63222 2000-04-25  Jim Meyering  <meyering@lucent.com>
63223
63224         * lib/makepath.c (S_IRWXUGO): Define.
63225         (make_path): Always perform explicit chmod if MODE specifies any
63226         of the `special' permission bits.  Prompted by a bug report against
63227         install from Mate Wierdl and Joost van Baal.
63228
63229 2000-04-18  Jim Meyering  <meyering@lucent.com>
63230
63231         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63232         (jm_PREREQ): Use it.
63233
63234 2000-04-18  Jim Meyering  <meyering@lucent.com>
63235
63236         * lib/README: New file.
63237
63238         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63239         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63240
63241 2000-04-17  Jim Meyering  <meyering@lucent.com>
63242
63243         Get it right :-)
63244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63245         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63246         Suggestion from Akim Demaille.
63247
63248 2000-04-17  Jim Meyering  <meyering@lucent.com>
63249
63250         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63251         the definition of it to rpl_strftime also defined-away the system's
63252         declaration.
63253
63254 2000-04-15  Jim Meyering  <meyering@lucent.com>
63255
63256         Use `C' to denote so-called `contiguous' files, the same way
63257         that tar does.
63258         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63259         (ftypelet): Use S_ISCTG.
63260         From Michael Deutschmann.
63261
63262 2000-04-14  Jim Meyering  <meyering@lucent.com>
63263
63264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63265         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63266         clobbered.
63267
63268 2000-04-14  Jim Meyering  <meyering@lucent.com>
63269
63270         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63271
63272 2000-04-13  Jim Meyering  <meyering@lucent.com>
63273
63274         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63275         AH_VERBATIM to insert required #ifndef into config.h.in.
63276         Suggestion from Akim Demaille.
63277
63278 2000-04-12  Jim Meyering  <meyering@lucent.com>
63279
63280         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63281         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63282         Christian Krackowizer.
63283
63284         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63285         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63286         (AC_SYS_LARGEFILE): Require.
63287         (AM_C_PROTOTYPES): Require.
63288
63289 2000-04-08  Jim Meyering  <meyering@lucent.com>
63290
63291         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63292         names don't conflict.  Reported by Eli Zaretskii.
63293
63294 2000-04-07  Jim Meyering  <meyering@lucent.com>
63295
63296         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63297         sys/types.h, to work around system header problems on AIX 3.2.5.
63298         From Bruno Haible.
63299
63300 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63301
63302         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63303         bug.  Deal with the different error behavior of Irix iconv.
63304
63305 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63306
63307         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63308         IRIX if the installer said otherwise.
63309
63310 2000-04-05  Jim Meyering  <meyering@lucent.com>
63311
63312         Portability tweaks required for ultrix4.3.
63313         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63314         (jm_CHECK_DECLS): Add getutent to the list of functions.
63315         (_jm_DECL_HEADERS): Add utmpx.h.
63316         From John David Anglin.
63317
63318         * m4/strftime.m4: Back out the 2000-04-02 change.
63319         Instead of that change, simply undefine putenv in the test program.
63320
63321 2000-04-05  Jim Meyering  <meyering@lucent.com>
63322
63323         Portability tweaks required for ultrix4.3.
63324         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63325         getutent.
63326         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63327         * lib/canon-host.c: Declare strdup.
63328         * lib/path-concat.c: Likewise.
63329         From John David Anglin.
63330
63331 2000-04-04  Jim Meyering  <meyering@lucent.com>
63332
63333         Be more DOS 8.3-friendly.
63334         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63335         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63336         * lib/Makefile.am: Reflect renaming.
63337         Reported by Eli Zaretskii.
63338
63339         Use a temporary file name that won't clash with `charset.alias'
63340         in the DOS 8.3 name space.
63341         * lib/Makefile.am (charset_tmp): Define.
63342         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63343         (uninstall-local): Likewise.
63344         Reported by Eli Zaretskii.
63345
63346 2000-04-03  Jim Meyering  <meyering@lucent.com>
63347
63348         * m4/gettext.m4: Fix typo in comment.
63349
63350         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63351         textutils/configure.in).  Suggestion from Paul Eggert.
63352         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63353
63354 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63355
63356         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63357         variable in the shell rather than using putenv, which isn't
63358         portable.  This avoids the configure-time inter-test dependency
63359         on the potentially-renamed putenv function.
63360
63361 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63362
63363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63364         before checking struct stat.st_blksize, so that
63365         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63366
63367 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63368
63369         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63370         since strftime.c uses HAVE_STRFTIME to decide whether to use
63371         the underlying strftime.
63372
63373 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63374
63375         * lib/time/strftime.c (my_strftime): Make sure we call the system
63376         strftime, not ourselves, when invoking the underlying strftime.
63377
63378 2000-03-24  Jim Meyering  <meyering@lucent.com>
63379
63380         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63381         (charset_alias): Define.
63382         (install-exec-local): Factor out common code.
63383         (uninstall-local): Split lines longer than 80.
63384         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63385         (SUFFIXES): Define.
63386         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63387         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63388
63389 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63390
63391         * lib/config.charset: Output a line containing "Packages using this
63392         file".
63393         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63394         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63395         ref-del.sed): New rules.
63396
63397 2000-03-17  Jim Meyering  <meyering@lucent.com>
63398
63399         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63400         Otherwise, include <strings.h>
63401
63402 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63403
63404         * lib/unicodeio.c (utf8_wctomb): New function.
63405         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63406         format instead of in UCS-4 with platform dependent endianness.
63407
63408 2000-03-10  Jim Meyering  <meyering@lucent.com>
63409
63410         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63411         From Marco Franzen.
63412
63413 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63414
63415         * lib/savedir.c (savedir): Work even if directory size is
63416         negative; this can happen with some screwy NFS configurations.
63417
63418 2000-03-06  Jim Meyering  <meyering@lucent.com>
63419
63420         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63421         if it's NULL (because we ran out of memory).  From Bruno Haible.
63422
63423 2000-03-05  Jim Meyering  <meyering@lucent.com>
63424
63425         * lib/localcharset.c ("path-concat.h"): Include.
63426         (get_charset_aliases): Use path_concat instead of ANSI string
63427         concatenation.
63428
63429         * lib/unicodeio.h (PARAMS): Define.
63430         Use it to guard prototype.
63431
63432 2000-03-04  Jim Meyering  <meyering@lucent.com>
63433
63434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63435         for lib/localcharset.c.
63436
63437 2000-03-04  Jim Meyering  <meyering@lucent.com>
63438
63439         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63440         installing into it.
63441         (uninstall-local): Uncomment this rule so `make distcheck' works
63442         once again.
63443
63444         * lib/unicodeio.c (<errno.h>): Include it.
63445         (errno): Declare if not defined.
63446
63447         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63448
63449         * lib/config.charset: New version, incorporating remarks from a linux
63450         i18n mailing list.  From Bruno Haible.
63451
63452 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63453
63454         * m4/codeset.m4: New file.
63455         * m4/iconv.m4: New file.
63456         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63457
63458 2000-03-03  Jim Meyering  <meyering@lucent.com>
63459
63460         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63461
63462 2000-03-02  Jim Meyering  <meyering@lucent.com>
63463
63464         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63465         the messages come out on separate lines.
63466
63467         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63468         rather than jm_CHECK_DECLARATIONS.
63469         * m4/decl.m4: Remove now-unused file.
63470
63471         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63472         geteuid.
63473
63474 2000-03-02  Jim Meyering  <meyering@lucent.com>
63475
63476         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63477
63478 2000-03-01  Jim Meyering  <meyering@lucent.com>
63479
63480         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63481         * lib/unicodeio.c: Likewise.
63482
63483 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63484
63485         * lib/config.charset: New file.
63486         * lib/localcharset.c: New file.
63487         * lib/unicodeio.h, lib/unicodeio.c: New files.
63488         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63489         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63490         (noinst_HEADERS): Add unicodeio.h.
63491         (all-local, install-exec-local, charset.alias): New targets.
63492
63493 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63494
63495         * lib/quotearg.c (ALERT_CHAR): New macro.
63496         (quotearg_buffer_restyled): Use it.
63497
63498 2000-02-27  Jim Meyering  <meyering@lucent.com>
63499
63500         * m4/check-decl.m4: Add getenv to the list.
63501
63502 2000-02-27  Jim Meyering  <meyering@lucent.com>
63503
63504         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63505         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63506
63507         * lib/backupfile.c: Guard inclusion of stdlib.h with
63508         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63509         Declare malloc if needed.
63510
63511         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63512         `#ifndef HAVE_DECL..'
63513         now that autoconf always defines the HAVE_DECL_ symbols.
63514         * lib/human.c: Likewise.
63515         * lib/same.c: Likewise.
63516         * lib/strtoumax.c: Likewise.
63517
63518         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63519         declaration check was not run.
63520         * lib/hash.c: Likewise.
63521         * lib/human.c: Likewise.
63522         * lib/same.c: Likewise.
63523         * lib/strtoumax.c: Likewise.
63524
63525         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63526         `.', then first look up the entire `.'-containing string as a login
63527         name.
63528
63529 2000-02-23  Jim Meyering  <meyering@lucent.com>
63530
63531         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63532         in place of my hack.
63533
63534 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63535
63536         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63537         (textint): New typedef.
63538         (parser_control): Member year changed from int to textint.
63539         All uses changed.
63540         (YYSTYPE): Removed; replaced by %union with int and textint members.
63541         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63542         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63543         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63544         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63545         (date, number, to_year): Use width of number in digits, not its value,
63546         to determine whether it's a 2-digit year, or a 2-digit time.
63547         (yylex): Store number of digits of numeric tokens.
63548         Reported by John Kendall.
63549
63550         (parser_control): Changed from struct parser_control to typedef (for
63551         consistency).  All uses changed.
63552
63553         (tID): Removed; not used.
63554         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63555
63556 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63557
63558         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63559         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63560
63561 2000-02-12  Jim Meyering  <meyering@lucent.com>
63562
63563         * lib/userspec.c (ISDIGIT): Define it.
63564         (isdigit): Remove definition.
63565         (is_number): Use ISDIGIT, not isdigit.
63566         <libintl.h>: Include.
63567         (_ and N_): Define.
63568         (parse_user_spec): Mark translatable strings.
63569
63570 2000-02-10  Jim Meyering  <meyering@lucent.com>
63571
63572         With these changes, nanosleep.[ch] are finally enough like the other
63573         lib/* replacement files to compile on a few more losing systems.
63574
63575         * lib/nanosleep.h: Don't include config.h.
63576         Remove prototype from declaration of nanosleep.
63577         (PARAMS): Remove now-unneeded definition.
63578         * lib/nanosleep.c: #undef nanosleep.
63579         (rpl_nanosleep): Rename from nanosleep.
63580
63581 2000-02-10  Jim Meyering  <meyering@lucent.com>
63582
63583         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63584         gnu_nanosleep to rpl_nanosleep.
63585
63586 2000-02-09  Jim Meyering  <meyering@lucent.com>
63587
63588         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63589         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63590
63591 2000-02-08  Akim Demaille  <akim@epita.fr>
63592
63593         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63594         `[' and `]' and remove uses of `changequote'.
63595         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63596         (AC_SYS_LARGEFILE): Likewise.
63597         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63598         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63599         of changequote.
63600         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63601         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63602         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63603         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63604
63605 2000-02-05  Jim Meyering  <meyering@lucent.com>
63606
63607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63608         Remove explicit use of AC_HEADER_TIME.  It is required by
63609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63610         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63611         in autoconf whereby the expansion of the latter ended up preceding
63612         the expansion of its prerequisite, AC_HEADER_TIME.
63613         Reported by Volker Borchert.
63614
63615 2000-02-03  Jim Meyering  <meyering@lucent.com>
63616
63617         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63618
63619 2000-02-03  Jim Meyering  <meyering@lucent.com>
63620
63621         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63622         rather than with `#if HAVE_UTMPNAME'.
63623
63624 2000-02-02  Jim Meyering  <meyering@lucent.com>
63625
63626         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63627         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63628         Reported by Eli Zaretskii.
63629
63630 2000-02-01  Jim Meyering  <meyering@lucent.com>
63631
63632         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63633
63634 2000-01-31  Jim Meyering  <meyering@lucent.com>
63635
63636         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63637         functions.  Add the time.h and sys/time.h headers along with the
63638         AC_REQUIRE'ment of AC_HEADER_TIME.
63639
63640 2000-01-31  Jim Meyering  <meyering@lucent.com>
63641
63642         * lib/nanosleep.h (nanosleep): Guard declaration with
63643         `#if ! HAVE_DECL_NANOSLEEP'.
63644         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
63645         the declaration in that vendor's sys/timers.h.
63646         Reported by Christian Krackowizer.
63647
63648         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
63649         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
63650         (ISPRINT): Likewise.
63651         Reported by Tom Tromey.
63652
63653 2000-01-30  Jim Meyering  <meyering@lucent.com>
63654
63655         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
63656
63657         * m4/prereq.m4 (utmp_includes): Define.
63658         Check for ut_user and ut_name members in both struct utmpx
63659         and struct utmp.
63660
63661 2000-01-30  Jim Meyering  <meyering@lucent.com>
63662
63663         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63664         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63665         header files where only utmpx.ut_user is declared.
63666
63667         * lib/readutmp.h (UT_USER): Define.
63668
63669 2000-01-29  Jim Meyering  <meyering@lucent.com>
63670
63671         * m4/lib-check.m4: New file containing library-related checks from
63672         fileutils and sh-utils (textutils had none).
63673
63674 2000-01-28  Jim Meyering  <meyering@lucent.com>
63675
63676         * m4/perl.m4: Change format of warning message to look more like that
63677         from the missing script.  Suggestion from François Pinard.
63678
63679 2000-01-25  Jim Meyering  <meyering@lucent.com>
63680
63681         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63682         well as time.h in the compile check.
63683         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63684         Fix typo in cross-compiling case: s/yes/no/.
63685
63686 2000-01-23  Jim Meyering  <meyering@lucent.com>
63687
63688         * m4/jm-macros.m4: Move df-related tests here from
63689         fileutils/configure.in
63690
63691         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63692         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63693
63694         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63695         s/space/ac_fsusage_space/.
63696         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63697
63698         * m4/ftruncate.m4: New file (derived from part of
63699         fileutils/configure.in).
63700         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63701         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63702
63703         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63704         AC_SUBST these here, rather than just in sh-util/configure.in, so
63705         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63706         all the same.
63707         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63708         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63709         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63710         (AC_SUBST(POW_LIBM)): Likewise.
63711         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63712
63713 2000-01-23  Jim Meyering  <meyering@lucent.com>
63714
63715         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63716         obstack.c.
63717
63718 2000-01-22  Jim Meyering  <meyering@lucent.com>
63719
63720         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63721
63722         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63723
63724         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63725         configure.in
63726         (AC_CHECK_HEADERS): Likewise for sh-utils.
63727         (AC_CHECK_HEADERS): Likewise for textutils.
63728         Merge the three lists of headers.
63729
63730         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63731         from fileutils' configure.in.
63732
63733         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63734         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63735         check-decl.m4.
63736
63737         * m4/check-decl.m4: Use #if rather than #ifdef.
63738         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63739         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63740         (_jm_DECL_HEADERS): Define new function.
63741         (jm_CHECK_DECLARATIONS): Require it.
63742
63743 2000-01-22  Jim Meyering  <meyering@lucent.com>
63744
63745         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63746         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63747         Required for some AIX systems.  Reported by Christian Krackowizer.
63748         [TESTING] (main): New function.
63749
63750         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63751         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63752         letters.
63753
63754         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63755         iswprint.
63756
63757         * lib/strverscmp.c (ISDIGIT): Define.
63758         (strverscmp): Use ISDIGIT, not isdigit.
63759
63760 2000-01-19  Jim Meyering  <meyering@lucent.com>
63761
63762         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63763         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63764         defines `struct timespec' in <sys/time.h>
63765
63766         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63767         Thanks to Akim for explaining.
63768
63769 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63770
63771         * lib/nanosleep.c (nanosleep):
63772         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63773         POSIX.1 doesn't require SA_INTERRUPT and some systems
63774         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63775         it's been part of POSIX.1 since day 1 (in 1988).
63776
63777 2000-01-17  Jim Meyering  <meyering@lucent.com>
63778
63779         * lib/interlock: Remove unused file.  Reported by François Pinard.
63780
63781 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63782
63783         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63784         alert, backslash, formfeed, and vertical tab unnecessarily in
63785         shell quoting style.
63786
63787 2000-01-16  Jim Meyering  <meyering@lucent.com>
63788
63789         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63790         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63791         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63792         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63793
63794 2000-01-16  Jim Meyering  <meyering@lucent.com>
63795
63796         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63797         because the latter didn't work.
63798
63799 2000-01-15  Jim Meyering  <meyering@lucent.com>
63800
63801         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63802         (AC_REPLACE_FUNCS): Add memcpy and memset.
63803         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63804         Add strpbrk.
63805         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63806
63807 2000-01-12  Jim Meyering  <meyering@lucent.com>
63808
63809         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63810         (jm_PREREQ): Use it.
63811         (jm_PREREQ_READUTMP): New macro.
63812         (jm_PREREQ): Use it.
63813
63814 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63815
63816         Quote multibyte characters correctly.
63817         * m4/c-bs-a.m4: New file.
63818         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63819         (jm_PREREQ): Use it.
63820
63821 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63822
63823         * m4/uintmax_t.m4: Port to autoconf 2.13.
63824
63825 2000-01-08  Jim Meyering  <meyering@ascend.com>
63826
63827         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63828         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63829
63830 2000-01-04  Jim Meyering  <meyering@ascend.com>
63831
63832         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63833         jm_STRUCT_DIRENT_D_TYPE.
63834         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63835         jm_STRUCT_DIRENT_D_INO.
63836         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63837         jm_STRUCT_UTIMBUF.
63838         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63839         renamings.
63840         * m4/utime.m4: Likewise.
63841
63842         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63843         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63844
63845 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63846
63847         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63848         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63849
63850 2000-01-02  Jim Meyering  <meyering@ascend.com>
63851
63852         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63853         remember if this is necessary.
63854
63855 1999-12-26  Jim Meyering  <meyering@ascend.com>
63856
63857         * m4/jm-macros.m4: Use it here.
63858         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63859
63860 1999-12-23  Jim Meyering  <meyering@ascend.com>
63861
63862         * m4/jm-macros.m4: Check for clock_gettime (moved from
63863         fileutils/configure.in)
63864         Check for gettimeofday.
63865
63866 1999-12-20  Jim Meyering  <meyering@ascend.com>
63867
63868         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63869         autoconf-2.14a-1999-12-20.
63870
63871 1999-12-19  Jim Meyering  <meyering@ascend.com>
63872
63873         * m4/lstat-slash.m4: New file.
63874         * m4/jm-macros.m4: Use the new macro:
63875         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63876
63877 1999-12-07  Jim Meyering  <meyering@ascend.com>
63878
63879         * m4/perl.m4: Require that File::Compare be available, too.
63880         Too many systems seem to lack it.
63881
63882         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63883         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63884
63885 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63886
63887         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63888         problem with the QNX 4.25 shell, which doesn't propagate exit
63889         status of failed commands inside shell assignments.
63890
63891 1999-11-17  Jim Meyering  <meyering@ascend.com>
63892
63893         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63894
63895 1999-11-07  Jim Meyering  <meyering@ascend.com>
63896
63897         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63898
63899 1999-11-06  Jim Meyering  <meyering@ascend.com>
63900
63901         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63902         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63903
63904 1999-11-05  Jim Meyering  <meyering@ascend.com>
63905
63906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63907         configure.in of textutils, fileutils, and sh-utils into this one
63908         (shared between those packages) file.
63909         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63910         AC_STRUCT_ST_BLKSIZE.
63911
63912 1999-11-03  Jim Meyering  <meyering@ascend.com>
63913
63914         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63915         of AC_CHECK_TYPE checks includes unistd.h.
63916         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63917         Suggestion from Akim Demaille.
63918
63919 1999-10-30  Jim Meyering  <meyering@ascend.com>
63920
63921         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63922         m4-quoted string.
63923         * m4/ls-mntd-fs.m4: Likewise.
63924         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63925         * m4/jm-winsz1.m4: Likewise.
63926
63927         * m4/const.m4: Remove file, since the fix made it into the experimental
63928         version of autoconf.
63929         * m4/mktime.m4: Likewise.
63930
63931         * m4/check-type.m4: Remove file, now that the latest version of
63932         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63933
63934         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63935         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63936         AC_CHECK_TYPE.
63937
63938 1999-10-04  Jim Meyering  <meyering@ascend.com>
63939
63940         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63941
63942 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63943
63944         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63945         2.95.1 bug with HP-UX 10.20.
63946
63947 1999-09-17  Jim Meyering  <meyering@ascend.com>
63948
63949         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63950         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63951         due to missing strdup (against sh-utils-2.0).
63952
63953 1999-08-29  Jim Meyering  <meyering@ascend.com>
63954
63955         * m4/jm-macros.m4: Require jm_BISON.
63956         * m4/bison.m4: New file.
63957
63958 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63959
63960         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63961         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63962
63963 1999-08-05  Jim Meyering  <meyering@ascend.com>
63964
63965         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63966         to avoid conflicts with `conftest' on 8+3 filesystems.
63967         Suggestion from Eli Zaretskii.
63968
63969 1999-08-04  Jim Meyering  <meyering@ascend.com>
63970
63971         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63972         fileutils and sh-utils (textutils's getline test was inadequate).
63973         (AM_FUNC_GETLINE): Run this test.
63974         (AC_CHECK_FUNCS): Check for getdelim.
63975         Reported by Bob Proulx.
63976
63977 1999-08-02  Jim Meyering  <meyering@ascend.com>
63978
63979         * m4/jm-macros.m4: Add a comment.
63980
63981 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63982
63983         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63984         <inttypes.h> defines strtoumax as a macro (and not as a
63985         function).
63986
63987 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63988
63989         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63990         that we can shift, multiply and divide unsigned long long
63991         values; Ultrix cc can't do it.
63992
63993 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63994
63995         * m4/mktime.m4: New file, which is a preview of what should appear
63996         in the next public autoconf release.
63997
63998 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63999
64000         * m4/lfs.m4: Remove this file.
64001         * m4/largefile.m4: New file.  It contains the old contents of
64002         lfs.m4, except that all names with prefix AC_LFS have been
64003         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64004         compatible with future autoconf versions.  Also, some minor m4
64005         quoting problems have been fixed.
64006
64007 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64008
64009         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64010         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64011         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64012         and simplify the shell code.
64013
64014 1999-08-01  Jim Meyering  <meyering@ascend.com>
64015
64016         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64017         m4.
64018
64019 1999-07-20  Jim Meyering  <meyering@ascend.com>
64020
64021         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64022
64023 1999-07-15  Jim Meyering  <meyering@ascend.com>
64024
64025         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64026
64027 1999-05-22  Jim Meyering  <meyering@ascend.com>
64028
64029         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64030
64031 1999-05-20  Jim Meyering  <meyering@ascend.com>
64032
64033         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64034         Add a colon after each `then' in case $4 is empty.
64035
64036 1999-05-16  Jim Meyering  <meyering@ascend.com>
64037
64038         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64039
64040 1999-05-10  Jim Meyering  <meyering@ascend.com>
64041
64042         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64043
64044         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64045         AC_FUNC_MKTIME.
64046
64047 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64048
64049         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64050
64051 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64052
64053         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64054         not CPPFLAGS, so that linking works correctly in IRIX.
64055
64056 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64057
64058         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64059
64060 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64061
64062         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64063         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64065         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64066         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64067
64068         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64069
64070 1999-04-20  Jim Meyering  <meyering@ascend.com>
64071
64072         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64073         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64074         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64075
64076 1999-04-18  Jim Meyering  <meyering@ascend.com>
64077
64078         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64079         * m4/jm-macros.m4: Use it.
64080
64081 1999-04-06  Jim Meyering  <meyering@ascend.com>
64082
64083         * m4/strftime.m4: Remove test for %f.
64084
64085 1999-03-29  Jim Meyering  <meyering@ascend.com>
64086
64087         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64088         superset of the AC_TYPE_* checks in the textutils, fileutils,
64089         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64090         AC_TYPE_PID_T.
64091
64092 1999-03-28  Jim Meyering  <meyering@ascend.com>
64093
64094         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64095         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64096         replaced e.g., in the *.sh files of the sh-utils.
64097
64098 1999-03-20  Jim Meyering  <meyering@ascend.com>
64099
64100         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64101         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64102         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64103
64104 1999-03-19  Jim Meyering  <meyering@ascend.com>
64105
64106         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64107
64108 1999-03-12  Jim Meyering  <meyering@ascend.com>
64109
64110         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64111
64112 1999-03-07  Jim Meyering  <meyering@ascend.com>
64113
64114         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64115         declared.
64116
64117 1999-02-17  Jim Meyering  <meyering@ascend.com>
64118
64119         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64120         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64121
64122 1999-02-07  Jim Meyering  <meyering@ascend.com>
64123
64124         * m4/group-member.m4: New file -- extracted from sh-utils'
64125         configure.in.
64126
64127         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64128         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64129
64130 1999-02-06  Jim Meyering  <meyering@ascend.com>
64131
64132         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64133         * m4/fnmatch.m4: Likewise.
64134         * m4/getgroups.m4: Likewise.
64135         * m4/lstat.m4: Likewise.
64136         * m4/malloc.m4: Likewise.
64137         * m4/putenv.m4: Likewise.
64138         * m4/realloc.m4: Likewise.
64139         * m4/regex.m4: Likewise.
64140         * m4/stat.m4: Likewise.
64141         * m4/strftime.m4: Likewise.
64142         Suggestion from Alain Magloire.
64143
64144         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64145         * m4/fnmatch.m4: Likewise.
64146         * m4/getgroups.m4: Likewise.
64147         * m4/getline.m4: Likewise.
64148         * m4/lstat.m4: Likewise.
64149         * m4/malloc.m4: Likewise.
64150         * m4/memcmp.m4: Likewise.
64151         * m4/putenv.m4: Likewise.
64152         * m4/realloc.m4: Likewise.
64153         * m4/regex.m4: Likewise.
64154         * m4/stat.m4: Likewise.
64155         * m4/strftime.m4: Likewise.
64156         Suggestion from Alain Magloire.
64157
64158         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64159         an argument.
64160
64161         * m4/regex.m4: Add a run-time Test for proper operation of
64162         re_compile_pattern.
64163
64164 1999-01-31  Jim Meyering  <meyering@ascend.com>
64165
64166         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64167
64168 1999-01-30  Jim Meyering  <meyering@ascend.com>
64169
64170         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64171
64172         * m4/jm-mktime.m4: Make this a wrapper around the official
64173         AM_FUNC_MKTIME rather than my private copy, now that the official one
64174         is up to date.
64175         * m4/mktime.m4: Remove file.
64176
64177         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64178         * m4/uptime.m4: Likewise.
64179         * m4/uintmax_t.m4: Likewise.
64180
64181 1999-01-28  Jim Meyering  <meyering@ascend.com>
64182
64183         * m4/jm-macros.m4: Use jm_AFS.
64184         * m4/afs.m4: New file (from fileutils' configure.in).
64185
64186         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64187         * m4/chown.m4: Likewise.
64188         * m4/d-ino.m4: Likewise.
64189         * m4/d-type.m4: Likewise.
64190         * m4/fnmatch.m4: Likewise.
64191         * m4/getgroups.m4: Likewise.
64192         * m4/gettext.m4: Likewise.
64193         * m4/jm-mktime.m4: Likewise.
64194         * m4/jm-winsz2.m4: Likewise.
64195         * m4/lcmessage.m4: Likewise.
64196         * m4/ls-mntd-fs.m4: Likewise.
64197         * m4/malloc.m4: Likewise.
64198         * m4/memcmp.m4: Likewise.
64199         * m4/putenv.m4: Likewise.
64200         * m4/realloc.m4: Likewise.
64201         * m4/st_mtim.m4: Likewise.
64202         * m4/strftime.m4: Likewise.
64203
64204 1999-01-16  Jim Meyering  <meyering@ascend.com>
64205
64206         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64207         (ARGMATCH_DIE_DECL): Define.
64208
64209 1999-01-12  Jim Meyering  <meyering@ascend.com>
64210
64211         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64212         Reported by Lars Hecking.
64213
64214 1999-01-10  Jim Meyering  <meyering@ascend.com>
64215
64216         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64217         gross kludge.
64218         * m4/inttypes_h.m4: Likewise.
64219         * m4/lstat.m4: Likewise.
64220         * m4/malloc.m4: Likewise.
64221         * m4/readdir.m4: Likewise.
64222         * m4/realloc.m4: Likewise.
64223         * m4/st_dm_mode.m4: Likewise.
64224         * m4/stat.m4: Likewise.
64225         * m4/utimbuf.m4: Likewise.
64226         * m4/utimes.m4: Likewise.
64227
64228         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64229         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64230         comments in config.h.in are meaningful.
64231
64232         * m4/jm-macros.m4: Require autoconf-2.13 here.
64233
64234         * m4/regex.m4: By default, don't use the included regex.c on systems
64235         with glibc 2.  Suggestion from Uli Drepper.
64236
64237 1999-01-02  Jim Meyering  <meyering@ascend.com>
64238
64239         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64240
64241 1998-12-18  Jim Meyering  <meyering@ascend.com>
64242
64243         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64244         Based on a suggestion from Lars Hecking.
64245
64246 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64247
64248         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64249
64250 1998-11-16  Jim Meyering  <meyering@ascend.com>
64251
64252         * m4/lfs.m4: Double-quote the `uname...` expression.
64253
64254 1998-11-14  Jim Meyering  <meyering@ascend.com>
64255
64256         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64257         * m4/stat.m4: Likewise.
64258
64259 1998-11-03  Jim Meyering  <meyering@ascend.com>
64260
64261         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64262         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64263
64264 1998-10-18  Jim Meyering  <meyering@ascend.com>
64265
64266         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64267
64268 1998-10-17  Jim Meyering  <meyering@ascend.com>
64269
64270         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64271         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64272         calls for those previously hard-coded headers.  Instead, take a new
64273         parameter.
64274         (jm_CHECK_DECLARATIONS): Reflect interface change.
64275         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64276         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64277
64278         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64279
64280 1998-10-14  Jim Meyering  <meyering@ascend.com>
64281
64282         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64283         instead of "TZ=America/Vancouver".  From Paul Eggert.
64284
64285 1998-10-11  Jim Meyering  <meyering@ascend.com>
64286
64287         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64288         This adds a test for a recently added compatibility fix for mktime.c.
64289         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64290
64291 1998-09-27  Jim Meyering  <meyering@ascend.com>
64292
64293         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64294
64295         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64296         ../configure.in, including a change from Gordon Matzigkeit to allow
64297         cross-compiling for the Hurd.
64298
64299         * m4/glibc.m4: New file/macro to test for the GNU C Library
64300         versions 1 and 2.  From Gordon Matzigkeit.
64301         Indent.
64302
64303 1998-09-21  Jim Meyering  <meyering@ascend.com>
64304
64305         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64306
64307 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64308
64309         Port nanosecond-resolution times to UnixWare 2.1.2 and
64310         pedantic Solaris 2.6.
64311
64312         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64313         AC_STRUCT_ST_MTIM.
64314         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64315         Generate name of ns member, instead of just 1 or undef.
64316         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64317
64318 1998-08-15  Jim Meyering  <meyering@ascend.com>
64319
64320         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64321         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64322         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64323         instead of jm_TYPE_SSIZE_T.
64324
64325 1998-08-12  Jim Meyering  <meyering@ascend.com>
64326
64327         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64328
64329 1998-08-02  Jim Meyering  <meyering@ascend.com>
64330
64331         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64332         in acconfig.h manually.
64333
64334 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64335
64336         * m4/st_mtim.m4: New file.
64337
64338 1998-07-28  Jim Meyering  <meyering@ascend.com>
64339
64340         * m4/utimes.m4: Undef stat.
64341
64342 1998-07-25  Jim Meyering  <meyering@ascend.com>
64343
64344         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64345         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64346
64347 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64348
64349         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64350         uid and gid actually remain unchanged.
64351
64352 1998-07-07  Jim Meyering  <meyering@ascend.com>
64353
64354         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64355
64356 1998-07-04  Jim Meyering  <meyering@ascend.com>
64357
64358         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64359         to prove that this macro can be used in packages without regex.c.
64360
64361 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64362
64363         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64364         is to be used.
64365
64366 1998-07-03  Jim Meyering  <meyering@ascend.com>
64367
64368         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64369
64370         * m4/gettext.m4: New file -- from gettext-0.10.35.
64371         * m4/lcmessage.m4: Likewise.
64372         * m4/progtest.m4: Likewise.
64373
64374         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64375         * m4/jm-macros.m4: Require the new macro.
64376
64377 1998-06-29  Jim Meyering  <meyering@ascend.com>
64378
64379         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64380         for the definition of NGROUPS (used in a system header included
64381         by sys/mount.h).
64382
64383 1998-06-28  Jim Meyering  <meyering@ascend.com>
64384
64385         * m4/ls-mntd-fs.m4: New file.
64386         * m4/fstypename.m4: New file.
64387
64388         * m4/jm-macros.m4: Require the new macro.
64389         * m4/jm-glibc-io.m4: New file.
64390
64391 1998-05-19  Jim Meyering  <meyering@ascend.com>
64392
64393         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64394         * m4/lchown.m4: New file.
64395
64396         * m4/Makefile.am.in: New file.
64397         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64398
64399 1998-05-14  Jim Meyering  <meyering@ascend.com>
64400
64401         * m4/Makefile.am (EXTRA_DIST): Add them.
64402         * m4/jm-macros.m4: New file.
64403         * m4/utimbuf.m4: New file.
64404
64405 1998-05-12  Jim Meyering  <meyering@ascend.com>
64406
64407         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64408
64409 1998-05-11  Jim Meyering  <meyering@ascend.com>
64410
64411         * m4/isc-posix.m4: New file.
64412
64413 1998-05-10  Jim Meyering  <meyering@ascend.com>
64414
64415         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64416
64417 1998-05-09  Jim Meyering  <meyering@ascend.com>
64418
64419         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64420         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64421         with automake.
64422
64423         * m4/ssize_t.m4: New file.
64424         * m4/mktime.m4: Remove file -- the new automake has this now.
64425
64426 1998-04-26  Jim Meyering  <meyering@ascend.com>
64427
64428         * m4/assert.m4: New file.
64429         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64430
64431 1998-04-05  Jim Meyering  <meyering@ascend.com>
64432
64433         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64434         (jm_PREREQ): Use it here.
64435
64436 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64437
64438         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64439         in acconfig.h.
64440
64441 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64442
64443         * m4/prereq.m4: New file.
64444         * m4/error.m4: New file.
64445         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64446
64447 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64448
64449         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64450         cache-check for the same variable -- that defeated the purpose of
64451         the test; the test program was never run.  This was a problem only
64452         on systems with losing getline functions -- HP-UX 10.20 is one.
64453         Reported by Bjorn Helgaas.
64454
64455 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64456
64457         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64458
64459 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64460
64461         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64462
64463         * m4/const.m4: New file.  Use an initializer in this declaration
64464         typedef int charset[2]; const charset x;
64465         Reported by Bob Glickstein.
64466
64467 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64468
64469         * m4/chown.m4: Fix reversed types on -1 args to chown.
64470         From Kaveh Ghazi.
64471
64472 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64473
64474         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64475         Add lseek and memchr.
64476
64477         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64478         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64479         have a 20-character limit on names.
64480
64481 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64482
64483         * m4/inttypes_h.m4: New file.
64484         * m4/uintmax_t.m4: New file.
64485         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64486
64487
64488         -----
64489
64490         Local Variables:
64491         coding: utf-8
64492         End:
64493
64494         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64495
64496         Copying and distribution of this file, with or without
64497         modification, are permitted provided the copyright notice
64498         and this notice are preserved.