fdopendir: work around FreeBSD bug
[pspp] / ChangeLog
1 2010-03-30  Eric Blake  <eblake@redhat.com>
2
3         fdopendir: work around FreeBSD bug
4         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6         * modules/dirent (Makefile.am): Substitute it.
7         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8         declaration.
9         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
10         fix.
11         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12
13 2010-03-29  Bruno Haible  <bruno@clisp.org>
14
15         Emit #pragma system_header after the inclusion guard, not before.
16         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17         guard that spans the entire file, not before. This enables an
18         optimization in GCC's preprocessor.
19         * lib/ctype.in.h: Likewise.
20         * lib/dirent.in.h: Likewise.
21         * lib/errno.in.h: Likewise.
22         * lib/float.in.h: Likewise.
23         * lib/getopt.in.h: Likewise.
24         * lib/iconv.in.h: Likewise.
25         * lib/langinfo.in.h: Likewise.
26         * lib/locale.in.h: Likewise.
27         * lib/math.in.h: Likewise.
28         * lib/netdb.in.h: Likewise.
29         * lib/netinet_in.in.h: Likewise.
30         * lib/pty.in.h: Likewise.
31         * lib/sched.in.h: Likewise.
32         * lib/se-selinux.in.h: Likewise.
33         * lib/search.in.h: Likewise.
34         * lib/spawn.in.h: Likewise.
35         * lib/stdarg.in.h: Likewise.
36         * lib/stdint.in.h: Likewise.
37         * lib/string.in.h: Likewise.
38         * lib/strings.in.h: Likewise.
39         * lib/sys_file.in.h: Likewise.
40         * lib/sys_ioctl.in.h: Likewise.
41         * lib/sys_time.in.h: Likewise.
42         * lib/sys_times.in.h: Likewise.
43         * lib/sys_utsname.in.h: Likewise.
44         * lib/sys_wait.in.h: Likewise.
45         * lib/sysexits.in.h: Likewise.
46         * lib/wctype.in.h: Likewise.
47
48 2010-03-28  James Youngman  <jay@gnu.org>
49
50         save-cwd: don't leak a file descriptor when the caller execs.
51         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
52         saved file descriptor.
53         * modules/save-cwd (Depends-on): Depend on cloexec.
54
55 2010-03-29  Bruno Haible  <bruno@clisp.org>
56
57         Remove vestiges of fts-lgpl module.
58         * lib/fts_.h: Assume GNULIB_FTS is 1.
59         * lib/fts.c: Likewise.
60         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
61
62 2010-03-28  Bruno Haible  <bruno@clisp.org>
63
64         Fix definition of tests witness macro.
65         * gnulib-tool (func_import): Fix definition of witness macro.
66
67 2010-03-28  Bruno Haible  <bruno@clisp.org>
68
69         Fix ioctl's protoype on glibc systems.
70         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
71         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
72         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
73         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
74         signature. If not, arrange to replace the ioctl function.
75         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
76         REPLACE_IOCTL.
77         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
78         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
79         Reported by Ludovic Courtès <ludo@gnu.org>.
80
81 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
82
83         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
84         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
85         made it so grep -r --include=GLOB* ... did not work.
86
87 2010-03-26  Jim Meyering  <meyering@redhat.com>
88             Eric Blake  <eblake@redhat.com>
89
90         maint.mk: prohibit use of test's -o and -a operators
91         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
92
93 2010-03-28  Bruno Haible  <bruno@clisp.org>
94
95         Remove unused GNULIB_XYZ macro definitions.
96         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
97         invocation.
98
99 2010-03-28  Bruno Haible  <bruno@clisp.org>
100
101         Mark privileged tests modules.
102         * modules/idpriv-drop-tests (Status): New section.
103         * modules/idpriv-droptemp-tests (Status): New section.
104
105 2010-03-28  Bruno Haible  <bruno@clisp.org>
106
107         Split C++ tests into separate tests modules.
108         * modules/dirent-c++-tests: New file, extracted from
109         modules/dirent-tests.
110         * modules/dirent-tests: Depend on it.
111         * modules/fcntl-h-c++-tests: New file, extracted from
112         modules/fcntl-h-tests.
113         * modules/fcntl-h-tests: Depend on it.
114         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
115         * modules/glob-tests: Depend on it.
116         * modules/iconv-h-c++-tests: New file, extracted from
117         modules/iconv-h-tests.
118         * modules/iconv-h-tests: Depend on it.
119         * modules/langinfo-c++-tests: New file, extracted from
120         modules/langinfo-tests.
121         * modules/langinfo-tests: Depend on it.
122         * modules/locale-c++-tests: New file, extracted from
123         modules/locale-tests.
124         * modules/locale-tests: Depend on it.
125         * modules/math-c++-tests: New file, extracted from modules/math-tests.
126         * modules/math-tests: Depend on it.
127         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
128         * modules/pty-tests: Depend on it.
129         * modules/search-c++-tests: New file, extracted from
130         modules/search-tests.
131         * modules/search-tests: Depend on it.
132         * modules/signal-c++-tests: New file, extracted from
133         modules/signal-tests.
134         * modules/signal-tests: Depend on it.
135         * modules/spawn-c++-tests: New file, extracted from
136         modules/spawn-tests.
137         * modules/spawn-tests: Depend on it.
138         * modules/stdio-c++-tests: New file, extracted from
139         modules/stdio-tests.
140         * modules/stdio-tests: Depend on it.
141         * modules/stdlib-c++-tests: New file, extracted from
142         modules/stdlib-tests.
143         * modules/stdlib-tests: Depend on it.
144         * modules/string-c++-tests: New file, extracted from
145         modules/string-tests.
146         * modules/string-tests: Depend on it.
147         * modules/sys_ioctl-c++-tests: New file, extracted from
148         modules/sys_ioctl-tests.
149         * modules/sys_ioctl-tests: Depend on it.
150         * modules/sys_select-c++-tests: New file, extracted from
151         modules/sys_select-tests.
152         * modules/sys_select-tests: Depend on it.
153         * modules/sys_socket-c++-tests: New file, extracted from
154         modules/sys_socket-tests.
155         * modules/sys_socket-tests: Depend on it.
156         * modules/sys_stat-c++-tests: New file, extracted from
157         modules/sys_stat-tests.
158         * modules/sys_stat-tests: Depend on it.
159         * modules/sys_time-c++-tests: New file, extracted from
160         modules/sys_time-tests.
161         * modules/sys_time-tests: Depend on it.
162         * modules/time-c++-tests: New file, extracted from modules/time-tests.
163         * modules/time-tests: Depend on it.
164         * modules/unistd-c++-tests: New file, extracted from
165         modules/unistd-tests.
166         * modules/unistd-tests: Depend on it.
167         * modules/wchar-c++-tests: New file, extracted from
168         modules/wchar-tests.
169         * modules/wchar-tests: Depend on it.
170         * modules/wctype-c++-tests: New file, extracted from
171         modules/wctype-tests.
172         * modules/wctype-tests: Depend on it.
173         Reported by Simon Josefsson.
174
175 2010-03-28  Bruno Haible  <bruno@clisp.org>
176
177         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
178         * gnulib-tool (func_exists_module): New function, extracted from
179         func_verify_module.
180         (func_verify_module): Use it.
181         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
182         'foo' only if 'foo' exists.
183         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
184         module.
185
186 2010-03-28  Bruno Haible  <bruno@clisp.org>
187
188         gnulib-tool: Add support for special categories of tests.
189         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
190         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
191         (func_usage): Document them.
192         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
193         inc_unportable_tests, inc_all_tests): New variables.
194         (func_acceptable): Consider these variables.
195         (func_modules_transitive_closure): Make it work when the 'Status' field
196         consists of multiple words.
197         (func_import): Store and restore the values of inc_cxx_tests,
198         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
199         inc_all_tests in gnulib-comp.m4.
200         (func_create_testdir): Set inc_all_tests to true.
201         * doc/gnulib.texi (Extra tests modules): New section.
202         Suggested by Jim Meyering.
203
204 2010-03-28  Bruno Haible  <bruno@clisp.org>
205
206         ansi-c++-opt: Allow turning off the C++ build by default.
207         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
208         gl_CXX_CHOICE_DEFAULT_NO is defined.
209         Requested by Eric Blake.
210
211 2010-03-28  Bruno Haible  <bruno@clisp.org>
212
213         unistd: Avoid #define replacements in C++ mode.
214         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
215         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
216         setsockopt, shutdown, select): In C++, attach a warning to the function
217         if possible, rather than #defining the symbol to a dysfunctional alias.
218         Reported by John W. Eaton <jwe@gnu.org>.
219
220 2010-03-28  Bruno Haible  <bruno@clisp.org>
221
222         Fix link errors on mingw.
223         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
224         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
225         $(LIBSOCKET).
226         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
227         $(LIBSOCKET).
228
229 2010-03-28  Bruno Haible  <bruno@clisp.org>
230             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
231
232         lib-ignore: Determine different options for different compilers.
233         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
234         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
235         Add comments.
236         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
237         * NEWS: Mention the change.
238
239 2010-03-27  Bruno Haible  <bruno@clisp.org>
240
241         Remove unused GNULIB_XYZ macro definitions.
242         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
243         * modules/fseek (configure.ac): Likewise.
244         * modules/ioctl (configure.ac): Likewise.
245         * modules/open (configure.ac): Likewise.
246         * modules/stdlib-safer (configure.ac): Likewise.
247
248 2010-03-27  Bruno Haible  <bruno@clisp.org>
249
250         Add a remark about certain modules.
251         * modules/malloc (Comment): New section.
252         * modules/realloc (Comment): Likewise.
253         * modules/sigpipe (Comment): Likewise.
254
255 2010-03-27  Bruno Haible  <bruno@clisp.org>
256
257         Resolve conflict between the two kinds of module indicators.
258         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
259         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
260         * modules/canonicalize (configure.ac): Invoke
261         gl_MODULE_INDICATOR_FOR_TESTS.
262         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
263         GNULIB_XYZ.
264         * tests/test-dirent-c++.cc: Likewise.
265         * tests/test-dirent-safer.c: Likewise.
266         * tests/test-dup2.c: Likewise.
267         * tests/test-fchdir.c: Likewise.
268         * tests/test-fcntl-h-c++.cc: Likewise.
269         * tests/test-getopt.c: Likewise.
270         * tests/test-getopt.h: Likewise.
271         * tests/test-langinfo-c++.cc: Likewise.
272         * tests/test-locale-c++.cc: Likewise.
273         * tests/test-math-c++.cc: Likewise.
274         * tests/test-pty-c++.cc: Likewise.
275         * tests/test-search-c++.cc: Likewise.
276         * tests/test-signal-c++.cc: Likewise.
277         * tests/test-spawn-c++.cc: Likewise.
278         * tests/test-stdio-c++.cc: Likewise.
279         * tests/test-stdlib-c++.cc: Likewise.
280         * tests/test-string-c++.cc: Likewise.
281         * tests/test-sys_ioctl-c++.cc: Likewise.
282         * tests/test-sys_select-c++.cc: Likewise.
283         * tests/test-sys_socket-c++.cc: Likewise.
284         * tests/test-sys_stat-c++.cc: Likewise.
285         * tests/test-sys_time-c++.cc: Likewise.
286         * tests/test-time-c++.cc: Likewise.
287         * tests/test-unistd-c++.cc: Likewise.
288         * tests/test-wchar-c++.cc: Likewise.
289         * tests/uninorm/test-u8-nfc.c: Likewise.
290         * tests/uninorm/test-u8-nfd.c: Likewise.
291         * tests/uninorm/test-u8-nfkc.c: Likewise.
292         * tests/uninorm/test-u8-nfkd.c: Likewise.
293         * tests/uninorm/test-u16-nfc.c: Likewise.
294         * tests/uninorm/test-u16-nfd.c: Likewise.
295         * tests/uninorm/test-u16-nfkc.c: Likewise.
296         * tests/uninorm/test-u16-nfkd.c: Likewise.
297         * tests/uninorm/test-u32-nfc.c: Likewise.
298         * tests/uninorm/test-u32-nfc-big.c: Likewise.
299         * tests/uninorm/test-u32-nfd.c: Likewise.
300         * tests/uninorm/test-u32-nfd-big.c: Likewise.
301         * tests/uninorm/test-u32-nfkc.c: Likewise.
302         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
303         * tests/uninorm/test-u32-nfkd.c: Likewise.
304         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
305         * tests/uninorm/test-u32-normalize-big.c: Likewise.
306
307 2010-03-27  Bruno Haible  <bruno@clisp.org>
308
309         Distinguish two kinds of module indicators.
310         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
311         gl_MODULE_INDICATOR.
312         (gl_MODULE_INDICATOR): New macro.
313         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
314         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
315         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
316         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
318         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
319         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
320         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
321         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
322         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
323         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
324         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
326         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
327         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
329         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
330         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
331         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
332         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
333         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
334         * modules/cloexec (configure.ac): Likewise.
335         * modules/getopt-gnu (configure.ac): Likewise.
336         * modules/uninorm/u8-normalize (configure.ac): Likewise.
337         * modules/uninorm/u16-normalize (configure.ac): Likewise.
338         * modules/uninorm/u32-normalize (configure.ac): Likewise.
339         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
340
341 2010-03-27  Bruno Haible  <bruno@clisp.org>
342
343         New module description field 'Comment'.
344         * gnulib-tool: New option --extract-comment.
345         (func_usage): Document it.
346         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
347         (func_get_comment): New function.
348         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
349
350 2010-03-27  Bruno Haible  <bruno@clisp.org>
351
352         Addendum to 2010-02-07 commit.
353         * gnulib-tool (func_usage): Document --extract-applicability option.
354
355 2010-03-27  Bruno Haible  <bruno@clisp.org>
356
357         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
358         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
359         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
360         rather than link errors.
361
362 2010-03-27  Bruno Haible  <bruno@clisp.org>
363
364         Avoid side effects from tests-related modules on the compilation of lib.
365         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
366         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
367         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
368         parameter. Emit into AM_CPPFLAGS a definition of the designated C
369         macro.
370         (func_import): Define a witness macro. Assign it a value that depends
371         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
372         tests-related modules.
373         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
374         Reported by Jim Meyering.
375
376 2010-03-27  Bruno Haible  <bruno@clisp.org>
377
378         Factorize common .m4 code.
379         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
380         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
381         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
382         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
383         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
384         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
385         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
386         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
387         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
388         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
389         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
390         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
391         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
392         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
393         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
394         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
395         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
396         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
398         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
399         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
400         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
401         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
402         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
403         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
404         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
405         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
406         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
407         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
408         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
409         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
410         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
411
412 2010-03-27  Bruno Haible  <bruno@clisp.org>
413
414         Fix a compilation error on Cygwin with g++ >= 4.3.
415         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
416         if it is undefined or if we alias it to chmod.
417         (lstat): Don't warn about the use of this function if it is undefined
418         or if we alias it to stat.
419         Reported by Simon Josefsson.
420
421 2010-03-27  Bruno Haible  <bruno@clisp.org>
422
423         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
424         * modules/getlogin (configure.ac): Update.
425
426         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
427         * modules/getlogin_r (configure.ac): Update.
428
429         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
430         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
431         * modules/inet_ntop (configure.ac): Update.
432
433         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
434         * modules/inet_pton (configure.ac): Update.
435
436         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
437         * modules/mbslen (configure.ac): Update.
438
439         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
440         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
441         * modules/forkpty (configure.ac): Update.
442         * modules/openpty (configure.ac): Update.
443
444 2010-03-26  Simon Josefsson  <simon@josefsson.org>
445
446         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
447         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
448
449 2010-03-25  Eric Blake  <eblake@redhat.com>
450
451         maint: use pragma consistently across replacement headers
452         * lib/ctype.in.h (system_header): Hoist for consistent placement.
453         * lib/dirent.in.h (system_header): Likewise.
454         * lib/errno.in.h (system_header): Likewise.
455         * lib/float.in.h (system_header): Likewise.
456         * lib/getopt.in.h (system_header): Likewise.
457         * lib/iconv.in.h (system_header): Likewise.
458         * lib/inttypes.in.h (system_header): Likewise.
459         * lib/langinfo.in.h (system_header): Likewise.
460         * lib/locale.in.h (system_header): Likewise.
461         * lib/math.in.h (system_header): Likewise.
462         * lib/netdb.in.h (system_header): Likewise.
463         * lib/netinet_in.in.h (system_header): Likewise.
464         * lib/pty.in.h (system_header): Likewise.
465         * lib/sched.in.h (system_header): Likewise.
466         * lib/se-selinux.in.h (system_header): Likewise.
467         * lib/search.in.h (system_header): Likewise.
468         * lib/spawn.in.h (system_header): Likewise.
469         * lib/stdarg.in.h (system_header): Likewise.
470         * lib/stdint.in.h (system_header): Likewise.
471         * lib/string.in.h (system_header): Likewise.
472         * lib/strings.in.h (system_header): Likewise.
473         * lib/sys_file.in.h (system_header): Likewise.
474         * lib/sys_ioctl.in.h (system_header): Likewise.
475         * lib/sys_socket.in.h (system_header): Likewise.
476         * lib/sys_times.in.h (system_header): Likewise.
477         * lib/sys_utsname.in.h (system_header): Likewise.
478         * lib/sys_wait.in.h (system_header): Likewise.
479         * lib/sysexits.in.h (system_header): Likewise.
480         * lib/unistd.in.h (system_header): Likewise.
481         * lib/wctype.in.h (system_header): Likewise.
482
483         arpa/inet: fix mingw compilation warning
484         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
485         Reported by Matthew Bolte.
486
487 2010-03-25  Bruno Haible  <bruno@clisp.org>
488
489         Avoid collision between gnulib wrapper and libintl wrapper.
490         * lib/printf.c (printf): Don't define if a printf wrapper is already
491         defined in intl/printf.c.
492         Reported by Michel Boaventura <michel@michelboaventura.com>.
493
494 2010-03-25  Bruno Haible  <bruno@clisp.org>
495
496         Use ANSI C.
497         * lib/readutmp.h (getutent): Provide ANSI C prototype.
498
499 2010-03-25  Bruno Haible  <bruno@clisp.org>
500
501         Minor formatting changes.
502         * lib/acosl.c: Insert space before function argument list.
503         * lib/argz.c: Likewise.
504         * lib/asinl.c: Likewise.
505         * lib/expl.c: Likewise.
506         * lib/gen-uni-tables.c: Likewise.
507         * lib/gettext.h: Likewise.
508         * lib/glthread/lock.h: Likewise.
509         * lib/tanl.c: Likewise.
510         * lib/uniname/uniname.c: Likewise.
511         * tests/test-idpriv-drop.c: Likewise.
512         * tests/test-idpriv-droptemp.c: Likewise.
513         * tests/test-lock.c: Likewise.
514         * tests/test-tls.c: Likewise.
515         * lib/argp-help.c: Insert space before function-like macro argument
516         list.
517         * lib/memcmp.c: Likewise.
518         * tests/test-base64.c: Likewise.
519         * lib/localename.c: Insert space before sizeof's argument list.
520         * lib/safe-alloc.h: Likewise.
521         * lib/file-set.h: Insert space before macro argument list.
522         * tests/test-argp.c: Likewise.
523         * lib/argp-namefrob.h: Insert space before function parameter list.
524         * lib/getaddrinfo.c: Likewise.
525         * lib/netdb.in.h: Likewise.
526         * lib/parse-duration.h: Likewise.
527         * lib/parse-duration.c: Likewise.
528         * lib/poll.c: Likewise.
529         * lib/select.c: Likewise.
530         * lib/trim.h: Likewise.
531         * tests/test-usleep.c: Likewise.
532         * lib/ldexpl.c: Insert space before function parameter list and before
533         function argument list.
534         * lib/logl.c: Likewise.
535         * lib/sqrtl.c: Likewise.
536         * lib/trim.c: Likewise.
537         * lib/cosl.c: Use GNU style indentation. Insert space before function
538         argument list.
539         * lib/sinl.c: Likewise.
540         * lib/tsearch.c: Insert space after 'for'.
541         Reported by Jim Meyering.
542
543 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
544
545         * maint.mk (sc_Wundef_boolean): Check for the presence of the
546         config header before grepping, as it's not present before
547         autoreconf/configure are run.  Reported by Simon Josefsson.
548
549 2010-03-23  Bruno Haible  <bruno@clisp.org>
550
551         pt_chown: Make it work with automake < 1.11.
552         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
553         Reported by Simon Josefsson.
554
555 2010-03-23  Bruno Haible  <bruno@clisp.org>
556
557         pt_chown: Don't depend on GPLed modules.
558         * lib/pt_chown.c: Don't include idpriv.h.
559         (main): Don't drop privileges.
560         * modules/pt_chown (Depends-on): Remove idpriv-drop.
561         Reported by Simon Josefsson.
562
563 2010-03-24  Simon Josefsson  <simon@josefsson.org>
564
565         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
566         suggestions from karl@freefriends.org (Karl Berry).
567
568 2010-03-22  Eric Blake  <eblake@redhat.com>
569
570         gethostname: further tweaks
571         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
572         are overriding gethostname.
573         Suggested by Bruno Haible.
574
575 2010-03-21  Bruno Haible  <bruno@clisp.org>
576
577         Fix comments.
578         * lib/forkpty.c (rpl_forkpty): Fix comment.
579         * lib/openpty.c (rpl_openpty): Likewise.
580         Reported by Eric Blake.
581
582 2010-03-22  Eric Blake  <eblake@redhat.com>
583
584         gethostname: fix build on mingw
585         * lib/unistd.in.h (includes): Work around fact that mingw
586         <winsock2.h> re-includes <unistd.h>, by avoiding any
587         redeclarations if we are being included by <winsock2.h>.
588         Reported by Matthias Bolte.
589
590 2010-03-21  Bruno Haible  <bruno@clisp.org>
591
592         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
593         * lib/forkpty.c (forkpty): New replacement function, from glibc with
594         modifications.
595         * lib/pty.in.h (forkpty): Update declaration. Add comments.
596         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
597         provide the replacement.
598         * modules/forkpty (Depends-on): Add openpty, login_tty.
599         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
600         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
601         * doc/glibc-functions/forkpty.texi: More supported platforms.
602         * config/srclist.txt: Add forkpty.c (commented).
603
604 2010-03-21  Bruno Haible  <bruno@clisp.org>
605
606         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
607         (Makefile.am): Verify that PTY_LIB is defined.
608
609         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
610
611 2010-03-21  Bruno Haible  <bruno@clisp.org>
612
613         Tests for module 'login_tty'.
614         * modules/login_tty-tests: New file.
615         * tests/test-login_tty.c: New file.
616
617         New module 'login_tty'.
618         * lib/login_tty.c: New file.
619         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
620         * modules/login_tty: New file.
621         * doc/glibc-functions/login_tty.texi: Mention the new module.
622
623 2010-03-21  Bruno Haible  <bruno@clisp.org>
624
625         login_tty: Documentation.
626         * doc/glibc-functions/login_tty.texi: New file.
627         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
628
629 2010-03-21  Bruno Haible  <bruno@clisp.org>
630
631         pty: Consistent macro naming.
632         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
633         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
634         * modules/pty (configure.ac): Update.
635
636 2010-03-21  Bruno Haible  <bruno@clisp.org>
637
638         Tests for openpty: Make stricter.
639         * tests/test-openpty.c (main): Add test of canonical processing and
640         erase.
641         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
642
643         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
644         * lib/openpty.c (openpty): New replacement function.
645         * lib/pty.in.h: Include <termios.h>.
646         (openpty): Update declaration. Add comments.
647         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
648         is not declared, arrange to provide the replacement. Check for _getpty
649         and posix_openpt.
650         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
651         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
652         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
653         * modules/pty-tests (test_pty_c___LDADD): New variable.
654         * doc/glibc-functions/openpty.texi: More supported platforms.
655
656 2010-03-21  Bruno Haible  <bruno@clisp.org>
657
658         setenv: Tweaks.
659         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
660         the test program.
661         * doc/posix-functions/setenv.texi: Update platforms list.
662
663 2010-03-21  Bruno Haible  <bruno@clisp.org>
664
665         New module 'unlockpt'.
666         * lib/unlockpt.c: New file, from glibc with modifications.
667         * m4/unlockpt.m4: New file.
668         * modules/unlockpt: New file.
669         * lib/stdlib.in.h (unlockpt): New declaration.
670         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
671         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
672         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
673         HAVE_UNLOCKPT.
674         * doc/posix-functions/unlockpt.texi: Mention the new module.
675         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
676         * config/srclist.txt: Add unlockpt.c (commented).
677
678 2010-03-21  Jim Meyering  <meyering@redhat.com>
679
680         maint.mk: prohibit inclusion of "intprops.h" without use
681         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
682
683 2010-03-21  Bruno Haible  <bruno@clisp.org>
684
685         New module 'grantpt'.
686         * lib/grantpt.c: New file, from glibc with modifications.
687         * m4/grantpt.m4: New file.
688         * modules/grantpt: New file.
689         * lib/stdlib.in.h (grantpt): New declaration.
690         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
691         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
692         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
693         HAVE_GRANTPT.
694         * doc/posix-functions/grantpt.texi: Mention the new module.
695         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
696         * config/srclist.txt: Add grantpt.c (commented).
697
698 2010-03-21  Bruno Haible  <bruno@clisp.org>
699
700         New module 'pt_chown'.
701         * lib/pt_chown.c: New file, from glibc with modifications.
702         * lib/pty-private.h: New file, from glibc with modifications.
703         * modules/pt_chown: New file.
704         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
705
706 2010-03-21  Bruno Haible  <bruno@clisp.org>
707
708         Tests for module 'ptsname'.
709         * modules/ptsname-tests: New file.
710         * tests/test-ptsname.c: New file.
711
712         New module 'ptsname'.
713         * lib/ptsname.c: New file, from glibc with modifications.
714         * m4/ptsname.m4: New file.
715         * modules/ptsname: New file.
716         * lib/stdlib.in.h (ptsname): New declaration.
717         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
718         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
719         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
720         HAVE_PTSNAME.
721         * doc/posix-functions/ptsname.texi: Mention the new module.
722         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
723         * config/srclist.txt: Add ptsname.c (commented).
724
725 2010-03-21  Bruno Haible  <bruno@clisp.org>
726
727         Tests for module 'ttyname_r'.
728         * modules/ttyname_r-tests: New file.
729         * tests/test-ttyname_r.c: New file.
730
731         New module 'ttyname_r'.
732         * lib/ttyname_r.c: New file.
733         * m4/ttyname_r.m4: New file.
734         * modules/ttyname_r: New file.
735         * lib/unistd.in.h (ttyname_r): New declaration.
736         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
737         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
738         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
739         HAVE_TTYNAME_R.
740         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
741         * doc/posix-functions/ttyname_r.texi: Mention the new module.
742
743 2010-03-20  Bruno Haible  <bruno@clisp.org>
744
745         signal: Undefine macro definitions in C++ mode.
746         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
747         sigfillset): Undefine macro definitions from the system header in C++
748         mode.
749         Reported by John W. Eaton <jwe@gnu.org>.
750
751 2010-03-20  Bruno Haible  <bruno@clisp.org>
752
753         Ensure no #include statements inside extern "C" { ... }.
754         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
755         contain #include statements.
756         * lib/time.in.h: Likewise.
757
758 2010-03-20  Bruno Haible  <bruno@clisp.org>
759
760         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
761         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
762         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
763         Reported by John W. Eaton <jwe@gnu.org>.
764
765 2010-03-20  Bruno Haible  <bruno@clisp.org>
766
767         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
768         Reported by Jim Meyering.
769
770 2010-03-20  Bruno Haible  <bruno@clisp.org>
771
772         pipe: Set errno upon failure.
773         * lib/pipe.h: Specify that when -1 is returned, errno is set.
774         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
775         errno value in error message.
776
777 2010-03-20  Bruno Haible  <bruno@clisp.org>
778             Jim Meyering  <meyering@redhat.com>
779
780         lchown: Avoid "unused variable" warning.
781         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
782
783 2010-03-20  Bruno Haible  <bruno@clisp.org>
784
785         Work around unlink() bug on MacOS X 10.5.6.
786         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
787         attempting to unlink a parent directory.
788         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
789         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
790         activate for the replacement function.
791         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
792
793 2010-03-20  Bruno Haible  <bruno@clisp.org>
794
795         Fix link errors on Solaris 8.
796         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
797         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
798
799 2010-03-19  Jim Meyering  <meyering@redhat.com>
800
801         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
802         The _LIBC implementation of build_range_exp correctly honors the
803         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
804         However, the non-_LIBC implementation would ignore that syntax-bit
805         flag and return REG_ERANGE unconditionally.
806         This change makes it honor that flag.
807         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
808         Make two pointer parameters "const".
809         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
810         (parse_bracket_exp): Update caller.
811
812         regex.m4: correct the reversed range endpoint ([b-a]) test
813         * m4/regex.m4: When requiring that [b-a] evoke failure,
814         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
815         test pass once again for x86-based systems.
816
817 2010-03-19  Bruno Haible  <bruno@clisp.org>
818
819         scandir: Fix link error on Solaris 8.
820         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
821         macros.
822
823 2010-03-19  Bruno Haible  <bruno@clisp.org>
824
825         getusershell: Fix documentation.
826         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
827         module.
828         * doc/glibc-functions/setusershell.texi: Likewise.
829
830         getusershell: Provide declaration, missing on Solaris 9.
831         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
832         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
833         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
834         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
836         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
837         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
838         HAVE_GETUSERSHELL.
839         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
840
841 2010-03-19  Bruno Haible  <bruno@clisp.org>
842
843         wctype: Provide iswblank function.
844         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
845         exists and is fine.
846         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
847         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
848         * tests/test-wctype.c (main): Re-enable the iswblank tests.
849         * doc/posix-functions/iswblank.texi: Update.
850
851 2010-03-19  Bruno Haible  <bruno@clisp.org>
852
853         Tests of module 'pty' in C++ mode.
854         * modules/pty-tests: New file.
855         * tests/test-pty-c++.cc: New file.
856         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
857
858 2010-03-19  Eric Blake  <eblake@redhat.com>
859
860         logb: fix documentation
861         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
862         1.5 declaration bug.
863
864         forkpty, openpty: prefer glibc's const-safe prototype
865         * lib/forkpty.c (rpl_forkpty): New file.
866         * lib/openpty.c (rpl_openpty): Likewise.
867         * modules/forkpty (Files): Distribute it.
868         * modules/openpty (Files): Likewise.
869         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
870         check...
871         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
872         replacement for for non-const BSD signature.
873         * modules/pty (Makefile.am): Substitute witnesses.
874         * lib/pty.in.h (forkpty, openpty): Declare replacements.
875         * tests/test-forkpty.c: Update signature check.
876         * tests/test-openpty.c: Likewise.
877         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
878         * doc/glibc-functions/openpty.texi (openpty): Likewise.
879
880         forkpty, openpty: split functions into new modules
881         * modules/pty (Makefile.am): Substitute new witnesses.
882         (Libraries): Move library detection...
883         * modules/forkpty: ...into new module.
884         * modules/openpty: Another new module.
885         * modules/pty-tests: Rename and split...
886         * modules/forkpty-tests: ...to this...
887         * modules/openpty-tests: ...and this.
888         * tests/test-pty.c: Rename and split...
889         * tests/test-forkpty.c: ...to this...
890         * tests/test-openpty.c: ...and this.
891         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
892         (gl_PTY): Split library searching...
893         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
894         (gl_FORKPTY, gl_OPENPTY): New macros.
895         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
896         * NEWS: Mention the split.
897         * MODULES.html.sh (Misc): Document the modules.
898         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
899         * doc/glibc-functions/openpty.texi (openpty): Likewise.
900
901         pty: improve replacement header
902         * lib/pty.in.h: New file.
903         * modules/pty (Files): Ship it.
904         (Makefile.am): Always build replacement.
905         * m4/pty.m4: Rename...
906         * m4/pty_h.m4: ...to this.
907         (gl_PTY): Modernize setting of witness macros; update check of
908         forkpty to take proper advantage of cache.
909         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
910
911         getopt: avoid compiler warning
912         * lib/getopt.c (attribute_hidden): Remove unused macro.
913
914 2010-03-18  Bruno Haible  <bruno@clisp.org>
915
916         Fix link errors on Solaris 8.
917         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
918         * modules/search-tests (test_search_c___LDADD): Likewise.
919         * modules/signal-tests (test_signal_c___LDADD): Likewise.
920         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
921         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
922         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
923         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
924         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
925         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
926
927 2010-03-18  Bruno Haible  <bruno@clisp.org>
928
929         Fix bug introduced on 2010-03-14.
930         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
931         (gl_SPAWN_H): Require it.
932         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
933         Reported by Simon Josefsson.
934
935 2010-03-18  Bruno Haible  <bruno@clisp.org>
936
937         Fix typo introduced on 2009-12-31.
938         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
939         posix_spawn_file_actions_adddup2.
940
941 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
942         and Eric Blake  <eblake@redhat.com>
943
944         test-vc-list-files-git: make more robust
945         * tests/test-vc-list-files-git.sh: Unset problematic environment
946         variables.  Chain commands together.
947
948 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
949
950         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
951         `AC_CHECK_DECL' invocation.
952
953 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
954
955         * lib/inttostr.c (inttostr): Make sure the invocation of verify
956         appears before executable statements. Suggested by Petr Sumbera
957         <Petr.Sumbera@Sun.COM>.
958
959 2010-03-14  Bruno Haible  <bruno@clisp.org>
960
961         * tests/test-flock.c (test_exclusive): Comment out a test that causes
962         portability problems. Instead use a simpler test.
963         (main): Check that invalid arguments are rejected only on Linux.
964
965 2010-03-14  Bruno Haible  <bruno@clisp.org>
966
967         Fix bug introduced on 2009-12-31.
968         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
969         gl_PREREQ_SYS_H_WINSOCK2 always.
970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
971         SYS_SOCKET_H variable.
972         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
973         Update comments.
974         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
975         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
976         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
977         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
978         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
979
980 2010-03-14  Bruno Haible  <bruno@clisp.org>
981
982         Fix values returned by sinl, cosl.
983         * lib/trigl.h: Add specification comments.
984         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
985         that combines the values from the precomputed table with the values of
986         the Chebyshev polynomials.
987
988 2010-03-14  Bruno Haible  <bruno@clisp.org>
989
990         Fix compilation error when modules 'posix_spawn[p]' are not used.
991         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
993
994 2010-03-14  Bruno Haible  <bruno@clisp.org>
995
996         Fix compilation error on mingw when module 'time_r' is not used.
997         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
998         is 1.
999         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1000         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1001         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1002         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1003
1004 2010-03-14  Bruno Haible  <bruno@clisp.org>
1005
1006         Fix compilation error with Sun C.
1007         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1008         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1009         instead of GCC specific ULONG_LONG_MAX.
1010         * lib/xstrtoll.c: Likewise.
1011         * lib/xstrtoull.c: Likewise.
1012
1013 2010-03-13  Bruno Haible  <bruno@clisp.org>
1014
1015         Allow the user to disable C++ code and tests.
1016         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1017         (gl_PROG_ANSI_CXX): Require it.
1018
1019 2010-03-13  Bruno Haible  <bruno@clisp.org>
1020
1021         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1022         cases.
1023
1024 2010-03-13  Bruno Haible  <bruno@clisp.org>
1025
1026         Test that gnulib does not break the standard C++ headers.
1027         * tests/test-locale-c++2.cc: New file.
1028         * modules/locale-tests (Files): Add it.
1029         (Makefile.am): Compile it for test-locale-c++.
1030         * tests/test-math-c++2.cc: New file.
1031         * modules/math-tests (Files): Add it.
1032         (Makefile.am): Compile it for test-math-c++.
1033         * tests/test-signal-c++2.cc: New file.
1034         * modules/signal-tests (Files): Add it.
1035         (Makefile.am): Compile it for test-signal-c++.
1036         * tests/test-stdio-c++2.cc: New file.
1037         * modules/stdio-tests (Files): Add it.
1038         (Makefile.am): Compile it for test-stdio-c++.
1039         * tests/test-stdlib-c++2.cc: New file.
1040         * modules/stdlib-tests (Files): Add it.
1041         (Makefile.am): Compile it for test-stdlib-c++.
1042         * tests/test-string-c++2.cc: New file.
1043         * modules/string-tests (Files): Add it.
1044         (Makefile.am): Compile it for test-string-c++.
1045         * tests/test-time-c++2.cc: New file.
1046         * modules/time-tests (Files): Add it.
1047         (Makefile.am): Compile it for test-time-c++.
1048         Reported by John W. Eaton <jwe@gnu.org>.
1049
1050 2010-03-13  Bruno Haible  <bruno@clisp.org>
1051
1052         * gnulib-tool (func_usage): Clarify which options are available for
1053         --create-testdir and --create-megatestdir.
1054
1055 2010-03-13  Bruno Haible  <bruno@clisp.org>
1056
1057         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1058         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1059         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1060         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1061         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1062         when appropriate.
1063         Reported by Jim Meyering.
1064
1065 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1066
1067         * gnulib-tool (func_import): Explain origin of code.
1068
1069 2010-03-12  Bruno Haible  <bruno@clisp.org>
1070
1071         Fix problem with automake's definition of CXXLINK.
1072         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1073         Reported by Simon Josefsson and Ludovic Courtès.
1074
1075 2010-03-12  Bruno Haible  <bruno@clisp.org>
1076
1077         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1078         stable releases.
1079
1080 2010-03-11  Bruno Haible  <bruno@clisp.org>
1081
1082         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1083         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1084         whether the system provides one variant or multiple variants of the
1085         function.
1086         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1087         C++ compilers.
1088         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1089         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1090         Reported by Jim Meyering.
1091
1092 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1093
1094         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1095
1096 2010-03-08  Bruno Haible  <bruno@clisp.org>
1097
1098         gnulib-tool: Add support for --libtool in --create-testdir.
1099         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1100         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1101
1102 2010-03-08  Eric Blake  <eblake@redhat.com>
1103
1104         gnulib-tool.texi: mention possibility of git submodule
1105         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1106         submodules.
1107         * doc/.gitignore: Ignore another generated file.
1108
1109 2010-03-08  Karl Berry  <karl@gnu.org>
1110
1111         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1112         of committing gnulib files while skipping others.
1113
1114 2010-03-07  Bruno Haible  <bruno@clisp.org>
1115
1116         Tests of module 'wctype' in C++ mode.
1117         * tests/test-wctype-c++.cc: New file.
1118         * modules/wctype-tests (Files): Add it and tests/signature.h.
1119         (Depends-on): Add ansi-c++-opt.
1120         (Makefile.am): Arrange to compile and run test-wctype-c++.
1121
1122         Tests of module 'wchar' in C++ mode.
1123         * tests/test-wchar-c++.cc: New file.
1124         * modules/wchar-tests (Files): Add it and tests/signature.h.
1125         (Depends-on): Add ansi-c++-opt.
1126         (Makefile.am): Arrange to compile and run test-wchar-c++.
1127         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1128         gl_MODULE_INDICATOR.
1129
1130         Tests of module 'unistd' in C++ mode.
1131         * tests/test-unistd-c++.cc: New file.
1132         * modules/unistd-tests (Files): Add it and tests/signature.h.
1133         (Depends-on): Add ansi-c++-opt.
1134         (Makefile.am): Arrange to compile and run test-unistd-c++.
1135         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1136         gl_MODULE_INDICATOR.
1137
1138         Tests of module 'time' in C++ mode.
1139         * tests/test-time-c++.cc: New file.
1140         * modules/time-tests (Files): Add it and tests/signature.h.
1141         (Depends-on): Add ansi-c++-opt.
1142         (Makefile.am): Arrange to compile and run test-time-c++.
1143         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1144
1145         Tests of module 'sys_time' in C++ mode.
1146         * tests/test-sys_time-c++.cc: New file.
1147         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1148         (Depends-on): Add ansi-c++-opt.
1149         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1150         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1151         gl_MODULE_INDICATOR.
1152
1153         Tests of module 'sys_stat' in C++ mode.
1154         * tests/test-sys_stat-c++.cc: New file.
1155         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1156         (Depends-on): Add ansi-c++-opt.
1157         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1158         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1159         gl_MODULE_INDICATOR.
1160
1161         Tests of module 'sys_socket' in C++ mode.
1162         * tests/test-sys_socket-c++.cc: New file.
1163         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1164         (Depends-on): Add ansi-c++-opt.
1165         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1167         gl_MODULE_INDICATOR.
1168
1169         Tests of module 'sys_select' in C++ mode.
1170         * tests/test-sys_select-c++.cc: New file.
1171         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1172         (Depends-on): Add ansi-c++-opt.
1173         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1174         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1175         gl_MODULE_INDICATOR.
1176
1177         Tests of module 'sys_ioctl' in C++ mode.
1178         * tests/test-sys_ioctl-c++.cc: New file.
1179         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1180         (Depends-on): Add ansi-c++-opt.
1181         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1183         gl_MODULE_INDICATOR.
1184
1185         Tests of module 'string' in C++ mode.
1186         * tests/test-string-c++.cc: New file.
1187         * modules/string-tests (Files): Add it and tests/signature.h.
1188         (Depends-on): Add ansi-c++-opt.
1189         (Makefile.am): Arrange to compile and run test-string-c++.
1190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1191         gl_MODULE_INDICATOR.
1192
1193         Tests of module 'stdlib' in C++ mode.
1194         * tests/test-stdlib-c++.cc: New file.
1195         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1196         (Depends-on): Add ansi-c++-opt.
1197         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1198         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1199         gl_MODULE_INDICATOR.
1200
1201         Tests of module 'stdio' in C++ mode.
1202         * tests/test-stdio-c++.cc: New file.
1203         * modules/stdio-tests (Files): Add it and tests/signature.h.
1204         (Depends-on): Add ansi-c++-opt.
1205         (Makefile.am): Arrange to compile and run test-stdio-c++.
1206         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1207         gl_MODULE_INDICATOR.
1208
1209         Tests of module 'spawn' in C++ mode.
1210         * tests/test-spawn-c++.cc: New file.
1211         * modules/spawn-tests (Files): Add it and tests/signature.h.
1212         (Depends-on): Add ansi-c++-opt.
1213         (Makefile.am): Arrange to compile and run test-spawn-c++.
1214         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1215         gl_MODULE_INDICATOR.
1216
1217         Tests of module 'signal' in C++ mode.
1218         * tests/test-signal-c++.cc: New file.
1219         * modules/signal-tests (Files): Add it and tests/signature.h.
1220         (Depends-on): Add ansi-c++-opt.
1221         (Makefile.am): Arrange to compile and run test-signal-c++.
1222         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1223         gl_MODULE_INDICATOR.
1224
1225         Tests of module 'search' in C++ mode.
1226         * tests/test-search-c++.cc: New file.
1227         * modules/search-tests (Files): Add it and tests/signature.h.
1228         (Depends-on): Add ansi-c++-opt.
1229         (Makefile.am): Arrange to compile and run test-search-c++.
1230         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1231         gl_MODULE_INDICATOR.
1232
1233         Tests of module 'math' in C++ mode.
1234         * tests/test-math-c++.cc: New file.
1235         * modules/math-tests (Files): Add it and tests/signature.h.
1236         (Depends-on): Add ansi-c++-opt.
1237         (Makefile.am): Arrange to compile and run test-math-c++.
1238         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1239
1240         Tests of module 'locale' in C++ mode.
1241         * tests/test-locale-c++.cc: New file.
1242         * modules/locale-tests (Files): Add it and tests/signature.h.
1243         (Depends-on): Add ansi-c++-opt.
1244         (Makefile.am): Arrange to compile and run test-locale-c++.
1245         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1246         gl_MODULE_INDICATOR.
1247
1248         Tests of module 'langinfo' in C++ mode.
1249         * tests/test-langinfo-c++.cc: New file.
1250         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1251         (Depends-on): Add ansi-c++-opt.
1252         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1253         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1254         gl_MODULE_INDICATOR.
1255
1256         Tests of module 'iconv-h' in C++ mode.
1257         * tests/test-iconv-h-c++.cc: New file.
1258         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1259         (Depends-on): Add ansi-c++-opt.
1260         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1261
1262         Tests of module 'glob' in C++ mode.
1263         * tests/test-glob-c++.cc: New file.
1264         * modules/glob-tests (Files): Add it.
1265         (Depends-on): Add ansi-c++-opt.
1266         (Makefile.am): Arrange to compile and run test-glob-c++.
1267
1268         Tests of module 'fcntl-h' in C++ mode.
1269         * tests/test-fcntl-h-c++.cc: New file.
1270         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1271         (Depends-on): Add ansi-c++-opt.
1272         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1273         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1274         gl_MODULE_INDICATOR.
1275
1276         Tests of module 'dirent' in C++ mode.
1277         * tests/test-dirent-c++.cc: New file.
1278         * modules/dirent-tests (Files): Add it and tests/signature.h.
1279         (Depends-on): Add ansi-c++-opt.
1280         (Makefile.am): Arrange to compile and run test-dirent-c++.
1281         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1282         gl_MODULE_INDICATOR.
1283
1284         New module 'ansi-c++-opt'.
1285         * modules/ansi-c++-opt: New file.
1286         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1287
1288         Document C++ namespace mode.
1289         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1290
1291         wctype: Avoid #define replacements in C++ mode.
1292         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1293         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1294         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1295         In C++, define a namespaced alias symbol.
1296         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1297         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1298         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1299         rule.
1300
1301         wchar: Avoid #define replacements in C++ mode.
1302         * lib/wchar.in.h: Include c++defs.h.
1303         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1304         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1305         symbol.
1306         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1307         * modules/wchar (Depends-on): Add c++defs.
1308         (Makefile.am): Update wchar.h rule.
1309
1310         unistd: Avoid #define replacements in C++ mode.
1311         * lib/unistd.in.h: Include c++defs.h.
1312         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1313         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1314         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1315         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1316         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1317         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1318         symbol.
1319         (environ): Update.
1320         * modules/unistd (Depends-on): Add c++defs.
1321         (Makefile.am): Update unistd.h rule.
1322
1323         time: Avoid #define replacements in C++ mode.
1324         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1325         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1326         define a namespaced alias symbol.
1327         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1328         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1329         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1330         * modules/time (Depends-on): Add c++defs, warn-on-use.
1331         (Makefile.am): Update time.h rule.
1332         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1333         * modules/nanosleep (configure.ac): Likewise.
1334         * modules/strptime (configure.ac): Likewise.
1335         * modules/timegm (configure.ac): Likewise.
1336
1337         sys_time: Avoid #define replacements in C++ mode.
1338         * lib/sys_time.in.h: Include c++defs.h.
1339         (gettimeofday): In C++, define a namespaced alias symbol.
1340         * modules/sys_time (Depends-on): Add c++defs.
1341         (Makefile.am): Update sys/time.h rule.
1342
1343         sys_stat: Avoid #define replacements in C++ mode.
1344         * lib/sys_stat.in.h: Include c++defs.h.
1345         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1346         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1347         namespaced alias symbol.
1348         In C++, define a namespaced alias symbol.
1349         * modules/sys_stat (Depends-on): Add c++defs.
1350         (Makefile.am): Update sys/stat.h rule.
1351
1352         sys_socket: Avoid #define replacements in C++ mode.
1353         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1354         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1355         definitions also when the system has a <sys/socket.h>.
1356         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1357         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1358         In C++, define a namespaced alias symbol.
1359         * modules/sys_socket (Depends-on): Add c++defs.
1360         (Makefile.am): Update sys/socket.h rule.
1361
1362         sys_select: Avoid #define replacements in C++ mode.
1363         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1364         definitions also when the system has a <sys/select.h>.
1365         (select): In C++, define a namespaced alias symbol.
1366         * modules/sys_select (Depends-on): Add c++defs.
1367         (Makefile.am): Update sys/select.h rule.
1368
1369         sys_ioctl: Avoid #define replacements in C++ mode.
1370         * lib/sys_ioctl.in.h: Include c++defs.h.
1371         (ioctl): In C++, define a namespaced alias symbol.
1372         * modules/sys_ioctl (Depends-on): Add c++defs.
1373         (Makefile.am): Update sys/ioctl.h rule.
1374
1375         string: Avoid #define replacements in C++ mode.
1376         * lib/string.in.h: Include c++defs.h.
1377         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1378         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1379         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1380         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1381         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1382         * modules/string (Depends-on): Add c++defs.
1383         (Makefile.am): Update string.h rule.
1384
1385         stdlib: Avoid #define replacements in C++ mode.
1386         * lib/stdlib.in.h: Include c++defs.h.
1387         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1388         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1389         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1390         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1391         symbol.
1392         * modules/stdlib (Depends-on): Add c++defs.
1393         (Makefile.am): Update stdlib.h rule.
1394
1395         stdio: Avoid #define replacements in C++ mode.
1396         * lib/stdio.in.h: Include c++defs.h.
1397         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1398         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1399         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1400         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1401         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1402         namespaced alias symbol.
1403         * modules/stdio (Depends-on): Add c++defs.
1404         (Makefile.am): Update stdio.h rule.
1405
1406         spawn: Avoid #define replacements in C++ mode.
1407         * lib/spawn.in.h: Include c++defs.h.
1408         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1409         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1410         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1411         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1412         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1413         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1414         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1415         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1416         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1417         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1418         In C++, define a namespaced alias symbol.
1419         * modules/spawn (Depends-on): Add c++defs.
1420         (Makefile.am): Update spawn.h rule.
1421
1422         signal: Avoid #define replacements in C++ mode.
1423         * lib/signal.in.h: Include c++defs.h.
1424         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1425         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1426         namespaced alias symbol.
1427         * modules/signal (Depends-on): Add c++defs.
1428         (Makefile.am): Update signal.h rule.
1429
1430         search: Avoid #define replacements in C++ mode.
1431         * lib/search.in.h: Include c++defs.h.
1432         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1433         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1434         symbol.
1435         * modules/search (Depends-on): Add c++defs.
1436         (Makefile.am): Update search.h rule.
1437
1438         math: Avoid #define replacements in C++ mode.
1439         * lib/math.in.h: Include c++defs.h.
1440         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1441         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1442         trunc, truncl): In C++, define a namespaced alias symbol.
1443         * modules/math (Depends-on): Add c++defs.
1444         (Makefile.am): Update math.h rule.
1445
1446         locale: Avoid #define replacements in C++ mode.
1447         * lib/locale.in.h: Include c++defs.h.
1448         (duplocale): In C++, define a namespaced alias symbol.
1449         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1450         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1451         * modules/locale (Depends-on): Add c++defs.
1452         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1453
1454         langinfo: Avoid #define replacements in C++ mode.
1455         * lib/langinfo.in.h: Include c++defs.h.
1456         (nl_langinfo): In C++, define a namespaced alias symbol.
1457         * modules/langinfo (Depends-on): Add c++defs.
1458         (Makefile.am): Update langinfo.h rule.
1459
1460         iconv-h: Avoid #define replacements in C++ mode.
1461         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1462         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1463         symbol.
1464         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1465         whenever iconv is present.
1466         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1467         (Makefile.am): Update iconv.h rule.
1468
1469         glob: Avoid #define replacements in C++ mode.
1470         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1471         (_gl_glob_errfunc_fn): New type.
1472         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1473         symbol.
1474         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1475         (Makefile.am): Update glob.h rule.
1476
1477         fcntl-h: Avoid #define replacements in C++ mode.
1478         * lib/fcntl.in.h: Include c++defs.h.
1479         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1480         * modules/fcntl-h (Depends-on): Add c++defs.
1481         (Makefile.am): Update fcntl.h rule.
1482
1483         dirent: Avoid #define replacements in C++ mode.
1484         * lib/dirent.in.h: Include c++defs.h.
1485         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1486         namespaced alias symbol.
1487         (dirfd): Update declaration.
1488         * modules/dirent (Depends-on): Add c++defs.
1489         (Makefile.am): Update dirent.h rule.
1490
1491         ctype: Make it usable in C++ code.
1492         * lib/ctype.in.h: Include c++defs.h.
1493         (isblank): Declare as extern "C".
1494         * modules/ctype (Depends-on): Add c++defs.
1495         (Makefile.am): Update ctype.h rule.
1496
1497         New module 'c++defs'.
1498         * modules/c++defs: New file.
1499         * build-aux/c++defs.h: New file.
1500         Reported by John W. Eaton <jwe@gnu.org>.
1501
1502 2010-03-07  Bruno Haible  <bruno@clisp.org>
1503
1504         logb: Provide missing declaration for Cygwin.
1505         * lib/math.in.h (logb): New declaration.
1506         * m4/logb.m4: New file.
1507         * modules/logb (Files): Add m4/logb.m4.
1508         (Depends-on): Add math.
1509         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1510         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1512         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1513         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1514
1515 2010-03-07  Bruno Haible  <bruno@clisp.org>
1516
1517         Fix test-cond link error.
1518         * tests/test-cond.c: Include <stdio.h>.
1519
1520 2010-03-07  Bruno Haible  <bruno@clisp.org>
1521
1522         Fix test-dirent-safer link error.
1523         * modules/dirent-safer-tests (Makefile.am): Define
1524         test_dirent_safer_LDADD.
1525
1526 2010-03-07  Bruno Haible  <bruno@clisp.org>
1527
1528         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1529         among default module list.
1530
1531 2010-03-07  Bruno Haible  <bruno@clisp.org>
1532
1533         Fix link error on platforms with GNU libiconv.
1534         * modules/unistr/u8-strcoll-tests (Makefile): Define
1535         test_u8_strcoll_LDADD.
1536         * modules/unistr/u16-strcoll-tests (Makefile): Define
1537         test_u16_strcoll_LDADD.
1538         * modules/unistr/u32-strcoll-tests (Makefile): Define
1539         test_u32_strcoll_LDADD.
1540
1541 2010-03-07  Bruno Haible  <bruno@clisp.org>
1542
1543         Use POSIX declarations for socket functions.
1544         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1545         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1546         rpl_sendto): Change declaration to match POSIX.
1547         * lib/connect.c (rpl_connect): Likewise.
1548         * lib/accept.c (rpl_accept): Likewise.
1549         * lib/bind.c (rpl_bind): Likewise.
1550         * lib/getpeername.c (rpl_getpeername): Likewise.
1551         * lib/getsockname.c (rpl_getsockname): Likewise.
1552         * lib/recv.c (rpl_recv): Likewise.
1553         * lib/send.c (rpl_send): Likewise.
1554         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1555         * lib/sendto.c (rpl_sendto): Likewise.
1556
1557 2010-03-06  Bruno Haible  <bruno@clisp.org>
1558
1559         Clarify access, euidaccess, faccessat.
1560         * doc/posix-functions/faccessat.texi: Mention security problem under
1561         "Other problems", not "Portability problems".
1562         * doc/posix-functions/access.texi: Likewise. Mention a related security
1563         problem.
1564         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1565         * lib/euidaccess.c: Add comments about platforms.
1566         * lib/unistd.in.h (access, euidaccess): Add warnings.
1567
1568 2010-03-07  Bruno Haible  <bruno@clisp.org>
1569
1570         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1571         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1572         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1573         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1574         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1575         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1576         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1577         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1578         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1579         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1580         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1581         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1582         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1583         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1584         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1585         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1586         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1587         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1588         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1589         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1590         Likewise.
1591         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1592         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1593         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1594         Likewise.
1595         * tests/test-spawn.c (main): Make it work when
1596         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1597
1598 2010-03-07  Bruno Haible  <bruno@clisp.org>
1599
1600         Fix incorrect Makefile.am generation in German locale.
1601         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1602         Execute sed command with character range in C locale.
1603
1604 2010-03-06  Bruno Haible  <bruno@clisp.org>
1605
1606         Tests for module 'iconv-h'.
1607         * modules/iconv-h-tests: New file.
1608         * tests/test-iconv-h.c: New file.
1609
1610         New module 'iconv-h'.
1611         * modules/iconv-h: New file.
1612         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1613         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1614         (configure.ac): Remove gl_ICONV_H.
1615         (Makefile.am): Remove rule for iconv.h.
1616
1617 2010-03-06  Bruno Haible  <bruno@clisp.org>
1618
1619         More consistent naming of *.m4 files.
1620         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1621         * modules/wctype (Files): Update.
1622
1623         More consistent naming of *.m4 files.
1624         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1625         * modules/wchar (Files): Update.
1626
1627 2010-03-06  Jim Meyering  <meyering@redhat.com>
1628
1629         euidaccess: relax license to LGPLv2+
1630         * modules/euidaccess (License): Relax to LGPLv2+.
1631
1632 2010-03-06  Bruno Haible  <bruno@clisp.org>
1633
1634         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1635         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1636         (Makefile.am): Augment lib_SOURCES instead.
1637
1638 2010-03-04  Jim Meyering  <meyering@redhat.com>
1639
1640         utime: remove obsolete module
1641         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1642         unnecessary for years, and has been marked as obsolete for 10 months.
1643         * modules/utime: Remove file.
1644         * lib/utime.c: Remove file.
1645         * m4/utime.m4: Remove file.
1646         * m4/utimes-null.m4: Remove file.
1647         * doc/posix-functions/utime.texi (utime): Remove reference to
1648         the module.  Move the sole "fixed by gnulib" item into the
1649         "problems not fixed by Gnulib" list.
1650         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1651
1652 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1653
1654         * modules/exit (License): Relax license to LGPLv2+.
1655         (Status): Mark as obsolete.
1656         * NEWS: Mention deprecated 'exit' module.
1657         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1658         of now obsolete 'exit'.
1659
1660 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1661
1662         fts-lgpl: remove unused module
1663         * modules/fts-lgpl: Remove.
1664         * MODULES.html.sh (func_all_modules): Adjust.
1665         * check-module (find_included_lib_files): Adjust.
1666         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1667
1668 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1669
1670         copy-acl: enhance Solaris ACL error handling
1671         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1672         * lib/set-mode-acl.c (qset_acl): Likewise.
1673
1674 2010-03-02  Bruno Haible  <bruno@clisp.org>
1675
1676         spawn: Don't override the system defined values on FreeBSD 8.
1677         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1678         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1679         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1680         if HAVE_POSIX_SPAWN is 1.
1681         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
1682
1683 2010-03-01  Bruno Haible  <bruno@clisp.org>
1684
1685         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
1686         regarding Automake.
1687
1688 2010-02-25  Bruno Haible  <bruno@clisp.org>
1689
1690         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
1691         * gnulib-tool: Define 'echo' as a function only before the ksh alias
1692         setting, not afterwards.
1693         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1694
1695 2010-02-24  Eric Blake  <eblake@redhat.com>
1696
1697         bootstrap, git-version-gen: use timestamp
1698         * build-aux/git-version-gen (scriptversion): Force UTC.
1699         * build-aux/bootstrap (scriptversion): New variable.
1700
1701         bootstrap: allow older git
1702         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
1703         older than 1.6.4.  Requested by the libvirt project.
1704
1705 2010-02-23  Eric Blake  <eblake@redhat.com>
1706
1707         warn-on-use: work with old autoconf
1708         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
1709         AS_VAR semantics of autoconf 2.60.
1710         Reported by Bruno Haible.
1711
1712         bootstrap: improve some comments
1713         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
1714         clarification comments.
1715
1716         gettimeofday: provide correct function
1717         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
1718         when replacement is declared, otherwise provide gettimeofday.
1719         Reported by Michael Goffioul.
1720
1721 2010-02-23  Jim Meyering  <meyering@redhat.com>
1722
1723         lib-ignore: relax license to "unlimited", not LGPLv2+
1724         * modules/lib-ignore (License): Relax to "unlimited".
1725
1726 2010-02-23  Jim Meyering  <meyering@redhat.com>
1727
1728         lib-ignore: relax license to LGPLv2+
1729         * modules/lib-ignore (License): Relax to LGPLv2+.
1730
1731 2010-02-22  Eric Blake  <eblake@redhat.com>
1732
1733         lseek: avoid bash 3.2 broken pipe bug
1734         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
1735         warning from bash 3.2.
1736         Reported by Ben Pfaff, with analysis from Bruno Haible.
1737
1738         bootstrap: support non-FSF copyright holder
1739         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
1740         bootstrap.conf override of COPYRIGHT_HOLDER.
1741         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
1742
1743         bootstrap: interoperate with gettext 0.14.1
1744         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
1745
1746         bootstrap: allow for alternate submodule location
1747         * build-aux/bootstrap (gnulib_path): New variable; use instead of
1748         hardcoding submodule location.
1749         (gnulib_mk): Allow direct use of Makefile.am.
1750
1751         bootstrap: use GNULIB_SRCDIR to reduce disk usage
1752         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
1753         rather than reconfiguring where the submodule points.
1754
1755         gettimeofday: restore support for platforms that lack function
1756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
1757         replacement if function is missing.
1758         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
1759         * modules/sys_time (Makefile.am): Substitute it.
1760         * lib/sys_time.in.h (gettimeofday): Check it.
1761         Reported by Michael Goffioul.
1762
1763 2010-02-21  Bruno Haible  <bruno@clisp.org>
1764
1765         * lib/stdio.in.h (obstack_printf): Fix typo.
1766
1767 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
1768
1769         vc-list-files: use bzr ls's -R option
1770         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
1771         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
1772
1773 2010-02-21  Jim Meyering  <meyering@redhat.com>
1774
1775         init.sh: fix EXEEXT shims to work also for names like test-prog
1776         * tests/init.sh: Re-exec a better shell, when needed.
1777         If the current shell lacks support for posix $(...), an init.sh-using
1778         test will now try to find a shell that supports that.  If EXEEXT is
1779         nonempty, we also require support for hyphen-in-alias-name and shell
1780         substitutions like ${var#glob}.  Failure to find such a shell results
1781         in a skipped test.
1782
1783 2010-02-21  Bruno Haible  <bruno@clisp.org>
1784
1785         Really work around around "broken pipe" error message from bash 3.2.
1786         * gnulib-tool (func_reset_sigpipe): Remove function.
1787         (echo): In bash 3.2, define to a function that uses printf.
1788         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
1789
1790 2010-02-20  Bruno Haible  <bruno@clisp.org>
1791
1792         Restore support for automake 1.9.6 with autoconf 2.61.
1793         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
1794         Reported by James Youngman <jay@gnu.org>.
1795
1796 2010-02-20  Bruno Haible  <bruno@clisp.org>
1797
1798         Improve *printf warning condition.
1799         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
1800         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
1801         and the function is overridden due to SIGPIPE emulation.
1802
1803 2010-02-20  Bruno Haible  <bruno@clisp.org>
1804
1805         * lib/stdio.in.h: Tweak comments.
1806
1807 2010-02-19  Bruno Haible  <bruno@clisp.org>
1808
1809         Make it easier to find modules. New gnulib-tool option '--find'.
1810         * gnulib-tool: New option --find.
1811         (func_usage): Document it.
1812         (func_sanitize_modulelist): New function, extracted from
1813         func_all_modules.
1814         (func_all_modules): Invoke it.
1815         * doc/gnulib-tool.texi (Which modules?): New node.
1816
1817 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
1818
1819         * lib/sys_select.in.h: Provide select replacement even if
1820         sys/select.h exists on a system, for Interix.
1821
1822 2010-02-18  Jim Meyering  <meyering@redhat.com>
1823
1824         init.sh: don't use $(...) just yet
1825         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
1826         to accommodate e.g., Solaris' /bin/sh.
1827
1828 2010-02-17  Bruno Haible  <bruno@clisp.org>
1829
1830         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
1831         Reported by Ludovic Courtès <ludo@gnu.org>.
1832
1833 2010-02-16  Simon Josefsson  <simon@josefsson.org>
1834
1835         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
1836         linking with -lintl.
1837
1838 2010-02-17  Simon Josefsson  <simon@josefsson.org>
1839
1840         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
1841         if not provided by the system's netdb.h.  Reported by
1842         ludo@gnu.org (Ludovic Courtès).
1843
1844 2010-02-15  Jim Meyering  <meyering@redhat.com>
1845
1846         init.sh: improve portability and efficiency
1847         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
1848         "dummy" in a for loop.
1849         Use '!', not '^' to select the complement of a character set used
1850         in a "case" statement.
1851         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
1852         Suggestions from Eric Blake.
1853
1854         init.sh: automatically accommodate programs with the .exe suffix
1855         Automatically arrange for an invocation of "prog" to execute the
1856         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
1857         may use the simpler "prog", yet still work when built on a system
1858         that requires specifying the added suffix.
1859         Do this by constructing a function named "prog" that invokes
1860         "prog.exe" for each .exe file in selected directories.
1861         * tests/init.sh (find_exe_basenames_): New function.
1862         (create_exe_shim_functions_): New function.
1863         (path_prepend_): Use it.
1864
1865         maint.mk: mark syntax-check sc_*.m rules as .PHONY
1866         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
1867         "make -t syntax-check" doesn't create a ton of sc_*.m files.
1868
1869 2010-02-14  Jim Meyering  <meyering@redhat.com>
1870
1871         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
1872         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
1873         (sc_prohibit_hash_pjw_without_use): New rule.
1874
1875         maint.mk: allow the default upload destination dir to be overridden
1876         * top/maint.mk (upload_dest_dir_): Define with a default that
1877         preserves the status quo.
1878         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
1879         Reported by Peter Simons.
1880
1881         maint.mk: prohibit inclusion of "hash.h" without_use
1882         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
1883
1884 2010-02-10  Jim Meyering  <meyering@redhat.com>
1885
1886         maint.mk: prohibit inclusion of "ignore-value.h" without_use
1887         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
1888
1889 2010-02-09  Eric Blake  <ebb9@byu.net>
1890         and Bruno Haible  <bruno@clisp.org>
1891
1892         obstack-printf-posix: ensure declaration
1893         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
1894         extracted from gl_FUNC_OBSTACK_PRINTF.
1895         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
1896         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
1897         Likewise.
1898         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
1899         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
1900         0.
1901
1902 2010-02-08  Bruno Haible  <bruno@clisp.org>
1903
1904         gnulib-tool: Fix typo in 2010-02-07 commit.
1905         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
1906         Reported by Eric Blake.
1907
1908 2010-02-07  Bruno Haible  <bruno@clisp.org>
1909
1910         gnulib-tool: Fix up caching patches.
1911         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
1912         option --no-cache. Use associative arrays when supported by the shell.
1913         (sed_comments): New variable.
1914         (modcache): Renamed from do_cache.
1915         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
1916         abbreviate unnecessarily.
1917         (have_associative): New variable.
1918         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
1919         way also for ksh and zsh.
1920         (func_init_sed_convert_to_cache_statements): New function, extracted
1921         from func_cache_lookup_module. Add support for associative arrays.
1922         Don't set the c_MODULE_cached variable here. Ignore all lines before
1923         the first field header. Remove only the final newline, not all trailing
1924         newlines. Support empty fields correctly. Limit the use of 'eval' to
1925         assignments.
1926         (func_get_description, func_get_status, func_get_notice,
1927         func_get_applicability, func_get_filelist, func_get_dependencies,
1928         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
1929         func_get_automake_snippet, func_get_include_directive,
1930         func_get_link_directive, func_get_license, func_get_maintainer):
1931         Update documentation. List the unoptimized code first. Add support for
1932         associative arrays. Limit the use of 'eval' to assignments.
1933         (func_get_applicability): Undo stylistic pessimisations.
1934         (func_get_automake_snippet, func_get_include_directive): Reduce code
1935         duplication.
1936         (func_modules_transitive_closure, func_modules_add_dummy,
1937         func_modules_notice, func_modules_to_filelist, func_add_file,
1938         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
1939         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
1940         func_create_testdir, func_create_megatestdir): Update documentation.
1941
1942 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1943
1944         * gnulib-tool (func_cache_lookup_module): Store the module name
1945         belonging to the cache variable; error out if two different
1946         module names map to the same cache variable name.
1947
1948 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1949
1950         gnulib-tool: Make caching optional.
1951         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
1952         Update matching short versions of --no-changelog.
1953         (func_usage): Update.
1954         (sed_extract_cache_prog): Renamed from ...
1955         (sed_extract_prog): ... this; revert to old extraction script.
1956         (func_get_description, func_get_status)
1957         (func_get_notice, func_get_applicability, func_get_filelist)
1958         (func_get_dependencies, func_get_autoconf_early_snippet)
1959         (func_get_autoconf_snippet, func_get_automake_snippet)
1960         (func_get_include_directive, func_get_link_directive)
1961         (func_get_license, func_get_maintainer): If $do_cache is false,
1962         use old, non-caching extraction scripts.
1963         Suggestion by Bruno Haible.
1964
1965 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1966
1967         gnulib-tool: cache module metainformation.
1968         * gnulib-tool (sed_extract_prog): Match newline before each
1969         header, and rewrite header to a shell variable suffix.
1970         (func_cache_var, func_cache_lookup_module): New functions,
1971         to turn a module name into a cache variable prefix, and to
1972         look up and cache module metainformation.
1973         (func_get_description, func_get_status)
1974         (func_get_notice, func_get_applicability, func_get_filelist)
1975         (func_get_dependencies, func_get_autoconf_early_snippet)
1976         (func_get_autoconf_snippet, func_get_automake_snippet)
1977         (func_get_include_directive, func_get_link_directive)
1978         (func_get_license, func_get_maintainer): Use
1979         func_cache_lookup_module.
1980
1981 2010-02-07  Bruno Haible  <bruno@clisp.org>
1982
1983         fnctl: Fix missing dependency.
1984         * modules/fcntl (Depends-on): Add getdtablesize.
1985         Reported by John W. Eaton <jwe@gnu.org>.
1986
1987 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1988
1989         Argp: fix recognition of short alias options.
1990
1991         * lib/argp-parse.c (convert_options): Fix improper use of
1992         `|' between character values.
1993         * tests/test-argp.c (group1_option): New alias option
1994         --read (-r).
1995         (group1_parser): Special handling for 'r'.
1996         (test15): New test case.
1997         (test_fun): Add test15.
1998         * tests/test-argp-2.sh: Update expected --help and --usage
1999         outputs.
2000
2001 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2002
2003         * tests/test-argp.c: Fix indentation.
2004
2005 2010-02-04  Eric Blake  <ebb9@byu.net>
2006
2007         gettimeofday: expose type of second argument
2008         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2009         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2010         * tests/test-gettimeofday.c: Use it to silence warning.
2011         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2012         the issue.
2013
2014 2010-02-03  Jim Meyering  <meyering@redhat.com>
2015
2016         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2017         * lib/regcomp.c (TYPE_SIGNED): Define.
2018         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2019
2020         regcomp.c: avoid a new -Wshadow warning
2021         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2022
2023 2010-02-01  Jim Meyering  <meyering@redhat.com>
2024
2025         removing useless parentheses in cpp #define directives
2026         For motivation, see commit c0221df4, "define STREQ(a,b)
2027         consistently, removing useless parentheses"
2028         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2029         * lib/mountlist.c (MNT_IGNORE): Likewise.
2030         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2031
2032 2010-02-01  Eric Blake  <ebb9@byu.net>
2033
2034         sys_time: use link-warning
2035         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2036         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2037         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2038         * modules/sys_time (Depends-on): Add warn-on-use.
2039         (Makefile.am): Always build replacement.
2040         (configure.ac): Update substitutions.
2041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2042         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2043         bother with SYS_TIME_H.
2044         * modules/gettimeofday (configure.ac): Declare indicator.
2045         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2046         in use.
2047
2048         closein-tests: silence compiler warning
2049         * tests/test-closein.c (main): Ignore fread result.
2050         * modules/closein-tests (Depends-on): Add ignore-value.
2051
2052         tests: silence warning about system return
2053         * tests/test-areadlink-with-size.c (main): Ignore system result.
2054         * tests/test-areadlink.c (main): Likewise.
2055         * tests/test-areadlinkat-with-size.c (main): Likewise.
2056         * tests/test-areadlinkat.c (main): Likewise.
2057         * tests/test-canonicalize-lgpl.c (main): Likewise.
2058         * tests/test-canonicalize.c (main): Likewise.
2059         * tests/test-chown.c (main): Likewise.
2060         * tests/test-fchownat.c (main): Likewise.
2061         * tests/test-fdutimensat.c (main): Likewise.
2062         * tests/test-fstatat.c (main): Likewise.
2063         * tests/test-futimens.c (main): Likewise.
2064         * tests/test-lchown.c (main): Likewise.
2065         * tests/test-link.c (main): Likewise.
2066         * tests/test-linkat.c (main): Likewise.
2067         * tests/test-lstat.c (main): Likewise.
2068         * tests/test-mkdir.c (main): Likewise.
2069         * tests/test-mkdirat.c (main): Likewise.
2070         * tests/test-mkfifo.c (main): Likewise.
2071         * tests/test-mkfifoat.c (main): Likewise.
2072         * tests/test-mknod.c (main): Likewise.
2073         * tests/test-readlink.c (main): Likewise.
2074         * tests/test-remove.c (main): Likewise.
2075         * tests/test-rename.c (main): Likewise.
2076         * tests/test-renameat.c (main): Likewise.
2077         * tests/test-rmdir.c (main): Likewise.
2078         * tests/test-symlink.c (main): Likewise.
2079         * tests/test-symlinkat.c (main): Likewise.
2080         * tests/test-unlink.c (main): Likewise.
2081         * tests/test-unlinkat.c (main): Likewise.
2082         * tests/test-utimens.c (main): Likewise.
2083         * tests/test-utimensat.c (main): Likewise.
2084         * modules/areadlink-tests (Depends-on): Add ignore-value.
2085         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2086         * modules/areadlinkat-tests (Depends-on): Likewise.
2087         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2088         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2089         * modules/canonicalize-tests (Depends-on): Likewise.
2090         * modules/chown-tests (Depends-on): Likewise.
2091         * modules/fdutimensat-tests (Depends-on): Likewise.
2092         * modules/futimens-tests (Depends-on): Likewise.
2093         * modules/lchown-tests (Depends-on): Likewise.
2094         * modules/link-tests (Depends-on): Likewise.
2095         * modules/linkat-tests (Depends-on): Likewise.
2096         * modules/lstat-tests (Depends-on): Likewise.
2097         * modules/mkdir-tests (Depends-on): Likewise.
2098         * modules/mkfifo-tests (Depends-on): Likewise.
2099         * modules/mkfifoat-tests (Depends-on): Likewise.
2100         * modules/mknod-tests (Depends-on): Likewise.
2101         * modules/openat-tests (Depends-on): Likewise.
2102         * modules/readlink-tests (Depends-on): Likewise.
2103         * modules/remove-tests (Depends-on): Likewise.
2104         * modules/rename-tests (Depends-on): Likewise.
2105         * modules/renameat-tests (Depends-on): Likewise.
2106         * modules/rmdir-tests (Depends-on): Likewise.
2107         * modules/symlink-tests (Depends-on): Likewise.
2108         * modules/symlinkat-tests (Depends-on): Likewise.
2109         * modules/unlink-tests (Depends-on): Likewise.
2110         * modules/utimens-tests (Depends-on): Likewise.
2111         * modules/utimensat-tests (Depends-on): Likewise.
2112
2113 2010-01-31  Bruno Haible  <bruno@clisp.org>
2114
2115         Perform the same test for many <math.h> functions.
2116         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2117         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2118         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2119         of gl_MATHFUNC.
2120         * modules/acos (configure.ac): Likewise.
2121         * modules/asin (configure.ac): Likewise.
2122         * modules/atan (configure.ac): Likewise.
2123         * modules/atan2 (configure.ac): Likewise.
2124         * modules/cbrt (configure.ac): Likewise.
2125         * modules/copysign (configure.ac): Likewise.
2126         * modules/cos (configure.ac): Likewise.
2127         * modules/cosh (configure.ac): Likewise.
2128         * modules/erf (configure.ac): Likewise.
2129         * modules/erfc (configure.ac): Likewise.
2130         * modules/exp (configure.ac): Likewise.
2131         * modules/fmod (configure.ac): Likewise.
2132         * modules/hypot (configure.ac): Likewise.
2133         * modules/j0 (configure.ac): Likewise.
2134         * modules/j1 (configure.ac): Likewise.
2135         * modules/jn (configure.ac): Likewise.
2136         * modules/lgamma (configure.ac): Likewise.
2137         * modules/log (configure.ac): Likewise.
2138         * modules/log10 (configure.ac): Likewise.
2139         * modules/log1p (configure.ac): Likewise.
2140         * modules/pow (configure.ac): Likewise.
2141         * modules/remainder (configure.ac): Likewise.
2142         * modules/sin (configure.ac): Likewise.
2143         * modules/sinh (configure.ac): Likewise.
2144         * modules/tan (configure.ac): Likewise.
2145         * modules/tanh (configure.ac): Likewise.
2146         * modules/y0 (configure.ac): Likewise.
2147         * modules/y1 (configure.ac): Likewise.
2148         * modules/yn (configure.ac): Likewise.
2149         Suggested by Paolo Bonzini.
2150
2151 2010-01-31  Bruno Haible  <bruno@clisp.org>
2152
2153         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2154
2155 2010-01-31  Bruno Haible  <bruno@clisp.org>
2156
2157         Work around getdelim() bug on FreeBSD 8.0.
2158         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2159         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2160         not work.
2161         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2162         is 1.
2163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2164         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2165         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2166         a non-zero size.
2167         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2168
2169 2010-01-31  Bruno Haible  <bruno@clisp.org>
2170
2171         Work around getline() bug on FreeBSD 8.0.
2172         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2173         and a non-zero size.
2174         * tests/test-getline.c (main): Likewise.
2175         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2176         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2177
2178 2010-01-28  Eric Blake  <ebb9@byu.net>
2179
2180         regex: fix build failure
2181         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2182         platforms.
2183
2184 2010-01-28  Jim Meyering  <meyering@redhat.com>
2185
2186         regex: do not ignore memory allocation failure
2187         * lib/regex_internal.c (create_cd_newstate): Detect
2188         re_node_set_init_copy failure.   Extracted from glibc commit
2189         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2190
2191         regex: sync more white-space changes from libc
2192         * lib/regex_internal.c: White-space only changes.
2193         * lib/regexec.c: Likewise.
2194
2195         regex: add many uses of __attribute_warn_unused_result__
2196         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2197         * lib/regexec.c: Likewise.
2198         Extracted from a messy glibc commit.
2199
2200         regcomp.c: spelling and merge-artifact from glibc
2201         * lib/regcomp.c: Merge remainder of glibc's
2202         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2203
2204         regcomp.c: sync white-space changes from glibc
2205         * lib/regcomp.c: Merge to accommodate white space
2206         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2207
2208         regcomp.c: do not ignore internal return values
2209         * lib/regcomp.c: Do not ignore internal return values.
2210         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2211         but without its white-space changes and spelling fixes.
2212
2213         regex_internal.h: define __attribute_warn_unused_result__
2214         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2215
2216         maint: add a syntax-check rule to check for vulnerable Makefile.in
2217         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2218
2219 2010-01-27  Jim Meyering  <meyering@redhat.com>
2220
2221         ncftpput-ftp: clean up spaces
2222         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2223         Remove trailing blanks.
2224
2225 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2226
2227         * build-aux/git-version-gen: Fix copyright statement.
2228         * build-aux/gnupload: Likewise.
2229         * tests/test-arcfour.c: Likewise.
2230         * tests/test-arctwo.c: Likewise.
2231         * tests/test-count-one-bits.c: Likewise.
2232         * tests/test-crc.c: Likewise.
2233         * tests/test-des.c: Likewise.
2234         * tests/test-gc-arcfour.c: Likewise.
2235         * tests/test-gc-arctwo.c: Likewise.
2236         * tests/test-gc-des.c: Likewise.
2237         * tests/test-gc-hmac-md5.c: Likewise.
2238         * tests/test-gc-hmac-sha1.c: Likewise.
2239         * tests/test-gc-md2.c: Likewise.
2240         * tests/test-gc-md4.c: Likewise.
2241         * tests/test-gc-md5.c: Likewise.
2242         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2243         * tests/test-gc-rijndael.c: Likewise.
2244         * tests/test-gc-sha1.c: Likewise.
2245         * tests/test-gc.c: Likewise.
2246         * tests/test-gethostname.c: Likewise.
2247         * tests/test-gettimeofday.c: Likewise.
2248         * tests/test-hash.c: Likewise.
2249         * tests/test-hmac-md5.c: Likewise.
2250         * tests/test-hmac-sha1.c: Likewise.
2251         * tests/test-md2.c: Likewise.
2252         * tests/test-md4.c: Likewise.
2253         * tests/test-md5.c: Likewise.
2254         * tests/test-memchr.c: Likewise.
2255         * tests/test-memchr2.c: Likewise.
2256         * tests/test-memcmp.c: Likewise.
2257         * tests/test-memmem.c: Likewise.
2258         * tests/test-memrchr.c: Likewise.
2259         * tests/test-rawmemchr.c: Likewise.
2260         * tests/test-read-file.c: Likewise.
2261         * tests/test-rijndael.c: Likewise.
2262         * tests/test-sockets.c: Likewise.
2263         * tests/test-strchrnul.c: Likewise.
2264         * tests/test-strstr.c: Likewise.
2265         * tests/test-strtod.c: Likewise.
2266         * build-aux/ncftpput-ftp: Likewise.
2267
2268 2010-01-26  Eric Blake  <ebb9@byu.net>
2269
2270         ignore-value: update recommended header name
2271         * modules/ignore-value (Include): Only use <> for headers that
2272         exist in glibc.
2273
2274 2010-01-26  Jim Meyering  <meyering@redhat.com>
2275
2276         test-userspec.c: avoid compiler warnings
2277         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2278         and "initialization discards qualifiers..." warnings.
2279         Put the first "uid" in its own scope, and make char* members "const".
2280
2281 2010-01-25  Bruno Haible  <bruno@clisp.org>
2282
2283         gnulib-tool: Make warning diagnostics consistent.
2284         * gnulib-tool (func_warning): New function.
2285         Use it everywhere where gnulib-tool produces output to stderr and it is
2286         not a fatal error.
2287
2288 2010-01-25  Bruno Haible  <bruno@clisp.org>
2289
2290         Fix test dependencies.
2291         * modules/xstrtol-tests (Depends-on): Add inttypes.
2292         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2293
2294 2010-01-25 Pádraig Brady <P@draigBrady.com>
2295
2296         syntax-check: detect incorrect boolean macro values in config.h
2297         * modules/maintainer-makefile (configure.ac): Parameterize the location
2298         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2299         The logic is from Eric Blake and the location indicated by Jim Meyering.
2300         Note the more natural CONFIG_HEADER name is prohibited by automake
2301         for backwards compatibility reasons.
2302         * top/maint.mk (sc_Wundef_boolean): New rule.
2303
2304 2010-01-25  Jim Meyering  <meyering@redhat.com>
2305
2306         bootstrap: detect MacOS 10.6's shasum, too
2307         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2308         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2309
2310 2010-01-23  Jim Meyering  <meyering@redhat.com>
2311
2312         xstrtoll: new module
2313         * modules/xstrtoll: New file.
2314         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2315         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2316         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2317         ./configure fails if you use this module and lack "long long".
2318         * modules/xstrtoll-tests: New module.
2319         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2320         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2321         new init.sh-based test framework.
2322
2323 2010-01-24  Bruno Haible  <bruno@clisp.org>
2324
2325         Tests for module 'yn'.
2326         * modules/yn-tests: New file.
2327         * tests/test-yn.c: New file.
2328
2329         Tests for module 'y1'.
2330         * modules/y1-tests: New file.
2331         * tests/test-y1.c: New file.
2332
2333         Tests for module 'y0'.
2334         * modules/y0-tests: New file.
2335         * tests/test-y0.c: New file.
2336
2337         Tests for module 'tanh'.
2338         * modules/tanh-tests: New file.
2339         * tests/test-tanh.c: New file.
2340
2341         Tests for module 'tan'.
2342         * modules/tan-tests: New file.
2343         * tests/test-tan.c: New file.
2344
2345         Tests for module 'sqrt'.
2346         * modules/sqrt-tests: New file.
2347         * tests/test-sqrt.c: New file.
2348
2349         Tests for module 'sinh'.
2350         * modules/sinh-tests: New file.
2351         * tests/test-sinh.c: New file.
2352
2353         Tests for module 'sin'.
2354         * modules/sin-tests: New file.
2355         * tests/test-sin.c: New file.
2356
2357         Tests for module 'rint'.
2358         * modules/rint-tests: New file.
2359         * tests/test-rint.c: New file.
2360
2361         Tests for module 'remainder'.
2362         * modules/remainder-tests: New file.
2363         * tests/test-remainder.c: New file.
2364
2365         Tests for module 'pow'.
2366         * modules/pow-tests: New file.
2367         * tests/test-pow.c: New file.
2368
2369         Tests for module 'nextafter'.
2370         * modules/nextafter-tests: New file.
2371         * tests/test-nextafter.c: New file.
2372
2373         Tests for module 'modf'.
2374         * modules/modf-tests: New file.
2375         * tests/test-modf.c: New file.
2376
2377         Tests for module 'logb'.
2378         * modules/logb-tests: New file.
2379         * tests/test-logb.c: New file.
2380
2381         Tests for module 'log1p'.
2382         * modules/log1p-tests: New file.
2383         * tests/test-log1p.c: New file.
2384
2385         Tests for module 'log10'.
2386         * modules/log10-tests: New file.
2387         * tests/test-log10.c: New file.
2388
2389         Tests for module 'log'.
2390         * modules/log-tests: New file.
2391         * tests/test-log.c: New file.
2392
2393         Tests for module 'lgamma'.
2394         * modules/lgamma-tests: New file.
2395         * tests/test-lgamma.c: New file.
2396
2397         Tests for module 'ldexp'.
2398         * modules/ldexp-tests: New file.
2399         * tests/test-ldexp.c: New file.
2400
2401         Tests for module 'jn'.
2402         * modules/jn-tests: New file.
2403         * tests/test-jn.c: New file.
2404
2405         Tests for module 'j1'.
2406         * modules/j1-tests: New file.
2407         * tests/test-j1.c: New file.
2408
2409         Tests for module 'j0'.
2410         * modules/j0-tests: New file.
2411         * tests/test-j0.c: New file.
2412
2413         Tests for module 'hypot'.
2414         * modules/hypot-tests: New file.
2415         * tests/test-hypot.c: New file.
2416
2417         Tests for module 'fmod'.
2418         * modules/fmod-tests: New file.
2419         * tests/test-fmod.c: New file.
2420
2421         Tests for module 'fabs'.
2422         * modules/fabs-tests: New file.
2423         * tests/test-fabs.c: New file.
2424
2425         Tests for module 'exp'.
2426         * modules/exp-tests: New file.
2427         * tests/test-exp.c: New file.
2428
2429         Tests for module 'erfc'.
2430         * modules/erfc-tests: New file.
2431         * tests/test-erfc.c: New file.
2432
2433         Tests for module 'erf'.
2434         * modules/erf-tests: New file.
2435         * tests/test-erf.c: New file.
2436
2437         Tests for module 'cosh'.
2438         * modules/cosh-tests: New file.
2439         * tests/test-cosh.c: New file.
2440
2441         Tests for module 'cos'.
2442         * modules/cos-tests: New file.
2443         * tests/test-cos.c: New file.
2444
2445         Tests for module 'copysign'.
2446         * modules/copysign-tests: New file.
2447         * tests/test-copysign.c: New file.
2448
2449         Tests for module 'cbrt'.
2450         * modules/cbrt-tests: New file.
2451         * tests/test-cbrt.c: New file.
2452
2453         Tests for module 'atan2'.
2454         * modules/atan2-tests: New file.
2455         * tests/test-atan2.c: New file.
2456
2457         Tests for module 'atan'.
2458         * modules/atan-tests: New file.
2459         * tests/test-atan.c: New file.
2460
2461         Tests for module 'asin'.
2462         * modules/asin-tests: New file.
2463         * tests/test-asin.c: New file.
2464
2465         Tests for module 'acos'.
2466         * modules/acos-tests: New file.
2467         * tests/test-acos.c: New file.
2468
2469 2010-01-24  Bruno Haible  <bruno@clisp.org>
2470
2471         Fix tests for common <math.h> functions.
2472         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2473         code snippet that references the function pointer, rather than merely
2474         calling the function. Substitute the FUNC_LIBM variable.
2475         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2476         * modules/acos (configure.ac): Likewise.
2477         * modules/asin (configure.ac): Likewise.
2478         * modules/atan (configure.ac): Likewise.
2479         * modules/atan2 (configure.ac): Likewise.
2480         * modules/cbrt (configure.ac): Likewise.
2481         * modules/copysign (configure.ac): Likewise.
2482         * modules/cos (configure.ac): Likewise.
2483         * modules/cosh (configure.ac): Likewise.
2484         * modules/erf (configure.ac): Likewise.
2485         * modules/erfc (configure.ac): Likewise.
2486         * modules/exp (configure.ac): Likewise.
2487         * modules/fabs (configure.ac): Likewise.
2488         * modules/fmod (configure.ac): Likewise.
2489         * modules/hypot (configure.ac): Likewise.
2490         * modules/j0 (configure.ac): Likewise.
2491         * modules/j1 (configure.ac): Likewise.
2492         * modules/jn (configure.ac): Likewise.
2493         * modules/ldexp (configure.ac): Likewise.
2494         * modules/lgamma (configure.ac): Likewise.
2495         * modules/log (configure.ac): Likewise.
2496         * modules/log10 (configure.ac): Likewise.
2497         * modules/log1p (configure.ac): Likewise.
2498         * modules/logb (configure.ac): Likewise.
2499         * modules/modf (configure.ac): Likewise.
2500         * modules/nextafter (configure.ac): Likewise.
2501         * modules/pow (configure.ac): Likewise.
2502         * modules/remainder (configure.ac): Likewise.
2503         * modules/rint (configure.ac): Likewise.
2504         * modules/sin (configure.ac): Likewise.
2505         * modules/sinh (configure.ac): Likewise.
2506         * modules/tan (configure.ac): Likewise.
2507         * modules/tanh (configure.ac): Likewise.
2508         * modules/y0 (configure.ac): Likewise.
2509         * modules/y1 (configure.ac): Likewise.
2510         * modules/yn (configure.ac): Likewise.
2511
2512 2010-01-24  Bruno Haible  <bruno@clisp.org>
2513
2514         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2515         * tests/test-acosl.c (x): New variable.
2516         (main): Store argument in x and fetch it from x.
2517         * tests/test-asinl.c (x): New variable.
2518         (main): Store argument in x and fetch it from x.
2519         * tests/test-atanl.c (x): New variable.
2520         (main): Store argument in x and fetch it from x.
2521         * tests/test-cosl.c (x): New variable.
2522         (main): Store argument in x and fetch it from x.
2523         * tests/test-expl.c (x): New variable.
2524         (main): Store argument in x and fetch it from x.
2525         * tests/test-logl.c (x): New variable.
2526         (main): Store argument in x and fetch it from x.
2527         * tests/test-sinl.c (x): New variable.
2528         (main): Store argument in x and fetch it from x.
2529         * tests/test-sqrtl.c (x): New variable.
2530         (main): Store argument in x and fetch it from x.
2531         * tests/test-tanl.c (x): New variable.
2532         (main): Store argument in x and fetch it from x.
2533
2534 2010-01-24  Bruno Haible  <bruno@clisp.org>
2535
2536         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2537         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2538         assignments to the initial TESTS_ENVIRONMENT.
2539         * doc/gnulib.texi (Unit test modules): Document it.
2540         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2541         TESTS_ENVIRONMENT.
2542         * modules/btowc-tests (Makefile.am): Likewise.
2543         * modules/c-stack-tests (Makefile.am): Likewise.
2544         * modules/c-strcase-tests (Makefile.am): Likewise.
2545         * modules/copy-file-tests (Makefile.am): Likewise.
2546         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2547         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2548         * modules/mbrtowc-tests (Makefile.am): Likewise.
2549         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2550         * modules/mbscasestr-tests (Makefile.am): Likewise.
2551         * modules/mbschr-tests (Makefile.am): Likewise.
2552         * modules/mbscspn-tests (Makefile.am): Likewise.
2553         * modules/mbsinit-tests (Makefile.am): Likewise.
2554         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2555         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2556         * modules/mbspbrk-tests (Makefile.am): Likewise.
2557         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2558         * modules/mbsrchr-tests (Makefile.am): Likewise.
2559         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2560         * modules/mbsspn-tests (Makefile.am): Likewise.
2561         * modules/mbsstr-tests (Makefile.am): Likewise.
2562         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2563         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2564         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2565         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2566         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2567         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2568         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2569         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2570         * modules/wcrtomb-tests (Makefile.am): Likewise.
2571         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2572         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2573         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2574         assignments from TESTS_ENVIRONMENT.
2575         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2576         augmentation.
2577         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2578         * modules/atexit-tests (Makefile.am): Likewise.
2579         * modules/binary-io-tests (Makefile.am): Likewise.
2580         * modules/closein-tests (Makefile.am): Likewise.
2581         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2582         * modules/exclude-tests (Makefile.am): Likewise.
2583         * modules/fflush-tests (Makefile.am): Likewise.
2584         * modules/fpending-tests (Makefile.am): Likewise.
2585         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2586         * modules/freadahead-tests (Makefile.am): Likewise.
2587         * modules/freadptr-tests (Makefile.am): Likewise.
2588         * modules/freadseek-tests (Makefile.am): Likewise.
2589         * modules/fseek-tests (Makefile.am): Likewise.
2590         * modules/fseeko-tests (Makefile.am): Likewise.
2591         * modules/ftell-tests (Makefile.am): Likewise.
2592         * modules/ftello-tests (Makefile.am): Likewise.
2593         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2594         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2595         * modules/lseek-tests (Makefile.am): Likewise.
2596         * modules/parse-duration-tests (Makefile.am): Likewise.
2597         * modules/perror-tests (Makefile.am): Likewise.
2598         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2599         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2600         * modules/pipe-tests (Makefile.am): Likewise.
2601         * modules/pread-tests (Makefile.am): Likewise.
2602         * modules/printf-posix-tests (Makefile.am): Likewise.
2603         * modules/select-tests (Makefile.am): Likewise.
2604         * modules/sigpipe-tests (Makefile.am): Likewise.
2605         * modules/tsearch-tests (Makefile.am): Likewise.
2606         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2607         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2608         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2609         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2610         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2611         * modules/version-etc-tests (Makefile.am): Likewise.
2612         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2613         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2614         * modules/xalloc-die-tests (Makefile.am): Likewise.
2615         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2616         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2617         * modules/xstrtol-tests (Makefile.am): Likewise.
2618         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2619         * modules/yesno-tests (Makefile.am): Likewise.
2620         Suggested by Jim Meyering.
2621
2622 2010-01-24  Bruno Haible  <bruno@clisp.org>
2623
2624         More documentation.
2625         * doc/gnulib.texi (Writing modules): New chapter.
2626         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2627         the new chapter.
2628
2629 2010-01-24  Jim Meyering  <meyering@redhat.com>
2630
2631         maint.mk: do not prepend "./" after filtering
2632         * top/maint.mk (_prepend_srcdir_prefix): New variable
2633         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2634         "./" when $(srcdir) is ".".
2635
2636         define STREQ(a,b) consistently, removing useless parentheses
2637         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2638         since the only risk is that "a" or "b" contains an unparenthesized
2639         comma, but if either did that, STREQ would have 3 or more arguments.
2640         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2641         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2642         * lib/hash-triple.c (STREQ): Likewise.
2643         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2644         * lib/getugroups.c (STREQ): Likewise.
2645
2646 2010-01-23  Jim Meyering  <meyering@redhat.com>
2647
2648         maint.mk: fix syntax-check in a non-srcdir build directory
2649         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2650         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2651
2652 2010-01-22  Jim Meyering  <meyering@redhat.com>
2653
2654         userspec: add unit tests
2655         * tests/test-userspec.c: New file.
2656         * modules/userspec-tests: Likewise.
2657
2658 2010-01-21  Jim Meyering  <meyering@redhat.com>
2659
2660         maint.mk: handle source file names containing "." robustly
2661         * top/maint.mk (_dot_escaped_srcdir): Define.
2662         (VC_LIST): Use it in LHS of sed substitution.
2663
2664 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2665
2666         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2667         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2668         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2669         from a non-srcdir build.
2670
2671 2010-01-20  Eric Blake  <ebb9@byu.net>
2672
2673         warn-on-use: use instead of link-warning
2674         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2675         * modules/unistd (Depends-on, Makefile.am): Likewise.
2676         * modules/arpa_inet (Depends-on): Replace link-warning with
2677         warn-on-use.
2678         (Makefile.am): Update rules accordingly.
2679         * modules/ctype (Depends-on, Makefile.am): Likewise.
2680         * modules/dirent (Depends-on, Makefile.am): Likewise.
2681         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
2682         * modules/inttypes (Depends-on, Makefile.am): Likewise.
2683         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2684         * modules/locale (Depends-on, Makefile.am): Likewise.
2685         * modules/math (Depends-on, Makefile.am): Likewise.
2686         * modules/search (Depends-on, Makefile.am): Likewise.
2687         * modules/signal (Depends-on, Makefile.am): Likewise.
2688         * modules/spawn (Depends-on, Makefile.am): Likewise.
2689         * modules/stdlib (Depends-on, Makefile.am): Likewise.
2690         * modules/string (Depends-on, Makefile.am): Likewise.
2691         * modules/strings (Depends-on, Makefile.am): Likewise.
2692         * modules/sys_file (Depends-on, Makefile.am): Likewise.
2693         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
2694         * modules/sys_select (Depends-on, Makefile.am): Likewise.
2695         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
2696         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
2697         * modules/sys_times (Depends-on, Makefile.am): Likewise.
2698         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2699         * modules/wchar (Depends-on, Makefile.am): Likewise.
2700         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
2701         should be poisoned.
2702         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
2703         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
2704         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
2705         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2706         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2707         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2708         * m4/math_h.m4 (gl_MATH_H): Likewise.
2709         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2710         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2711         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2712         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2713         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2714         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2715         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2716         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
2717         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
2718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2721         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2722         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2723         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2724         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2725         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
2726         GL_LINK_WARNING.
2727         * lib/ctype.in.h: Likewise.
2728         * lib/dirent.in.h: Likewise.
2729         * lib/fcntl.in.h: Likewise.
2730         * lib/inttypes.in.h: Likewise.
2731         * lib/langinfo.in.h: Likewise.
2732         * lib/locale.in.h: Likewise.
2733         * lib/math.in.h: Likewise.
2734         * lib/search.in.h: Likewise.
2735         * lib/signal.in.h: Likewise.
2736         * lib/spawn.in.h: Likewise.
2737         * lib/stdio.in.h: Likewise.
2738         * lib/stdlib.in.h: Likewise.
2739         * lib/string.in.h: Likewise.
2740         * lib/strings.in.h: Likewise.
2741         * lib/sys_file.in.h: Likewise.
2742         * lib/sys_ioctl.in.h: Likewise.
2743         * lib/sys_select.in.h: Likewise.
2744         * lib/sys_socket.in.h: Likewise.
2745         * lib/sys_stat.in.h: Likewise.
2746         * lib/sys_times.in.h: Likewise.
2747         * lib/sys_utsname.in.h: Likewise.
2748         * lib/unistd.in.h: Likewise.
2749         * lib/wchar.in.h: Likewise.
2750
2751 2010-01-20  Bruno Haible  <bruno@clisp.org>
2752
2753         Avoid duplicate -lm.
2754         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
2755         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
2756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
2757         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
2758         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
2759         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
2760         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
2761         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
2762         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
2763         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
2764         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
2765         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2766         Reported by Paolo Bonzini.
2767
2768 2010-01-19  Bruno Haible  <bruno@clisp.org>
2769
2770         langinfo, nl_langinfo: Relicense under LGPLv2+.
2771         * modules/langinfo (License): Change to LGPLv2+.
2772         * modules/nl_langinfo (License): Likewise.
2773         Patch by David Lutterkort <lutter@redhat.com>.
2774
2775 2010-01-19  Bruno Haible  <bruno@clisp.org>
2776
2777         Avoid compilation error with cc on OSF/1 5.1.
2778         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
2779         statement, not before.
2780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2781
2782 2010-01-18  Bruno Haible  <bruno@clisp.org>
2783
2784         Avoid a link error due to the __printf__ symbol.
2785         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
2786         and 2.6.x.
2787         (__format__, __printf__): Remove definitions.
2788         * lib/argp-fmtstream.h: Likewise.
2789         * lib/argp.h: Likewise.
2790         * lib/error.h: Likewise.
2791         * lib/vasnprintf.h: Likewise.
2792         * lib/xprintf.h: Likewise.
2793         * lib/xvasprintf.h: Likewise.
2794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2795
2796 2010-01-18  Bruno Haible  <bruno@clisp.org>
2797
2798         Tests for module 'tanl'.
2799         * modules/tanl-tests: New file.
2800         * tests/test-tanl.c: New file.
2801
2802         Tests for module 'sqrtl'.
2803         * modules/sqrtl-tests: New file.
2804         * tests/test-sqrtl.c: New file.
2805
2806         Tests for module 'sinl'.
2807         * modules/sinl-tests: New file.
2808         * tests/test-sinl.c: New file.
2809
2810         Tests for module 'logl'.
2811         * modules/logl-tests: New file.
2812         * tests/test-logl.c: New file.
2813
2814         Tests for module 'expl'.
2815         * modules/expl-tests: New file.
2816         * tests/test-expl.c: New file.
2817
2818         Tests for module 'cosl'.
2819         * modules/cosl-tests: New file.
2820         * tests/test-cosl.c: New file.
2821
2822         Tests for module 'atanl'.
2823         * modules/atanl-tests: New file.
2824         * tests/test-atanl.c: New file.
2825
2826         Tests for module 'asinl'.
2827         * modules/asinl-tests: New file.
2828         * tests/test-asinl.c: New file.
2829
2830         Tests for module 'acosl'.
2831         * modules/acosl-tests: New file.
2832         * tests/test-acosl.c: New file.
2833
2834         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2835         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2836         tanl): Use the standard gnulib idiom.
2837         * lib/cosl.c: Don't include trigl.c and sincosl.c.
2838         * lib/sinl.c: Likewise.
2839         * lib/tanl.c: Don't include trigl.c.
2840         (kernel_tanl): Make static.
2841         * lib/sincosl.c: Include trigl.h first.
2842         * lib/trigl.c: Likewise.
2843         * m4/acosl.m4: New file.
2844         * m4/asinl.m4: New file.
2845         * m4/atanl.m4: New file.
2846         * m4/cosl.m4: New file.
2847         * m4/expl.m4: New file.
2848         * m4/logl.m4: New file.
2849         * m4/sinl.m4: New file.
2850         * m4/sqrtl.m4: New file.
2851         * m4/tanl.m4: New file.
2852         * m4/mathl.m4: Remove file.
2853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
2854         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
2855         Don't initialize GNULIB_MATHL.
2856         * modules/acosl: New file.
2857         * modules/asinl: New file.
2858         * modules/atanl: New file.
2859         * modules/cosl: New file.
2860         * modules/expl: New file.
2861         * modules/logl: New file.
2862         * modules/sinl: New file.
2863         * modules/sqrtl: New file.
2864         * modules/tanl: New file.
2865         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
2866         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
2867         substitute GNULIB_MATHL.
2868         * modules/mathl: Rewritten.
2869         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
2870         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
2871         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
2872         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
2873         * doc/posix-functions/expl.texi: Mention the 'expl' module.
2874         * doc/posix-functions/logl.texi: Mention the 'logl' module.
2875         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
2876         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
2877         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
2878
2879 2010-01-18  Bruno Haible  <bruno@clisp.org>
2880
2881         sqrt: Make gl_FUNC_SQRT requirable.
2882         * m4/sqrt.m4: New file.
2883         * modules/sqrt (Files): Add it.
2884         (configure.ac): Invoke gl_FUNC_SQRT.
2885
2886 2010-01-18  Bruno Haible  <bruno@clisp.org>
2887
2888         New modules for common <math.h> functions.
2889         * m4/mathfunc.m4: New file.
2890         * modules/acos: New file.
2891         * modules/asin: New file.
2892         * modules/atan: New file.
2893         * modules/atan2: New file.
2894         * modules/cbrt: New file.
2895         * modules/copysign: New file.
2896         * modules/cos: New file.
2897         * modules/cosh: New file.
2898         * modules/erf: New file.
2899         * modules/erfc: New file.
2900         * modules/exp: New file.
2901         * modules/fabs: New file.
2902         * modules/fmod: New file.
2903         * modules/hypot: New file.
2904         * modules/j0: New file.
2905         * modules/j1: New file.
2906         * modules/jn: New file.
2907         * modules/ldexp: New file.
2908         * modules/lgamma: New file.
2909         * modules/log: New file.
2910         * modules/log10: New file.
2911         * modules/log1p: New file.
2912         * modules/logb: New file.
2913         * modules/modf: New file.
2914         * modules/nextafter: New file.
2915         * modules/pow: New file.
2916         * modules/remainder: New file.
2917         * modules/rint: New file.
2918         * modules/sin: New file.
2919         * modules/sinh: New file.
2920         * modules/sqrt: New file.
2921         * modules/tan: New file.
2922         * modules/tanh: New file.
2923         * modules/y0: New file.
2924         * modules/y1: New file.
2925         * modules/yn: New file.
2926         * doc/posix-functions/acos.texi: Mention the 'acos' module.
2927         * doc/posix-functions/asin.texi: Mention the 'asin' module.
2928         * doc/posix-functions/atan.texi: Mention the 'atan' module.
2929         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
2930         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
2931         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
2932         * doc/posix-functions/cos.texi: Mention the 'cos' module.
2933         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
2934         * doc/posix-functions/erf.texi: Mention the 'erf' module.
2935         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
2936         * doc/posix-functions/exp.texi: Mention the 'exp' module.
2937         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
2938         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
2939         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
2940         * doc/posix-functions/j0.texi: Mention the 'j0' module.
2941         * doc/posix-functions/j1.texi: Mention the 'j1' module.
2942         * doc/posix-functions/jn.texi: Mention the 'jn' module.
2943         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
2944         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
2945         * doc/posix-functions/log.texi: Mention the 'log' module.
2946         * doc/posix-functions/log10.texi: Mention the 'log10' module.
2947         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
2948         * doc/posix-functions/logb.texi: Mention the 'logb' module.
2949         * doc/posix-functions/modf.texi: Mention the 'modf' module.
2950         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
2951         * doc/posix-functions/pow.texi: Mention the 'pow' module.
2952         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
2953         * doc/posix-functions/rint.texi: Mention the 'rint' module.
2954         * doc/posix-functions/sin.texi: Mention the 'sin' module.
2955         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
2956         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
2957         * doc/posix-functions/tan.texi: Mention the 'tan' module.
2958         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
2959         * doc/posix-functions/y0.texi: Mention the 'y0' module.
2960         * doc/posix-functions/y1.texi: Mention the 'y1' module.
2961         * doc/posix-functions/yn.texi: Mention the 'yn' module.
2962
2963 2010-01-18  Jim Meyering  <meyering@redhat.com>
2964
2965         ignore-value: relax license to LGPLv2+
2966         * modules/ignore-value (License): Relax to LGPLv2+.
2967
2968         getdate: don't leak when TZ contains two or more '"'s
2969         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
2970         double quote in TZ after the first one.
2971
2972         readtokens: do not leak internal token_lengths buffer
2973         * lib/readtokens.c (readtokens): Free the local, lengths,
2974         when the supplied "token_lengths" parameter is NULL.
2975
2976 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2977
2978         Fix a couple of missing LIBTHREAD link failures on AIX.
2979         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
2980         $(LIBTHREAD).
2981         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
2982
2983         Link test-poll against INET_PTON_LIB.
2984         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
2985         for inet_pton on Solaris 10.
2986
2987 2010-01-17  Bruno Haible  <bruno@clisp.org>
2988
2989         unistdio/*-sprintf: Fix typo in module description.
2990         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
2991         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
2992         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
2993         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
2994         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
2995         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
2996         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
2997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2998
2999 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3000
3001         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3002         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3003         variables in shell case patterns, for AIX and HP-UX ksh.
3004
3005         Split large sed scripts, for HP-UX sed.
3006         * modules/stdio: Split sed scripts around 50 sed commands,
3007         to avoid HP-UX limit of 99 commands, in the near future.
3008         * modules/string: Likewise.
3009         * modules/unistd: Likewise.
3010
3011         gnulib-tool: avoid writing in the current directory.
3012         * gnulib-tool (func_emit_lib_Makefile_am)
3013         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3014         not in the current directory, so concurrent gnulib-tool
3015         instances do not interfere.
3016
3017 2010-01-16  Jim Meyering  <meyering@redhat.com>
3018
3019         doc: update users.txt
3020         * users.txt: Add grep.
3021         (diffutils, gzip): Update URLs.
3022
3023 2010-01-12  Bruno Haible  <bruno@clisp.org>
3024
3025         posix_spawn: Avoid test failure on Cygwin.
3026         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3027         characters.
3028         Reported by Simon Josefsson.
3029
3030 2010-01-12  Bruno Haible  <bruno@clisp.org>
3031
3032         * tests/test-cond.c (main): When skipping the test, show the reason.
3033
3034 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3035
3036         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3037
3038 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3039
3040         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3041         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3042
3043 2010-01-12  Eric Blake  <ebb9@byu.net>
3044
3045         build: guarantee AS_VAR_IF
3046         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3047         (gl_AS_VAR_IF): Move...
3048         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3049         Reported by Simon Josefsson.
3050
3051 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3052
3053         * lib/stdio.in.h: Fix typo.
3054
3055 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3056
3057         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3058         libgpg-error.
3059
3060 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3061
3062         * tests/test-xalloc-die.sh: Use $EXEEXT.
3063
3064 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3065             Bruno Haible  <bruno@clisp.org>
3066
3067         getlogin, getlogin_r: Avoid test failure.
3068         * tests/test-getlogin.c: Include <stdio.h>.
3069         (main): Skip the test when the function fails because stdin is not a
3070         tty.
3071         * tests/test-getlogin_r.c: Include <stdio.h>.
3072         (main): Skip the test when the function fails because stdin is not a
3073         tty.
3074
3075 2010-01-11  Eric Blake  <ebb9@byu.net>
3076
3077         tests: avoid more large file warnings
3078         * tests/test-fflush.c: Avoid warning about ftell use.
3079         * tests/test-fseek.c: Avoid warning about fseek use.
3080
3081 2010-01-10  Bruno Haible  <bruno@clisp.org>
3082
3083         nproc: Work better on Linux when /proc and /sys are not mounted.
3084         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3085         as lower bound when, on glibc/Linux systems,
3086         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3087         Suggested by Pádraig Brady <P@draigbrady.com>.
3088         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3089
3090         nproc: Refactor.
3091         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3092         extracted from num_processors.
3093         (num_processors): Call it.
3094
3095 2010-01-11  Jim Meyering  <meyering@redhat.com>
3096
3097         utimecmp: avoid new warning from upcoming gcc-4.5.0
3098         * lib/utimecmp.c (BILLION): Define using #define rather than an
3099         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3100
3101 2010-01-11  Eric Blake  <ebb9@byu.net>
3102
3103         math: add portability warnings for classification macros
3104         * modules/math (Depends-on): Add warn-on-use.
3105         (Makefile.am): Provide new substitutions.
3106         * m4/math_h.m4 (gl_MATH_H): Require inline.
3107         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3108         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3109         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3110         implement warnings.
3111
3112         unistd: warn on use of environ without module
3113         * modules/unistd (Depends-on): Add warn-on-use.
3114         (Makefile.am): Provide new substitutions.
3115         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3116         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3117
3118         stdio: warn on suspicious uses
3119         * modules/stdio (Depends-on): Add warn-on-use.
3120         (Makefile.am): Provide new substitutions.
3121         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3122         fseeko.
3123         * lib/stdio.in.h (gets): Always warn on use.
3124         (fseek, ftell): Adjust when warnings are issued, and honor
3125         _GL_NO_LARGE_FILES as a way to silence the warning.
3126         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3127         any warning about large file offsets.
3128         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3129         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3130         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3131         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3132         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3133         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3134         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3135         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3136
3137         warn-on-use: new module
3138         * modules/warn-on-use: New file.
3139         * build-aux/warn-on-use.h: Likewise.
3140         * m4/warn-on-use.m4: Likewise.
3141         * MODULES.html.sh (Support for building): Mention it.
3142
3143 2010-01-10  Bruno Haible  <bruno@clisp.org>
3144
3145         Tests for module 'unistr/u32-strdup'.
3146         * modules/unistr/u32-strdup-tests: New file.
3147         * tests/unistr/test-u32-strdup.c: New file.
3148
3149         Tests for module 'unistr/u16-strdup'.
3150         * modules/unistr/u16-strdup-tests: New file.
3151         * tests/unistr/test-u16-strdup.c: New file.
3152
3153         Tests for module 'unistr/u8-strdup'.
3154         * modules/unistr/u8-strdup-tests: New file.
3155         * tests/unistr/test-u8-strdup.c: New file.
3156         * tests/unistr/test-strdup.h: New file.
3157
3158         Tests for module 'unistr/u32-strncmp'.
3159         * modules/unistr/u32-strncmp-tests: New file.
3160         * tests/unistr/test-u32-strncmp.c: New file.
3161
3162         Tests for module 'unistr/u16-strncmp'.
3163         * modules/unistr/u16-strncmp-tests: New file.
3164         * tests/unistr/test-u16-strncmp.c: New file.
3165
3166         Tests for module 'unistr/u8-strncmp'.
3167         * modules/unistr/u8-strncmp-tests: New file.
3168         * tests/unistr/test-u8-strncmp.c: New file.
3169         * tests/unistr/test-strncmp.h: New file.
3170
3171         Tests for module 'unistr/u32-strcoll'.
3172         * modules/unistr/u32-strcoll-tests: New file.
3173         * tests/unistr/test-u32-strcoll.c: New file.
3174
3175         Tests for module 'unistr/u16-strcoll'.
3176         * modules/unistr/u16-strcoll-tests: New file.
3177         * tests/unistr/test-u16-strcoll.c: New file.
3178
3179         Tests for module 'unistr/u8-strcoll'.
3180         * modules/unistr/u8-strcoll-tests: New file.
3181         * tests/unistr/test-u8-strcoll.c: New file.
3182
3183         Tests for module 'unistr/u32-strcmp'.
3184         * modules/unistr/u32-strcmp-tests: New file.
3185         * tests/unistr/test-u32-strcmp.c: New file.
3186         * tests/unistr/test-u32-strcmp.h: New file.
3187
3188         Tests for module 'unistr/u16-strcmp'.
3189         * modules/unistr/u16-strcmp-tests: New file.
3190         * tests/unistr/test-u16-strcmp.c: New file.
3191         * tests/unistr/test-u16-strcmp.h: New file.
3192
3193         Tests for module 'unistr/u8-strcmp'.
3194         * modules/unistr/u8-strcmp-tests: New file.
3195         * tests/unistr/test-u8-strcmp.c: New file.
3196         * tests/unistr/test-u8-strcmp.h: New file.
3197         * tests/unistr/test-strcmp.h: New file.
3198
3199         Tests for module 'unistr/u32-strncat'.
3200         * modules/unistr/u32-strncat-tests: New file.
3201         * tests/unistr/test-u32-strncat.c: New file.
3202
3203         Tests for module 'unistr/u16-strncat'.
3204         * modules/unistr/u16-strncat-tests: New file.
3205         * tests/unistr/test-u16-strncat.c: New file.
3206
3207         Tests for module 'unistr/u8-strncat'.
3208         * modules/unistr/u8-strncat-tests: New file.
3209         * tests/unistr/test-u8-strncat.c: New file.
3210         * tests/unistr/test-strncat.h: New file.
3211
3212         Tests for module 'unistr/u32-strcat'.
3213         * modules/unistr/u32-strcat-tests: New file.
3214         * tests/unistr/test-u32-strcat.c: New file.
3215
3216         Tests for module 'unistr/u16-strcat'.
3217         * modules/unistr/u16-strcat-tests: New file.
3218         * tests/unistr/test-u16-strcat.c: New file.
3219
3220         Tests for module 'unistr/u8-strcat'.
3221         * modules/unistr/u8-strcat-tests: New file.
3222         * tests/unistr/test-u8-strcat.c: New file.
3223         * tests/unistr/test-strcat.h: New file.
3224
3225         Tests for module 'unistr/u32-stpncpy'.
3226         * modules/unistr/u32-stpncpy-tests: New file.
3227         * tests/unistr/test-u32-stpncpy.c: New file.
3228
3229         Tests for module 'unistr/u16-stpncpy'.
3230         * modules/unistr/u16-stpncpy-tests: New file.
3231         * tests/unistr/test-u16-stpncpy.c: New file.
3232
3233         Tests for module 'unistr/u8-stpncpy'.
3234         * modules/unistr/u8-stpncpy-tests: New file.
3235         * tests/unistr/test-u8-stpncpy.c: New file.
3236         * tests/unistr/test-stpncpy.h: New file.
3237
3238         Tests for module 'unistr/u32-strncpy'.
3239         * modules/unistr/u32-strncpy-tests: New file.
3240         * tests/unistr/test-u32-strncpy.c: New file.
3241
3242         Tests for module 'unistr/u16-strncpy'.
3243         * modules/unistr/u16-strncpy-tests: New file.
3244         * tests/unistr/test-u16-strncpy.c: New file.
3245
3246         Tests for module 'unistr/u8-strncpy'.
3247         * modules/unistr/u8-strncpy-tests: New file.
3248         * tests/unistr/test-u8-strncpy.c: New file.
3249         * tests/unistr/test-strncpy.h: New file.
3250
3251         Tests for module 'unistr/u32-stpcpy'.
3252         * modules/unistr/u32-stpcpy-tests: New file.
3253         * tests/unistr/test-u32-stpcpy.c: New file.
3254
3255         Tests for module 'unistr/u16-stpcpy'.
3256         * modules/unistr/u16-stpcpy-tests: New file.
3257         * tests/unistr/test-u16-stpcpy.c: New file.
3258
3259         Tests for module 'unistr/u8-stpcpy'.
3260         * modules/unistr/u8-stpcpy-tests: New file.
3261         * tests/unistr/test-u8-stpcpy.c: New file.
3262         * tests/unistr/test-stpcpy.h: New file.
3263
3264         Tests for module 'unistr/u32-strcpy'.
3265         * modules/unistr/u32-strcpy-tests: New file.
3266         * tests/unistr/test-u32-strcpy.c: New file.
3267
3268         Tests for module 'unistr/u16-strcpy'.
3269         * modules/unistr/u16-strcpy-tests: New file.
3270         * tests/unistr/test-u16-strcpy.c: New file.
3271
3272         Tests for module 'unistr/u8-strcpy'.
3273         * modules/unistr/u8-strcpy-tests: New file.
3274         * tests/unistr/test-u8-strcpy.c: New file.
3275         * tests/unistr/test-strcpy.h: New file.
3276
3277         Tests for module 'unistr/u32-strnlen'.
3278         * modules/unistr/u32-strnlen-tests: New file.
3279         * tests/unistr/test-u32-strnlen.c: New file.
3280
3281         Tests for module 'unistr/u16-strnlen'.
3282         * modules/unistr/u16-strnlen-tests: New file.
3283         * tests/unistr/test-u16-strnlen.c: New file.
3284
3285         Tests for module 'unistr/u8-strnlen'.
3286         * modules/unistr/u8-strnlen-tests: New file.
3287         * tests/unistr/test-u8-strnlen.c: New file.
3288         * tests/unistr/test-strnlen.h: New file.
3289
3290         Tests for module 'unistr/u32-strlen'.
3291         * modules/unistr/u32-strlen-tests: New file.
3292         * tests/unistr/test-u32-strlen.c: New file.
3293
3294         Tests for module 'unistr/u16-strlen'.
3295         * modules/unistr/u16-strlen-tests: New file.
3296         * tests/unistr/test-u16-strlen.c: New file.
3297
3298         Tests for module 'unistr/u8-strlen'.
3299         * modules/unistr/u8-strlen-tests: New file.
3300         * tests/unistr/test-u8-strlen.c: New file.
3301
3302         Tests for module 'unistr/u32-prev'.
3303         * modules/unistr/u32-prev-tests: New file.
3304         * tests/unistr/test-u32-prev.c: New file.
3305
3306         Tests for module 'unistr/u16-prev'.
3307         * modules/unistr/u16-prev-tests: New file.
3308         * tests/unistr/test-u16-prev.c: New file.
3309
3310         Tests for module 'unistr/u8-prev'.
3311         * modules/unistr/u8-prev-tests: New file.
3312         * tests/unistr/test-u8-prev.c: New file.
3313
3314         Tests for module 'unistr/u32-next'.
3315         * modules/unistr/u32-next-tests: New file.
3316         * tests/unistr/test-u32-next.c: New file.
3317
3318         Tests for module 'unistr/u16-next'.
3319         * modules/unistr/u16-next-tests: New file.
3320         * tests/unistr/test-u16-next.c: New file.
3321
3322         Tests for module 'unistr/u8-next'.
3323         * modules/unistr/u8-next-tests: New file.
3324         * tests/unistr/test-u8-next.c: New file.
3325
3326         Tests for module 'unistr/u32-strmbtouc'.
3327         * modules/unistr/u32-strmbtouc-tests: New file.
3328         * tests/unistr/test-u32-strmbtouc.c: New file.
3329
3330         Tests for module 'unistr/u16-strmbtouc'.
3331         * modules/unistr/u16-strmbtouc-tests: New file.
3332         * tests/unistr/test-u16-strmbtouc.c: New file.
3333
3334         Tests for module 'unistr/u8-strmbtouc'.
3335         * modules/unistr/u8-strmbtouc-tests: New file.
3336         * tests/unistr/test-u8-strmbtouc.c: New file.
3337
3338         Tests for module 'unistr/u32-strmblen'.
3339         * modules/unistr/u32-strmblen-tests: New file.
3340         * tests/unistr/test-u32-strmblen.c: New file.
3341
3342         Tests for module 'unistr/u16-strmblen'.
3343         * modules/unistr/u16-strmblen-tests: New file.
3344         * tests/unistr/test-u16-strmblen.c: New file.
3345
3346         Tests for module 'unistr/u8-strmblen'.
3347         * modules/unistr/u8-strmblen-tests: New file.
3348         * tests/unistr/test-u8-strmblen.c: New file.
3349
3350         Tests for module 'unistr/u32-cpy-alloc'.
3351         * modules/unistr/u32-cpy-alloc-tests: New file.
3352         * tests/unistr/test-u32-cpy-alloc.c: New file.
3353
3354         Tests for module 'unistr/u16-cpy-alloc'.
3355         * modules/unistr/u16-cpy-alloc-tests: New file.
3356         * tests/unistr/test-u16-cpy-alloc.c: New file.
3357
3358         Tests for module 'unistr/u8-cpy-alloc'.
3359         * modules/unistr/u8-cpy-alloc-tests: New file.
3360         * tests/unistr/test-u8-cpy-alloc.c: New file.
3361         * tests/unistr/test-cpy-alloc.h: New file.
3362
3363         Tests for module 'unistr/u32-mbsnlen'.
3364         * modules/unistr/u32-mbsnlen-tests: New file.
3365         * tests/unistr/test-u32-mbsnlen.c: New file.
3366
3367         Tests for module 'unistr/u16-mbsnlen'.
3368         * modules/unistr/u16-mbsnlen-tests: New file.
3369         * tests/unistr/test-u16-mbsnlen.c: New file.
3370
3371         Tests for module 'unistr/u8-mbsnlen'.
3372         * modules/unistr/u8-mbsnlen-tests: New file.
3373         * tests/unistr/test-u8-mbsnlen.c: New file.
3374
3375         Tests for module 'unistr/u32-chr'.
3376         * modules/unistr/u32-chr-tests: New file.
3377         * tests/unistr/test-u32-chr.c: New file.
3378
3379         Tests for module 'unistr/u16-chr'.
3380         * modules/unistr/u16-chr-tests: New file.
3381         * tests/unistr/test-u16-chr.c: New file.
3382
3383         Tests for module 'unistr/u8-chr'.
3384         * modules/unistr/u8-chr-tests: New file.
3385         * tests/unistr/test-u8-chr.c: New file.
3386         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3387
3388         Tests for module 'unistr/u32-cmp2'.
3389         * modules/unistr/u32-cmp2-tests: New file.
3390         * tests/unistr/test-u32-cmp2.c: New file.
3391
3392         Tests for module 'unistr/u16-cmp2'.
3393         * modules/unistr/u16-cmp2-tests: New file.
3394         * tests/unistr/test-u16-cmp2.c: New file.
3395
3396         Tests for module 'unistr/u8-cmp2'.
3397         * modules/unistr/u8-cmp2-tests: New file.
3398         * tests/unistr/test-u8-cmp2.c: New file.
3399         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3400
3401         Tests for module 'unistr/u32-cmp'.
3402         * modules/unistr/u32-cmp-tests: New file.
3403         * tests/unistr/test-u32-cmp.c: New file.
3404
3405         Tests for module 'unistr/u16-cmp'.
3406         * modules/unistr/u16-cmp-tests: New file.
3407         * tests/unistr/test-u16-cmp.c: New file.
3408
3409         Tests for module 'unistr/u8-cmp'.
3410         * modules/unistr/u8-cmp-tests: New file.
3411         * tests/unistr/test-u8-cmp.c: New file.
3412         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3413
3414         Tests for module 'unistr/u32-set'.
3415         * modules/unistr/u32-set-tests: New file.
3416         * tests/unistr/test-u32-set.c: New file.
3417
3418         Tests for module 'unistr/u16-set'.
3419         * modules/unistr/u16-set-tests: New file.
3420         * tests/unistr/test-u16-set.c: New file.
3421
3422         Tests for module 'unistr/u8-set'.
3423         * modules/unistr/u8-set-tests: New file.
3424         * tests/unistr/test-u8-set.c: New file.
3425         * tests/unistr/test-set.h: New file.
3426
3427         Tests for module 'unistr/u32-move'.
3428         * modules/unistr/u32-move-tests: New file.
3429         * tests/unistr/test-u32-move.c: New file.
3430
3431         Tests for module 'unistr/u16-move'.
3432         * modules/unistr/u16-move-tests: New file.
3433         * tests/unistr/test-u16-move.c: New file.
3434
3435         Tests for module 'unistr/u8-move'.
3436         * modules/unistr/u8-move-tests: New file.
3437         * tests/unistr/test-u8-move.c: New file.
3438         * tests/unistr/test-move.h: New file.
3439
3440         Tests for module 'unistr/u32-cpy'.
3441         * modules/unistr/u32-cpy-tests: New file.
3442         * tests/unistr/test-u32-cpy.c: New file.
3443
3444         Tests for module 'unistr/u16-cpy'.
3445         * modules/unistr/u16-cpy-tests: New file.
3446         * tests/unistr/test-u16-cpy.c: New file.
3447
3448         Tests for module 'unistr/u8-cpy'.
3449         * modules/unistr/u8-cpy-tests: New file.
3450         * tests/unistr/test-u8-cpy.c: New file.
3451         * tests/unistr/test-cpy.h: New file.
3452
3453 2010-01-09  Bruno Haible  <bruno@clisp.org>
3454
3455         Tests for module 'unistr/u32-uctomb'.
3456         * modules/unistr/u32-uctomb-tests: New file.
3457         * tests/unistr/test-u32-uctomb.c: New file.
3458
3459         Tests for module 'unistr/u16-uctomb'.
3460         * modules/unistr/u16-uctomb-tests: New file.
3461         * tests/unistr/test-u16-uctomb.c: New file.
3462
3463         Tests for module 'unistr/u8-uctomb'.
3464         * modules/unistr/u8-uctomb-tests: New file.
3465         * tests/unistr/test-u8-uctomb.c: New file.
3466
3467         Tests for module 'unistr/u32-mbtoucr'.
3468         * modules/unistr/u32-mbtoucr-tests: New file.
3469         * tests/unistr/test-u32-mbtoucr.c: New file.
3470
3471         Tests for module 'unistr/u16-mbtoucr'.
3472         * modules/unistr/u16-mbtoucr-tests: New file.
3473         * tests/unistr/test-u16-mbtoucr.c: New file.
3474
3475         Tests for module 'unistr/u8-mbtoucr'.
3476         * modules/unistr/u8-mbtoucr-tests: New file.
3477         * tests/unistr/test-u8-mbtoucr.c: New file.
3478
3479         Tests for module 'unistr/u32-mbtouc'.
3480         * modules/unistr/u32-mbtouc-tests: New file.
3481         * tests/unistr/test-u32-mbtouc.c: New file.
3482
3483         Tests for module 'unistr/u16-mbtouc'.
3484         * modules/unistr/u16-mbtouc-tests: New file.
3485         * tests/unistr/test-u16-mbtouc.c: New file.
3486
3487         Tests for module 'unistr/u8-mbtouc'.
3488         * modules/unistr/u8-mbtouc-tests: New file.
3489         * tests/unistr/test-u8-mbtouc.c: New file.
3490
3491         Tests for module 'unistr/u32-mbtouc-unsafe'.
3492         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3493         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3494         * tests/unistr/test-u32-mbtouc.h: New file.
3495
3496         Tests for module 'unistr/u16-mbtouc-unsafe'.
3497         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3498         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3499         * tests/unistr/test-u16-mbtouc.h: New file.
3500
3501         Tests for module 'unistr/u8-mbtouc-unsafe'.
3502         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3503         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3504         * tests/unistr/test-u8-mbtouc.h: New file.
3505
3506         Tests for module 'unistr/u32-mblen'.
3507         * modules/unistr/u32-mblen-tests: New file.
3508         * tests/unistr/test-u32-mblen.c: New file.
3509
3510         Tests for module 'unistr/u16-mblen'.
3511         * modules/unistr/u16-mblen-tests: New file.
3512         * tests/unistr/test-u16-mblen.c: New file.
3513
3514         Tests for module 'unistr/u8-mblen'.
3515         * modules/unistr/u8-mblen-tests: New file.
3516         * tests/unistr/test-u8-mblen.c: New file.
3517
3518         Tests for module 'unistr/u32-to-u16'.
3519         * modules/unistr/u32-to-u16-tests: New file.
3520         * tests/unistr/test-u32-to-u16.c: New file.
3521
3522         Tests for module 'unistr/u32-to-u8'.
3523         * modules/unistr/u32-to-u8-tests: New file.
3524         * tests/unistr/test-u32-to-u8.c: New file.
3525
3526         Tests for module 'unistr/u16-to-u32'.
3527         * modules/unistr/u16-to-u32-tests: New file.
3528         * tests/unistr/test-u16-to-u32.c: New file.
3529
3530         Tests for module 'unistr/u16-to-u8'.
3531         * modules/unistr/u16-to-u8-tests: New file.
3532         * tests/unistr/test-u16-to-u8.c: New file.
3533
3534         Tests for module 'unistr/u8-to-u32'.
3535         * modules/unistr/u8-to-u32-tests: New file.
3536         * tests/unistr/test-u8-to-u32.c: New file.
3537
3538         Tests for module 'unistr/u8-to-u16'.
3539         * modules/unistr/u8-to-u16-tests: New file.
3540         * tests/unistr/test-u8-to-u16.c: New file.
3541
3542         Tests for module 'unistr/u32-check'.
3543         * modules/unistr/u32-check-tests: New file.
3544         * tests/unistr/test-u32-check.c: New file.
3545
3546         Tests for module 'unistr/u16-check'.
3547         * modules/unistr/u16-check-tests: New file.
3548         * tests/unistr/test-u16-check.c: New file.
3549
3550         Tests for module 'unistr/u8-check'.
3551         * modules/unistr/u8-check-tests: New file.
3552         * tests/unistr/test-u8-check.c: New file.
3553
3554         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3555         (category_equals): New function.
3556         (main): Add more tests.
3557         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3558
3559         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3560
3561 2010-01-10  Bruno Haible  <bruno@clisp.org>
3562
3563         unistr/u*-strcoll: Try harder to distinguish different strings.
3564         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3565         compare s1 and s2 to see if they are different.
3566
3567 2010-01-10  Bruno Haible  <bruno@clisp.org>
3568
3569         unistr/u*-stpncpy: Fix the return value.
3570         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3571         description of the return value consistent with stpncpy in glibc.
3572         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3573         written non-NUL unit.
3574
3575 2010-01-10  Bruno Haible  <bruno@clisp.org>
3576
3577         unistr/u*-next: Add missing dependencies.
3578         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3579         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3580         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3581
3582 2010-01-10  Bruno Haible  <bruno@clisp.org>
3583
3584         unistr/u8-mbsnlen: Fix return value for incomplete character.
3585         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3586         u8_mblen.
3587         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3588         Remove unistr/u8-mblen.
3589         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3590         u16_mblen.
3591         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3592         Remove unistr/u16-mblen.
3593
3594 2010-01-10  Bruno Haible  <bruno@clisp.org>
3595
3596         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3597         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3598         Reported by Brian Gough <bjg@gnu.org> and
3599         Chris Clayton <chris2553@googlemail.com> via
3600         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3601
3602 2010-01-09  Bruno Haible  <bruno@clisp.org>
3603
3604         unistr/u16-to-u32: Reject invalid input.
3605         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3606         u16_mbtouc.
3607         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3608         Remove unistr/u16-mbtouc.
3609
3610         unistr/u16-to-u8: Reject invalid input.
3611         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3612         u16_mbtouc.
3613         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3614         Remove unistr/u16-mbtouc.
3615
3616         unistr/u8-to-u32: Reject invalid input.
3617         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3618         u8_mbtouc.
3619         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3620         Remove unistr/u8-mbtouc.
3621
3622         unistr/u8-to-u16: Reject invalid input.
3623         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3624         u8_mbtouc.
3625         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3626         Remove unistr/u8-mbtouc.
3627
3628 2010-01-09  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'getlogin'.
3631         * modules/getlogin-tests: New file.
3632         * tests/test-getlogin.c: New file.
3633
3634         New module 'getlogin'.
3635         * lib/unistd.in.h (getlogin): New declaration.
3636         * lib/getlogin.c: New file.
3637         * m4/getlogin.m4: New file.
3638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3639         HAVE_GETLOGIN.
3640         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3641         HAVE_GETLOGIN.
3642         * modules/getlogin: New file.
3643         * doc/posix-functions/getlogin.texi: Mention the new module.
3644         Reported by John W. Eaton <jwe@gnu.org>.
3645
3646 2010-01-09  Bruno Haible  <bruno@clisp.org>
3647
3648         getlogin_r: Support for native Windows.
3649         * lib/getlogin_r.c: Include <windows.h>
3650         (getlogin_r): Implement for native Windows.
3651         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3652         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3653         via John W. Eaton <jwe@gnu.org>.
3654
3655 2010-01-09  Bruno Haible  <bruno@clisp.org>
3656
3657         getlogin_r: Small fixes.
3658         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3659         succeeds.
3660         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3661         before testing whether getlogin_r is declared. No need to set
3662         HAVE_DECL_GETLOGIN_R to 1.
3663         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3664
3665 2010-01-09  Bruno Haible  <bruno@clisp.org>
3666
3667         * lib/unistd.in.h (getlogin_r): Add comment.
3668
3669 2010-01-09  Bruno Haible  <bruno@clisp.org>
3670
3671         Tests for module 'getlogin_r'.
3672         * modules/getlogin_r-tests: New file.
3673         * tests/test-getlogin_r.c: New file.
3674
3675 2010-01-09  Jim Meyering  <meyering@redhat.com>
3676
3677         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3678         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3679         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3680
3681 2010-01-08  Simon Josefsson  <simon@josefsson.org>
3682
3683         * lib/dup2.c (rpl_dup2): Improve comment.
3684
3685 2010-01-08  Eric Blake  <ebb9@byu.net>
3686
3687         maint.mk: allow packages to add makefile @@ exceptions
3688         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
3689         (sc_makefile_check): Rename...
3690         (sc_makefile_at_at_check): ...to this, and use hook.
3691
3692         dup2: work around mingw bug
3693         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
3694         Reported by Simon Josefsson.
3695
3696 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
3697
3698         glob: Fix C++ compilation.
3699         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
3700         C++.
3701
3702 2010-01-07  Bruno Haible  <bruno@clisp.org>
3703
3704         Fix indentation of wctype.in.h, broken since 2007-01-06.
3705         * lib/wctype.in.h: Fix indentation of preprocessor directives.
3706
3707 2010-01-07  Bruno Haible  <bruno@clisp.org>
3708
3709         mbslen: Avoid collision with system function.
3710         * lib/string.in.h [MirBSD]: Include <wchar.h>.
3711         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
3712         * m4/mbslen.m4: New file.
3713         * modules/mbslen (Files): Add it.
3714         (configure.ac): Invoke gl_MBSLEN.
3715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
3716         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
3717         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
3718         via Ian Beckwith <ianb@erislabs.net>.
3719
3720 2010-01-07  Bruno Haible  <bruno@clisp.org>
3721
3722         dirent: Document the last fix.
3723         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
3724
3725 2010-01-07  Bruno Haible  <bruno@clisp.org>
3726
3727         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
3728         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
3729         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
3730         va_list are defined.
3731         * doc/posix-headers/stdio.texi: Document the bug of missing types.
3732         Reported by Eric Blake.
3733
3734 2010-01-07  Bruno Haible  <bruno@clisp.org>
3735
3736         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
3737         * modules/xlist (Depends-on): Add 'list',
3738         * modules/xoset (Depends-on): Add 'oset'.
3739         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3740
3741 2010-01-07  Bruno Haible  <bruno@clisp.org>
3742
3743         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
3744         * doc/posix-functions/strncasecmp.texi: Likewise.
3745
3746 2010-01-07  Bruno Haible  <bruno@clisp.org>
3747
3748         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
3749
3750 2010-01-07  John W. Eaton  <jwe@octave.org>
3751
3752         wctype: allow C++ use
3753         * lib/wctype.in.h: Add extern "C" block for C++.
3754
3755 2010-01-06  Eric Blake  <ebb9@byu.net>
3756
3757         maint.mk: detect incorrect GFDL usage
3758         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
3759
3760 2010-01-06  Jim Meyering  <meyering@redhat.com>
3761         and Eric Blake  <ebb9@byu.net>
3762
3763         maint.mk: ignore multi-line copyright in NEWS
3764         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
3765
3766 2010-01-06  Eric Blake  <ebb9@byu.net>
3767
3768         select: add missing dependency
3769         * modules/select-tests (Depends-on): Move sockets dependency...
3770         * modules/select (Depends-on): ...here.
3771         Reported by Ian Beckwith.
3772
3773         doc: regenerate INSTALL
3774         * doc/INSTALL: Reflect recent autoconf update.
3775         * doc/INSTALL.ISO: Likewise.
3776         * doc/INSTALL.UTF-8: Likewise.
3777
3778         pread: fix compilation on glibc
3779         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
3780         Reported by Ralf Wildenhues.
3781
3782         dirent: fix test failure
3783         * lib/dirent.in.h (includes): Guarantee ino_t.
3784         Reported by Ralf Wildenhues.
3785
3786 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
3787
3788         linkat, renameat: avoid bad free
3789         * lib/at-func2.c (at_func2): Fix typo.
3790         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
3791
3792 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3793
3794         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
3795         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
3796         to avoid failure of symlink test later.
3797
3798 2010-01-06  Eric Blake  <ebb9@byu.net>
3799
3800         stdio, unistd: guarantee ssize_t
3801         * lib/unistd.in.h (includes): Ensure that types required by POSIX
3802         2008 are exposed when needed.
3803         * lib/stdio.in.h (includes): Likewise.
3804         Reported by Ralf Wildenhues.
3805
3806 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
3807
3808         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
3809         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
3810         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
3811
3812 2010-01-06  Jim Meyering  <meyering@redhat.com>
3813
3814         readtokens: this module *does* require xalloc.h
3815         It uses only functions that were omitted by the old syntax-check rule.
3816         * lib/readtokens.c: Include "xalloc.h" once again.
3817         * modules/readtokens (Depends-on): Add xalloc.
3818         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
3819
3820 2010-01-05  Eric Blake  <ebb9@byu.net>
3821
3822         maint: support 'make announcement' from a VPATH build
3823         * top/maint.mk (announcement): Look for correct NEWS file.
3824
3825 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
3826
3827         utimens (fdutimens): ignore a negative FD, per contract
3828         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
3829         when we have a valid file descriptor.  Otherwise, using a brand
3830         new glibc (with just-patched futimens that now fails with EBADF)
3831         would cause this function to fail with ENOSYS.
3832         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
3833         See also http://bugzilla.redhat.com/552320.
3834
3835 2010-01-05  Eric Blake  <ebb9@byu.net>
3836
3837         strcase: document what it provides
3838         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
3839         gnulib module.
3840         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
3841         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
3842
3843 2010-01-05  Jim Meyering  <meyering@redhat.com>
3844
3845         maint: remove useless inclusions of "xalloc.h"
3846         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
3847         * lib/readtokens.c: Likewise.
3848         * lib/same.c: Likewise.
3849         * modules/getloadavg (Depends-on): Remove xalloc.
3850         * modules/readtokens: Likewise.
3851         * modules/same: Likewise.
3852
3853         maint.mk: include 4 more function names in alloca.h-checking regexp
3854         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
3855         regexp.  Before, we would give a false-positive (saying alloca.h
3856         is included unnecessarily) when the only uses involved omitted symbols.
3857
3858         xalloc.h: use consistent formatting
3859         * lib/xalloc.h: Move declarations to start in the first column.
3860
3861 2010-01-05  Eric Blake  <ebb9@byu.net>
3862
3863         mkdir: avoid xalloc
3864         * lib/mkdir.c (includes): Drop unused header.
3865         Reported by John W. Eaton.
3866
3867 2010-01-04  Jim Meyering  <meyering@redhat.com>
3868
3869         nl_langinfo: avoid configure-time syntax error
3870         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
3871         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
3872         the empty string.  Don't let that provoke a shell syntax error.
3873
3874         regcomp, regexec, fnmatch: avoid array bounds read error
3875         * lib/regcomp.c (build_equiv_class): From glibc:
3876         Use only the low 24 bits of a findidx return value as an index
3877         into the weights array.  Patch by Ulrich Drepper:
3878         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
3879         * lib/regexec.c (check_node_accept_bytes): Likewise.
3880         * lib/fnmatch_loop.c (FCT): Likewise.
3881
3882         regcomp: skip collseq lookup when there are no rules
3883         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
3884         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
3885
3886         regcomp: recognize ill-formed { } expressions
3887         * lib/regcomp.c (parse_dup_op): From glibc:
3888         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
3889
3890         regcomp: fix typo in comment
3891         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
3892         s/satisfy/satisfies/.
3893
3894         regcomp: sync from glibc: remove dead store
3895         * lib/regcomp.c (duplicate_node_closure): Remove useless
3896         search_duplicated_node call and dead store.
3897
3898         regcomp: sync from glibc; always use nl_langinfo
3899         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
3900         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
3901         * modules/regex (Depends-on): Add nl_langinfo.
3902
3903 2010-01-04  Eric Blake  <ebb9@byu.net>
3904
3905         fdopendir: fix configure test
3906         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
3907
3908 2010-01-01  Bruno Haible  <bruno@clisp.org>
3909
3910         wchar: Remove unused configure check.
3911         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
3912
3913 2010-01-01  Eric Blake  <ebb9@byu.net>
3914
3915         headers: make check of system header explicit
3916         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
3917         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
3918         ourselves.
3919         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3920         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
3922         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
3923         internals.
3924         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
3925         missing.
3926         Suggested by Bruno Haible.
3927
3928 2010-01-01  Jim Meyering  <meyering@redhat.com>
3929
3930         ChangeLog: tweak to eliminate unnecessary copyright line
3931         * ChangeLog: Remove a copyright line that was mistakenly updated
3932         by today's update-copyright run.  Reported by Eric Blake.
3933
3934         test-update-copyright: don't let envvar setting cause test failure
3935         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3936
3937 2010-01-01  Bruno Haible  <bruno@clisp.org>
3938
3939         localename: Avoid gcc warning.
3940         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
3941         function if it is not used.
3942
3943 2010-01-01  Jim Meyering  <meyering@redhat.com>
3944
3945         update nearly all FSF copyright year lists to include 2010
3946         Use the same procedure as for 2009, outlined in
3947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
3948
3949         version-etc: set COPYRIGHT_YEAR to 2010
3950         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
3951
3952 2009-12-31  Eric Blake  <ebb9@byu.net>
3953
3954         doc: correct availability of cygwin 1.5.x getopt
3955         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
3956         variables.
3957         * doc/posix-functions/opterr.texi (opterr): Likewise.
3958         * doc/posix-functions/optind.texi (optind): Likewise.
3959         * doc/posix-functions/optopt.texi (optopt): Likewise.
3960         * doc/posix-functions/tzname.texi (tzname): Likewise.
3961
3962         openat: update maintainer
3963         * modules/openat (Maintainer): Add myself.
3964
3965         utimens: avoid shadowing warning
3966         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
3967         buffers into one, to avoid shadowing, as well as avoiding a
3968         redundant stat.
3969         Reported by Jim Meyering.
3970
3971         test-dup2: avoid compiler warning
3972         * tests/test-dup2.c (is_inheritable): Only define if used.
3973
3974 2010-01-01  Bruno Haible  <bruno@clisp.org>
3975
3976         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
3977         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
3978         defined, use wctomb instead of wcrtomb.
3979
3980 2010-01-01  Bruno Haible  <bruno@clisp.org>
3981
3982         iconv: Reject native Solaris iconv.
3983         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
3984         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
3985
3986 2009-12-31  Bruno Haible  <bruno@clisp.org>
3987
3988         * tests/test-signal.c (main): Remove test of 'SIG'.
3989
3990 2009-12-31  Bruno Haible  <bruno@clisp.org>
3991
3992         spawn: Fix incomplete fix.
3993         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3994         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3995         warnings for GNULIB_POSIXCHECK again.
3996         Reported by Eric Blake.
3997
3998 2009-12-31  Bruno Haible  <bruno@clisp.org>
3999
4000         Avoid namespace pollution on glibc systems.
4001         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4002         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4003         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4004         glibc systems.
4005
4006 2009-12-31  Bruno Haible  <bruno@clisp.org>
4007
4008         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4009         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4010         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4011         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4012         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4013         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4014         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4015
4016 2009-12-31  Bruno Haible  <bruno@clisp.org>
4017
4018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4019         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4020         afterwards.
4021
4022 2009-12-31  Bruno Haible  <bruno@clisp.org>
4023
4024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4025         SYS_UTSNAME_H.
4026
4027 2009-12-31  Bruno Haible  <bruno@clisp.org>
4028
4029         spawn: Fix misapplied patch.
4030         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4031         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4032         warnings for GNULIB_POSIXCHECK.
4033
4034 2009-12-31  Bruno Haible  <bruno@clisp.org>
4035
4036         times: Update after sys_times changed.
4037         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4038         * modules/times (Files): Add it.
4039         (configure.ac): Invoke gl_FUNC_TIMES.
4040
4041 2009-12-31  Bruno Haible  <bruno@clisp.org>
4042
4043         Use AC_C_INLINE where necessary.
4044         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4045         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4046         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4047         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4048         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4049         * m4/mbiter.m4 (gl_MBITER): Likewise.
4050         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4051         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4052         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4053         * modules/u64 (configure.ac): Likewise.
4054
4055 2009-12-31  Bruno Haible  <bruno@clisp.org>
4056
4057         Use AC_C_INLINE instead of module 'inline' where possible.
4058         * modules/inline (Description): Clarify purpose.
4059         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4060         * modules/count-one-bits (Depends-on): Remove inline.
4061         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4062         * modules/openat (Depends-on): Remove inline.
4063         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4064         instead of depending on module 'inline'.
4065         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4066         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4067         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4068         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4069         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4070         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4071         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4072         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4073         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4074         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4075         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4076         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4077         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4078         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4079         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4080         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4081         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4082         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4083         Likewise.
4084         * modules/unictype/property-ascii-hex-digit (Depends-on,
4085         configure.ac): Likewise.
4086         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4087         configure.ac): Likewise.
4088         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4089         configure.ac): Likewise.
4090         * modules/unictype/property-bidi-block-separator (Depends-on,
4091         configure.ac): Likewise.
4092         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4093         configure.ac): Likewise.
4094         * modules/unictype/property-bidi-common-separator (Depends-on,
4095         configure.ac): Likewise.
4096         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4097         Likewise.
4098         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4099         configure.ac): Likewise.
4100         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4101         configure.ac): Likewise.
4102         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4103         configure.ac): Likewise.
4104         * modules/unictype/property-bidi-european-digit (Depends-on,
4105         configure.ac): Likewise.
4106         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4107         configure.ac): Likewise.
4108         * modules/unictype/property-bidi-left-to-right (Depends-on,
4109         configure.ac): Likewise.
4110         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4111         configure.ac): Likewise.
4112         * modules/unictype/property-bidi-other-neutral (Depends-on,
4113         configure.ac): Likewise.
4114         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4115         Likewise.
4116         * modules/unictype/property-bidi-segment-separator (Depends-on,
4117         configure.ac): Likewise.
4118         * modules/unictype/property-bidi-whitespace (Depends-on,
4119         configure.ac): Likewise.
4120         * modules/unictype/property-combining (Depends-on, configure.ac):
4121         Likewise.
4122         * modules/unictype/property-composite (Depends-on, configure.ac):
4123         Likewise.
4124         * modules/unictype/property-currency-symbol (Depends-on,
4125         configure.ac): Likewise.
4126         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4127         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4128         Likewise.
4129         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4130         configure.ac): Likewise.
4131         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4132         Likewise.
4133         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4134         Likewise.
4135         * modules/unictype/property-extender (Depends-on, configure.ac):
4136         Likewise.
4137         * modules/unictype/property-format-control (Depends-on, configure.ac):
4138         Likewise.
4139         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4140         Likewise.
4141         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4142         Likewise.
4143         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4144         Likewise.
4145         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4146         Likewise.
4147         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4148         Likewise.
4149         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4150         Likewise.
4151         * modules/unictype/property-id-start (Depends-on, configure.ac):
4152         Likewise.
4153         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4154         Likewise.
4155         * modules/unictype/property-ids-binary-operator (Depends-on,
4156         configure.ac): Likewise.
4157         * modules/unictype/property-ids-trinary-operator (Depends-on,
4158         configure.ac): Likewise.
4159         * modules/unictype/property-ignorable-control (Depends-on,
4160         configure.ac): Likewise.
4161         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4162         Likewise.
4163         * modules/unictype/property-join-control (Depends-on, configure.ac):
4164         Likewise.
4165         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4166         Likewise.
4167         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4168         Likewise.
4169         * modules/unictype/property-logical-order-exception (Depends-on,
4170         configure.ac): Likewise.
4171         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4172         Likewise.
4173         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4174         * modules/unictype/property-non-break (Depends-on, configure.ac):
4175         Likewise.
4176         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4177         Likewise.
4178         * modules/unictype/property-numeric (Depends-on, configure.ac):
4179         Likewise.
4180         * modules/unictype/property-other-alphabetic (Depends-on,
4181         configure.ac): Likewise.
4182         * modules/unictype/property-other-default-ignorable-code-point
4183         (Depends-on, configure.ac): Likewise.
4184         * modules/unictype/property-other-grapheme-extend (Depends-on,
4185         configure.ac): Likewise.
4186         * modules/unictype/property-other-id-continue (Depends-on,
4187         configure.ac): Likewise.
4188         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4189         Likewise.
4190         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4191         Likewise.
4192         * modules/unictype/property-other-math (Depends-on, configure.ac):
4193         Likewise.
4194         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4195         Likewise.
4196         * modules/unictype/property-paired-punctuation (Depends-on,
4197         configure.ac): Likewise.
4198         * modules/unictype/property-paragraph-separator (Depends-on,
4199         configure.ac): Likewise.
4200         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4201         Likewise.
4202         * modules/unictype/property-pattern-white-space (Depends-on,
4203         configure.ac): Likewise.
4204         * modules/unictype/property-private-use (Depends-on, configure.ac):
4205         Likewise.
4206         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4207         Likewise.
4208         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4209         Likewise.
4210         * modules/unictype/property-radical (Depends-on, configure.ac):
4211         Likewise.
4212         * modules/unictype/property-sentence-terminal (Depends-on,
4213         configure.ac): Likewise.
4214         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4215         Likewise.
4216         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4217         * modules/unictype/property-terminal-punctuation (Depends-on,
4218         configure.ac): Likewise.
4219         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4220         Likewise.
4221         * modules/unictype/property-unassigned-code-value (Depends-on,
4222         configure.ac): Likewise.
4223         * modules/unictype/property-unified-ideograph (Depends-on,
4224         configure.ac): Likewise.
4225         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4226         Likewise.
4227         * modules/unictype/property-variation-selector (Depends-on,
4228         configure.ac): Likewise.
4229         * modules/unictype/property-white-space (Depends-on, configure.ac):
4230         Likewise.
4231         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4232         Likewise.
4233         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4234         Likewise.
4235         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4236         Likewise.
4237         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4238         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4239         Likewise.
4240
4241 2009-12-31  Bruno Haible  <bruno@clisp.org>
4242
4243         Remove unnecessary AC_C_INLINE invocation.
4244         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4245         since 2009-08-21.
4246
4247 2009-12-31  Jim Meyering  <meyering@redhat.com>
4248
4249         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4250         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4251         With this change, we can all remove the gpg_key_ID = ... definition
4252         from our respective cfg.mk files.
4253
4254         maint.mk: create announcement template in ~/, not in /tmp
4255         * top/maint.mk (emit_upload_commands): Adjust.
4256         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4257         Remove temporary file, .ci-msg.
4258
4259 2009-12-31  Eric Blake  <ebb9@byu.net>
4260
4261         link-warning: always build headers with link warnings
4262         * modules/arpa_inet (Makefile.am): Always build replacement
4263         header.
4264         * modules/ctype (Makefile.am): Likewise.
4265         * modules/dirent (Makefile.am): Likewise.
4266         * modules/inttypes (Makefile.am): Likewise.
4267         * modules/langinfo (Makefile.am): Likewise.
4268         * modules/locale (Makefile.am): Likewise.
4269         * modules/spawn (Makefile.am): Likewise.
4270         * modules/sys_file (Makefile.am): Likewise.
4271         * modules/sys_ioctl (Makefile.am): Likewise.
4272         * modules/sys_select (Makefile.am): Likewise.
4273         * modules/sys_socket (Makefile.am): Likewise.
4274         * modules/sys_times (Makefile.am): Likewise.
4275         * modules/sys_utsname (Makefile.am): Likewise.
4276         * modules/sys_wait (Makefile.am): Likewise.
4277         * modules/wchar (Makefile.am): Likewise.
4278         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4279         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4280         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4281         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4282         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4283         Likewise.
4284         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4285         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4286         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4287         Likewise.
4288         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4289         Likewise.
4290         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4292         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4294         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4295         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4296         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4297         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4298         (gl_WCHAR_H_DEFAULTS): Likewise.
4299
4300 2009-12-31  Eric Blake  <ebb9@byu.net>
4301
4302         signal, spawn: use link warnings
4303         * lib/signal.in.h (sigset_t): Make unconditional.
4304         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4305         (sigpending, sigprocmask, sigaction): Add link warnings.
4306         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4307         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4308         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4309         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4310         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4311         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4312         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4313         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4314         (posix_spawn_file_actions_destroy)
4315         (posix_spawn_file_actions_addopen)
4316         (posix_spawn_file_actions_addclose)
4317         (posix_spawn_file_actions_adddup2): Likewise.
4318         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4319         * tests/test-signal.c (main): Enhance test.
4320
4321         spawn: improve wrapper support
4322         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4323         (gl_SPAWN_H_DEFAULTS): New defaults.
4324         * modules/spawn (Makefile.am): Substitute them.
4325         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4326         Only declare if missing or broken.
4327
4328         sys_times, sys_utsname: use include_next
4329         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4330         header.
4331         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4332         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4333         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4334         * modules/sys_times (Depends-on): Add include_next.
4335         (Makefile.am): Substitute additional values.
4336         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4337         * lib/sys_times.in.h (includes): Include native header, if
4338         available.
4339         * lib/sys_utsname.in.h (includes): Likewise.
4340         * tests/test-sys_times.c (main): Enhance test.
4341
4342         fdutimensat: revert prior patch
4343         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4344         utimens.h.
4345         Reported by Bruno Haible.
4346
4347 2009-12-30  Eric Blake  <ebb9@byu.net>
4348
4349         sys_wait: drop link-warning dependency
4350         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4351         link-warning efforts.
4352         * lib/sys_wait.in.h: Likewise.
4353
4354         fdutimensat: remove bogus dependency
4355         * modules/fdutimensat (Depends-on): Drop inline.
4356
4357         unistd: fix typo
4358         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4359
4360 2009-12-30  Bruno Haible  <bruno@clisp.org>
4361
4362         Fix compilation error with Solaris cc.
4363         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4364         * lib/unicase/u16-is-invariant.c: Likewise.
4365         * lib/unicase/u32-is-invariant.c: Likewise.
4366         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4367
4368 2009-12-30  Bruno Haible  <bruno@clisp.org>
4369
4370         Fix test crash.
4371         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4372         locales.
4373         Reported by Simon Josefsson <simon@josefsson.org>.
4374
4375 2009-12-30  Bruno Haible  <bruno@clisp.org>
4376
4377         Fix compilation error on most platforms.
4378         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4379         Reported by Simon Josefsson <simon@josefsson.org>
4380         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4381
4382 2009-12-30  Eric Blake  <ebb9@byu.net>
4383
4384         futimens, utimensat: work around ntfs-3g bug
4385         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4386         a ctime bug is present, and expand workaround to cover ntfs-3g.
4387         * lib/utimens.c (fdutimens, lutimens): Likewise.
4388         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4389         (validate_timespec): Adjust return value.
4390         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4391         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4392         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4393
4394 2009-12-29  Eric Blake  <ebb9@byu.net>
4395
4396         link-warning: make usage consistent
4397         * modules/ctype (Depends-on): Add link-warning.
4398         (Makefile.am): Update rules accordingly.
4399         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4400         * modules/locale (Depends-on, Makefile.am): Likewise.
4401         * modules/sys_file (Makefile.am): Likewise.
4402         * modules/getopt-posix (Makefile.am): Delete unused link warning
4403         efforts.
4404         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4405         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4406         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4407         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4408
4409         stdio: remove unused variables
4410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4412         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4413
4414         tests: test more substitute headers
4415         * modules/ctype-tests: New file.
4416         * modules/dirent-tests: Likewise.
4417         * modules/spawn-tests: Likewise.
4418         * modules/sys_file-tests: Likewise.
4419         * modules/sys_ioctl-tests: Likewise.
4420         * modules/sys_wait-tests: Likewise.
4421         * tests/test-ctype.c: Likewise.
4422         * tests/test-dirent.c: Likewise.
4423         * tests/test-spawn.c: Likewise.
4424         * tests/test-sys_file.c: Likewise.
4425         * tests/test-sys_ioctl.c: Likewise.
4426         * tests/test-sys_wait.c: Likewise.
4427         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4428         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4429         whether or not flock is in use.
4430
4431         tests: remove License section from module
4432         * modules/arpa_inet-tests: Remove unneeded section.
4433         * modules/byteswap-tests: Likewise.
4434         * modules/ceilf-tests: Likewise.
4435         * modules/ceill-tests: Likewise.
4436         * modules/crypto/des-tests: Likewise.
4437         * modules/crypto/gc-arcfour-tests: Likewise.
4438         * modules/crypto/gc-arctwo-tests: Likewise.
4439         * modules/crypto/gc-des-tests: Likewise.
4440         * modules/crypto/gc-hmac-md5-tests: Likewise.
4441         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4442         * modules/crypto/gc-md2-tests: Likewise.
4443         * modules/crypto/gc-md4-tests: Likewise.
4444         * modules/crypto/gc-md5-tests: Likewise.
4445         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4446         * modules/crypto/gc-rijndael-tests: Likewise.
4447         * modules/crypto/gc-sha1-tests: Likewise.
4448         * modules/crypto/gc-tests: Likewise.
4449         * modules/crypto/md2-tests: Likewise.
4450         * modules/crypto/md4-tests: Likewise.
4451         * modules/fcntl-h-tests: Likewise.
4452         * modules/floorf-tests: Likewise.
4453         * modules/floorl-tests: Likewise.
4454         * modules/frexp-nolibm-tests: Likewise.
4455         * modules/frexp-tests: Likewise.
4456         * modules/frexpl-nolibm-tests: Likewise.
4457         * modules/frexpl-tests: Likewise.
4458         * modules/getaddrinfo-tests: Likewise.
4459         * modules/inttypes-tests: Likewise.
4460         * modules/isfinite-tests: Likewise.
4461         * modules/isinf-tests: Likewise.
4462         * modules/ldexpl-tests: Likewise.
4463         * modules/locale-tests: Likewise.
4464         * modules/math-tests: Likewise.
4465         * modules/netdb-tests: Likewise.
4466         * modules/netinet_in-tests: Likewise.
4467         * modules/printf-frexp-tests: Likewise.
4468         * modules/printf-frexpl-tests: Likewise.
4469         * modules/priv-set-tests: Likewise.
4470         * modules/random_r-tests: Likewise.
4471         * modules/round-tests: Likewise.
4472         * modules/roundf-tests: Likewise.
4473         * modules/roundl-tests: Likewise.
4474         * modules/search-tests: Likewise.
4475         * modules/select-tests: Likewise.
4476         * modules/signal-tests: Likewise.
4477         * modules/stdbool-tests: Likewise.
4478         * modules/stddef-tests: Likewise.
4479         * modules/stdint-tests: Likewise.
4480         * modules/stdio-tests: Likewise.
4481         * modules/stdlib-tests: Likewise.
4482         * modules/string-tests: Likewise.
4483         * modules/strings-tests: Likewise.
4484         * modules/sys_select-tests: Likewise.
4485         * modules/sys_socket-tests: Likewise.
4486         * modules/sys_stat-tests: Likewise.
4487         * modules/sys_time-tests: Likewise.
4488         * modules/sys_utsname-tests: Likewise.
4489         * modules/sysexits-tests: Likewise.
4490         * modules/time-tests: Likewise.
4491         * modules/trunc-tests: Likewise.
4492         * modules/truncf-tests: Likewise.
4493         * modules/truncl-tests: Likewise.
4494         * modules/tsearch-tests: Likewise.
4495         * modules/unistd-tests: Likewise.
4496         * modules/wchar-tests: Likewise.
4497         * modules/wctype-tests: Likewise.
4498
4499         tests: fix license on several tests
4500         * tests/test-des.c: Update to GPLv3+.
4501         * tests/test-flock.c: Likewise.
4502         * tests/test-fsync.c: Likewise.
4503         * tests/test-futimens.h: Likewise.
4504         * tests/test-gc-arcfour.c: Likewise.
4505         * tests/test-gc-arctwo.c: Likewise.
4506         * tests/test-gc-des.c: Likewise.
4507         * tests/test-gc-hmac-md5.c: Likewise.
4508         * tests/test-gc-hmac-sha1.c: Likewise.
4509         * tests/test-gc-md2.c: Likewise.
4510         * tests/test-gc-md4.c: Likewise.
4511         * tests/test-gc-md5.c: Likewise.
4512         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4513         * tests/test-gc-rijndael.c: Likewise.
4514         * tests/test-gc-sha1.c: Likewise.
4515         * tests/test-gc.c: Likewise.
4516         * tests/test-getcwd.c: Likewise.
4517         * tests/test-link.c: Likewise.
4518         * tests/test-link.h: Likewise.
4519         * tests/test-lutimens.h: Likewise.
4520         * tests/test-md2.c: Likewise.
4521         * tests/test-md4.c: Likewise.
4522         * tests/test-mkdir.h: Likewise.
4523         * tests/test-rename.c: Likewise.
4524         * tests/test-rename.h: Likewise.
4525         * tests/test-safe-alloc.c: Likewise.
4526         * tests/test-utimens-common.h: Likewise.
4527         * tests/test-utimens.h: Likewise.
4528
4529         maint: sync license texts
4530         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4531         * doc/gpl-3.0.texi: Revert copyright year update.
4532         * doc/lgpl-3.0.texi: Likewise.
4533
4534 2009-12-29  Jim Meyering  <meyering@redhat.com>
4535
4536         update nearly all FSF copyright year lists to include 2009
4537         The files named by the following are exempted:
4538             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4539               test -f "$dst" && { echo "$dst"; continue; }
4540               test -d "$dst" || continue
4541               echo "$dst"/$(basename "$src")
4542             done > exempt
4543             git ls-files tests/unictype >> exempt
4544         In the remaining files, convert to all-interval notation if
4545         - there is already at least one year interval like 2000-2003
4546         - the file is maintained by me
4547         - the file is in lib/uni*/, where that style already prevails
4548         Otherwise, use update-copyright's default.
4549
4550 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4551         and Eric Blake  <ebb9@byu.net>
4552
4553         tests: don't require debug system() to pass
4554         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4555         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4556         * tests/test-unlink.h (test_unlink_func): Likewise.
4557         * tests/test-fstatat.c (main): ...into callers.
4558         * tests/test-lstat.c (main): Likewise.
4559         * tests/test-rmdir.c (main): Likewise.
4560         * tests/test-unlink.c (main): Likewise.
4561         * tests/test-unlinkat.c (main): Likewise.
4562         * tests/test-areadlink-with-size.c (main): Don't require a
4563         debug-only system call to pass, aiding cross-testing to mingw.
4564         * tests/test-areadlink.c (main): Likewise.
4565         * tests/test-areadlinkat-with-size.c (main): Likewise.
4566         * tests/test-areadlinkat.c (main): Likewise.
4567         * tests/test-canonicalize-lgpl.c (main): Likewise.
4568         * tests/test-canonicalize.c (main): Likewise.
4569         * tests/test-chown.c (main): Likewise.
4570         * tests/test-fchownat.c (main): Likewise.
4571         * tests/test-lchown.c (main): Likewise.
4572         * tests/test-fdutimensat.c (main): Likewise.
4573         * tests/test-futimens.c (main): Likewise.
4574         * tests/test-link.c (main): Likewise.
4575         * tests/test-linkat.c (main): Likewise.
4576         * tests/test-mkdir.c (main): Likewise.
4577         * tests/test-mkdirat.c (main): Likewise.
4578         * tests/test-mkfifo.c (main): Likewise.
4579         * tests/test-mkfifoat.c (main): Likewise.
4580         * tests/test-mknod.c (main): Likewise.
4581         * tests/test-readlink.c (main): Likewise.
4582         * tests/test-remove.c (main): Likewise.
4583         * tests/test-rename.c (main): Likewise.
4584         * tests/test-renameat.c (main): Likewise.
4585         * tests/test-symlink.c (main): Likewise.
4586         * tests/test-symlinkat.c (main): Likewise.
4587         * tests/test-utimens.c (main): Likewise.
4588         * tests/test-utimensat.c (main): Likewise.
4589
4590 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4591
4592         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4593         on $(UNUSED_PARAMETER_H) to avoid build failure.
4594
4595 2009-12-28  Jim Meyering  <meyering@redhat.com>
4596
4597         update-copyright: you may specify a max. line length other than 72
4598         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4599
4600         maint: use consistent FSF copyright line syntax
4601         * lib/posixtm.c: Add missing comma in FSF copyright line.
4602         * lib/posixtm.h: Likewise.
4603         * lib/getugroups.c: Add missing ", Inc.".
4604
4605         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4606         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4607         FSF copyright line.  Remove trailing blanks.
4608
4609 2009-12-28  Eric Blake  <ebb9@byu.net>
4610
4611         test-dup2: reduce dependencies
4612         * modules/cloexec (Configure.ac): Set witness.
4613         * modules/dup2-tests (Depends-on): Drop cloexec.
4614         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4615         not present.
4616         Suggested by Bruno Haible.
4617
4618 2009-12-26  Bruno Haible  <bruno@clisp.org>
4619
4620         Remove an unneeded dependency.
4621         * modules/fseterr (Depends-on): Remove dup2.
4622
4623 2009-12-26  Eric Blake  <ebb9@byu.net>
4624
4625         tests: use macros.h in more places
4626         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4627         (ASSERT_STREAM): Provide default of stderr.
4628         * tests/test-dirent-safer.c: Include macros.h, using alternate
4629         stream for assertions.
4630         * tests/test-dup-safer.c: Likewise.
4631         * tests/test-freopen-safer.c: Likewise.
4632         * tests/test-getopt.c: Likewise.
4633         * tests/test-openat-safer.c: Likewise.
4634         * tests/test-pipe.c: Likewise.
4635         * tests/test-popen-safer.c: Likewise.
4636         * modules/dirent-safer-tests (Files): Include macros.h.
4637         * modules/unistd-safer-tests (Files): Likewise.
4638         * modules/freopen-safer-tests (Files): Likewise.
4639         * modules/getopt-posix-tests (Files): Likewise.
4640         * modules/openat-safer-tests (Files): Likewise.
4641         * modules/pipe-tests (Files): Likewise.
4642
4643 2009-12-26  Bruno Haible  <bruno@clisp.org>
4644
4645         javacomp: Portability fix.
4646         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4647         that it also works on Solaris.
4648
4649 2009-12-26  Bruno Haible  <bruno@clisp.org>
4650
4651         localename: Fix storage allocation of gl_locale_name_thread's result.
4652         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4653         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4654         all platforms that have 'uselocale'.
4655         (gl_locale_name_thread_unsafe): New function, extracted from
4656         gl_locale_name_thread.
4657         (gl_locale_name_thread): Call struniq on all platforms that have
4658         'uselocale'.
4659         * tests/test-localename.c (test_locale_name_thread): Check that the
4660         resulting strings are permanently allocated.
4661         * modules/localename-tests (Depends-on): Add strdup.
4662
4663 2009-12-26  Bruno Haible  <bruno@clisp.org>
4664
4665         * tests/test-localename.c (categories): Fill in the strings.
4666
4667 2009-12-26  Jim Meyering  <meyering@redhat.com>
4668
4669         isdir: complete the removal of m4/isdir.m4
4670         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4671
4672         isdir: clean up, since at least grep still uses it
4673         * lib/isdir.c: Include "isdir.h".
4674         (S_ISDIR): Remove now-unneeded definition.
4675         * modules/isdir (Files): Add lib/isdir.h.
4676         * lib/isdir.h: New file, with declaration.
4677         * m4/isdir.m4: Remove file -- unneeded.
4678
4679 2009-12-25  Bruno Haible  <bruno@clisp.org>
4680
4681         selinux-h: Make generated .h files standalone.
4682         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
4683         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
4684         * lib/se-selinux.in.h: Likewise.
4685         * modules/selinux-h (Depends-on): Add unused-parameter.
4686         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
4687         selinux/selinux.h and selinux/context.h.
4688         Suggested by Eric Blake.
4689
4690 2009-12-25  Bruno Haible  <bruno@clisp.org>
4691
4692         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
4693         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
4694         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
4695         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
4696         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
4697
4698 2009-12-24  Bruno Haible  <bruno@clisp.org>
4699
4700         openat: Fix warning.
4701         * lib/openat-proc.c: Include <unistd.h>.
4702
4703 2009-12-24  Bruno Haible  <bruno@clisp.org>
4704
4705         New module 'unused-parameter'.
4706         * build-aux/unused-parameter.h: New file, extracted from earlier
4707         gnulib-common.m4.
4708         * modules/unused-parameter: New file.
4709         * lib/unistr.h: Include unused-parameter.h.
4710         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
4711         _GL_UNUSED.
4712         * modules/unistr/base (Depends-on): Add unused-parameter.
4713
4714 2009-12-24  Bruno Haible  <bruno@clisp.org>
4715
4716         Add missing dependencies to 'extensions' module.
4717         * m4/extensions.m4: Add comment.
4718         * modules/accept4 (Depends-on): Add extensions.
4719         * modules/dup3 (Depends-on): Likewise.
4720         * modules/fcntl (Depends-on): Likewise.
4721         * modules/futimens (Depends-on): Likewise.
4722         * modules/mknod (Depends-on): Likewise.
4723         * modules/pipe2 (Depends-on): Likewise.
4724         * modules/stat-time (Depends-on): Likewise.
4725         * modules/strcasestr-simple (Depends-on): Likewise.
4726         * modules/strsignal (Depends-on): Likewise.
4727         * modules/utimensat (Depends-on): Likewise.
4728         * modules/localcharset (Depends-on): Likewise. Needed because of
4729         gl_FCNTL_O_FLAGS.
4730         * modules/wcrtomb (Depends-on): Likewise. Needed because of
4731         AC_TYPE_MBSTATE_T.
4732         * modules/wcsnrtombs (Depends-on): Likewise.
4733         * modules/wcsrtombs (Depends-on): Likewise.
4734
4735 2009-12-24  Bruno Haible  <bruno@clisp.org>
4736
4737         binary-io: Avoid gcc warning due to SET_BINARY.
4738         * lib/binary-io.h (SET_BINARY): Cast the result to void.
4739         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
4740
4741 2009-12-24  Bruno Haible  <bruno@clisp.org>
4742
4743         Avoid future namespace pollution on glibc systems.
4744         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
4745         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
4746         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
4747         glibc systems.
4748
4749 2009-12-24  Bruno Haible  <bruno@clisp.org>
4750
4751         Refactor common macros used in tests.
4752         * tests/macros.h: New file.
4753         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
4754         and/or <stdlib.h>, if appropriate.
4755         (ASSERT, SIZEOF): Remove macros.
4756         * tests/test-areadlink-with-size.c: Likewise.
4757         * tests/test-areadlinkat.c: Likewise.
4758         * tests/test-areadlinkat-with-size.c: Likewise.
4759         * tests/test-argmatch.c: Likewise.
4760         * tests/test-argv-iter.c: Likewise.
4761         * tests/test-array-mergesort.c: Likewise.
4762         * tests/test-array_list.c: Likewise.
4763         * tests/test-array_oset.c: Likewise.
4764         * tests/test-avltree_list.c: Likewise.
4765         * tests/test-avltree_oset.c: Likewise.
4766         * tests/test-avltreehash_list.c: Likewise.
4767         * tests/test-base64.c: Likewise.
4768         * tests/test-binary-io.c: Likewise.
4769         * tests/test-bitrotate.c: Likewise.
4770         * tests/test-btowc.c: Likewise.
4771         * tests/test-byteswap.c: Likewise.
4772         * tests/test-c-ctype.c: Likewise.
4773         * tests/test-c-stack.c: Likewise.
4774         * tests/test-c-strcasecmp.c: Likewise.
4775         * tests/test-c-strcasestr.c: Likewise.
4776         * tests/test-c-strncasecmp.c: Likewise.
4777         * tests/test-c-strstr.c: Likewise.
4778         * tests/test-canonicalize-lgpl.c: Likewise.
4779         * tests/test-canonicalize.c: Likewise.
4780         * tests/test-carray_list.c: Likewise.
4781         * tests/test-ceilf1.c: Likewise.
4782         * tests/test-ceilf2.c: Likewise.
4783         * tests/test-ceill.c: Likewise.
4784         * tests/test-chown.c: Likewise.
4785         * tests/test-cloexec.c: Likewise.
4786         * tests/test-copy-acl.c: Likewise.
4787         * tests/test-copy-file.c: Likewise.
4788         * tests/test-count-one-bits.c: Likewise.
4789         * tests/test-dprintf-posix.c: Likewise.
4790         * tests/test-dup2.c: Likewise.
4791         * tests/test-dup3.c: Likewise.
4792         * tests/test-duplocale.c: Likewise.
4793         * tests/test-fbufmode.c: Likewise.
4794         * tests/test-fchdir.c: Likewise.
4795         * tests/test-fchownat.c: Likewise.
4796         * tests/test-fcntl-safer.c: Likewise.
4797         * tests/test-fcntl.c: Likewise.
4798         * tests/test-fdopendir.c: Likewise.
4799         * tests/test-fdutimensat.c: Likewise.
4800         * tests/test-fflush2.c: Likewise.
4801         * tests/test-file-has-acl.c: Likewise.
4802         * tests/test-filevercmp.c: Likewise.
4803         * tests/test-flock.c: Likewise.
4804         * tests/test-floorf1.c: Likewise.
4805         * tests/test-floorf2.c: Likewise.
4806         * tests/test-floorl.c: Likewise.
4807         * tests/test-fnmatch.c: Likewise.
4808         * tests/test-fopen.h: Likewise.
4809         * tests/test-fpending.c: Likewise.
4810         * tests/test-fprintf-posix.c: Likewise.
4811         * tests/test-fpurge.c: Likewise.
4812         * tests/test-freadable.c: Likewise.
4813         * tests/test-freadahead.c: Likewise.
4814         * tests/test-freading.c: Likewise.
4815         * tests/test-freadptr.c: Likewise.
4816         * tests/test-freadptr2.c: Likewise.
4817         * tests/test-freadseek.c: Likewise.
4818         * tests/test-freopen.c: Likewise.
4819         * tests/test-frexp.c: Likewise.
4820         * tests/test-frexpl.c: Likewise.
4821         * tests/test-fseek.c: Likewise.
4822         * tests/test-fseeko.c: Likewise.
4823         * tests/test-fstatat.c: Likewise.
4824         * tests/test-fstrcmp.c: Likewise.
4825         * tests/test-fsync.c: Likewise.
4826         * tests/test-ftell.c: Likewise.
4827         * tests/test-ftello.c: Likewise.
4828         * tests/test-func.c: Likewise.
4829         * tests/test-futimens.c: Likewise.
4830         * tests/test-fwritable.c: Likewise.
4831         * tests/test-fwriting.c: Likewise.
4832         * tests/test-getcwd.c: Likewise.
4833         * tests/test-getdate.c: Likewise.
4834         * tests/test-getdelim.c: Likewise.
4835         * tests/test-getdtablesize.c: Likewise.
4836         * tests/test-getgroups.c: Likewise.
4837         * tests/test-getline.c: Likewise.
4838         * tests/test-getndelim2.c: Likewise.
4839         * tests/test-glob.c: Likewise.
4840         * tests/test-hash.c: Likewise.
4841         * tests/test-i-ring.c: Likewise.
4842         * tests/test-iconv-utf.c: Likewise.
4843         * tests/test-iconv.c: Likewise.
4844         * tests/test-idpriv-drop.c: Likewise.
4845         * tests/test-idpriv-droptemp.c: Likewise.
4846         * tests/test-inet_ntop.c: Likewise.
4847         * tests/test-inet_pton.c: Likewise.
4848         * tests/test-isblank.c: Likewise.
4849         * tests/test-isfinite.c: Likewise.
4850         * tests/test-isinf.c: Likewise.
4851         * tests/test-isnan.c: Likewise.
4852         * tests/test-isnand.h: Likewise.
4853         * tests/test-isnanf.h: Likewise.
4854         * tests/test-isnanl.h: Likewise.
4855         * tests/test-lchown.c: Likewise.
4856         * tests/test-ldexpl.c: Likewise.
4857         * tests/test-link.c: Likewise.
4858         * tests/test-linkat.c: Likewise.
4859         * tests/test-linked_list.c: Likewise.
4860         * tests/test-linkedhash_list.c: Likewise.
4861         * tests/test-localename.c: Likewise.
4862         * tests/test-lseek.c: Likewise.
4863         * tests/test-lstat.c: Likewise.
4864         * tests/test-mbmemcasecmp.c: Likewise.
4865         * tests/test-mbmemcasecoll.c: Likewise.
4866         * tests/test-mbrtowc.c: Likewise.
4867         * tests/test-mbscasecmp.c: Likewise.
4868         * tests/test-mbscasestr1.c: Likewise.
4869         * tests/test-mbscasestr2.c: Likewise.
4870         * tests/test-mbscasestr3.c: Likewise.
4871         * tests/test-mbscasestr4.c: Likewise.
4872         * tests/test-mbschr.c: Likewise.
4873         * tests/test-mbscspn.c: Likewise.
4874         * tests/test-mbsinit.c: Likewise.
4875         * tests/test-mbsncasecmp.c: Likewise.
4876         * tests/test-mbsnrtowcs.c: Likewise.
4877         * tests/test-mbspbrk.c: Likewise.
4878         * tests/test-mbspcasecmp.c: Likewise.
4879         * tests/test-mbsrchr.c: Likewise.
4880         * tests/test-mbsrtowcs.c: Likewise.
4881         * tests/test-mbsspn.c: Likewise.
4882         * tests/test-mbsstr1.c: Likewise.
4883         * tests/test-mbsstr2.c: Likewise.
4884         * tests/test-mbsstr3.c: Likewise.
4885         * tests/test-memchr.c: Likewise.
4886         * tests/test-memchr2.c: Likewise.
4887         * tests/test-memcmp.c: Likewise.
4888         * tests/test-memmem.c: Likewise.
4889         * tests/test-memrchr.c: Likewise.
4890         * tests/test-mkdir.c: Likewise.
4891         * tests/test-mkdirat.c: Likewise.
4892         * tests/test-mkfifo.c: Likewise.
4893         * tests/test-mkfifoat.c: Likewise.
4894         * tests/test-mknod.c: Likewise.
4895         * tests/test-nanosleep.c: Likewise.
4896         * tests/test-nl_langinfo.c: Likewise.
4897         * tests/test-obstack-printf.c: Likewise.
4898         * tests/test-open.c: Likewise.
4899         * tests/test-openat.c: Likewise.
4900         * tests/test-pipe-filter-gi1.c: Likewise.
4901         * tests/test-pipe-filter-gi2-main.c: Likewise.
4902         * tests/test-pipe-filter-ii1.c: Likewise.
4903         * tests/test-pipe-filter-ii2-main.c: Likewise.
4904         * tests/test-pipe2.c: Likewise.
4905         * tests/test-popen.h: Likewise.
4906         * tests/test-posixtm.c: Likewise.
4907         * tests/test-pread.c: Likewise.
4908         * tests/test-printf-frexp.c: Likewise.
4909         * tests/test-printf-frexpl.c: Likewise.
4910         * tests/test-printf-posix.c: Likewise.
4911         * tests/test-priv-set.c: Likewise.
4912         * tests/test-quotearg.c: Likewise.
4913         * tests/test-random_r.c: Likewise.
4914         * tests/test-rawmemchr.c: Likewise.
4915         * tests/test-rbtree_list.c: Likewise.
4916         * tests/test-rbtree_oset.c: Likewise.
4917         * tests/test-rbtreehash_list.c: Likewise.
4918         * tests/test-readlink.c: Likewise.
4919         * tests/test-remove.c: Likewise.
4920         * tests/test-rename.c: Likewise.
4921         * tests/test-renameat.c: Likewise.
4922         * tests/test-rmdir.c: Likewise.
4923         * tests/test-round1.c: Likewise.
4924         * tests/test-roundf1.c: Likewise.
4925         * tests/test-roundl.c: Likewise.
4926         * tests/test-safe-alloc.c: Likewise.
4927         * tests/test-sameacls.c: Likewise.
4928         * tests/test-set-mode-acl.c: Likewise.
4929         * tests/test-setenv.c: Likewise.
4930         * tests/test-sigaction.c: Likewise.
4931         * tests/test-signbit.c: Likewise.
4932         * tests/test-sleep.c: Likewise.
4933         * tests/test-snprintf-posix.c: Likewise.
4934         * tests/test-snprintf.c: Likewise.
4935         * tests/test-sprintf-posix.c: Likewise.
4936         * tests/test-stat-time.c: Likewise.
4937         * tests/test-stat.c: Likewise.
4938         * tests/test-strcasestr.c: Likewise.
4939         * tests/test-strchrnul.c: Likewise.
4940         * tests/test-strerror.c: Likewise.
4941         * tests/test-striconv.c: Likewise.
4942         * tests/test-striconveh.c: Likewise.
4943         * tests/test-striconveha.c: Likewise.
4944         * tests/test-strsignal.c: Likewise.
4945         * tests/test-strstr.c: Likewise.
4946         * tests/test-strtod.c: Likewise.
4947         * tests/test-strverscmp.c: Likewise.
4948         * tests/test-symlink.c: Likewise.
4949         * tests/test-symlinkat.c: Likewise.
4950         * tests/test-trunc1.c: Likewise.
4951         * tests/test-trunc2.c: Likewise.
4952         * tests/test-truncf1.c: Likewise.
4953         * tests/test-truncf2.c: Likewise.
4954         * tests/test-truncl.c: Likewise.
4955         * tests/test-uname.c: Likewise.
4956         * tests/test-unlink.c: Likewise.
4957         * tests/test-unlinkat.c: Likewise.
4958         * tests/test-unsetenv.c: Likewise.
4959         * tests/test-usleep.c: Likewise.
4960         * tests/test-utimens.c: Likewise.
4961         * tests/test-utimensat.c: Likewise.
4962         * tests/test-vasnprintf-posix.c: Likewise.
4963         * tests/test-vasnprintf-posix2.c: Likewise.
4964         * tests/test-vasnprintf.c: Likewise.
4965         * tests/test-vasprintf-posix.c: Likewise.
4966         * tests/test-vasprintf.c: Likewise.
4967         * tests/test-vdprintf-posix.c: Likewise.
4968         * tests/test-vfprintf-posix.c: Likewise.
4969         * tests/test-vprintf-posix.c: Likewise.
4970         * tests/test-vsnprintf-posix.c: Likewise.
4971         * tests/test-vsnprintf.c: Likewise.
4972         * tests/test-vsprintf-posix.c: Likewise.
4973         * tests/test-wcrtomb.c: Likewise.
4974         * tests/test-wcsnrtombs.c: Likewise.
4975         * tests/test-wcsrtombs.c: Likewise.
4976         * tests/test-wctype.c: Likewise.
4977         * tests/test-wcwidth.c: Likewise.
4978         * tests/test-xfprintf-posix.c: Likewise.
4979         * tests/test-xmemdup0.c: Likewise.
4980         * tests/test-xprintf-posix.c: Likewise.
4981         * tests/test-xvasprintf.c: Likewise.
4982         * tests/unicase/test-locale-language.c: Likewise.
4983         * tests/unicase/test-mapping-part1.h: Likewise.
4984         * tests/unicase/test-predicate-part1.h: Likewise.
4985         * tests/unicase/test-u8-casecmp.c: Likewise.
4986         * tests/unicase/test-u8-casecoll.c: Likewise.
4987         * tests/unicase/test-u8-casefold.c: Likewise.
4988         * tests/unicase/test-u8-is-cased.c: Likewise.
4989         * tests/unicase/test-u8-is-casefolded.c: Likewise.
4990         * tests/unicase/test-u8-is-lowercase.c: Likewise.
4991         * tests/unicase/test-u8-is-titlecase.c: Likewise.
4992         * tests/unicase/test-u8-is-uppercase.c: Likewise.
4993         * tests/unicase/test-u8-tolower.c: Likewise.
4994         * tests/unicase/test-u8-totitle.c: Likewise.
4995         * tests/unicase/test-u8-toupper.c: Likewise.
4996         * tests/unicase/test-u16-casecmp.c: Likewise.
4997         * tests/unicase/test-u16-casecoll.c: Likewise.
4998         * tests/unicase/test-u16-casefold.c: Likewise.
4999         * tests/unicase/test-u16-is-cased.c: Likewise.
5000         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5001         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5002         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5003         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5004         * tests/unicase/test-u16-tolower.c: Likewise.
5005         * tests/unicase/test-u16-totitle.c: Likewise.
5006         * tests/unicase/test-u16-toupper.c: Likewise.
5007         * tests/unicase/test-u32-casecmp.c: Likewise.
5008         * tests/unicase/test-u32-casecoll.c: Likewise.
5009         * tests/unicase/test-u32-casefold.c: Likewise.
5010         * tests/unicase/test-u32-is-cased.c: Likewise.
5011         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5012         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5013         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5014         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5015         * tests/unicase/test-u32-tolower.c: Likewise.
5016         * tests/unicase/test-u32-totitle.c: Likewise.
5017         * tests/unicase/test-u32-toupper.c: Likewise.
5018         * tests/unicase/test-ulc-casecmp.c: Likewise.
5019         * tests/unicase/test-ulc-casecoll.c: Likewise.
5020         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5021         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5022         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5023         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5024         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5025         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5026         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5027         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5028         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5029         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5030         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5031         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5032         * tests/unictype/test-bidi_byname.c: Likewise.
5033         * tests/unictype/test-bidi_name.c: Likewise.
5034         * tests/unictype/test-bidi_of.c: Likewise.
5035         * tests/unictype/test-bidi_test.c: Likewise.
5036         * tests/unictype/test-block_list.c: Likewise.
5037         * tests/unictype/test-block_of.c: Likewise.
5038         * tests/unictype/test-block_test.c: Likewise.
5039         * tests/unictype/test-categ_and.c: Likewise.
5040         * tests/unictype/test-categ_and_not.c: Likewise.
5041         * tests/unictype/test-categ_byname.c: Likewise.
5042         * tests/unictype/test-categ_name.c: Likewise.
5043         * tests/unictype/test-categ_none.c: Likewise.
5044         * tests/unictype/test-categ_of.c: Likewise.
5045         * tests/unictype/test-categ_or.c: Likewise.
5046         * tests/unictype/test-categ_test_withtable.c: Likewise.
5047         * tests/unictype/test-combining.c: Likewise.
5048         * tests/unictype/test-decdigit.c: Likewise.
5049         * tests/unictype/test-digit.c: Likewise.
5050         * tests/unictype/test-mirror.c: Likewise.
5051         * tests/unictype/test-numeric.c: Likewise.
5052         * tests/unictype/test-pr_byname.c: Likewise.
5053         * tests/unictype/test-pr_test.c: Likewise.
5054         * tests/unictype/test-predicate-part1.h: Likewise.
5055         * tests/unictype/test-scripts.c: Likewise.
5056         * tests/unictype/test-sy_c_ident.c: Likewise.
5057         * tests/unictype/test-sy_java_ident.c: Likewise.
5058         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5059         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5060         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5061         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5062         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5063         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5064         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5065         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5066         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5067         * tests/uninorm/test-compat-decomposition.c: Likewise.
5068         * tests/uninorm/test-composition.c: Likewise.
5069         * tests/uninorm/test-decomposing-form.c: Likewise.
5070         * tests/uninorm/test-decomposition.c: Likewise.
5071         * tests/uninorm/test-u8-nfc.c: Likewise.
5072         * tests/uninorm/test-u8-nfd.c: Likewise.
5073         * tests/uninorm/test-u8-nfkc.c: Likewise.
5074         * tests/uninorm/test-u8-nfkd.c: Likewise.
5075         * tests/uninorm/test-u8-normcmp.c: Likewise.
5076         * tests/uninorm/test-u8-normcoll.c: Likewise.
5077         * tests/uninorm/test-u16-nfc.c: Likewise.
5078         * tests/uninorm/test-u16-nfd.c: Likewise.
5079         * tests/uninorm/test-u16-nfkc.c: Likewise.
5080         * tests/uninorm/test-u16-nfkd.c: Likewise.
5081         * tests/uninorm/test-u16-normcmp.c: Likewise.
5082         * tests/uninorm/test-u16-normcoll.c: Likewise.
5083         * tests/uninorm/test-u32-nfc.c: Likewise.
5084         * tests/uninorm/test-u32-nfd.c: Likewise.
5085         * tests/uninorm/test-u32-nfkc.c: Likewise.
5086         * tests/uninorm/test-u32-nfkd.c: Likewise.
5087         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5088         * tests/uninorm/test-u32-normcmp.c: Likewise.
5089         * tests/uninorm/test-u32-normcoll.c: Likewise.
5090         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5091         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5092         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5093         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5094         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5095         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5096         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5097         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5098         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5099         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5100         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5101         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5102         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5103         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5104         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5105         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5106         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5107         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5108         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5109         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5110         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5111         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5112         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5113         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5114         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5115         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5116         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5117         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5118         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5119         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5120         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5121         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5122         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5123         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5124         * tests/uniwidth/test-u8-width.c: Likewise.
5125         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5126         * tests/uniwidth/test-u16-width.c: Likewise.
5127         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5128         * tests/uniwidth/test-u32-width.c: Likewise.
5129         * tests/uniwidth/test-uc_width.c: Likewise.
5130         * tests/uniwidth/test-uc_width2.c: Likewise.
5131         * modules/acl-tests (Files): Add tests/macros.h.
5132         * modules/areadlink-tests (Files): Likewise.
5133         * modules/areadlink-with-size-tests (Files): Likewise.
5134         * modules/areadlinkat-tests (Files): Likewise.
5135         * modules/areadlinkat-with-size-tests (Files): Likewise.
5136         * modules/argmatch-tests (Files): Likewise.
5137         * modules/argv-iter-tests (Files): Likewise.
5138         * modules/array-list-tests (Files): Likewise.
5139         * modules/array-mergesort-tests (Files): Likewise.
5140         * modules/array-oset-tests (Files): Likewise.
5141         * modules/avltree-list-tests (Files): Likewise.
5142         * modules/avltree-oset-tests (Files): Likewise.
5143         * modules/avltreehash-list-tests (Files): Likewise.
5144         * modules/base64-tests (Files): Likewise.
5145         * modules/binary-io-tests (Files): Likewise.
5146         * modules/bitrotate-tests (Files): Likewise.
5147         * modules/btowc-tests (Files): Likewise.
5148         * modules/byteswap-tests (Files): Likewise.
5149         * modules/c-ctype-tests (Files): Likewise.
5150         * modules/c-stack-tests (Files): Likewise.
5151         * modules/c-strcase-tests (Files): Likewise.
5152         * modules/c-strcasestr-tests (Files): Likewise.
5153         * modules/c-strstr-tests (Files): Likewise.
5154         * modules/canonicalize-lgpl-tests (Files): Likewise.
5155         * modules/canonicalize-tests (Files): Likewise.
5156         * modules/carray-list-tests (Files): Likewise.
5157         * modules/ceilf-tests (Files): Likewise.
5158         * modules/ceill-tests (Files): Likewise.
5159         * modules/chown-tests (Files): Likewise.
5160         * modules/cloexec-tests (Files): Likewise.
5161         * modules/copy-file-tests (Files): Likewise.
5162         * modules/count-one-bits-tests (Files): Likewise.
5163         * modules/dprintf-posix-tests (Files): Likewise.
5164         * modules/dup2-tests (Files): Likewise.
5165         * modules/dup3-tests (Files): Likewise.
5166         * modules/duplocale-tests (Files): Likewise.
5167         * modules/fbufmode-tests (Files): Likewise.
5168         * modules/fchdir-tests (Files): Likewise.
5169         * modules/fcntl-safer-tests (Files): Likewise.
5170         * modules/fcntl-tests (Files): Likewise.
5171         * modules/fdopendir-tests (Files): Likewise.
5172         * modules/fdutimensat-tests (Files): Likewise.
5173         * modules/fflush-tests (Files): Likewise.
5174         * modules/filevercmp-tests (Files): Likewise.
5175         * modules/flock-tests (Files): Likewise.
5176         * modules/floorf-tests (Files): Likewise.
5177         * modules/floorl-tests (Files): Likewise.
5178         * modules/fnmatch-tests (Files): Likewise.
5179         * modules/fopen-safer-tests (Files): Likewise.
5180         * modules/fopen-tests (Files): Likewise.
5181         * modules/fpending-tests (Files): Likewise.
5182         * modules/fprintf-posix-tests (Files): Likewise.
5183         * modules/fpurge-tests (Files): Likewise.
5184         * modules/freadable-tests (Files): Likewise.
5185         * modules/freadahead-tests (Files): Likewise.
5186         * modules/freading-tests (Files): Likewise.
5187         * modules/freadptr-tests (Files): Likewise.
5188         * modules/freadseek-tests (Files): Likewise.
5189         * modules/freopen-tests (Files): Likewise.
5190         * modules/frexp-nolibm-tests (Files): Likewise.
5191         * modules/frexp-tests (Files): Likewise.
5192         * modules/frexpl-nolibm-tests (Files): Likewise.
5193         * modules/frexpl-tests (Files): Likewise.
5194         * modules/fseek-tests (Files): Likewise.
5195         * modules/fseeko-tests (Files): Likewise.
5196         * modules/fstrcmp-tests (Files): Likewise.
5197         * modules/fsync-tests (Files): Likewise.
5198         * modules/ftell-tests (Files): Likewise.
5199         * modules/ftello-tests (Files): Likewise.
5200         * modules/func-tests (Files): Likewise.
5201         * modules/futimens-tests (Files): Likewise.
5202         * modules/fwritable-tests (Files): Likewise.
5203         * modules/fwriting-tests (Files): Likewise.
5204         * modules/getcwd-tests (Files): Likewise.
5205         * modules/getdate-tests (Files): Likewise.
5206         * modules/getdelim-tests (Files): Likewise.
5207         * modules/getdtablesize-tests (Files): Likewise.
5208         * modules/getgroups-tests (Files): Likewise.
5209         * modules/getline-tests (Files): Likewise.
5210         * modules/getndelim2-tests (Files): Likewise.
5211         * modules/glob-tests (Files): Likewise.
5212         * modules/hash-tests (Files): Likewise.
5213         * modules/i-ring-tests (Files): Likewise.
5214         * modules/iconv-tests (Files): Likewise.
5215         * modules/iconv_open-utf-tests (Files): Likewise.
5216         * modules/idpriv-drop-tests (Files): Likewise.
5217         * modules/idpriv-droptemp-tests (Files): Likewise.
5218         * modules/inet_ntop-tests (Files): Likewise.
5219         * modules/inet_pton-tests (Files): Likewise.
5220         * modules/isblank-tests (Files): Likewise.
5221         * modules/isfinite-tests (Files): Likewise.
5222         * modules/isinf-tests (Files): Likewise.
5223         * modules/isnan-tests (Files): Likewise.
5224         * modules/isnand-nolibm-tests (Files): Likewise.
5225         * modules/isnand-tests (Files): Likewise.
5226         * modules/isnanf-nolibm-tests (Files): Likewise.
5227         * modules/isnanf-tests (Files): Likewise.
5228         * modules/isnanl-nolibm-tests (Files): Likewise.
5229         * modules/isnanl-tests (Files): Likewise.
5230         * modules/lchown-tests (Files): Likewise.
5231         * modules/ldexpl-tests (Files): Likewise.
5232         * modules/link-tests (Files): Likewise.
5233         * modules/linkat-tests (Files): Likewise.
5234         * modules/linked-list-tests (Files): Likewise.
5235         * modules/linkedhash-list-tests (Files): Likewise.
5236         * modules/localename-tests (Files): Likewise.
5237         * modules/lseek-tests (Files): Likewise.
5238         * modules/lstat-tests (Files): Likewise.
5239         * modules/mbmemcasecmp-tests (Files): Likewise.
5240         * modules/mbmemcasecoll-tests (Files): Likewise.
5241         * modules/mbrtowc-tests (Files): Likewise.
5242         * modules/mbscasecmp-tests (Files): Likewise.
5243         * modules/mbscasestr-tests (Files): Likewise.
5244         * modules/mbschr-tests (Files): Likewise.
5245         * modules/mbscspn-tests (Files): Likewise.
5246         * modules/mbsinit-tests (Files): Likewise.
5247         * modules/mbsncasecmp-tests (Files): Likewise.
5248         * modules/mbsnrtowcs-tests (Files): Likewise.
5249         * modules/mbspbrk-tests (Files): Likewise.
5250         * modules/mbspcasecmp-tests (Files): Likewise.
5251         * modules/mbsrchr-tests (Files): Likewise.
5252         * modules/mbsrtowcs-tests (Files): Likewise.
5253         * modules/mbsspn-tests (Files): Likewise.
5254         * modules/mbsstr-tests (Files): Likewise.
5255         * modules/memchr-tests (Files): Likewise.
5256         * modules/memchr2-tests (Files): Likewise.
5257         * modules/memcmp-tests (Files): Likewise.
5258         * modules/memmem-tests (Files): Likewise.
5259         * modules/memrchr-tests (Files): Likewise.
5260         * modules/mkdir-tests (Files): Likewise.
5261         * modules/mkfifo-tests (Files): Likewise.
5262         * modules/mkfifoat-tests (Files): Likewise.
5263         * modules/mknod-tests (Files): Likewise.
5264         * modules/nanosleep-tests (Files): Likewise.
5265         * modules/nl_langinfo-tests (Files): Likewise.
5266         * modules/obstack-printf-tests (Files): Likewise.
5267         * modules/open-tests (Files): Likewise.
5268         * modules/openat-tests (Files): Likewise.
5269         * modules/pipe-filter-gi-tests (Files): Likewise.
5270         * modules/pipe-filter-ii-tests (Files): Likewise.
5271         * modules/pipe2-tests (Files): Likewise.
5272         * modules/popen-safer-tests (Files): Likewise.
5273         * modules/popen-tests (Files): Likewise.
5274         * modules/posixtm-tests (Files): Likewise.
5275         * modules/pread-tests (Files): Likewise.
5276         * modules/printf-frexp-tests (Files): Likewise.
5277         * modules/printf-frexpl-tests (Files): Likewise.
5278         * modules/printf-posix-tests (Files): Likewise.
5279         * modules/priv-set-tests (Files): Likewise.
5280         * modules/quotearg-tests (Files): Likewise.
5281         * modules/random_r-tests (Files): Likewise.
5282         * modules/rawmemchr-tests (Files): Likewise.
5283         * modules/rbtree-list-tests (Files): Likewise.
5284         * modules/rbtree-oset-tests (Files): Likewise.
5285         * modules/rbtreehash-list-tests (Files): Likewise.
5286         * modules/readlink-tests (Files): Likewise.
5287         * modules/remove-tests (Files): Likewise.
5288         * modules/rename-tests (Files): Likewise.
5289         * modules/renameat-tests (Files): Likewise.
5290         * modules/rmdir-tests (Files): Likewise.
5291         * modules/round-tests (Files): Likewise.
5292         * modules/roundf-tests (Files): Likewise.
5293         * modules/roundl-tests (Files): Likewise.
5294         * modules/safe-alloc-tests (Files): Likewise.
5295         * modules/setenv-tests (Files): Likewise.
5296         * modules/sigaction-tests (Files): Likewise.
5297         * modules/signbit-tests (Files): Likewise.
5298         * modules/sleep-tests (Files): Likewise.
5299         * modules/snprintf-posix-tests (Files): Likewise.
5300         * modules/snprintf-tests (Files): Likewise.
5301         * modules/sprintf-posix-tests (Files): Likewise.
5302         * modules/stat-tests (Files): Likewise.
5303         * modules/stat-time-tests (Files): Likewise.
5304         * modules/strcasestr-tests (Files): Likewise.
5305         * modules/strchrnul-tests (Files): Likewise.
5306         * modules/strerror-tests (Files): Likewise.
5307         * modules/striconv-tests (Files): Likewise.
5308         * modules/striconveh-tests (Files): Likewise.
5309         * modules/striconveha-tests (Files): Likewise.
5310         * modules/strsignal-tests (Files): Likewise.
5311         * modules/strstr-tests (Files): Likewise.
5312         * modules/strtod-tests (Files): Likewise.
5313         * modules/strverscmp-tests (Files): Likewise.
5314         * modules/symlink-tests (Files): Likewise.
5315         * modules/symlinkat-tests (Files): Likewise.
5316         * modules/trunc-tests (Files): Likewise.
5317         * modules/truncf-tests (Files): Likewise.
5318         * modules/truncl-tests (Files): Likewise.
5319         * modules/uname-tests (Files): Likewise.
5320         * modules/unicase/cased-tests (Files): Likewise.
5321         * modules/unicase/ignorable-tests (Files): Likewise.
5322         * modules/unicase/locale-language-tests (Files): Likewise.
5323         * modules/unicase/tolower-tests (Files): Likewise.
5324         * modules/unicase/totitle-tests (Files): Likewise.
5325         * modules/unicase/toupper-tests (Files): Likewise.
5326         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5327         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5328         * modules/unicase/u8-casefold-tests (Files): Likewise.
5329         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5330         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5331         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5332         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5333         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5334         * modules/unicase/u8-tolower-tests (Files): Likewise.
5335         * modules/unicase/u8-totitle-tests (Files): Likewise.
5336         * modules/unicase/u8-toupper-tests (Files): Likewise.
5337         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5338         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5339         * modules/unicase/u16-casefold-tests (Files): Likewise.
5340         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5341         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5342         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5343         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5344         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5345         * modules/unicase/u16-tolower-tests (Files): Likewise.
5346         * modules/unicase/u16-totitle-tests (Files): Likewise.
5347         * modules/unicase/u16-toupper-tests (Files): Likewise.
5348         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5349         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5350         * modules/unicase/u32-casefold-tests (Files): Likewise.
5351         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5352         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5353         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5354         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5355         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5356         * modules/unicase/u32-tolower-tests (Files): Likewise.
5357         * modules/unicase/u32-totitle-tests (Files): Likewise.
5358         * modules/unicase/u32-toupper-tests (Files): Likewise.
5359         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5360         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5361         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5362         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5363         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5364         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5365         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5366         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5367         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5368         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5369         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5370         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5371         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5372         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5373         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5374         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5375         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5376         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5377         * modules/unictype/block-list-tests (Files): Likewise.
5378         * modules/unictype/block-of-tests (Files): Likewise.
5379         * modules/unictype/block-test-tests (Files): Likewise.
5380         * modules/unictype/category-C-tests (Files): Likewise.
5381         * modules/unictype/category-Cc-tests (Files): Likewise.
5382         * modules/unictype/category-Cf-tests (Files): Likewise.
5383         * modules/unictype/category-Cn-tests (Files): Likewise.
5384         * modules/unictype/category-Co-tests (Files): Likewise.
5385         * modules/unictype/category-Cs-tests (Files): Likewise.
5386         * modules/unictype/category-L-tests (Files): Likewise.
5387         * modules/unictype/category-Ll-tests (Files): Likewise.
5388         * modules/unictype/category-Lm-tests (Files): Likewise.
5389         * modules/unictype/category-Lo-tests (Files): Likewise.
5390         * modules/unictype/category-Lt-tests (Files): Likewise.
5391         * modules/unictype/category-Lu-tests (Files): Likewise.
5392         * modules/unictype/category-M-tests (Files): Likewise.
5393         * modules/unictype/category-Mc-tests (Files): Likewise.
5394         * modules/unictype/category-Me-tests (Files): Likewise.
5395         * modules/unictype/category-Mn-tests (Files): Likewise.
5396         * modules/unictype/category-N-tests (Files): Likewise.
5397         * modules/unictype/category-Nd-tests (Files): Likewise.
5398         * modules/unictype/category-Nl-tests (Files): Likewise.
5399         * modules/unictype/category-No-tests (Files): Likewise.
5400         * modules/unictype/category-P-tests (Files): Likewise.
5401         * modules/unictype/category-Pc-tests (Files): Likewise.
5402         * modules/unictype/category-Pd-tests (Files): Likewise.
5403         * modules/unictype/category-Pe-tests (Files): Likewise.
5404         * modules/unictype/category-Pf-tests (Files): Likewise.
5405         * modules/unictype/category-Pi-tests (Files): Likewise.
5406         * modules/unictype/category-Po-tests (Files): Likewise.
5407         * modules/unictype/category-Ps-tests (Files): Likewise.
5408         * modules/unictype/category-S-tests (Files): Likewise.
5409         * modules/unictype/category-Sc-tests (Files): Likewise.
5410         * modules/unictype/category-Sk-tests (Files): Likewise.
5411         * modules/unictype/category-Sm-tests (Files): Likewise.
5412         * modules/unictype/category-So-tests (Files): Likewise.
5413         * modules/unictype/category-Z-tests (Files): Likewise.
5414         * modules/unictype/category-Zl-tests (Files): Likewise.
5415         * modules/unictype/category-Zp-tests (Files): Likewise.
5416         * modules/unictype/category-Zs-tests (Files): Likewise.
5417         * modules/unictype/category-and-not-tests (Files): Likewise.
5418         * modules/unictype/category-and-tests (Files): Likewise.
5419         * modules/unictype/category-byname-tests (Files): Likewise.
5420         * modules/unictype/category-name-tests (Files): Likewise.
5421         * modules/unictype/category-none-tests (Files): Likewise.
5422         * modules/unictype/category-of-tests (Files): Likewise.
5423         * modules/unictype/category-or-tests (Files): Likewise.
5424         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5425         * modules/unictype/combining-class-tests (Files): Likewise.
5426         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5427         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5428         * modules/unictype/ctype-blank-tests (Files): Likewise.
5429         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5430         * modules/unictype/ctype-digit-tests (Files): Likewise.
5431         * modules/unictype/ctype-graph-tests (Files): Likewise.
5432         * modules/unictype/ctype-lower-tests (Files): Likewise.
5433         * modules/unictype/ctype-print-tests (Files): Likewise.
5434         * modules/unictype/ctype-punct-tests (Files): Likewise.
5435         * modules/unictype/ctype-space-tests (Files): Likewise.
5436         * modules/unictype/ctype-upper-tests (Files): Likewise.
5437         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5438         * modules/unictype/decimal-digit-tests (Files): Likewise.
5439         * modules/unictype/digit-tests (Files): Likewise.
5440         * modules/unictype/mirror-tests (Files): Likewise.
5441         * modules/unictype/numeric-tests (Files): Likewise.
5442         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5443         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5444         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5445         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5446         Likewise.
5447         * modules/unictype/property-bidi-block-separator-tests (Files):
5448         Likewise.
5449         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5450         Likewise.
5451         * modules/unictype/property-bidi-common-separator-tests (Files):
5452         Likewise.
5453         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5454         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5455         Likewise.
5456         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5457         Likewise.
5458         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5459         Likewise.
5460         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5461         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5462         Likewise.
5463         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5464         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5465         Likewise.
5466         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5467         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5468         * modules/unictype/property-bidi-segment-separator-tests (Files):
5469         Likewise.
5470         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5471         * modules/unictype/property-byname-tests (Files): Likewise.
5472         * modules/unictype/property-combining-tests (Files): Likewise.
5473         * modules/unictype/property-composite-tests (Files): Likewise.
5474         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5475         * modules/unictype/property-dash-tests (Files): Likewise.
5476         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5477         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5478         Likewise.
5479         * modules/unictype/property-deprecated-tests (Files): Likewise.
5480         * modules/unictype/property-diacritic-tests (Files): Likewise.
5481         * modules/unictype/property-extender-tests (Files): Likewise.
5482         * modules/unictype/property-format-control-tests (Files): Likewise.
5483         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5484         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5485         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5486         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5487         * modules/unictype/property-hyphen-tests (Files): Likewise.
5488         * modules/unictype/property-id-continue-tests (Files): Likewise.
5489         * modules/unictype/property-id-start-tests (Files): Likewise.
5490         * modules/unictype/property-ideographic-tests (Files): Likewise.
5491         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5492         * modules/unictype/property-ids-trinary-operator-tests (Files):
5493         Likewise.
5494         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5495         * modules/unictype/property-iso-control-tests (Files): Likewise.
5496         * modules/unictype/property-join-control-tests (Files): Likewise.
5497         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5498         * modules/unictype/property-line-separator-tests (Files): Likewise.
5499         * modules/unictype/property-logical-order-exception-tests (Files):
5500         Likewise.
5501         * modules/unictype/property-lowercase-tests (Files): Likewise.
5502         * modules/unictype/property-math-tests (Files): Likewise.
5503         * modules/unictype/property-non-break-tests (Files): Likewise.
5504         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5505         * modules/unictype/property-numeric-tests (Files): Likewise.
5506         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5507         * modules/unictype/property-other-default-ignorable-code-point-tests
5508         (Files): Likewise.
5509         * modules/unictype/property-other-grapheme-extend-tests (Files):
5510         Likewise.
5511         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5512         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5513         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5514         * modules/unictype/property-other-math-tests (Files): Likewise.
5515         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5516         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5517         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5518         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5519         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5520         * modules/unictype/property-private-use-tests (Files): Likewise.
5521         * modules/unictype/property-punctuation-tests (Files): Likewise.
5522         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5523         * modules/unictype/property-radical-tests (Files): Likewise.
5524         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5525         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5526         * modules/unictype/property-space-tests (Files): Likewise.
5527         * modules/unictype/property-terminal-punctuation-tests (Files):
5528         Likewise.
5529         * modules/unictype/property-test-tests (Files): Likewise.
5530         * modules/unictype/property-titlecase-tests (Files): Likewise.
5531         * modules/unictype/property-unassigned-code-value-tests (Files):
5532         Likewise.
5533         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5534         * modules/unictype/property-uppercase-tests (Files): Likewise.
5535         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5536         * modules/unictype/property-white-space-tests (Files): Likewise.
5537         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5538         * modules/unictype/property-xid-start-tests (Files): Likewise.
5539         * modules/unictype/property-zero-width-tests (Files): Likewise.
5540         * modules/unictype/scripts-tests (Files): Likewise.
5541         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5542         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5543         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5544         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5545         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5546         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5547         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5548         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5549         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5550         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5551         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5552         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5553         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5554         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5555         * modules/uninorm/composition-tests (Files): Likewise.
5556         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5557         * modules/uninorm/decomposition-tests (Files): Likewise.
5558         * modules/uninorm/filter-tests (Files): Likewise.
5559         * modules/uninorm/nfc-tests (Files): Likewise.
5560         * modules/uninorm/nfd-tests (Files): Likewise.
5561         * modules/uninorm/nfkc-tests (Files): Likewise.
5562         * modules/uninorm/nfkd-tests (Files): Likewise.
5563         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5564         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5565         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5566         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5567         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5568         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5569         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5570         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5571         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5572         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5573         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5574         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5575         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5576         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5577         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5578         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5579         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5580         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5581         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5582         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5583         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5584         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5585         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5586         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5587         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5588         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5589         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5590         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5591         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5592         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5593         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5594         * modules/uniwidth/u8-width-tests (Files): Likewise.
5595         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5596         * modules/uniwidth/u16-width-tests (Files): Likewise.
5597         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5598         * modules/uniwidth/u32-width-tests (Files): Likewise.
5599         * modules/uniwidth/width-tests (Files): Likewise.
5600         * modules/unlink-tests (Files): Likewise.
5601         * modules/unsetenv-tests (Files): Likewise.
5602         * modules/usleep-tests (Files): Likewise.
5603         * modules/utimens-tests (Files): Likewise.
5604         * modules/utimensat-tests (Files): Likewise.
5605         * modules/vasnprintf-posix-tests (Files): Likewise.
5606         * modules/vasnprintf-tests (Files): Likewise.
5607         * modules/vasprintf-posix-tests (Files): Likewise.
5608         * modules/vasprintf-tests (Files): Likewise.
5609         * modules/vdprintf-posix-tests (Files): Likewise.
5610         * modules/vfprintf-posix-tests (Files): Likewise.
5611         * modules/vprintf-posix-tests (Files): Likewise.
5612         * modules/vsnprintf-posix-tests (Files): Likewise.
5613         * modules/vsnprintf-tests (Files): Likewise.
5614         * modules/vsprintf-posix-tests (Files): Likewise.
5615         * modules/wcrtomb-tests (Files): Likewise.
5616         * modules/wcsnrtombs-tests (Files): Likewise.
5617         * modules/wcsrtombs-tests (Files): Likewise.
5618         * modules/wctype-tests (Files): Likewise.
5619         * modules/wcwidth-tests (Files): Likewise.
5620         * modules/xmemdup0-tests (Files): Likewise.
5621         * modules/xprintf-posix-tests (Files): Likewise.
5622         * modules/xvasprintf-tests (Files): Likewise.
5623
5624 2009-12-24  Eric Blake  <ebb9@byu.net>
5625
5626         test-nanosleep: fix typo
5627         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5628         patch.
5629         Reported by Bruno Haible.
5630
5631 2009-12-24  Bruno Haible  <bruno@clisp.org>
5632
5633         Reduce namespace pollution on glibc systems.
5634         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5635         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5636         systems.
5637         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5638         <getopt.h> on glibc systems.
5639         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5640         systems.
5641         * lib/fcntl.c: Include <unistd.h> here instead.
5642
5643 2009-12-24  Bruno Haible  <bruno@clisp.org>
5644
5645         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5646
5647 2009-12-24  Eric Blake  <ebb9@byu.net>
5648
5649         tests: add signature checks
5650         * tests/signature.h (SIGNATURE_CHECK): New file.
5651         * modules/atexit-tests (Files): Use it.
5652         * modules/btowc-tests (Files): Likewise.
5653         * modules/canonicalize-lgpl-tests (Files): Likewise.
5654         * modules/ceilf-tests (Files): Likewise.
5655         * modules/ceill-tests (Files): Likewise.
5656         * modules/chown-tests (Files): Likewise.
5657         * modules/dprintf-posix-tests (Files): Likewise.
5658         * modules/dup2-tests (Files): Likewise.
5659         * modules/dup3-tests (Files): Likewise.
5660         * modules/duplocale-tests (Files): Likewise.
5661         * modules/fchdir-tests (Files): Likewise.
5662         * modules/fcntl-tests (Files): Likewise.
5663         * modules/fdopendir-tests (Files): Likewise.
5664         * modules/fflush-tests (Files): Likewise.
5665         * modules/flock-tests (Files): Likewise.
5666         * modules/floorf-tests (Files): Likewise.
5667         * modules/floorl-tests (Files): Likewise.
5668         * modules/fnmatch-tests (Files): Likewise.
5669         * modules/fopen-tests (Files): Likewise.
5670         * modules/fprintf-posix-tests (Files): Likewise.
5671         * modules/freopen-tests (Files): Likewise.
5672         * modules/frexp-nolibm-tests (Files): Likewise.
5673         * modules/frexp-tests (Files): Likewise.
5674         * modules/frexpl-nolibm-tests (Files): Likewise.
5675         * modules/frexpl-tests (Files): Likewise.
5676         * modules/fseek-tests (Files): Likewise.
5677         * modules/fseeko-tests (Files): Likewise.
5678         * modules/fsync-tests (Files): Likewise.
5679         * modules/ftell-tests (Files): Likewise.
5680         * modules/ftello-tests (Files): Likewise.
5681         * modules/futimens-tests (Files): Likewise.
5682         * modules/getaddrinfo-tests (Files): Likewise.
5683         * modules/getcwd-tests (Files): Likewise.
5684         * modules/getdelim-tests (Files): Likewise.
5685         * modules/getdtablesize-tests (Files): Likewise.
5686         * modules/getgroups-tests (Files): Likewise.
5687         * modules/gethostname-tests (Files): Likewise.
5688         * modules/getline-tests (Files): Likewise.
5689         * modules/getopt-posix-tests (Files): Likewise.
5690         * modules/gettimeofday-tests (Files): Likewise.
5691         * modules/glob-tests (Files): Likewise.
5692         * modules/iconv-tests (Files): Likewise.
5693         * modules/inet_ntop-tests (Files): Likewise.
5694         * modules/inet_pton-tests (Files): Likewise.
5695         * modules/isblank-tests (Files): Likewise.
5696         * modules/lchown-tests (Files): Likewise.
5697         * modules/ldexpl-tests (Files): Likewise.
5698         * modules/link-tests (Files): Likewise.
5699         * modules/linkat-tests (Files): Likewise.
5700         * modules/lseek-tests (Files): Likewise.
5701         * modules/lstat-tests (Files): Likewise.
5702         * modules/mbrtowc-tests (Files): Likewise.
5703         * modules/mbsinit-tests (Files): Likewise.
5704         * modules/mbsnrtowcs-tests (Files): Likewise.
5705         * modules/mbsrtowcs-tests (Files): Likewise.
5706         * modules/memchr-tests (Files): Likewise.
5707         * modules/memcmp-tests (Files): Likewise.
5708         * modules/memmem-tests (Files): Likewise.
5709         * modules/memrchr-tests (Files): Likewise.
5710         * modules/mkdir-tests (Files): Likewise.
5711         * modules/mkfifo-tests (Files): Likewise.
5712         * modules/mkfifoat-tests (Files): Likewise.
5713         * modules/mknod-tests (Files): Likewise.
5714         * modules/nanosleep-tests (Files): Likewise.
5715         * modules/nl_langinfo-tests (Files): Likewise.
5716         * modules/obstack-printf-tests (Files): Likewise.
5717         * modules/open-tests (Files): Likewise.
5718         * modules/openat-tests (Files): Likewise.
5719         * modules/perror-tests (Files): Likewise.
5720         * modules/pipe2-tests (Files): Likewise.
5721         * modules/poll-tests (Files): Likewise.
5722         * modules/popen-tests (Files): Likewise.
5723         * modules/posix_spawn-tests (Files): Likewise.
5724         * modules/posix_spawnp-tests (Files): Likewise.
5725         * modules/pread-tests (Files): Likewise.
5726         * modules/printf-posix-tests (Files): Likewise.
5727         * modules/pty-tests (Files): Likewise.
5728         * modules/random_r-tests (Files): Likewise.
5729         * modules/rawmemchr-tests (Files): Likewise.
5730         * modules/readlink-tests (Files): Likewise.
5731         * modules/remove-tests (Files): Likewise.
5732         * modules/rename-tests (Files): Likewise.
5733         * modules/renameat-tests (Files): Likewise.
5734         * modules/rmdir-tests (Files): Likewise.
5735         * modules/round-tests (Files): Likewise.
5736         * modules/roundf-tests (Files): Likewise.
5737         * modules/roundl-tests (Files): Likewise.
5738         * modules/select-tests (Files): Likewise.
5739         * modules/setenv-tests (Files): Likewise.
5740         * modules/sigaction-tests (Files): Likewise.
5741         * modules/sleep-tests (Files): Likewise.
5742         * modules/snprintf-posix-tests (Files): Likewise.
5743         * modules/snprintf-tests (Files): Likewise.
5744         * modules/sprintf-posix-tests (Files): Likewise.
5745         * modules/stat-tests (Files): Likewise.
5746         * modules/strcasestr-tests (Files): Likewise.
5747         * modules/strchrnul-tests (Files): Likewise.
5748         * modules/strerror-tests (Files): Likewise.
5749         * modules/strsignal-tests (Files): Likewise.
5750         * modules/strstr-tests (Files): Likewise.
5751         * modules/strtod-tests (Files): Likewise.
5752         * modules/strverscmp-tests (Files): Likewise.
5753         * modules/symlink-tests (Files): Likewise.
5754         * modules/symlinkat-tests (Files): Likewise.
5755         * modules/times-tests (Files): Likewise.
5756         * modules/trunc-tests (Files): Likewise.
5757         * modules/truncf-tests (Files): Likewise.
5758         * modules/truncl-tests (Files): Likewise.
5759         * modules/tsearch-tests (Files): Likewise.
5760         * modules/uname-tests (Files): Likewise.
5761         * modules/unlink-tests (Files): Likewise.
5762         * modules/unsetenv-tests (Files): Likewise.
5763         * modules/usleep-tests (Files): Likewise.
5764         * modules/utimensat-tests (Files): Likewise.
5765         * modules/vasprintf-tests (Files): Likewise.
5766         * modules/vdprintf-posix-tests (Files): Likewise.
5767         * modules/vfprintf-posix-tests (Files): Likewise.
5768         * modules/vprintf-posix-tests (Files): Likewise.
5769         * modules/vsnprintf-posix-tests (Files): Likewise.
5770         * modules/vsnprintf-tests (Files): Likewise.
5771         * modules/vsprintf-posix-tests (Files): Likewise.
5772         * modules/wcrtomb-tests (Files): Likewise.
5773         * modules/wcsnrtombs-tests (Files): Likewise.
5774         * modules/wcsrtombs-tests (Files): Likewise.
5775         * modules/wcwidth-tests (Files): Likewise.
5776         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
5777         * tests/test-isinf.c (isinf): Likewise.
5778         * tests/test-isnan.c (isnan): Likewise.
5779         * tests/test-signbit.c (signbit): Likewise.
5780         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
5781         declaration, either as macro or with correct signature.
5782         (select): Ensure function under test is declared with correct
5783         signature in correct header.
5784         * tests/test-atexit.c (atexit): Likewise.
5785         * tests/test-btowc.c (btowc): Likewise.
5786         * tests/test-canonicalize-lgpl.c (realpath)
5787         (canonicalize_file_name): Likewise.
5788         * tests/test-ceilf1.c (ceilf): Likewise.
5789         * tests/test-ceill.c (ceill): Likewise.
5790         * tests/test-chown.c (chown): Likewise.
5791         * tests/test-dprintf-posix.c (dprintf): Likewise.
5792         * tests/test-dup2.c (dup2): Likewise.
5793         * tests/test-dup3.c (dup3): Likewise.
5794         * tests/test-duplocale.c (duplocale): Likewise.
5795         * tests/test-fchdir.c (fchdir): Likewise.
5796         * tests/test-fchownat.c (fchownat): Likewise.
5797         * tests/test-fcntl.c (fcntl): Likewise.
5798         * tests/test-fdopendir.c (fdopendir): Likewise.
5799         * tests/test-fflush.c (fflush): Likewise.
5800         * tests/test-flock.c (flock): Likewise.
5801         * tests/test-floorf1.c (floorf): Likewise.
5802         * tests/test-floorl.c (floorl): Likewise.
5803         * tests/test-fnmatch.c (fnmatch): Likewise.
5804         * tests/test-fopen.c (fopen): Likewise.
5805         * tests/test-fprintf-posix.c (fprintf): Likewise.
5806         * tests/test-freopen.c (freopen): Likewise.
5807         * tests/test-frexp.c (frexp): Likewise.
5808         * tests/test-frexpl.c (frexpl): Likewise.
5809         * tests/test-fseek.c (fseek): Likewise.
5810         * tests/test-fseeko.c (fseeko): Likewise.
5811         * tests/test-fstatat.c (fstatat): Likewise.
5812         * tests/test-fsync.c (fsync): Likewise.
5813         * tests/test-ftell.c (ftell): Likewise.
5814         * tests/test-ftello.c (ftello): Likewise.
5815         * tests/test-futimens.c (futimens): Likewise.
5816         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
5817         (gai_strerror): Likewise.
5818         * tests/test-getcwd.c (getcwd): Likewise.
5819         * tests/test-getdelim.c (getdelim): Likewise.
5820         * tests/test-getdtablesize.c (getdtablesize): Likewise.
5821         * tests/test-getgroups.c (getgroups): Likewise.
5822         * tests/test-gethostname.c (gethostname): Likewise.
5823         * tests/test-getline.c (getline): Likewise.
5824         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
5825         Likewise.
5826         * tests/test-gettimeofday.c (gettimeofday): Likewise.
5827         * tests/test-glob.c (glob, globfree): Likewise.
5828         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
5829         * tests/test-inet_ntop.c (inet_ntop): Likewise.
5830         * tests/test-inet_pton.c (inet_pton): Likewise.
5831         * tests/test-isblank.c (isblank): Likewise.
5832         * tests/test-lchown.c (lchown): Likewise.
5833         * tests/test-ldexpl.c (ldexpl): Likewise.
5834         * tests/test-link.c (link): Likewise.
5835         * tests/test-linkat.c (linkat): Likewise.
5836         * tests/test-lseek.c (lseek): Likewise.
5837         * tests/test-lstat.c (lstat): Likewise.
5838         * tests/test-mbrtowc.c (mbrtowc): Likewise.
5839         * tests/test-mbsinit.c (mbsinit): Likewise.
5840         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
5841         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
5842         * tests/test-memchr.c (memchr): Likewise.
5843         * tests/test-memcmp.c (memcmp): Likewise.
5844         * tests/test-memmem.c (memmem): Likewise.
5845         * tests/test-memrchr.c (memrchr): Likewise.
5846         * tests/test-mkdir.c (mkdir): Likewise.
5847         * tests/test-mkdirat.c (mkdirat): Likewise.
5848         * tests/test-mkfifo.c (mkfifo): Likewise.
5849         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
5850         * tests/test-mknod.c (mknod): Likewise.
5851         * tests/test-nanosleep.c (nanosleep): Likewise.
5852         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
5853         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
5854         Likewise.
5855         * tests/test-open.c (open): Likewise.
5856         * tests/test-openat.c (openat): Likewise.
5857         * tests/test-perror.c (perror): Likewise.
5858         * tests/test-pipe2.c (pipe2): Likewise.
5859         * tests/test-poll.c (poll): Likewise.
5860         * tests/test-popen.c (popen, pclose): Likewise.
5861         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
5862         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
5863         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
5864         (posix_spawn_file_actions_destroy)
5865         (posix_spawn_file_actions_addclose)
5866         (posix_spawn_file_actions_addopen)
5867         (posix_spawn_file_actions_adddup2): Likewise.
5868         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
5869         * tests/test-pread.c (pread): Likewise.
5870         * tests/test-printf-posix.c (printf): Likewise.
5871         * tests/test-pty.c (openpty, forkpty): Likewise.
5872         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
5873         (random_r): Likewise.
5874         * tests/test-rawmemchr.c (rawmemchr): Likewise.
5875         * tests/test-readlink.c (readlink): Likewise.
5876         * tests/test-remove.c (remove): Likewise.
5877         * tests/test-rename.c (rename): Likewise.
5878         * tests/test-renameat.c (renameat): Likewise.
5879         * tests/test-rmdir.c (rmdir): Likewise.
5880         * tests/test-round1.c (round): Likewise.
5881         * tests/test-roundf1.c (roundf): Likewise.
5882         * tests/test-roundl.c (roundl): Likewise.
5883         * tests/test-setenv.c (setenv): Likewise.
5884         * tests/test-sigaction.c (sigaction): Likewise.
5885         * tests/test-sleep.c (sleep): Likewise.
5886         * tests/test-snprintf.c (snprintf): Likewise.
5887         * tests/test-sprintf-posix.c (sprintf): Likewise.
5888         * tests/test-stat.c (stat): Likewise.
5889         * tests/test-stpncpy.c (stpncpy): Likewise.
5890         * tests/test-strcasestr.c (strcasestr): Likewise.
5891         * tests/test-strchrnul.c (strchrnul): Likewise.
5892         * tests/test-strerror.c (strerror): Likewise.
5893         * tests/test-strsignal.c (strsignal): Likewise.
5894         * tests/test-strstr.c (strstr): Likewise.
5895         * tests/test-strtod.c (strtod): Likewise.
5896         * tests/test-strverscmp.c (strverscmp): Likewise.
5897         * tests/test-symlink.c (symlink): Likewise.
5898         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
5899         * tests/test-times.c (times): Likewise.
5900         * tests/test-trunc1.c (trunc): Likewise.
5901         * tests/test-truncf1.c (truncf): Likewise.
5902         * tests/test-truncl.c (truncl): Likewise.
5903         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
5904         Likewise.
5905         * tests/test-uname.c (uname): Likewise.
5906         * tests/test-unlink.c (unlink): Likewise.
5907         * tests/test-unlinkat.c (unlinkat): Likewise.
5908         * tests/test-unsetenv.c (unsetenv): Likewise.
5909         * tests/test-usleep.c (usleep): Likewise.
5910         * tests/test-utimensat.c (utimensat): Likewise.
5911         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
5912         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
5913         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
5914         * tests/test-vprintf-posix.c (vprintf): Likewise.
5915         * tests/test-vsnprintf.c (vsnprintf): Likewise.
5916         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
5917         * tests/test-wcrtomb.c (wcrtomb): Likewise.
5918         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
5919         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
5920         * tests/test-wcwidth.c (wcwidth): Likewise.
5921
5922         build: pull in conditional headers during GNULIB_POSIXCHECK
5923         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5924         definitions from any conditionally-included headers.
5925         * lib/stdlib.in.h (includes): Likewise.
5926         * lib/unistd.in.h (includes): Likewise.
5927
5928 2009-12-24  Bruno Haible  <bruno@clisp.org>
5929
5930         * tests/test-argv-iter.c: Include header file being tested immediately
5931         after config.h.
5932         * tests/test-base64.c: Likewise.
5933         * tests/test-flock.c: Likewise.
5934         * tests/test-fsync.c: Likewise.
5935         * tests/test-getdate.c: Likewise.
5936         * tests/test-getndelim2.c: Likewise.
5937         * tests/test-isfinite.c: Likewise.
5938         * tests/test-isinf.c: Likewise.
5939         * tests/test-strerror.c: Likewise.
5940         * tests/test-strsignal.c: Likewise.
5941
5942 2009-12-23  Eric Blake  <ebb9@byu.net>
5943
5944         unistd: work around cygwin bug
5945         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
5946         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
5947         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5948
5949 2009-12-23  Bruno Haible  <bruno@clisp.org>
5950
5951         localename: More tests.
5952         * tests/test-localename.c (SIZEOF): New macro.
5953         (categories): New variable.
5954         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
5955         test_locale_name_default): Add test w.r.t. thread locale.
5956         (test_locale_name_thread): New function.
5957         (main): Invoke it.
5958
5959         localename: Make aware of thread locale.
5960         * lib/localename.h (gl_locale_name_thread): New declaration.
5961         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
5962         behaviour with respect to thread locale.
5963         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
5964         <langinfo.h>, glthread/lock.h.
5965         (SIZE_BITS): New macro.
5966         (string_hash): New function.
5967         (struct hash_node): New type.
5968         (HASH_TABLE_SIZE): New macro.
5969         (struniq_hash_table, struniq_lock): New variables.
5970         (struniq): New function.
5971         (gl_locale_name_thread): New function.
5972         (gl_locale_name): Invoke it.
5973         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
5974         * modules/localename (Depends-on): Add lock.
5975         Reported by Mike Gran <spk121@yahoo.com>.
5976
5977 2009-12-23  Eric Blake  <ebb9@byu.net>
5978
5979         va-args: new module
5980         * modules/va-args: New file.
5981         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
5982         * MODULES.html.sh (Core language properties): Mention it.
5983
5984         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
5985         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
5986         named alias for __attribute__((__unused__)).
5987         * lib/chown.c: Update client.
5988         * lib/fchmodat.c: Likewise.
5989         * lib/fts.c: Likewise.
5990         * lib/getdate.y: Likewise.
5991         * lib/getgroups.c: Likewise.
5992         * lib/getopt.c: Likewise.
5993         * lib/getugroups.c: Likewise.
5994         * lib/mkdir.c: Likewise.
5995         * lib/mkfifo.c: Likewise.
5996         * lib/mkfifoat.c: Likewise.
5997         * lib/mknod.c: Likewise.
5998         * lib/mknodat.c: Likewise.
5999         * lib/readlink.c: Likewise.
6000         * lib/se-context.in.h: Likewise.
6001         * lib/se-selinux.in.h: Likewise.
6002         * lib/sockets.c: Likewise.
6003         * lib/symlink.c: Likewise.
6004         * lib/symlinkat.c: Likewise.
6005         * lib/unicodeio.c: Likewise.
6006         * lib/unistr.h: Likewise.
6007         * tests/test-areadlink.c: Likewise.
6008         * tests/test-areadlinkat.c: Likewise.
6009         * tests/test-filenamecat.c: Likewise.
6010         * tests/test-fseeko.c: Likewise.
6011         * tests/test-ftello.c: Likewise.
6012         * tests/test-getdate.c: Likewise.
6013         * tests/test-getgroups.c: Likewise.
6014         * tests/test-gethostname.c: Likewise.
6015         * tests/test-quotearg.c: Likewise.
6016         * tests/test-version-etc.c: Likewise.
6017         * tests/test-xalloc-die.c: Likewise.
6018         * tests/test-xfprintf-posix.c: Likewise.
6019         * tests/test-xprintf-posix.c: Likewise.
6020         * tests/test-xvasprintf.c: Likewise.
6021
6022         tests: avoid compiler warnings
6023         * tests/test-fcntl.c (main): Delete unused parameters.
6024         * tests/test-freopen-safer.c (main): Likewise.
6025         * tests/test-xalloc-die.c (main): Mark unused parameters.
6026         * tests/test-fseeko.c (main): Likewise.
6027         * tests/test-ftello.c (main): Likewise.
6028         * tests/test-nanosleep.c (main): Avoid declaration warning.
6029         * tests/test-sleep.c (main): Likewise.
6030         * tests/test-unsetenv.c (main): Silence warning about string
6031         literal.
6032         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6033
6034 2009-12-23  Bruno Haible  <bruno@clisp.org>
6035
6036         * tests/test-localename.c (test_locale_name): New function, extracted
6037         from main. Also test mixed situations.
6038         (test_locale_name_posix, test_locale_name_environ,
6039         test_locale_name_default): New functions.
6040         (main): Invoke them all.
6041         * modules/localename-tests (configure.ac): Test for newlocale.
6042
6043 2009-12-23  Bruno Haible  <bruno@clisp.org>
6044
6045         unistd: Ensure getcwd gets declared before being overridden.
6046         * lib/unistd.in.h: Conditionally include <io.h>.
6047
6048 2009-12-22  Bruno Haible  <bruno@clisp.org>
6049
6050         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6051         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6052         (gl_WCHAR_H): Invoke it.
6053         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6054         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6055         Reported by Karl Berry <karl@freefriends.org>.
6056
6057 2009-12-22  Eric Blake  <ebb9@byu.net>
6058
6059         math, unistd: avoid redundant includes
6060         * lib/math.in.h (isnan): No need to re-include <math.h>.
6061         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6062
6063         getsubopt: work around cygwin bug
6064         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6065         avoid conflicting with system getsubopt.
6066         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6067         bug.
6068
6069         getopt: synchronize from glibc
6070         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6071         parameter order.  Adjust all callers.
6072         (_getopt_internal_r, main): Adjust quoting in error messages.
6073         Drop considerations for outdated POSIX 1003.2 error message.
6074         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6075         callers.
6076         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6077
6078         test-getopt: test stderr behavior
6079         * modules/getopt-posix-tests (Depends-on): Add dup2.
6080         * tests/test-getopt.c (ASSERT): Avoid stderr.
6081         (main): Move stderr to a temporary file.
6082         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6083         Instead, add parameter to inform caller if output occurred.
6084         (test_getopt): Adjust all existing tests to expect silence, and
6085         add new tests of leading ":".
6086         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6087         glibc shortcomings with leading "-:" or "+:" in optstring.
6088         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6089         Likewise.
6090         * doc/posix-functions/getopt.texi (getopt): Likewise.
6091
6092         test-getopt: enhance test
6093         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6094         supports optind=0.
6095         * tests/test-getopt.c (OPTIND_MIN): Move...
6096         * tests/test-getopt.h (OPTIND_MIN): ...here.
6097         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6098         Require that optind=0 works, since modern BSD supports it in
6099         addition to optreset, and since coreutils expects it.
6100         (test_getopt_long_only): New test.
6101         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6102         glibc shortcomings with 'W;', and enforcement of optind=0.
6103         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6104         Likewise.
6105
6106 2009-12-21  Bruno Haible  <bruno@clisp.org>
6107
6108         localename: Improvements for MacOS X and Cygwin.
6109         * lib/localename.h (gl_locale_name_environ): New declaration.
6110         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6111         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6112         (gl_locale_name_posix): Invoke it.
6113         (gl_locale_name_default): Add comments. Use Windows native API also on
6114         Cygwin.
6115
6116 2009-12-21  Bruno Haible  <bruno@clisp.org>
6117
6118         Update list of Win32 locale ids.
6119         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6120         (LANG_SAMI): Renamed from LANG_SAAMI.
6121         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6122         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6123         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6124         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6125         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6126         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6127         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6128         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6129         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6130         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6131         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6132         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6133         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6134         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6135         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6136         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6137         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6138         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6139         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6140         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6141         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6142         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6143         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6144         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6145         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6146         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6147         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6148         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6149         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6150         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6151         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6152         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6153         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6154         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6155         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6156         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6157         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6158         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6159         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6160         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6161         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6162         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6163         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6164         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6165         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6166         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6167         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6168         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6169         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6170         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6171         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6172         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6173         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6174         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6175         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6176         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6177         Add more languages and countries for Sami, Sorbian. Add more countries
6178         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6179         for Pashto. Change country for Syriac, Tswana.
6180
6181 2009-12-21  Eric Blake  <ebb9@byu.net>
6182
6183         test-utimens: avoid spurious failure
6184         * tests/test-chown.h (nap): Factor...
6185         * tests/nap.h: ...into new file.
6186         * tests/test-lchown.h (nap): Avoid duplication.
6187         * tests/test-utimens-common.h (nap): Use shared implementation,
6188         necessary on file systems with 1-second resolution.
6189         * modules/chown-tests (Files): Include new file.
6190         * modules/fdutimensat-tests (Files): Likewise.
6191         * modules/futimens-tests (Files): Likewise.
6192         * modules/lchown-tests (Files): Likewise.
6193         * modules/openat-tests (Files): Likewise.
6194         * modules/utimens-tests (Files): Likewise.
6195         * modules/utimensat-tests (Files): Likewise.
6196
6197 2009-12-19  Eric Blake  <ebb9@byu.net>
6198
6199         futimens, utimensat: work around Linux bug
6200         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6201         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6202         * lib/utimensat.c (rpl_utimensat): Work around it.
6203         * lib/futimens.c (rpl_futimens): Adjust comment.
6204
6205         utimens: work around Linux ctime bug
6206         * lib/utimens.c (detect_ctime_bug): New helper function.
6207         (update_timespec): Differentiate between workaround needed for
6208         this bug vs. what is needed for systems that lack utimensat.
6209         (fdutimens, lutimens): Work around bug.
6210
6211         utimens: check for ctime update
6212         * tests/test-utimens-common.h (check_ctime): Define.
6213         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6214         * tests/test-futimens.h (test_futimens): Likewise.
6215         * tests/test-lutimens.h (test_lutimens): Likewise.
6216         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6217         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6218
6219 2009-12-19  Bruno Haible  <bruno@clisp.org>
6220
6221         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6222         * tests/test-dprintf-posix2.sh: New file.
6223         * tests/test-dprintf-posix2.c: New file.
6224         * modules/dprintf-posix-tests (Files): Add them.
6225         (configure.ac): Check for getrlimit and setrlimit.
6226         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6227
6228 2009-12-19  Bruno Haible  <bruno@clisp.org>
6229
6230         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6231         * tests/test-fprintf-posix3.sh: New file.
6232         * tests/test-fprintf-posix3.c: New file.
6233         * modules/fprintf-posix-tests (Files): Add them.
6234         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6235
6236 2009-12-19  Eric Blake  <ebb9@byu.net>
6237
6238         dirfd: fix prototype
6239         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6240         * lib/dirfd.c (dirfd): Likewise.
6241
6242         canonicalize: reduce memory usage
6243         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6244         allocation to size.
6245         Reported by Solar Designer <solar@openwall.com>.
6246
6247 2009-12-19  Bruno Haible  <bruno@clisp.org>
6248
6249         New module attribute 'Applicability'.
6250         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6251         * gnulib-tool: New option --extract-applicability.
6252         (func_usage): Document it.
6253         (sed_extract_prog): Recognize it.
6254         (func_get_applicability): New function.
6255         (func_import): Generalize handling of 'link-warning' module.
6256         * modules/link-warning (Applicability): New section.
6257         * modules/arg-nonnull (Applicability): New section.
6258         Repoted by Simon Josefsson <simon@josefsson.org>.
6259
6260 2009-12-19  Bruno Haible  <bruno@clisp.org>
6261
6262         fflush: tweak
6263         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6264         * lib/fseeko.c (rpl_fseeko): Likewise.
6265
6266 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6267
6268         * lib/gl_list.h: Fix typo in comment.
6269
6270 2009-12-16  Eric Blake  <ebb9@byu.net>
6271
6272         fcntl: use to simplify other modules
6273         * modules/cloexec (Depends-on): Add fcntl.
6274         * modules/fchdir (Depends-on): Likewise.
6275         * modules/fd-safer-flag (Depends-on): Likewise.
6276         * modules/unistd-safer (Depends-on): Likewise.
6277         * modules/dup3 (configure.ac): Set module indicator.
6278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6279         missing.
6280         * lib/fchdir.c (_gl_register_dup): Fix comment.
6281         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6282         * lib/dup-safer.c (dup_safer): Likewise.
6283         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6284         * lib/dup3.c (dup3): Likewise.
6285         * tests/test-fchdir.c (main): Enhance test.
6286         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6287
6288         fcntl: port portions of fcntl to mingw
6289         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6290         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6291         replacement for mingw.
6292         * modules/fcntl (Description): Update.
6293         (Depends-on): Add dup2.
6294         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6295         * modules/fcntl-h (Makefile.am): Substitute it.
6296         * lib/fcntl.in.h (fcntl): Update declaration.
6297         (F_DUPFD, F_GETFD): New macros, when needed.
6298         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6299         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6300         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6301         we now guarantee.
6302
6303         fcntl: work around cygwin bug in F_DUPFD
6304         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6305         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6306         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6307         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6308         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6309
6310         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6311         * modules/fcntl (Files): List new files.
6312         (configure.ac): Run a test.
6313         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6314         * lib/fcntl.c (rpl_fcntl): Likewise.
6315         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6316         (gl_FCNTL_H): Always replace fcntl.h.
6317         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6318         * lib/fcntl.in.h (fcntl): Declare replacement.
6319         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6320         needed, plus a witness.
6321         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6322         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6323         * tests/test-fcntl.c: New file.
6324         * modules/fcntl-tests: Likewise.
6325
6326         binary-io: avoid potential compilation warning
6327         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6328         directives.
6329
6330         fflush: avoid compilation error on NetBSD
6331         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6332         between off_t and fpos_t, since the latter is sometimes a struct.
6333         * lib/fseeko.c (rpl_fseeko): Likewise.
6334         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6335
6336 2009-12-15  Eric Blake  <ebb9@byu.net>
6337
6338         fcntl-h, stdio, sys_ioctl: fix declarations
6339         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6340         function must not take arguments.
6341         * lib/sys_ioctl.in.h (ioctl): Likewise.
6342         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6343         (open): Add a link warning.
6344
6345 2009-12-15  Jim Meyering  <meyering@redhat.com>
6346
6347         areadlink, areadlink-with-size: relax license to LGPLv2+
6348         * modules/areadlink (License): Relax to LGPLv2+.
6349         * modules/areadlink-with-size (License): Likewise.
6350
6351 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6352             Bruno Haible  <bruno@clisp.org>
6353
6354         *printf: Fix memory leak.
6355         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6356         * lib/vfprintf.c (vfprintf): Likewise.
6357         * lib/dprintf.c (dprintf): Likewise.
6358         * lib/vdprintf.c (vdprintf): Likewise.
6359
6360 2009-12-14  Eric Blake  <ebb9@byu.net>
6361
6362         accept4: adjust module dependencies
6363         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6364
6365         utimens: one more try at avoiding compiler warning
6366         * lib/utimens.c (lutimens): Lower scope of result.
6367
6368 2009-12-13  Bruno Haible  <bruno@clisp.org>
6369
6370         Move the malloc checking from module 'list' to new module 'xlist'.
6371         * modules/xlist: New file.
6372         * lib/gl_xlist.h: New file.
6373         * lib/gl_xlist.c: New file.
6374         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6375         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6376         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6377         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6378         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6379         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6380         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6381         gl_sortedlist_nx_add): New declarations.
6382         (struct gl_list_implementation): Rename and change methods accordingly.
6383         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6384         (gl_list_nx_create): Renamed from gl_list_create.
6385         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6386         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6387         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6388         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6389         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6390         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6391         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6392         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6393         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6394         gl_list_create_empty.
6395         (gl_list_nx_create): Renamed from gl_list_create.
6396         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6397         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6398         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6399         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6400         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6401         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6402         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6403         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6404         * lib/gl_array_list.c: Don't include xalloc.h.
6405         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6406         NULL upon out-of-memory.
6407         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6408         out-of-memory.
6409         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6410         Change return type to 'int'.
6411         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6412         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6413         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6414         upon out-of-memory.
6415         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6416         upon out-of-memory.
6417         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6418         upon out-of-memory.
6419         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6420         upon out-of-memory.
6421         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6422         out-of-memory.
6423         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6424         Update.
6425         (gl_array_list_implementation): Update.
6426         * lib/gl_carray_list.c: Don't include xalloc.h.
6427         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6428         Return NULL upon out-of-memory.
6429         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6430         out-of-memory.
6431         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6432         Change return type to 'int'.
6433         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6434         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6435         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6436         upon out-of-memory.
6437         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6438         upon out-of-memory.
6439         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6440         out-of-memory.
6441         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6442         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6443         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6444         Update.
6445         (gl_carray_list_implementation): Update.
6446         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6447         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6448         gl_linked_create_empty. Return NULL upon out-of-memory.
6449         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6450         out-of-memory.
6451         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6452         Change return type to 'int'. Return -1 upon out-of-memory.
6453         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6454         out-of-memory.
6455         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6456         upon out-of-memory.
6457         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6458         upon out-of-memory.
6459         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6460         NULL upon out-of-memory.
6461         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6462         upon out-of-memory.
6463         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6464         out-of-memory.
6465         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6466         Update.
6467         * lib/gl_linked_list.c: Don't include xalloc.h.
6468         (gl_linked_list_implementation): Update.
6469         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6470         (add_to_bucket): Change return type to 'int'.
6471         (gl_linkedhash_list_implementation): Update.
6472         * lib/gl_anytree_list1.h (free_subtree): New function.
6473         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6474         gl_tree_create_empty. Return NULL upon out-of-memory.
6475         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6476         Change return type to 'int'. Return -1 upon out-of-memory.
6477         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6478         out-of-memory.
6479         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6480         (gl_tree_remove_node): New function, moved here from
6481         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6482         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6483         Update.
6484         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6485         malloc, not xmalloc. Return NULL upon out-of-memory.
6486         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6487         out-of-memory.
6488         (gl_tree_remove_node_from_tree): New function, extracted from
6489         gl_tree_remove_node.
6490         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6491         upon out-of-memory.
6492         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6493         out-of-memory.
6494         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6495         upon out-of-memory.
6496         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6497         upon out-of-memory.
6498         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6499         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6500         not xmalloc. Return NULL upon out-of-memory.
6501         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6502         out-of-memory.
6503         (gl_tree_remove_node_from_tree): New function, extracted from
6504         gl_tree_remove_node.
6505         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6506         upon out-of-memory.
6507         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6508         out-of-memory.
6509         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6510         upon out-of-memory.
6511         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6512         upon out-of-memory.
6513         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6514         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6515         gl_anytree_list1.h before gl_anyavltree_list2.h.
6516         (gl_avltree_list_implementation): Update.
6517         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6518         gl_anytree_list1.h before gl_anyavltree_list2.h.
6519         (gl_rbtree_list_implementation): Update.
6520         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6521         Change return type to 'int'. Return -1 upon out-of-memory. Use
6522         __builtin_expect.
6523         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6524         (gl_avltreehash_list_implementation): Update.
6525         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6526         (gl_rbtreehash_list_implementation): Update.
6527         * modules/array-list (Depends-on): Remove xalloc.
6528         * modules/carray-list (Depends-on): Likewise.
6529         * modules/linked-list (Depends-on): Likewise.
6530         * modules/linkedhash-list (Depends-on): Likewise.
6531         * modules/avltree-list (Depends-on): Likewise.
6532         * modules/rbtree-list (Depends-on): Likewise.
6533         * modules/avltreehash-list (Depends-on): Likewise.
6534         * modules/rbtreehash-list (Depends-on): Likewise.
6535
6536         * modules/xsublist: New file.
6537         * lib/gl_xsublist.h: New file.
6538         * lib/gl_xsublist.c: New file.
6539         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6540         (gl_sublist_nx_create): New declaration.
6541         * lib/gl_sublist.c: Don't include xalloc.h.
6542         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6543         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6544         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6545         Change return type to 'int'. Return -1 upon out-of-memory.
6546         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6547         upon out-of-memory.
6548         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6549         NULL upon out-of-memory.
6550         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6551         upon out-of-memory.
6552         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6553         NULL upon out-of-memory.
6554         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6555         NULL upon out-of-memory.
6556         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6557         upon out-of-memory.
6558         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6559         (gl_sublist_list_implementation): Update.
6560         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6561         upon out-of-memory.
6562         * modules/sublist (Depends-on): Remove xalloc.
6563
6564         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6565         * tests/test-carray_list.c: Likewise.
6566         * tests/test-linked_list.c: Likewise.
6567         * tests/test-linkedhash_list.c: Likewise.
6568         * tests/test-avltree_list.c: Likewise.
6569         * tests/test-rbtree_list.c: Likewise.
6570         * tests/test-avltreehash_list.c: Likewise.
6571         * tests/test-rbtreehash_list.c: Likewise.
6572         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6573         * modules/carray-list-tests (Makefile.am): Likewise.
6574         * modules/linked-list-tests (Makefile.am): Likewise.
6575         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6576         * modules/avltree-list-tests (Makefile.am): Likewise.
6577         * modules/rbtree-list-tests (Makefile.am): Likewise.
6578         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6579         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6580
6581         * NEWS: Mention the changes.
6582
6583         * lib/clean-temp.c: Include gl_xlist.h.
6584         * modules/clean-temp (Depends-on): Add xlist.
6585
6586         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6587         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6588
6589         * tests/test-array_oset.c: Include gl_xlist.h.
6590         * modules/array-oset-tests (Depends-on): Add xlist.
6591
6592         Reported by José E. Marchesi <jemarch@gnu.org>.
6593
6594 2009-12-13  Bruno Haible  <bruno@clisp.org>
6595
6596         Move the malloc checking from module 'oset' to new module 'xoset'.
6597         * modules/xoset: New file.
6598         * lib/gl_xoset.h: New file.
6599         * lib/gl_xoset.c: New file.
6600         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6601         declarations.
6602         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6603         (struct gl_oset_implementation): Rename and change methods accordingly.
6604         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6605         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6606         'int'. Mark as __warn_unused_result__.
6607         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6608         gl_oset_create_empty.
6609         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6610         'int'.
6611         * lib/gl_array_oset.c: Don't include xalloc.h.
6612         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6613         malloc, not xmalloc.
6614         (grow): Change return type to 'int'. Don't call xalloc_die.
6615         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6616         to 'int'.
6617         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6618         'int'.
6619         (gl_array_oset_implementation): Update.
6620         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6621         gl_tree_create_empty.
6622         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6623         'int'.
6624         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6625         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6626         xmalloc.
6627         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6628         not xmalloc.
6629         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6630         xmalloc.
6631         (gl_avltree_oset_implementation): Update.
6632         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6633         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6634         xmalloc.
6635         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6636         not xmalloc.
6637         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6638         xmalloc.
6639         (gl_rbtree_oset_implementation): Update.
6640         * modules/array-oset (Depends-on): Remove xalloc.
6641         * modules/avltree-oset (Depends-on): Likewise.
6642         * modules/rbtree-oset (Depends-on): Likewise.
6643         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6644         * tests/test-avltree_oset.c: Likewise.
6645         * tests/test-rbtree_oset.c: Likewise.
6646         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6647         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6648         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6649         * NEWS: Mention the change.
6650
6651 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6652
6653         maint.mk: allow a project to override release-prep commands
6654         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6655         commands into a new rule.
6656         (release-prep): New rule.
6657         (release-prep-hook): New overridable variable.
6658
6659 2009-12-13  Bruno Haible  <bruno@clisp.org>
6660
6661         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6662
6663 2009-12-13  Jim Meyering  <meyering@redhat.com>
6664
6665         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6666         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6667
6668 2009-12-12  Bruno Haible  <bruno@clisp.org>
6669
6670         duplocale: Tweak.
6671         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6672
6673 2009-12-12  Karl Berry  <karl@gnu.org>
6674
6675         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6676
6677 2009-12-12  Bruno Haible  <bruno@clisp.org>
6678
6679         * m4/po.m4: Undo incorrect untabification.
6680
6681 2009-12-12  Bruno Haible  <bruno@clisp.org>
6682
6683         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
6684         * modules/c-strtod (Depends-on): Add locale.
6685         * modules/c-strtold (Depends-on): Likewise.
6686
6687 2009-12-12  Bruno Haible  <bruno@clisp.org>
6688
6689         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
6690
6691 2009-12-11  Eric Blake  <ebb9@byu.net>
6692
6693         setenv: relax requirement in light of POSIX ruling
6694         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
6695         not NULL.
6696         * tests/test-setenv.c (main): Relax test.
6697         * tests/test-unsetenv.c (main): Likewise.
6698         * doc/posix-functions/setenv.texi (setenv): Document this.
6699         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6700
6701 2009-12-11  Bruno Haible  <bruno@clisp.org>
6702
6703         New module 'fd-safer-flag'.
6704         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
6705         * lib/dup-safer.c (dup_safer_flag): Remove function.
6706         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
6707         * lib/fd-safer.c (fd_safer_flag): Remove function.
6708         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
6709         * modules/cloexec (configure.ac): Drop indicator macro.
6710         * modules/fd-safer-flag: New file.
6711         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
6712         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
6713         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
6714
6715 2009-12-11  Bruno Haible  <bruno@clisp.org>
6716
6717         Tests for module 'nl_langinfo'.
6718         * modules/nl_langinfo-tests: New file.
6719         * tests/test-nl_langinfo.sh: New file.
6720         * tests/test-nl_langinfo.c: New file.
6721
6722         New module 'nl_langinfo'.
6723         * lib/nl_langinfo.c: New file.
6724         * m4/nl_langinfo.m4: New file.
6725         * modules/nl_langinfo: New file.
6726         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
6727
6728 2009-12-11  Bruno Haible  <bruno@clisp.org>
6729
6730         Tests for module 'langinfo'.
6731         * modules/langinfo-tests: New file.
6732         * tests/test-langinfo.c: New file.
6733
6734         New module 'langinfo'.
6735         * lib/langinfo.in.h: New file.
6736         * m4/langinfo_h.m4: New file.
6737         * modules/langinfo: New file.
6738         * doc/posix-headers/langinfo.texi: Mention the new module.
6739
6740 2009-12-11  Bruno Haible  <bruno@clisp.org>
6741
6742         * lib/config.charset: Untabify.
6743
6744 2009-12-11  Bruno Haible  <bruno@clisp.org>
6745
6746         * modules/unistd-safer (configure.ac): Drop indicator macro.
6747
6748 2009-12-11  Bruno Haible  <bruno@clisp.org>
6749
6750         Move pipe2-safer code to its own file.
6751         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
6752         * lib/pipe-safer.c (pipe2_safer): Remove function.
6753         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
6754         (Makefile.am): Add it to lib_SOURCES.
6755
6756 2009-12-10  Bruno Haible  <bruno@clisp.org>
6757
6758         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
6759
6760 2009-12-10  Bruno Haible  <bruno@clisp.org>
6761
6762         Declare which arguments expect non-NULL values, for GCC and clang.
6763         * build-aux/arg-nonnull.h: New file.
6764         * modules/arg-nonnull: New file.
6765         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
6766         (inet_ntop, inet_pton): Use it.
6767         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
6768         (closedir, dirfd, opendir, scandir, alphasort): Use it.
6769         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
6770         (open, openat): Use it.
6771         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
6772         (fnmatch): Use it.
6773         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
6774         (getopt, getopt_long, getopt_long_only): Use it.
6775         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
6776         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
6777         Use it.
6778         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
6779         (iconv_open): Use it.
6780         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
6781         (strtoimax, strtoumax): Use it.
6782         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
6783         (duplocale): Use it.
6784         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
6785         (frexp, frexpl): Use it.
6786         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
6787         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
6788         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
6789         (tsearch, tfind, tdelete, twalk): Use it.
6790         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
6791         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
6792         sigpending): Use it.
6793         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
6794         (posix_spawn, posix_spawnp, posix_spawnattr_init,
6795         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
6796         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
6797         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
6798         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
6799         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
6800         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6801         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
6802         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
6803         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
6804         Use it.
6805         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
6806         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
6807         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
6808         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
6809         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
6810         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
6811         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
6812         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
6813         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
6814         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
6815         strtoull, unsetenv): Use it.
6816         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
6817         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
6818         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
6819         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6820         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6821         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
6822         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
6823         (strcasecmp, strncasecmp): Use it.
6824         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
6825         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
6826         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
6827         rpl_setsockopt): Use it.
6828         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
6829         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
6830         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
6831         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
6832         (gettimeofday): Use it.
6833         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
6834         (times): Use it.
6835         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
6836         (uname): Use it.
6837         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
6838         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
6839         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
6840         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
6841         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
6842         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
6843         unlinkat, write): Use it.
6844         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
6845         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
6846         * lib/argv-iter.h: Include arg-nonnull.h.
6847         (_ATTRIBUTE_NONNULL_): Remove macro.
6848         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
6849         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
6850         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
6851         optimization.
6852         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
6853         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
6854         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
6855         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
6856         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
6857         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
6858         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
6859         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
6860         * modules/arpa_inet (Depends-on): Add arg-nonnull.
6861         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
6862         * modules/dirent (Depends-on): Add arg-nonnull.
6863         (Makefile.am): Insert arg-nonnull.h into dirent.h.
6864         * modules/fcntl-h (Depends-on): Add arg-nonnull.
6865         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
6866         * modules/fnmatch (Depends-on): Add arg-nonnull.
6867         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
6868         * modules/getopt-posix (Depends-on): Add arg-nonnull.
6869         (Makefile.am): Insert arg-nonnull.h into getopt.h.
6870         * modules/glob (Depends-on): Add arg-nonnull.
6871         (Makefile.am): Insert arg-nonnull.h into glob.h.
6872         * modules/iconv_open (Depends-on): Add arg-nonnull.
6873         (Makefile.am): Insert arg-nonnull.h into iconv.h.
6874         * modules/inttypes (Depends-on): Add arg-nonnull.
6875         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
6876         * modules/locale (Depends-on): Add arg-nonnull.
6877         (Makefile.am): Insert arg-nonnull.h into locale.h.
6878         * modules/math (Depends-on): Add arg-nonnull.
6879         (Makefile.am): Insert arg-nonnull.h into math.h.
6880         * modules/netdb (Depends-on): Add arg-nonnull.
6881         (Makefile.am): Insert arg-nonnull.h into netdb.h.
6882         * modules/search (Depends-on): Add arg-nonnull.
6883         (Makefile.am): Insert arg-nonnull.h into search.h.
6884         * modules/signal (Depends-on): Add arg-nonnull.
6885         (Makefile.am): Insert arg-nonnull.h into signal.h.
6886         * modules/spawn (Depends-on): Add arg-nonnull.
6887         (Makefile.am): Insert arg-nonnull.h into spawn.h.
6888         * modules/stdio (Depends-on): Add arg-nonnull.
6889         (Makefile.am): Insert arg-nonnull.h into stdio.h.
6890         * modules/stdlib (Depends-on): Add arg-nonnull.
6891         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
6892         * modules/string (Depends-on): Add arg-nonnull.
6893         (Makefile.am): Insert arg-nonnull.h into string.h.
6894         * modules/strings (Depends-on): Add arg-nonnull.
6895         (Makefile.am): Insert arg-nonnull.h into strings.h.
6896         * modules/sys_socket (Depends-on): Add arg-nonnull.
6897         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
6898         * modules/sys_stat (Depends-on): Add arg-nonnull.
6899         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
6900         * modules/sys_time (Depends-on): Add arg-nonnull.
6901         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
6902         * modules/sys_times (Depends-on): Add arg-nonnull.
6903         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
6904         * modules/sys_utsname (Depends-on): Add arg-nonnull.
6905         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
6906         * modules/time (Depends-on): Add arg-nonnull.
6907         (Makefile.am): Insert arg-nonnull.h into time.h.
6908         * modules/unistd (Depends-on): Add arg-nonnull.
6909         (Makefile.am): Insert arg-nonnull.h into unistd.h.
6910         * modules/wchar (Depends-on): Add arg-nonnull.
6911         (Makefile.am): Insert arg-nonnull.h into wchar.h.
6912         * modules/argv-iter (Depends-on): Add arg-nonnull.
6913         * tests/test-canonicalize.c (null_ptr): New function.
6914         (main): Use it.
6915         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
6916         (main): Use it.
6917         * tests/test-memmem.c (null_ptr): New function.
6918         (main): Use it.
6919         Reported by Jim Meyering.
6920
6921 2009-12-10  Bruno Haible  <bruno@clisp.org>
6922
6923         Use spaces for indentation, not tabs.
6924         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
6925         * m4/*.m4: Untabify.
6926         * build-aux/*.h: Untabify.
6927         * tests/**/*.[hc]: Untabify.
6928         * README: New section "Indent with spaces, not TABs", based on
6929         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
6930         * NEWS: Mention the change.
6931
6932 2009-12-10  Bruno Haible  <bruno@clisp.org>
6933
6934         pty test: Fix link error.
6935         * modules/pty-tests (Makefile.am): Add the default LDADD value to
6936         test_pty_LDADD.
6937
6938 2009-12-07  Simon Josefsson  <simon@josefsson.org>
6939
6940         * modules/pty: New file.
6941         * modules/pty-tests: New file.
6942         * m4/pty.m4: New file.
6943         * tests/test-pty.c: New file.
6944         * doc/glibc-headers/pty.texi: Modified.
6945         * doc/glibc-functions/forkpty.texi: Modified.
6946         * doc/glibc-functions/openpty.texi: Modified.
6947
6948 2009-12-10  Bruno Haible  <bruno@clisp.org>
6949
6950         Avoid syntax error in C++ mode.
6951         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
6952
6953 2009-12-10  Bruno Haible  <bruno@clisp.org>
6954
6955         Use sed with option -e.
6956         * gnulib-tool (func_version, func_emit_copyright_notice,
6957         func_emit_initmacro_end, func_import, func_create_testdir): Pass
6958         option -e to sed.
6959         * modules/link-warning (Makefile.am): Likewise.
6960
6961 2009-12-10  Jim Meyering  <meyering@redhat.com>
6962
6963         mgetgroups: do not write bytes beyond end of malloc'd buffer
6964         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
6965         username, we call getgroups with a one-element-shorter buffer,
6966         but still told it the length was original, max_n_groups.
6967
6968 2009-12-09  Eric Blake  <ebb9@byu.net>
6969
6970         cloexec: relax license
6971         * modules/cloexec (Maintainer): Add myself.
6972         (License): Use LGPL, not GPL.
6973
6974         link-warning: optimize generation
6975         * modules/link-warning (Makefile.am): Reduce process usage.
6976
6977 2009-12-09  Bruno Haible  <bruno@clisp.org>
6978
6979         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
6980         workaround was added on 2009-11-17.
6981
6982 2009-12-09  Jim Meyering  <meyering@redhat.com>
6983             Bruno Haible  <bruno@clisp.org>
6984
6985         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
6986         * modules/link-warning (Makefile.am): Make the comment-removing sed
6987         command more robust in the face of bootstrap-prepended comment lines.
6988
6989 2009-12-09  Bruno Haible  <bruno@clisp.org>
6990
6991         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
6992         most one group.
6993
6994 2009-12-09  Simon Josefsson <simon@josefsson.org>
6995             Bruno Haible  <bruno@clisp.org>
6996
6997         * build-aux/link-warning.h: Add copyright notice.
6998         * modules/link-warning (Makefile.am): Generate link-warning.h from
6999         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7000         * NEWS: Mention change in link-warning module.
7001         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7002         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7003         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7004         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7005         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7006         * modules/math (Makefile.am): Add dependency to math.h.
7007         * modules/search (Makefile.am): Add dependency to search.h.
7008         * modules/signal (Makefile.am): Add dependency to signal.h.
7009         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7010         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7011         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7012         * modules/string (Makefile.am): Add dependency to string.h.
7013         * modules/strings (Makefile.am): Add dependency to strings.h.
7014         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7015         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7016         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7017         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7018         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7019         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7020         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7021         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7022         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7023
7024 2009-12-09  Bruno Haible  <bruno@clisp.org>
7025
7026         fchdir: Optimize away rpl_fstat when possible.
7027         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7028         REPLACE_OPEN_DIRECTORY.
7029         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7030
7031 2009-12-09  Bruno Haible  <bruno@clisp.org>
7032
7033         * lib/fchdir.c: Update comment.
7034
7035 2009-12-09  Bruno Haible  <bruno@clisp.org>
7036
7037         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7038
7039 2009-12-08  Eric Blake  <ebb9@byu.net>
7040
7041         fchdir: avoid memory leak on re-registration.
7042         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7043
7044 2009-12-08  Jim Meyering  <meyering@redhat.com>
7045
7046         init.sh: avoid Solaris 10 /bin/sh portability problem
7047         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7048         sourced script:
7049           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7050           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7051           bar
7052         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7053         and two tests used that idiom.
7054         * tests/init.sh: Update suggested usage comments.
7055         (path_prepend_): New function, to be used in place
7056         of the --src-path=DIR option.
7057         (setup_): Move PATH-prepending code into path_prepend_.
7058         * tests/test-pread.sh: Adapt to new usage.
7059         * tests/test-xalloc-die.sh: Likewise.
7060
7061 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7062
7063         * doc/gnulib.texi (Glibc pty.h): Add.
7064         * doc/glibc-functions/forkpty.texi: Add.
7065         * doc/glibc-functions/openpty.texi: Add.
7066         Suggested by Bruno Haible.
7067
7068 2009-12-08  Eric Blake  <ebb9@byu.net>
7069
7070         fchdir: fix logic bugs
7071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7072         * tests/test-fchdir.c (main): Enhance test.
7073         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7074         is in use.
7075
7076         dup2: fix logic bugs
7077         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7078         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7079         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7080         exists.
7081         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7082
7083 2009-12-07  Eric Blake  <ebb9@byu.net>
7084
7085         unlink: fix m4 detection
7086         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7087
7088         unistd-safer: add unit test
7089         * modules/unistd-safer-tests: New file.
7090         * tests/test-dup-safer.c: Likewise.
7091         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7092         * tests/test-dup2.c (setmode): Likewise.
7093         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7094
7095         cloexec: preserve text vs. binary across dup_cloexec
7096         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7097         mode.
7098         * modules/dup2-tests (Depends-on): Add binary-io.
7099         * modules/cloexec-tests (Depends-on): Likewise.
7100         * tests/test-dup2.c (setmode, is_mode): New helpers.
7101         (main): Add tests that translation mode is preserved.
7102         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7103         Reported by Bruno Haible.
7104
7105         mgetgroups: reduce duplicate listings
7106         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7107         resulting array.
7108         * tests/test-chown.h (test_chown): Simplify client.
7109         * tests/test-lchown.h (test_lchown): Likewise.
7110
7111 2009-12-06  Bruno Haible  <bruno@clisp.org>
7112
7113         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7114         value.
7115
7116 2009-12-06  Bruno Haible  <bruno@clisp.org>
7117
7118         * lib/progname.c: Include stdio.h, stdlib.h.
7119         (set_program_name): Reject a NULL argument.
7120
7121 2009-12-05  Eric Blake  <ebb9@byu.net>
7122
7123         pipe2-safer: new module
7124         * modules/pipe2-safer: New file.
7125         * lib/unistd-safer.h (pipe2_safer): New prototype.
7126         * lib/unistd--.h (pipe2): New wrapper.
7127         * lib/pipe-safer.c (pipe2_safer): New function.
7128         * modules/pipe (Depends-on): Add pipe2-safer.
7129         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7130
7131         stdlib-safer: preserve cloexec flag for mkostemp[s]
7132         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7133         fd_safer_flag.
7134
7135         unistd-safer: allow preservation of cloexec status via flag
7136         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7137         prototypes.
7138         * lib/dup-safer.c (dup_safer_flag): New function.
7139         * lib/fd-safer.c (fd_safer_flag): Likewise.
7140         * modules/cloexec (configure.ac): Set witness.
7141
7142         test-dup2: enhance test
7143         * modules/dup2-tests (Depends-on): Add cloexec.
7144         * tests/test-dup2.c (main): Enhance test.
7145
7146         cloexec: add dup_cloexec
7147         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7148         header and comments.
7149         * lib/cloexec.c (set_cloexec_flag): Add comments.
7150         (dup_cloexec): New function, with mingw implementation borrowed
7151         from...
7152         * lib/w32spawn.h (dup_noinherit): ...here.
7153         * modules/execute (Depends-on): Add cloexec.
7154         * modules/pipe (Depends-on): Likewise.
7155         * modules/cloexec (Depends-on): Add dup2.
7156         * modules/cloexec-tests (Files): New file.
7157         * tests/test-cloexec.c: Likewise.
7158
7159         test-xalloc-die: fix test for mingw
7160         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7161         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7162         directory and .exe suffix off argv[0] output.
7163
7164         test-fseeko: fix test for mingw
7165         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7166         than undefining fseek, so test will pass on mingw.
7167
7168 2009-12-05  Bruno Haible  <bruno@clisp.org>
7169
7170         * lib/progname.h (set_program_name): Clarify specification.
7171         * lib/progname.c (set_program_name): Likewise.
7172         Reported by Jim Meyering.
7173
7174 2009-12-05  Jim Meyering  <meyering@redhat.com>
7175
7176         maint.mk: backslash-escape parens in default regexp
7177         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7178         backslash-escape the literal parentheses.
7179
7180         maint.mk: news-date-check: use grep -E
7181         * top/maint.mk (today): Define a Make variable, not a...
7182         (news-date-check): ...shell variable.
7183         (news-date-regexp): Use the Make variable.
7184         Use grep's -E option.  Change the failing diagnostic to mention
7185         the variable, $(news-date-regexp).
7186
7187 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7188
7189         maintainer-makefile: allow customization of NEWS entry format
7190         * top/maint.mk (news-date-regexp): New overridable variable.
7191         (news-date-check): Use it.
7192
7193 2009-12-04  Eric Blake  <ebb9@byu.net>
7194
7195         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7196         * lib/mgetgroups.h (xgetgroups): New prototype.
7197         * lib/mgetgroups.c (xgetgroups): New wrapper.
7198         (mgetgroups): Handle ENOSYS.
7199         * modules/mgetgroups (Depends-on): Add realloc.
7200         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7201
7202         mgetgroups: avoid argument promotion issues with -1
7203         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7204         for invalid gid_t.
7205         * tests/test-chown.h (getegid, test_chown): Likewise.
7206         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7207
7208 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7209
7210         exclude: Fix header file problems.
7211         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7212
7213 2009-12-01  Jim Meyering  <meyering@redhat.com>
7214
7215         fts: fts_open: do not let an empty string cause immediate failure
7216         This is required in support of GNU rm, for which the command
7217         "rm A '' B" must process and remove both A and B, in spite of
7218         the empty string argument.
7219         * lib/fts.c (fts_open): Do not let the presence of an empty string
7220         cause fts_open to fail immediately.  Most fts-using tools must be
7221         able to process all arguments, in order, and can be expected to
7222         diagnose such arguments themselves.
7223
7224 2009-11-30  Eric Blake  <ebb9@byu.net>
7225
7226         utimens: fix compilation error
7227         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7228         Declare variable at right scope.
7229
7230 2009-11-29  Jim Meyering  <meyering@redhat.com>
7231
7232         bootstrap: handle perl-5.11's changed --version output
7233         * build-aux/bootstrap (get_version): Handle perl separately,
7234         since perl-5.11's --version output is different.
7235
7236 2009-11-28  Jim Meyering  <meyering@redhat.com>
7237
7238         userspec: depend on the inttostr module, too
7239         * modules/userspec (Depends-on): Add inttostr.
7240
7241         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7242         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7243         number of MAXUID when it evaluates to (uid_t) -1.
7244         Likewise for group ID.  Reported by Matt McCutchen in
7245         <http://savannah.gnu.org/bugs/?28113>
7246
7247         userspec: reformat to use spaces, not TABs
7248         * lib/userspec.c: Expand TABs to spaces.
7249         Add Emacs' "indent-tabs-mode: nil" hint.
7250
7251 2009-11-27  Eric Blake  <ebb9@byu.net>
7252
7253         getopt-gnu: flush out another BSD bug
7254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7255         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7256         flush out BSD bug.
7257         * tests/test-getopt.h (test_getopt): End lists with NULL.
7258         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7259         (test_getopt_long_posix): Enhance test.
7260         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7261         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7262         getopt-gnu.
7263         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7264         Likewise.
7265
7266 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7267
7268         * modules/idpriv-droptemp-tests (Notice): Fix text.
7269
7270 2009-11-27  Jim Meyering  <meyering@redhat.com>
7271
7272         test-xalloc-die: avoid spurious failure due to libtool argv difference
7273         In a libtool-enabled project, this test would fail due to a difference
7274         in the emitted program name, e.g.,
7275         -test-xalloc-die: memory exhausted
7276         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7277         Use program to avoid that.
7278         * modules/xalloc-die-tests (Depends-on): Add progname.
7279         * tests/test-xalloc-die.c: Include progname.h".
7280         (program_name): Remove decl.
7281         (main): Call set_program_name.
7282         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7283
7284 2009-11-26  Richard Jones  <rjones@redhat.com>
7285
7286         w32sock: leave win32 error in place.
7287         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7288
7289 2009-11-26  Eric Blake  <ebb9@byu.net>
7290
7291         init.sh: suggest to use skip_ and fail_ functions in comments
7292         * tests/init.sh: Add a sentence.
7293
7294 2009-11-25  Bruno Haible  <bruno@clisp.org>
7295
7296         init.sh: add documentation in comments
7297         * tests/init.sh: Add some developer and user documentation.
7298
7299 2009-11-26  Jim Meyering  <meyering@redhat.com>
7300
7301         init.sh: accommodate even those who specify bogus srcdir manually
7302         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7303         configure-time tests to be sanitized, so that there is no need to
7304         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7305         (with no double quotes) suffices.  However, since tests may be
7306         invoked manually, and since you may explicitly set srcdir to the
7307         name of a directory containing spaces, do quote its uses here.
7308         * tests/test-pread.sh: Likewise.
7309         Suggested by Bruno Haible.
7310
7311         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7312         * tests/test-pread.sh: Write no data into the pipe, because
7313         test-pread actually reads none.  This avoids a diagnostic,
7314         "bash: echo: write error: Broken pipe", that arises in the unusual
7315         event something is ignoring SIGPIPE, and might be interpreted
7316         as some sort of failure.  Reported by Bruno Haible.
7317
7318 2009-11-25  Jim Meyering  <meyering@redhat.com>
7319
7320         test-pread: cover failure with ESPIPE and EINVAL
7321         * tests/test-pread.c (main): Test for failure, too.
7322         * tests/test-pread.sh: Invoke with stdin on a pipe.
7323         Suggested by Eric Blake.
7324
7325         pread: improvement and fix
7326         * modules/pread (Depends-on): Depend on lseek, for portability to
7327         e.g., mingw.  Suggested by Eric Blake.
7328         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7329
7330         unistd.in.h: correct declaration of pread
7331         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7332         Reported by Richard W.M. Jones.
7333
7334         test-pread.sh: distribute the test script
7335         * modules/pread-tests (Files): Include test-pread.sh.
7336
7337         test-pread.sh: clean up
7338         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7339         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7340         That is unnecessary, since it's always ".".
7341         Suggestion from Eric Blake.
7342
7343         test-pread.sh: make executable
7344         * tests/test-pread.sh: Set executable bit.
7345         Reported by Eric Blake.
7346
7347         correct typo in test-pread.sh
7348         * tests/test-pread.sh: Add #! line.
7349
7350         test pread
7351         * tests/test-pread.c: New file.
7352         * tests/test-pread.sh: Likewise.
7353         * modules/pread-tests: Likewise.
7354
7355         pread: new module
7356         * modules/pread: New file.
7357         * lib/unistd.in.h (pread): Define/declare.
7358         * lib/pread.c (pread): New file.
7359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7360         * modules/unistd (Makefile.am): Substitute witnesses.
7361         * doc/posix-functions/pread.texi (pread): Update.
7362         * MODULES.html.sh: Add pread.
7363
7364 2009-11-25  Jim Meyering  <meyering@redhat.com>
7365
7366         tests/init.sh: new file to be used via most *.sh tests
7367         * tests/init.sh: New file.
7368
7369 2009-11-25  Eric Blake  <ebb9@byu.net>
7370
7371         utimens: work around older Linux failure with symlinks
7372         * lib/utimens.c (lutimensat_works_really): New variable.
7373         (fdutimens, lutimens): Use it to manage kernels that support
7374         nanosecond times on files, but not on symlinks.
7375         Reported by Ondřej Vašík.
7376
7377         utimes: fix configure grammar
7378         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7379
7380 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7381
7382         regex: Fix fastmap for multibyte character ranges.
7383         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7384         characters when a multibyte character range is included.
7385
7386 2009-11-22  Andy Wingo  <wingo@pobox.com>
7387
7388         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7389         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7390
7391 2009-11-24  Bruno Haible  <bruno@clisp.org>
7392
7393         doc: Most *_l functions exist in MacOS X 10.5.
7394         * doc/posix-functions/duplocale.texi: Update platforms list.
7395         * doc/posix-functions/freelocale.texi: Likewise.
7396         * doc/posix-functions/newlocale.texi: Likewise.
7397         * doc/posix-functions/uselocale.texi: Likewise.
7398         * doc/posix-functions/isalnum_l.texi: Likewise.
7399         * doc/posix-functions/isalpha_l.texi: Likewise.
7400         * doc/posix-functions/isblank_l.texi: Likewise.
7401         * doc/posix-functions/iscntrl_l.texi: Likewise.
7402         * doc/posix-functions/isdigit_l.texi: Likewise.
7403         * doc/posix-functions/isgraph_l.texi: Likewise.
7404         * doc/posix-functions/islower_l.texi: Likewise.
7405         * doc/posix-functions/isprint_l.texi: Likewise.
7406         * doc/posix-functions/ispunct_l.texi: Likewise.
7407         * doc/posix-functions/isspace_l.texi: Likewise.
7408         * doc/posix-functions/isupper_l.texi: Likewise.
7409         * doc/posix-functions/iswalnum_l.texi: Likewise.
7410         * doc/posix-functions/iswalpha_l.texi: Likewise.
7411         * doc/posix-functions/iswblank_l.texi: Likewise.
7412         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7413         * doc/posix-functions/iswctype_l.texi: Likewise.
7414         * doc/posix-functions/iswdigit_l.texi: Likewise.
7415         * doc/posix-functions/iswgraph_l.texi: Likewise.
7416         * doc/posix-functions/iswlower_l.texi: Likewise.
7417         * doc/posix-functions/iswprint_l.texi: Likewise.
7418         * doc/posix-functions/iswpunct_l.texi: Likewise.
7419         * doc/posix-functions/iswspace_l.texi: Likewise.
7420         * doc/posix-functions/iswupper_l.texi: Likewise.
7421         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7422         * doc/posix-functions/isxdigit_l.texi: Likewise.
7423         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7424         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7425         * doc/posix-functions/strcoll_l.texi: Likewise.
7426         * doc/posix-functions/strfmon_l.texi: Likewise.
7427         * doc/posix-functions/strftime_l.texi: Likewise.
7428         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7429         * doc/posix-functions/strxfrm_l.texi: Likewise.
7430         * doc/posix-functions/tolower_l.texi: Likewise.
7431         * doc/posix-functions/toupper_l.texi: Likewise.
7432         * doc/posix-functions/towctrans_l.texi: Likewise.
7433         * doc/posix-functions/towlower_l.texi: Likewise.
7434         * doc/posix-functions/towupper_l.texi: Likewise.
7435         * doc/posix-functions/wcscoll_l.texi: Likewise.
7436         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7437         * doc/posix-functions/wctrans_l.texi: Likewise.
7438         * doc/posix-functions/wctype_l.texi: Likewise.
7439         * doc/glibc-functions/strptime_l.texi: Likewise.
7440         * doc/glibc-functions/strtod_l.texi: Likewise.
7441         * doc/glibc-functions/strtof_l.texi: Likewise.
7442         * doc/glibc-functions/strtol_l.texi: Likewise.
7443         * doc/glibc-functions/strtold_l.texi: Likewise.
7444         * doc/glibc-functions/strtoll_l.texi: Likewise.
7445         * doc/glibc-functions/strtoul_l.texi: Likewise.
7446         * doc/glibc-functions/strtoull_l.texi: Likewise.
7447         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7448         * doc/glibc-functions/wcstod_l.texi: Likewise.
7449         * doc/glibc-functions/wcstof_l.texi: Likewise.
7450         * doc/glibc-functions/wcstol_l.texi: Likewise.
7451         * doc/glibc-functions/wcstold_l.texi: Likewise.
7452         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7453         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7454         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7455
7456 2009-11-24  Bruno Haible  <bruno@clisp.org>
7457
7458         duplocale: Fix logic bug.
7459         * lib/duplocale.c: Don't include <langinfo.h>.
7460         (_NL_LOCALE_NAME): Remove macro.
7461         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7462         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7463
7464 2009-11-23  Jim Meyering  <meyering@redhat.com>
7465
7466         test-update-copyright: don't hard-code /usr/bin/perl
7467         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7468         perl to print the current year.  Gilles Espinasse reported that
7469         the replaced use of perl was hard-coded as /usr/bin/perl.
7470
7471 2009-11-23  Bruno Haible  <bruno@clisp.org>
7472
7473         duplocale: Add support for glibc 2.3.x.
7474         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7475
7476 2009-11-22  Bruno Haible  <bruno@clisp.org>
7477
7478         vasnprintf: Tiny optimization.
7479         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7480         MacOS X.
7481
7482 2009-11-22  Bruno Haible  <bruno@clisp.org>
7483
7484         Tests for module 'duplocale'.
7485         * modules/duplocale-tests: New file.
7486         * tests/test-duplocale.c: New file.
7487
7488         New module 'duplocale'.
7489         * m4/duplocale.m4: New file.
7490         * lib/locale.in.h (duplocale): New declaration.
7491         * lib/duplocale.c: New file.
7492         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7493         gl_LOCALE_H_DEFAULTS): New macros.
7494         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7495         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7496         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7497         REPLACE_DUPLOCALE.
7498         * modules/duplocale: New file.
7499         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7500
7501 2009-11-22  Bruno Haible  <bruno@clisp.org>
7502
7503         * modules/locale-tests (configure.ac): Test for newlocale function.
7504         * tests/test-locale.c: When the system has extended locale functions,
7505         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7506
7507         locale: Make locale_t available when possible.
7508         * lib/locale.in.h: Include <xlocale.h> when it exists.
7509         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7510         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7511         * modules/locale (Depends-on): Add extensions.
7512         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7513         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7514
7515 2009-11-22  Bruno Haible  <bruno@clisp.org>
7516
7517         Add comments.
7518         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7519         invocation.
7520         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7521         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7522         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7523
7524 2009-11-22  Bruno Haible  <bruno@clisp.org>
7525
7526         error: account for the possibility of freopen (stdout).
7527         * lib/error.c: Include <unistd.h>.
7528         (flush_stdout): New function, extracted from error and error_at_line.
7529         Determine stdout's fd dynamically.
7530         (error, error_at_line): Invoke flush_stdout.
7531         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7532         * modules/error (Depends-on): Add unistd.
7533
7534 2009-11-22  Bruno Haible  <bruno@clisp.org>
7535
7536         diffseq: Add comment.
7537         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7538
7539 2009-11-22  Jim Meyering  <meyering@redhat.com>
7540
7541         c-stack: avoid defining an unused static function
7542         * lib/c-stack.c (find_stack_direction): Do not define this function
7543         when it will not be used.
7544
7545         diffseq: avoid spurious gcc warnings
7546         * lib/diffseq.h (IF_LINT2): Define.
7547         (compareseq): Use it to initialize two members of "part".
7548         This avoids two used-uninitialized warnings.
7549
7550 2009-11-21  Jim Meyering  <meyering@redhat.com>
7551
7552         c-stack: avoid "ignoring return value of `write'" warning
7553         * lib/c-stack.c: Include "ignore-value.h".
7554         (die): Explicitly ignore each write return value.
7555         * modules/c-stack (Depends-on): Add ignore-value.
7556
7557 2009-11-21  Bruno Haible  <bruno@clisp.org>
7558
7559         diffseq: reduce scope of variable 'best'.
7560         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7561         variable, earlier used for two different purposes.
7562
7563 2009-11-21  Jim Meyering  <meyering@redhat.com>
7564
7565         diffseq: remove useless assignment to "best"
7566         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7567         assignment.  At that point "best" is already guaranteed to be zero.
7568
7569 2009-11-20  Eric Blake  <ebb9@byu.net>
7570
7571         build: mention ftp redirector in release announcements
7572         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7573         values that used to come from cfg.mk; mention FTP redirect URL.
7574         * build-aux/announce-gen: Mention the mirror list.
7575         Suggested by Karl Berry.
7576
7577         nanosleep: improve port to mingw
7578         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7580         LIB_NANOSLEEP, but only when needed.
7581         * modules/select (Link): Document LIBSOCKET.
7582         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7583         enough.
7584
7585         nanosleep: work around cygwin bug
7586         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7587         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7588         bug.
7589         (getnow): Delete, not needed.
7590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7591         LIB_CLOCK_GETTIME.
7592         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7593         clock-time, gettime.
7594         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7595         bug.
7596         * modules/nanosleep-tests: New test.
7597         * tests/test-nanosleep.c: New file.
7598
7599         sleep: work around cygwin bug
7600         * lib/sleep.c (rpl_sleep): Work around the bug.
7601         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7602         (gl_PREREQ_SLEEP): Delete unused macro.
7603         * modules/sleep (Depends-on): Add verify.
7604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7605         * modules/unistd (Makefile.am): Substitute witness.
7606         * lib/unistd.in.h (sleep): Update prototype.
7607         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7608         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7609         * modules/sleep-tests (Depends-on): Check for alarm.
7610
7611 2009-11-20  Jim Meyering  <meyering@redhat.com>
7612
7613         maint.mk: improve sc_prohibit_magic_number_exit
7614         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7615         so it does not match uses like System.exit(1).
7616         Add comments showing how to correct all offenders.
7617
7618 2009-11-19  Eric Blake  <ebb9@byu.net>
7619
7620         xalloc-die-tests: add missing library
7621         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7622
7623         test-xvasprintf: silence compiler warnings
7624         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7625         empty string from gcc.
7626
7627 2009-11-19  Jim Meyering  <meyering@redhat.com>
7628
7629         xfreopen: new module, from coreutils
7630         * modules/xfreopen: New module.
7631         * lib/xfreopen.c: New file.
7632         * lib/xfreopen.h: New file.
7633         * MODULES.html.sh (File stream based Input/Output"): Add it.
7634
7635 2009-11-19  Eric Blake  <ebb9@byu.net>
7636
7637         manywarnings: depend on warnings
7638         * modules/manywarnings (Depends-on): Add warnings.
7639
7640         build: avoid compiler warnings
7641         * lib/select.c (rpl_select): Delete unused variable.
7642         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7643
7644 2009-11-18  Eric Blake  <ebb9@byu.net>
7645
7646         tests: avoid false negative with --with-packager
7647         * tests/test-version-etc.sh: Discard packager information.
7648         * tests/test-argp-version-etc-1.sh: Likewise.
7649         Reported by Mike Frysinger.
7650
7651         utimens: fix regression on Solaris
7652         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7653         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7654         can only change fd timestamps via futimesat.  Instead, use an
7655         additional witness macro to avoid BSD bug.
7656         Reported by Jim Meyering.
7657
7658 2009-11-17  Eric Blake  <ebb9@byu.net>
7659
7660         usleep: use it to simplify tests
7661         * modules/stat-time-tests (Depends-on): Add usleep.
7662         (configure.ac): Drop usleep check.
7663         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7664         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7665         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7666         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7667         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7668         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7669         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7670         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7671         Likewise.
7672         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7673         * tests/test-lchown.h (nap): Likewise.
7674         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7675         * tests/test-stat-time.c (nap): Likewise.
7676         * tests/test-utimens-common.h (nap): Update comments.
7677
7678         usleep: new module
7679         * modules/usleep: New file.
7680         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7681         * lib/usleep.c (usleep): Likewise.
7682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7683         * modules/unistd (Makefile.am): Substitute witnesses.
7684         * lib/unistd.in.h (usleep): Add declaration.
7685         * doc/pastposix-functions/usleep.texi (usleep): Document this.
7686         * MODULES.html.sh (Date and time): Likewise.
7687         * modules/usleep-tests (Depends-on): New test.
7688         * tests/test-usleep.c: New file.
7689
7690         chown: work around OpenBSD bug
7691         * lib/chown.c (rpl_chown): Work around the bug.
7692         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
7693         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
7694         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
7695         * modules/chown (Depends-on): Add stdbool.
7696         * modules/lchown (Depends-on): Likewise.
7697         * doc/posix-functions/chown.texi (chown): Document the bug.
7698         * doc/posix-functions/lchown.texi (lchown): Likewise.
7699         * tests/test-lchown.h (test_chown): Relax test.
7700
7701         mkstemp: avoid conflict with C++ keyword template
7702         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
7703         * lib/mkostemp.c (mkostemp): Likewise.
7704         * lib/mkostemps.c (mkostemps): Likewise.
7705         * lib/mkstemp.c (mkstemp): Likewise.
7706         * lib/mkstemps.c (mkstemps): Likewise.
7707
7708         xalloc-die-tests: optimize
7709         * tests/test-xalloc-die.sh: Reduce number of processes.
7710
7711 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7712
7713         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
7714         patch from ludo@gnu.org (Ludovic Courtès).
7715
7716 2009-11-17  Jim Meyering  <meyering@redhat.com>
7717
7718         version-etc: use proper license string
7719         * modules/version-etc (License): Use LGPL, not LGPLv3+.
7720         * modules/version-etc-fsf: Likewise.
7721
7722 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7723
7724         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
7725         printed to stdout.  Deal with EOL differences.
7726
7727 2009-11-17  Eric Blake  <ebb9@byu.net>
7728
7729         unsetenv: work around Solaris bug
7730         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
7731         * lib/unsetenv.c (rpl_unsetenv): Work around it.
7732         Reported by Jim Meyering.
7733
7734         vasnprintf: avoid compiler warnings
7735         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
7736         variables.
7737         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
7738
7739 2009-11-17  Simon Josefsson  <simon@josefsson.org>
7740
7741         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
7742         settings since xalloc-die is no longer the self test,
7743         xalloc-die.sh is.
7744
7745 2009-11-17  Jim Meyering  <meyering@redhat.com>
7746
7747         test-xalloc-die.sh: make the code agree with the commit log
7748         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
7749         at the end, just in case you happen to have a test-xalloc-die
7750         program in some other PATH directory.
7751
7752         test-xalloc-die.sh: fix a portability bug
7753         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
7754         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
7755         Otherwise, argv[0] (as often seen in diagnostics) would be too
7756         system-dependent, sometimes with, and sometimes without the leading "./".
7757
7758         version-etc-fsf: relax license to LGPLv3+
7759         * modules/version-etc-fsf (License): Relax license.
7760
7761 2009-11-16  Eric Blake  <ebb9@byu.net>
7762
7763         xalloc-die-tests: avoid printing null pointer
7764         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
7765         shell script.
7766         * tests/test-xalloc-die.c (program_name): Declare.
7767         * tests/test-xalloc-die.sh (tmpfiles): New file.
7768
7769         setenv, unsetenv: work around various bugs
7770         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
7771         (setenv) [HAVE_SETENV]: Work around bugs.
7772         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
7773         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
7774         for bugs.
7775         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
7776         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
7777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
7778         * modules/stdlib (Makefile.am): Update substitutions.
7779         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
7780         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
7781         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7782         * modules/setenv-tests: New test.
7783         * modules/unsetenv-tests: Likewise.
7784         * tests/test-setenv.c: New file.
7785         * tests/test-unsetenv.c: Likewise.
7786
7787 2009-11-16  Jim Meyering  <meyering@redhat.com>
7788
7789         version-etc: relax license to LGPLv3+
7790         * modules/version-etc (License): Relax license.
7791
7792         better AC_REQUIRE expanded-before-required-warning avoidance
7793         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
7794         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
7795         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
7796         which is no longer needed.
7797
7798 2009-11-16  Eric Blake  <ebb9@byu.net>
7799
7800         test-freading: clean up temporary file
7801         * tests/test-freading.c (main): Remove file on success, and use
7802         ASSERT more liberally.
7803         Reported by Jim Meyering.
7804
7805 2009-11-16  Jim Meyering  <meyering@redhat.com>
7806
7807         avoid new AC_REQUIRE expanded-before-required warnings
7808         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
7809         merely using it.
7810         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
7811         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
7812
7813 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7814
7815         * tests/test-xalloc-die.c: New file.
7816         * modules/xalloc-die-tests: New file.
7817         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
7818         XFAIL_TESTS so it can be appended by modules.
7819
7820 2009-11-15  Simon Josefsson  <simon@josefsson.org>
7821
7822         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
7823         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
7824
7825 2009-11-14  Eric Blake  <ebb9@byu.net>
7826
7827         fnmatch: avoid compiler warning
7828         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
7829         to silence compiler warning about mismatch signedness in ?:.
7830         Reported by Robert Millan.
7831
7832         intprops: add double-inclusion guard
7833         * lib/intprops.h: Allow idempotent includes.
7834         Suggested by Bruce Korb.
7835
7836         openat: detect Solaris fchownat bug
7837         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
7838         penalizing glibc chownat when only lchownat is broken.
7839         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
7840         trailing slash bugs.
7841         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
7842         * modules/openat-tests (Files): Include more files.
7843         (Depends-on): Add mgetgroups, sleep, stat-time.
7844         (configure.ac): Add additional checks.
7845         (Makefile.am): Build new test.
7846         * tests/test-fchownat.c: New file.
7847
7848         lchown: detect Solaris and FreeBSD bug
7849         * lib/lchown.c (rpl_lchown): Work around bug.
7850         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
7851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7852         * modules/unistd (Makefile.am): Populate it.
7853         * lib/unistd.in.h (lchown): Update declaration.
7854         * doc/posix-functions/lchown.texi (lchown): Document the bug.
7855         * modules/lchown-tests: New file.
7856         * tests/test-lchown.h (test_lchown): Likewise.
7857         * tests/test-lchown.c (main): Likewise.
7858
7859         chown: detect Solaris and FreeBSD bug
7860         * lib/chown.c (rpl_chown): Work around bug.
7861         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
7862         (gl_PREREQ_CHOWN): Delete.
7863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7864         * modules/unistd (Makefile.am): Populate it.
7865         * lib/unistd.in.h (chown): Update declaration.
7866         * lib/lchown.c (chown): Update client.
7867         * modules/lchown (Depends-on): Add lstat.
7868         * doc/posix-functions/chown.texi (chown): Document the bug.
7869         * doc/posix-functions/getgroups.texi (getgroups): Document
7870         getgroups pitfall.
7871         * modules/chown-tests: New file.
7872         * tests/test-chown.h (test_chown): Likewise.
7873         * tests/test-chown.c (main): Likewise.
7874
7875 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
7876
7877         gnulib-tool: correctly detect absence of m4 directories
7878         * gnulib-tool: Avoid extra newline on data passed to wc -l.
7879
7880 2009-11-14  Jim Meyering  <meyering@redhat.com>
7881
7882         maint.mk: Prohibit inclusion of "xalloc.h" without use.
7883         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7884
7885 2009-11-14  John W. Eaton  <jwe@gnu.org>
7886
7887         strftime.h: wrap funtion declaration in extern "C" block
7888         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
7889
7890 2009-11-13  Eric Blake  <ebb9@byu.net>
7891
7892         getgroups: avoid compiler warning
7893         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
7894
7895         getgroups: work around FreeBSD bug
7896         * lib/getgroups.c (rpl_getgroups): Work around the bug.
7897         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
7898         * doc/posix-functions/getgroups.texi (getgroups): Document it.
7899         * tests/test-getgroups.c (main): Fix buffer overrun.
7900
7901         getgroups: avoid compilation failure
7902         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
7903         * modules/getgroups (Depends-on): Add stdint.
7904
7905 2009-11-13  Jim Meyering  <meyering@redhat.com>
7906
7907         test-getgroups: avoid compilation failure
7908         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
7909
7910 2009-11-13  Eric Blake  <ebb9@byu.net>
7911
7912         mgetgroups: new module, taken from coreutils
7913         * modules/mgetgroups: New file.
7914         * lib/mgetgroups.h: Likewise.
7915         * lib/mgetgroups.c (mgetgroups): Likewise.
7916         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
7917         * MODULES.html.sh (Users and groups): Mention it.
7918
7919         getgroups: don't expose GETGROUPS_T to user
7920         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
7921         an element at a time if GETGROUPS_T is wrong size.
7922         * lib/getugroups.h (getugroups): Change signature.
7923         * lib/unistd.in.h (getgroups): Likewise.
7924         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
7925         signature needs fixing.
7926         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
7927         AC_TYPE_GETGROUPS.
7928         * modules/group-member (Depends-on): Add getgroups.
7929         * lib/group-member.c (group_info, get_group_info): Use gid_t.
7930         (group_member): Rely on getgroups replacement.
7931         * lib/getugroups.c (getugroups): Use gid_t.
7932         * tests/test-getgroups.c (main): Likewise.
7933         * NEWS: Mention the signature change.
7934         * doc/posix-functions/getgroups.texi (getgroups): Mention the
7935         problem with signature.
7936         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
7937         GETGROUPS_T is still useful for setgroups.
7938
7939         getgroups, getugroups: provide stubs for mingw
7940         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
7941         * lib/getugroups.c (getugroups): Likewise.
7942         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
7943         function.  Modernize replacement scheme.
7944         (gl_PREREQ_GETGROUPS): Delete.
7945         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
7946         * modules/getgroups (configure.ac): Declare witness.
7947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7948         * modules/unistd (Depends-on): Substitute witness.
7949         * lib/unistd.in.h (getgroups): Declare replacement.
7950
7951         getgroups: avoid calling exit
7952         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
7953         drop xalloc.
7954         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
7955         dependencies.
7956         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
7957         exiting, in the rare case of malloc failure.
7958
7959         getgroups: fix logic error
7960         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
7961         has more than 20 groups.
7962         * modules/getgroups-tests: New test.
7963         * tests/test-getgroups.c: New file.
7964
7965 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7966
7967         * tests/test-base64.c: Improve.
7968
7969 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7970
7971         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
7972         Blake <ebb9@byu.net>.
7973
7974 2009-11-13  Simon Josefsson  <simon@josefsson.org>
7975
7976         * tests/test-xvasprintf.c: Add %s%s related checks.
7977
7978 2009-11-12  Eric Blake  <ebb9@byu.net>
7979
7980         version-etc: match standards.texi style
7981         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
7982         and use <> only for URLs.
7983
7984 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
7985
7986         fts: do not fail on a submount during traversal
7987         * lib/fts.c (fts_build): Read the stat info again after opening
7988         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
7989         Original report at http://bugzilla.redhat.com/501848.
7990
7991 2009-11-12  Jim Meyering  <meyering@redhat.com>
7992
7993         bootstrap: sync from coreutils
7994         * build-aux/bootstrap (bootstrap_epilogue): New function.
7995         Use git_modules_config in one more place.  This make bootstrap's
7996         --gnulib-srcdir option more useful for testing.
7997
7998         bootstrap: generalize autoheader check
7999         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8000         AC_CONFIG_HEADERS.
8001
8002 2009-11-11  Eric Blake  <ebb9@byu.net>
8003
8004         mkfifoat: use new modules for Solaris and BSD bugs
8005         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8006         * lib/mkfifoat.c (mknodat): Split...
8007         * lib/mknodat.c (mknodat): ...into new file.
8008         * modules/mkfifoat (Files): Ship new file.
8009         (Depends-on): Add mkfifo, mknod.
8010         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8011         (Depends-on): Add symlink.
8012         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8013         redundant with test_mkfifo.h.
8014         (do_mkfifoat, do_mknodat): New helpers.
8015
8016         mknod: new module
8017         * modules/mknod: New file.
8018         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8019         * lib/mknod.c (mknod): Likewise.
8020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8021         defaults.
8022         * modules/sys_stat (Makefile.am): Substitute them.
8023         * lib/sys_stat.in.h (mknod): Declare replacement.
8024         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8025         Document it.
8026         * doc/posix-functions/mknod.texi (mknod): Likewise.
8027         * modules/mknod-tests: New test.
8028         * tests/test-mknod.c: Likewise.
8029
8030         mkfifo: new module
8031         * modules/mkfifo: New file.
8032         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8033         * lib/mkfifo.c (mkfifo): Likewise.
8034         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8035         defaults.
8036         * modules/sys_stat (Makefile.am): Substitute them.
8037         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8038         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8039         Document it.
8040         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8041         * modules/mkfifo-tests: New test.
8042         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8043         from test-mkfifoat.c.
8044         * tests/test-mkfifo.c: New file.
8045
8046         readlink: detect FreeBSD bug
8047         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8048         slash on symlink.
8049         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8050         * tests/test-readlink.h (test_readlink): Enhance test.
8051
8052         symlink: detect FreeBSD bug
8053         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8054         slash on symlink.
8055         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8056         * tests/test-symlink.h (test_symlink): Enhance test.
8057
8058 2009-11-10  Eric Blake  <ebb9@byu.net>
8059
8060         link: detect FreeBSD bug
8061         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8062         symlink.
8063         * doc/posix-functions/link.texi (link): Document the bug.
8064         * tests/test-link.h (test_link): Enhance test.
8065         * tests/test-linkat.c (main): Update caller.
8066
8067         unlink, remove: detect FreeBSD bug
8068         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8069         slash on symlink.
8070         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8071         * doc/posix-functions/remove.texi (remove): Likewise.
8072         * tests/test-unlink.h (test_unlink): Enhance test.
8073         * tests/test-remove.c (main): Likewise.
8074
8075 2009-11-09  Eric Blake  <ebb9@byu.net>
8076
8077         rename: detect FreeBSD bug
8078         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8079         slash on symlink.
8080         * modules/renameat-tests (Depends-on): Add filenamecat.
8081         * tests/test-rename.h (test_rename): Allow one more errno.
8082         * tests/test-renameat.c (main): Likewise.
8083         * doc/posix-functions/rename.texi (rename): Document the bug.
8084
8085         open: detect FreeBSD bug
8086         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8087         symlink.
8088         * doc/posix-functions/open.texi (open): Document the bug.
8089         * doc/posix-functions/utimes.texi (utimes): Likewise.
8090         * tests/test-open.h (test_open): Add parameters, and test symlink
8091         handling.
8092         * tests/test-open.c (main): Adjust caller.
8093         * tests/test-fcntl-safer.c (main): Likewise.
8094         * modules/open-tests (Depends-on): Add stdbool, symlink.
8095         * modules/fcntl-safer-tests (Depends-on): Likewise.
8096         * tests/test-openat.c (main): Add test-open tests.
8097
8098         stat: detect FreeBSD bug
8099         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8100         symlink.
8101         * doc/posix-functions/stat.texi (stat): Document the bug.
8102         * tests/test-stat.h (test_stat_func): Add argument.
8103         * tests/test-stat.c (main): Adjust caller.
8104         * tests/test-fstatat.c (main): Likewise.
8105         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8106         Reported by Jim Meyering.
8107
8108 2009-11-09  James Youngman  <jay@gnu.org>
8109
8110         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8111         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8112
8113 2009-11-08  Jim Meyering  <meyering@redhat.com>
8114
8115         utimens: remove invalid futimesat call
8116         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8117         It used the file descriptor of the target file as the DIR_FD
8118         parameter and NULL as the file name.  That caused failure with
8119         errno == EFAULT on FreeBSD-8.0-rc2
8120
8121 2009-11-07  Eric Blake  <ebb9@byu.net>
8122
8123         fflush, freadseek: use fseeko, not fseek
8124         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8125         (clear_ungetc_buffer): Avoid potential problems on large files.
8126         * lib/freadseek.c (freadseek): Likewise.
8127         * modules/freadseek (Depends-on): Add fseeko.
8128         * modules/fseek (configure.ac): Set a witness.
8129         * tests/test-fflush.c (main): Use fseeko.
8130         * tests/test-fpurge.c (fseek): Disable link warning.
8131         * tests/test-freadable.c (fseek): Likewise.
8132         * tests/test-freading.c (fseek): Likewise.
8133         * tests/test-fseeko.c (fseek): Likewise.
8134         * tests/test-ftell.c (fseek): Likewise.
8135         * tests/test-ftello.c (fseek): Likewise.
8136         * tests/test-fwritable.c (fseek): Likewise.
8137         * tests/test-fwriting.c (fseek): Likewise.
8138
8139 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8140
8141         * modules/memchr (Depends-on): Drop getpagesize dependency.
8142
8143 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8144
8145         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8146         Reported by Ludovic Courtès.
8147         * build-aux/pmccabe2html: Improve example usage.
8148         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8149
8150 2009-11-06  Jim Meyering  <meyering@redhat.com>
8151
8152         do-release-commit-and-tag: New module.
8153         Automate the release-commit and tag process.
8154         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8155         * modules/do-release-commit-and-tag: New file.
8156         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8157
8158 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8159
8160         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8161         because test-select.c uses inet_pton.
8162
8163 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8164
8165         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8166         GETADDRINFO_LIB.  Bump serial number.
8167         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8168         Suggested by Eric Blake <ebb9@byu.net>.
8169
8170 2009-11-05  Eric Blake  <ebb9@byu.net>
8171
8172         strtod: detect darwin bug
8173         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8174         Reported by Leo Davis.
8175
8176         freopen-safer: new module
8177         * modules/freopen-safer: New module.
8178         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8179         * lib/freopen-safer.c (freopen_safer): New file.
8180         * lib/stdio-safer.h (freopen_safer): New declaration.
8181         * lib/stdio--.h (freopen): New override.
8182         * MODULES.html.sh (File stream based Input/Output): Mention it.
8183         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8184         freopen-safer module.
8185         * doc/posix-functions/stderr.texi (stderr): Likewise.
8186         * doc/posix-functions/stdin.texi (stdin): Likewise.
8187         * doc/posix-functions/stdout.texi (stdout): Likewise.
8188         * modules/freopen-safer-tests: New test.
8189         * tests/test-reopen-safer.c: New file.
8190
8191 2009-11-05  Jim Meyering  <meyering@redhat.com>
8192
8193         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8194         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8195
8196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8197
8198         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8199
8200 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8201
8202         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8203
8204 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8205
8206         Fix link error.
8207         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8208         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8209
8210 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8211
8212         * tests/test-func.c: Also test value of __func__.
8213
8214 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8215
8216         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8217         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8218
8219 2009-11-05  Bruno Haible  <bruno@clisp.org>
8220
8221         Fix link error.
8222         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8223         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8224         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8225
8226 2009-11-05  Bruno Haible  <bruno@clisp.org>
8227
8228         Tests for module 'inet_pton'.
8229         * modules/inet_pton-tests: New file.
8230         * tests/test-inet_pton.c: New file.
8231
8232 2009-11-05  Bruno Haible  <bruno@clisp.org>
8233
8234         Tests for module 'inet_ntop'.
8235         * modules/inet_ntop-tests: New file.
8236         * tests/test-inet_ntop.c: New file.
8237
8238 2009-11-04  Eric Blake  <ebb9@byu.net>
8239
8240         stdlib-safer: wrap all mkstemp variants
8241         * modules/mkostemp (configure.ac): Set witness.
8242         * modules/mkostemps (configure.ac): Likewise.
8243         * modules/mkstemps (configure.ac): Likewise.
8244         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8245         (mkstemps_safer): Wrap more functions.
8246         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8247         wrapping.
8248         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8249         (mkstemps_safer): Implement the wrappers.
8250
8251         mkstemps, mkostemps: new modules
8252         * modules/mkostemps: New module.
8253         * modules/mkstemps: Likewise.
8254         * lib/mkostemps.c (mkostemps): New file.
8255         * lib/mkstemps.c (mkstemps): Likewise.
8256         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8257         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8259         * modules/stdlib (Makefile.am): Substitute them.
8260         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8261         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8262         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8263         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8264         * MODULES.html.sh (File system functions): Mention them.
8265
8266         tempname: resync from glibc
8267         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8268         same values for __GT_FILE as glibc.  Abort even when assertions
8269         are disabled.
8270         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8271         match its value otherwise.  Allow idempotent inclusion.
8272         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8273         * lib/mkostemp.c (mkostemp): Likewise.
8274         * lib/mkstemp.c (mkstemp): Likewise.
8275         * lib/tmpfile.c (tmpfile): Likewise.
8276         * NEWS: Document this.
8277
8278         utimens: fix use of futimens on older Linux
8279         * lib/utimens.c (fdutimens): Use updated, rather than original,
8280         timespec to avoid bug in older Linux kernel.
8281         Reported by Simon Josefsson.
8282
8283 2009-11-04  Bruno Haible  <bruno@clisp.org>
8284
8285         Make num_processors more flexible and consistent.
8286         * lib/nproc.h (enum nproc_query): New type.
8287         (num_processors): Add a 'query' argument.
8288         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8289         (num_processors): Add a 'query' argument. Test the value of the
8290         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8291         mingw, count the number of CPUs available for the current process.
8292         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8293         Check for sched_getaffinity and sched_getaffinity_np.
8294         * modules/nproc (Depends-on): Add c-ctype, extensions.
8295         * NEWS: Mention the change.
8296
8297 2009-11-03  Bruno Haible  <bruno@clisp.org>
8298
8299         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8300
8301 2009-11-03  Jim Meyering  <meyering@redhat.com>
8302
8303         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8304         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8305         if it is defined.
8306
8307 2009-11-02  Eric Blake  <ebb9@byu.net>
8308
8309         mktime, timegm: share common declaration
8310         * lib/mktime-internal.h: New file.
8311         * lib/mktime.c: Use it rather than open-coding a declaration.
8312         * lib/timegm.c: Likewise.
8313         * modules/mktime (Files): Ship it.
8314         * modules/timegm (Files): Likewise.
8315         Suggested by Bruno Haible.
8316
8317         test-update-copyright: update test to match script changes
8318         * tests/test-update-copyright.sh: Avoid hard-coding perl
8319         location.  Don't update *.bak created by earlier runs.
8320
8321 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8322             Simon Josefsson  <simon@josefsson.org>
8323             Bruno Haible  <bruno@clisp.org>
8324
8325         Fix link error on Solaris 8.
8326         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8327         also in libnsl. Define also INET_PTON_LIB.
8328         * modules/inet_pton (Link): New section.
8329
8330 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8331             Bruno Haible  <bruno@clisp.org>
8332
8333         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8334         * modules/inet_ntop (Link): New section.
8335         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8336
8337 2009-11-02  Eric Blake  <ebb9@byu.net>
8338
8339         maint: avoid compiler warnings in m4 macros
8340         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8342
8343 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8344
8345         * m4/pmccabe2html.m4: Remove file.
8346         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8347         function.  Change maintainer.
8348         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8349         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8350         Courtès).
8351
8352 2009-10-31  Eric Blake  <ebb9@byu.net>
8353
8354         fseeko: fix m4 regression
8355         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8356         regression from 2009-10-27.
8357         Reported by Ralf Wildenhues.
8358
8359 2009-10-31  Jim Meyering  <meyering@redhat.com>
8360
8361         inttostr: aesthetics and improved (compile-time) safety
8362         Define inttype_is_signed rather than inttype_is_unsigned,
8363         since the sole use is via "#if inttype_is_signed".
8364         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8365         inttype_is_unsigned.
8366         * lib/offtostr.c (inttype_is_signed): Likewise.
8367         * lib/uinttostr.c (inttype_is_signed): Likewise.
8368         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8369         * lib/inttostr.c (inttostr): Use verify to cross-check the
8370         inttype_is_signed value and the signedness of the actual type.
8371         * modules/inttostr (Depends-on): Add verify.
8372
8373 2009-10-30  Eric Blake  <ebb9@byu.net>
8374
8375         build: avoid compiler warnings
8376         * lib/fchmodat.c (lchmod): Mark unused variables.
8377         * lib/getopt.c (_getopt_initialize): Likewise.
8378         * lib/mktime.c (__mktime_internal): Provide prototype.
8379         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8380         older gcc that do not understand #pragma GCC diagnostic.
8381         * lib/uinttostr.c (inttype_is_unsigned): Define.
8382         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8383
8384 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8385
8386         stat: fix compilation on AIX
8387         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8388         only see struct stat64.
8389
8390 2009-10-30  Eric Blake  <ebb9@byu.net>
8391
8392         exclude: make more robust
8393         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8394         rather than masking a coding bug.
8395         Suggested by Bruno Haible.
8396
8397 2009-10-30  Jim Meyering  <meyering@redhat.com>
8398
8399         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8400         Rather than putting #!/usr/bin/perl on the first line,
8401         start with a variant of what's recommended by "man perlrun" that
8402         invokes the first "perl" program from your shell's search path.
8403         * build-aux/gitlog-to-changelog: Replace #!... as above.
8404         Add a "Local Variables" perl mode setting.
8405         Prompted by a patch from Ludovic Courtès.
8406         Improved by Eric Blake.
8407         * build-aux/useless-if-before-free: Likewise.
8408         * build-aux/announce-gen: Likewise.
8409         * build-aux/update-copyright: Likewise.
8410
8411 2009-10-29  Eric Blake  <ebb9@byu.net>
8412
8413         filenamecat-lgpl: adjust clients
8414         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8415         filenamecat.
8416         * modules/renameat (Depends-on): Likewise.
8417
8418         filenamecat: split into filenamecat-lgpl
8419         * modules/filenamecat-lgpl: New module.
8420         * modules/filenamecat (Files): Move library-safe files into
8421         filenamecat-lgpl.
8422         (Depends-on): Add filenamecat-lgpl.
8423         (configure.ac): Declare witness.
8424         * lib/filenamecat.h (file_name_concat): Only declare when using
8425         GPL module.
8426         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8427         Move...
8428         * lib/filenamecat-lgpl.c: ...into new file.
8429         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8430         (gl_FILE_NAME_CONCAT): Use it.
8431         * MODULES.html.sh (File system functions): Mention new module.
8432
8433         argp: avoid memory leak
8434         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8435         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8436         base_name, since the latter malloc()s and can call exit().
8437         Leak introduced 2006-07-03.
8438
8439         dirname-lgpl: adjust clients that don't need full dirname
8440         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8441         * modules/filenamecat (Depends-on): Likewise.
8442         * modules/linkat (Depends-on): Likewise.
8443         * modules/mkancesdirs (Depends-on): Likewise.
8444         * modules/mkdir (Depends-on): Likewise.
8445         * modules/openat (Depends-on): Likewise.
8446         * modules/savewd (Depends-on): Likewise.
8447         * modules/rename (Depends-on): Likewise.
8448         (License): Relax license.
8449         * modules/mkdir-tests (Depends-on): Drop progname.
8450         (Makefile.am): Delete unneeded LDADD.
8451         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8452
8453         dirname: split into dirname-lgpl
8454         * modules/dirname-lgpl: New module.
8455         * modules/dirname (Files): Move library-safe files into
8456         dirname-lgpl.
8457         (Depends-on): Add dirname-lgpl.
8458         (configure.ac): Declare witness.
8459         * modules/double-slash-root (License): Relax license.
8460         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8461         module.
8462         * lib/dirname.c (dir_len, mdir_name): Move...
8463         * lib/dirname-lgpl.c: ...into new file.
8464         * lib/basename.c (last_component, base_len): Move...
8465         * lib/basename-lgpl.c: ...into new file.
8466         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8467         (gl_DIRNAME): Use it.
8468         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8469         Mention new module.
8470         * modules/dirname-tests (Depends-on): Add progname.
8471         * tests/test-dirname.c (program_name): Delete.
8472
8473         mkdir: make safe for libraries
8474         * modules/mkdir (Depends-on): Drop xalloc.
8475         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8476         exit.
8477
8478         tests: avoid some compiler warnings
8479         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8480         literals.
8481         * tests/test-memchr.c (main): Avoid type mismatch.
8482         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8483         * tests/test-base64.c (main): Likewise.
8484         * tests/test-getdelim.c (main): Likewise.
8485         * tests/test-gethostname.c (main): Likewise.
8486         * tests/test-getline.c (main): Likewise.
8487         * tests/test-netinet_in.c (main): Likewise.
8488         * tests/test-select.c (open_server_socket, main): Likewise.
8489         * tests/test-select-stdin.c (main): Likewise.
8490         * tests/test-sockets.c (main): Likewise.
8491         * tests/test-strsignal.c (main): Likewise.
8492         * tests/test-sys_select.c (main): Likewise.
8493         * tests/test-sys_socket.c (main): Likewise.
8494         * tests/test-u64.c (main): Likewise.
8495         * tests/test-xfprintf-posix.c (main): Likewise.
8496         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8497
8498         sockets: avoid compiler warning
8499         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8500
8501         maint: detect usage(1) and other suspicious exits
8502         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8503
8504 2009-10-29  Jim Meyering  <meyering@redhat.com>
8505
8506         timespec: long-to-int truncation could make timespec_cmp malfunction
8507         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8508         a multiple of 2^32 nanoseconds as no difference.
8509
8510 2009-10-28  Jim Meyering  <meyering@redhat.com>
8511
8512         fprintftime: wrap macro code argument in "do {...} while(0)"
8513         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8514         cpy macro must be a statement that can be followed by a semicolon.
8515         Now that the else clause contains a comment and is hence longer
8516         than one line, I require curly braces.  That in turn requires
8517         that we wrap this code block in the standard do...while(0).
8518
8519         fprintftime: remove stray semicolon from previous change
8520         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8521
8522         fprintftime: avoid a warning about ignored fwrite return value
8523         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8524         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8525         that is unsafe.
8526         * modules/fprintftime (Depends-on): Add ignore-value.
8527
8528         exclude: avoid an unwarranted warning
8529         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8530
8531 2009-10-27  Eric Blake  <ebb9@byu.net>
8532
8533         fseek: avoid compilation failure when fflush is replaced
8534         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8535         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8536         module is in use.
8537         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8538         module is not in use; since REPLACE_FSEEK worked otherwise.
8539         (GNULIB_FTELLO): Likewise for ftell.
8540         Reported by Ian Beckwith and others.
8541
8542 2009-10-27  Bruno Haible  <bruno@clisp.org>
8543
8544         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8545         Reported by Jim Meyering.
8546
8547 2009-10-27  Jim Meyering  <jim@meyering.net>
8548             Bruno Haible  <bruno@clisp.org>
8549
8550         Avoid warning despite dropping the return value of fwrite.
8551         * lib/unicodeio.c: Include ignore-value.h.
8552         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8553         * modules/unicodeio (Depends-on): Add ignore-value.
8554
8555 2009-10-26  Eric Blake  <ebb9@byu.net>
8556
8557         areadlinkat: fix fallback path
8558         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8559         pointer and zero.
8560
8561 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8562
8563         Use a better IO block size for modern systems
8564         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8565         * lib/md2.c: Likewise.
8566         * lib/md4.c: Likewise.
8567         * lib/md5.c: Likewise.
8568         * lib/sha1.c: Likewise.
8569         * lib/sha256.c: Likewise.
8570         * lib/sha512.c: Likewise.
8571
8572 2009-10-22  Eric Blake  <ebb9@byu.net>
8573
8574         tests: avoid several compiler warnings
8575         * tests/test-getcwd.c (main): Avoid buffer underflow.
8576         * tests/test-getdate.c (main): String literals are not safe with
8577         putenv, so use setenv.  Declare unused argument.
8578         * modules/getdate-tests (Depends-on): Add setenv.
8579         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8580         problems with string literals in char *.
8581         * tests/test-hash.c (main): Avoid shadowing declaration.
8582         (insert_new): Treat string literals as char const *.
8583         * tests/test-getopt.h (test_getopt): Likewise.
8584         (getopt_loop): Alter types to minimize casting elsewhere.
8585         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8586         (test_getopt_long_posix): Likewise.
8587         (do_getopt_long): Add wrapper to minimize casting.
8588         * tests/test-atexit.c (clear_temp_file): Use void.
8589         * tests/test-areadlink-with-size.c (main): Declare unused
8590         arguments.
8591         * tests/test-areadlink.c (main): Likewise.
8592         * tests/test-areadlinkat-with-size.c (main): Likewise.
8593         * tests/test-areadlinkat.c (main): Likewise.
8594         * tests/test-canonicalize-lgpl.c (main): Likewise.
8595         * tests/test-canonicalize.c (main): Likewise.
8596         * tests/test-dirent-safer.c (main): Likewise.
8597         * tests/test-dirname.c (main): Likewise.
8598         * tests/test-dup2.c (main): Likewise.
8599         * tests/test-fchdir.c (main): Likewise.
8600         * tests/test-fcntl-h.c (main): Likewise.
8601         * tests/test-fcntl-safer.c (main): Likewise.
8602         * tests/test-fdopendir.c (main): Likewise.
8603         * tests/test-fdutimensat.c (main): Likewise.
8604         * tests/test-fflush.c (main): Likewise.
8605         * tests/test-filenamecat.c (main): Likewise.
8606         * tests/test-filevercmp.c (main): Likewise.
8607         * tests/test-fopen-safer.c (main): Likewise.
8608         * tests/test-fopen.c (main): Likewise.
8609         * tests/test-fpending.c (main): Likewise.
8610         * tests/test-fpurge.c (main): Likewise.
8611         * tests/test-freading.c (main): Likewise.
8612         * tests/test-fstatat.c (main): Likewise.
8613         * tests/test-fsync.c (main): Likewise.
8614         * tests/test-futimens.c (main): Likewise.
8615         * tests/test-getndelim2.c (main): Likewise.
8616         * tests/test-gettimeofday.c (main): Likewise.
8617         * tests/test-getopt.c (main): Likewise.
8618         * tests/test-i-ring.c (main): Likewise.
8619         * tests/test-inttypes.c (main): Likewise.
8620         * tests/test-link.c (main): Likewise.
8621         * tests/test-lstat.c (main): Likewise.
8622         * tests/test-math.c (main): Likewise.
8623         * tests/test-md5.c (main): Likewise.
8624         * tests/test-memchr2.c (main): Likewise.
8625         * tests/test-memrchr.c (main): Likewise.
8626         * tests/test-mkdir.c (main): Likewise.
8627         * tests/test-mkdirat.c (main): Likewise.
8628         * tests/test-mkfifoat.c (main): Likewise.
8629         * tests/test-open.c (main): Likewise.
8630         * tests/test-openat-safer.c (main): Likewise.
8631         * tests/test-openat.c (main): Likewise.
8632         * tests/test-quotearg.c (main): Likewise.
8633         * tests/test-rawmemchr.c (main): Likewise.
8634         * tests/test-readlink.c (main): Likewise.
8635         * tests/test-remove.c (main): Likewise.
8636         * tests/test-rename.c (main): Likewise.
8637         * tests/test-renameat.c (main): Likewise.
8638         * tests/test-rmdir.c (main): Likewise.
8639         * tests/test-sha1.c (main): Likewise.
8640         * tests/test-signal.c (main): Likewise.
8641         * tests/test-sigaction.c (main): Likewise.
8642         * tests/test-stat.c (main): Likewise.
8643         * tests/test-stat-time.c (main): Likewise.
8644         * tests/test-stddef.c (main): Likewise.
8645         * tests/test-stdint.c (main): Likewise.
8646         * tests/test-stdio.c (main): Likewise.
8647         * tests/test-stdlib.c (main): Likewise.
8648         * tests/test-strchrnul.c (main): Likewise.
8649         * tests/test-strerror.c (main): Likewise.
8650         * tests/test-string.c (main): Likewise.
8651         * tests/test-strtod.c (main): Likewise.
8652         * tests/test-strverscmp.c (main): Likewise.
8653         * tests/test-symlink.c (main): Likewise.
8654         * tests/test-symlinkat.c (main): Likewise.
8655         * tests/test-sys_stat.c (main): Likewise.
8656         * tests/test-sys_time.c (main): Likewise.
8657         * tests/test-time.c (main): Likewise.
8658         * tests/test-unistd.c (main): Likewise.
8659         * tests/test-unlink.c (main): Likewise.
8660         * tests/test-unlinkat.c (main): Likewise.
8661         * tests/test-utimens.c (main): Likewise.
8662         * tests/test-utimensat.c (main): Likewise.
8663         * tests/test-version-etc.c (main): Likewise.
8664         * tests/test-wchar.c (main): Likewise.
8665         * tests/test-wctype.c (main): Likewise.
8666         * tests/test-xprintf-posix.c (main): Likewise.
8667         * tests/test-posixtm.c (main): Likewise.
8668         (STREQ): Delete unused macro.
8669         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8670         shadowed variables.
8671         * tests/test-memchr.c (main): Likewise.
8672
8673 2009-10-21  Eric Blake  <ebb9@byu.net>
8674
8675         areadlinkat: avoid failure on older glibc
8676         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8677         rather than mis-comparing 0 against FUNC_RESULT of char*.
8678
8679 2009-10-21  Bruno Haible  <bruno@clisp.org>
8680
8681         * modules/stpncpy (License): Relicense under LGPLv2+.
8682         Reported by David Lutterkort <lutter@redhat.com>.
8683
8684 2009-10-20  Eric Blake  <ebb9@byu.net>
8685
8686         utimensat: work around Solaris 9 bug
8687         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
8688         has trailing slash bugs.
8689         * tests/test-lutimens.h (test_lutimens): Enhance test.
8690         * tests/test-utimens.h (test_utimens): Likewise.
8691         * doc/posix-functions/utime.texi (utime): Enhance documentation.
8692         * doc/posix-functions/utimes.texi (utimes): Likewise.
8693         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8694         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
8695         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
8696         * doc/posix-functions/futimens.texi (futimens): Likewise.
8697
8698         fdutimensat: new module
8699         * modules/fdutimensat: New file.
8700         * lib/fdutimensat.c (fdutimensat): Likewise.
8701         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
8702         * MODULES.html.sh (File system functions): Mention module.
8703         * modules/fdutimensat-tests: New test.
8704         * tests/test-fdutimensat.c: Likewise.
8705
8706         doc: regenerate INSTALL
8707         * doc/INSTALL: Reflect recent autoconf update.
8708         * doc/INSTALL.ISO: Likewise.
8709         * doc/INSTALL.UTF-8: Likewise.
8710
8711 2009-10-20  Pádraig Brady  <P@draigBrady.com>
8712
8713         acl: warn if ACL support is not detected
8714         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
8715
8716 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
8717
8718         * lib/nproc.h: Add extern "C" block for C++.
8719
8720 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
8721             Bruno Haible  <bruno@clisp.org>
8722
8723         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
8724         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
8725         * doc/posix-functions/isalpha.texi: Likewise.
8726         * doc/posix-functions/isblank.texi: Likewise.
8727         * doc/posix-functions/iscntrl.texi: Likewise.
8728         * doc/posix-functions/isdigit.texi: Likewise.
8729         * doc/posix-functions/isgraph.texi: Likewise.
8730         * doc/posix-functions/islower.texi: Likewise.
8731         * doc/posix-functions/isprint.texi: Likewise.
8732         * doc/posix-functions/ispunct.texi: Likewise.
8733         * doc/posix-functions/isspace.texi: Likewise.
8734         * doc/posix-functions/isupper.texi: Likewise.
8735         * doc/posix-functions/isxdigit.texi: Likewise.
8736
8737 2009-10-18  Bruno Haible  <bruno@clisp.org>
8738
8739         Tests for module 'isblank'.
8740         * modules/isblank-tests: New file.
8741         * tests/test-isblank.c: New file.
8742
8743         New module 'isblank'.
8744         * lib/isblank.c: New file.
8745         * m4/isblank.m4: New file.
8746         * modules/isblank: New file.
8747         * doc/posix-functions/isblank.texi: Mention the new module.
8748
8749 2009-10-18  Bruno Haible  <bruno@clisp.org>
8750
8751         New module 'ctype'.
8752         * lib/ctype.in.h: New file.
8753         * m4/ctype.m4: New file.
8754         * modules/ctype: New file.
8755         * doc/posix-headers/ctype.texi: Mention the new module.
8756
8757 2009-10-18  Jim Meyering  <meyering@redhat.com>
8758
8759         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
8760         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
8761         right after its initialization, rather than farther down.
8762         Keeping these in close proximity makes it easier to ensure
8763         that each such variable is initialized.  E.g.,
8764
8765             LIB_CLOCK_GETTIME=
8766             AC_SUBST([LIB_CLOCK_GETTIME])
8767
8768         This change also increments these serial numbers.
8769         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
8770         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8772
8773 2009-10-18  Bruno Haible  <bruno@clisp.org>
8774
8775         Don't let environment variables perturb build.
8776         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
8777         (gl_PREREQ_GETHRXTIME): ... not here.
8778
8779 2009-10-18  Bruno Haible  <bruno@clisp.org>
8780
8781         Avoid symlink attack in localcharset module.
8782         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
8783         (O_NOFOLLOW): Define fallback.
8784         (get_charset_aliases): Don't open the file if it is a symbolic link.
8785         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
8786         gl_FCNTL_H.
8787         (gl_FCNTL_H): Require it.
8788         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
8789         * modules/localcharset (Files): Add m4/fcntl_h.m4.
8790         Reported by Fergal Glynn <fglynn@veracode.com>.
8791
8792 2009-10-18  Bruno Haible  <bruno@clisp.org>
8793
8794         Implement nproc for mingw.
8795         * lib/nproc.c: Include <windows.h>
8796         (num_processors): On native Windows platforms, try GetSystemInfo.
8797
8798 2009-10-18  Bruno Haible  <bruno@clisp.org>
8799
8800         Implement nproc for IRIX.
8801         * lib/nproc.c: Include <sys/sysmp.h>.
8802         (num_processors): On IRIX systems, try sysmp.
8803         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
8804
8805 2009-10-18  Bruno Haible  <bruno@clisp.org>
8806
8807         Implement nproc for HP-UX.
8808         * lib/nproc.c: Include <sys/pstat.h>
8809         (num_processors): On HP-UX systems, try pstat_getdynamic.
8810         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
8811         pstat_getdynamic.
8812
8813 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
8814             Bruno Haible  <bruno@clisp.org>
8815
8816         Implement nproc for NetBSD, OpenBSD.
8817         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
8818         (ARRAY_SIZE): New macro.
8819         (num_processors): On BSD systems, try sysctl of HW_NCPU.
8820         * m4/nproc.m4: New file.
8821         * modules/nproc (Files): Add m4/nproc.m4.
8822         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
8823         (Makefile.am): Instead, augment lib_SOURCES.
8824
8825 2009-10-18  Bruno Haible  <bruno@clisp.org>
8826
8827         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
8828         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
8829         sys/param.h.
8830
8831 2009-10-16  Eric Blake  <ebb9@byu.net>
8832
8833         utimensat: new module
8834         * modules/utimensat: New file.
8835         * lib/utimensat.c (utimensat): Likewise.
8836         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8837         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
8838         so we can work around Linux bugs.
8839         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8840         * modules/sys_stat (Makefile.am): Substitute them.
8841         * lib/sys_stat.in.h (utimensat): Declare it.
8842         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8843         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8844         * modules/utimensat-tests: New test.
8845         * tests/test-utimensat.c: Likewise.
8846
8847         utimens: let lutimens work on non-symlinks
8848         * lib/utimens.c (lutimens): Fall back to utimens rather than
8849         failing with ENOSYS, when file is not a symlink.
8850         (utimens): Reduce redirection.
8851         * tests/test-lutimens.h (test_lutimens): Update test to cover
8852         non-symlinks.
8853         * tests/test-utimens.h (test_utimens): Update test to cover
8854         symlinks.
8855         * tests/test-utimens.c (main): Update caller.
8856
8857         utimens: cache whether utimensat syscall works
8858         * lib/utimens.c (utimensat_works_really): New cache variable.
8859         (fdutimens, lutimens): Use it to avoid failing syscall.
8860
8861         test-stat-time, test-utimens: improve portability
8862         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
8863         ext4 on alpha, and for cygwin.
8864         * tests/test-utimens-common.h: New file.
8865         (nap): Factor delays into single function.
8866         * tests/test-lutimens.h (test_lutimens): Use new header.
8867         * tests/test-futimens.h (test_futimens): Likewise.
8868         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
8869         timestamps to occur from same machine, as was done previously for
8870         test_utimens.
8871         * modules/utimens-tests (Files): Ship new file.
8872         * modules/futimens-tests (Files): Likewise.
8873         Reported in part by Jim Meyering.
8874
8875         sys_stat: sort replacement declarations
8876         * lib/sys_stat.in.h: Sort declarations.
8877         * lib/futimens.c (futimens): Fix typo.
8878
8879 2009-10-15  Jim Meyering  <meyering@redhat.com>
8880
8881         don't let environment settings perturb build
8882         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
8883         could cause a configure-time and/or build-time malfunction.
8884         Typically, a configure-time function-in-library test is performed
8885         via code like this:
8886
8887           LIB_VAR=
8888           AC_SUBST([LIB_VAR])
8889           prefix_saved_LIBS=$LIBS
8890             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
8891                        [test "$ac_cv_search_FUNC" = "none required" ||
8892                         LIB_VAR=$ac_cv_search_FUNC])
8893           LIBS=$prefix_saved_LIBS
8894
8895         However, in each of the files affected by this change, the LIB_VAR=
8896         initialization was omitted.  Thus, when set in the environment, its
8897         value would propagate into generated Makefiles when FUNC is not found
8898         in LIB_NAME.
8899         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
8900         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8902
8903 2009-10-14  Eric Blake  <ebb9@byu.net>
8904
8905         fchdir: avoid infinite recursion in mingw
8906         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
8907         recursing.
8908
8909         test-stat-time: port to mingw
8910         * tests/test-stat-time.c (force_unlink): Return a value.
8911         (test_ctime) [W32]: Fix compilation error.
8912         (nap): Don't call usleep with too large an argument.  Use
8913         force_unlink.
8914         * doc/pastposix-functions/usleep.texi (usleep): Document the
8915         portability issue.
8916
8917 2009-10-13  Jim Meyering  <meyering@redhat.com>
8918
8919         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
8920         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
8921         * modules/pipe-filter-ii: Likewise.
8922         * modules/sys_socket-tests: Likewise.
8923         * modules/tsearch-tests: Likewise.
8924         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
8925         (check): Depend on it.
8926
8927 2009-10-12  Eric Blake  <ebb9@byu.net>
8928
8929         utimens-tests: port to NFS file systems
8930         * tests/test-utimens.h (test_utimens): Refactor utimecmp
8931         comparisons to avoid spurious failures from timestamp drift
8932         between NFS machines.
8933
8934 2009-10-12  Eric Blake  <ebb9@byu.net>
8935
8936         stat-time-tests: minor cleanups
8937         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
8938         * tests/test-stat-time.c (nap): Separate assignment from call.
8939         Suggested by Paolo Bonzini and Bruno Haible.
8940
8941         sys_stat: guarantee struct timespec
8942         * lib/sys_stat.in.h (includes): Always include <time.h>
8943         * modules/sys_stat (Depends-on): Add time.
8944         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
8945         mode_t permission values.
8946         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
8947         get at subsecond timestamps.
8948
8949 2009-10-10  Eric Blake  <ebb9@byu.net>
8950
8951         futimens: new module
8952         * modules/futimens: New file.
8953         * lib/futimens.c (futimens): Likewise.
8954         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
8955         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
8956         we can work around Linux bugs.
8957         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8958         * modules/sys_stat (Makefile.am): Substitute them.
8959         * lib/sys_stat.in.h (futimens): Declare it.
8960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8961         * doc/posix-functions/futimens.texi (futimens): Likewise.
8962         * modules/futimens-tests: New test.
8963         * tests/test-futimens.c: Likewise.
8964
8965         utimens: introduce fdutimens
8966         * lib/utimens.h (fdutimens): New prototype.
8967         * lib/utimens.c (gl_futimens): Move guts...
8968         (fdutimens): ...to new interface.
8969         * tests/test-utimens.c (do_fdutimens): Use it.
8970
8971         utimens: add UTIME_NOW and UTIME_OMIT support
8972         * lib/utimens.c (validate_timespec, update_timespec): New helper
8973         functions.
8974         (gl_futimens, lutimens): Use them.
8975         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
8976         stdbool, sys_stat.
8977         (Link): Mention resulting library dependency.
8978         * modules/utimecmp (Link): Likewise.
8979         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
8980         (Makefile.am): Pick up library dependency.
8981         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
8982         definition.
8983         * tests/test-sys_stat.c: Test the definitions.
8984         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
8985         * NEWS: Document library dependency.
8986
8987         utimecmp: support symlink timestamps
8988         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
8989         hashing when possible.  Use pathconf when available.
8990         (SYSCALL_RESOLUTION): Recognize tighter resolution.
8991         * modules/utimecmp (Depends-on): Add lstat.
8992
8993         utimens: add lutimens interface
8994         * lib/utimens.c (lutimens): New function.
8995         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
8996         * lib/utimens.h (lutimens): Declare new interface.
8997         * tests/test-utimens.c (main): Enhance test.
8998         * tests/test-lutimens.h (test_lutimens): New file.
8999         * modules/utimens-tests (Files): Distribute it.
9000         (Depends-on): Add symlink.
9001         (configure.ac): Check for usleep.
9002
9003         utimens: validate futimens usage
9004         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9005         fewer syscalls on failure later on.  Avoid compiler warning on
9006         mingw.
9007         * modules/utimens (Depends-on): Add dup2.
9008
9009         utimens: add test
9010         * modules/utimens-tests: New test.
9011         * tests/test-utimens.h: New file.
9012         * tests/test-futimens.h: Likewise.
9013         * tests/test-utimens.c: Likewise.
9014
9015         doc: mention timestamp portability issues
9016         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9017         instead.
9018         * doc/posix-functions/utime.texi (utime): Likewise.
9019         * doc/posix-functions/utimes.texi (utimes): Likewise.
9020         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9021         instead.
9022         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9023         module.
9024         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9025         Mention weakness with symlink timestamps.
9026         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9027         to utimensat/futimens instead.
9028         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9029
9030         test-dup2: enhance test
9031         * tests/test-dup2.c (main): Also check AT_FDCWD.
9032
9033         test-stat-time: avoid more spurious failures
9034         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9035         xfs; and avoid race if the two timestamps cross quantization edge.
9036
9037         relocatable: prefer 'file system' over 'filesystem'
9038         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9039         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9040         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9041         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9042         * lib/relocatable.c (compute_curr_prefix): Likewise.
9043
9044 2009-10-10  Jim Meyering  <meyering@redhat.com>
9045
9046         stat-time-tests: check for the usleep function
9047         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9048
9049 2009-10-10  Bruno Haible  <bruno@clisp.org>
9050
9051         * modules/xnanosleep: Put the Link section after the Include section.
9052
9053 2009-10-09  Eric Blake  <ebb9@byu.net>
9054
9055         dup2: work around FreeBSD 6.1 bug
9056         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9057         * doc/posix-functions/dup2.texi (dup2): Document it.
9058         Reported by Nelson H. F. Beebe and Jim Meyering.
9059
9060         test-stat-time: port to buggy NFS clients
9061         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9062         (test_ctime): Also skip test if mtime and ctime are skewed.
9063
9064         maint: prefer 'file system' over 'filesystem'
9065         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9066         * doc/posix-functions/lstat.texi (lstat): Likewise.
9067         * lib/file-has-acl.c (file_has_acl): Likewise.
9068         * lib/fwriteerror.c [TEST]: Likewise.
9069         * tests/test-areadlink.h (test_areadlink): Likewise.
9070         * tests/test-areadlinkat-with-size.c (main): Likewise.
9071         * tests/test-areadlinkat.c (main): Likewise.
9072         * tests/test-canonicalize-lgpl.c (main): Likewise.
9073         * tests/test-canonicalize.c (main): Likewise.
9074         * tests/test-fstatat.c (main): Likewise.
9075         * tests/test-linkat.c (main): Likewise.
9076         * tests/test-lstat.h (test_lstat_func): Likewise.
9077         * tests/test-mkdir.h (test_mkdir): Likewise.
9078         * tests/test-readlink.h (test_readlink): Likewise.
9079         * tests/test-remove.c (main): Likewise.
9080         * tests/test-rename.h (test_rename): Likewise.
9081         * tests/test-renameat.c (main): Likewise.
9082         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9083         * tests/test-symlink.h (test_symlink): Likewise.
9084         * tests/test-symlinkat.c (main): Likewise.
9085         * tests/test-unlink.h (test_unlink_func): Likewise.
9086         * tests/test-unlinkat.c (main): Likewise.
9087
9088         maint: make realtime library usage explicit
9089         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9090         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9091         * modules/settime (Link): Likewise.
9092         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9093
9094         test-stat-time: speed up execution
9095         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9096         warning on mingw.
9097         (nap): New helper function.
9098         (prepare_test): Use it to reduce sleep time.
9099         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9100         execution.
9101         * modules/stat-time-tests (configure.ac): Check for usleep.
9102
9103 2009-10-09  Jim Meyering  <meyering@redhat.com>
9104
9105         selinux-h: always use getfilecon wrappers
9106         * lib/getfilecon.c: New file.
9107         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9108         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9109         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9110         (fgetfilecon): Provide a stub.
9111         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9112         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9113         file unconditionally.
9114         When <selinux/selinux.h> is found, arrange to use wrappers.
9115         * modules/selinux-h (Files): Add getfilecon.c.
9116         (Makefile.am): Substitute include-next-related bits
9117         into the now-always-generated selinux/selinux.h file.
9118         * doc/glibc-functions/lgetfilecon.texi: New file.
9119         * doc/glibc-functions/fgetfilecon.texi: New file.
9120         * doc/glibc-functions/getfilecon.texi: New file.
9121         * doc/glibc-functions/getfilecon-desc.texi: New file.
9122         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9123         which to pull in the new files.
9124         * MODULES.html.sh (Misc): Add selinux-h.
9125
9126 2009-10-08  Jim Meyering  <meyering@redhat.com>
9127
9128         unistd: fix comment typo
9129         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9130
9131 2009-10-08  Eric Blake  <ebb9@byu.net>
9132
9133         areadlink: use SIZE_MAX consistently
9134         * modules/areadlink (Depends-on): Add stdint.
9135         * modules/areadlink-with-size (Depends-on): Likewise.
9136         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9137         gives NULL; drop sys/types, since unistd gives size_t; and add
9138         stdint for SIZE_MAX.
9139         (SIZE_MAX): Rely on headers.
9140         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9141         and add stdint.
9142         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9143         (SIZE_MAX): Likewise.
9144         (INITIAL_BUF_SIZE): Turn into enum.
9145         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9146
9147 2009-10-08  Jim Meyering  <meyering@redhat.com>
9148
9149         areadlinkat: avoid compilation failure
9150         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9151         Fix typo in comment.
9152
9153 2009-10-07  Eric Blake  <ebb9@byu.net>
9154
9155         areadlinkat-with-size: new module
9156         * modules/areadlinkat-with-size: New module.
9157         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9158         * lib/areadlink.h (areadlinkat): Declare it.
9159         * MODULES.html.sh (File system functions): Mention it.
9160         * modules/areadlinkat-with-size-tests: New test.
9161         * tests/test-areadlinkat-with-size.c: New file.
9162
9163         xreadlinkat: new module
9164         * modules/xreadlinkat: New module.
9165         * lib/xreadlinkat.c (xreadlinkat): New file.
9166         * lib/xreadlink.h (xreadlinkat): Declare it.
9167         * MODULES.html.sh (File system functions): Mention it.
9168
9169         areadlinkat: new module
9170         * lib/at-func.c (FUNC_FAIL): New define.
9171         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9172         * modules/areadlinkat: New module.
9173         * lib/linkat.c (areadlinkat): Move...
9174         * lib/areadlinkat.c (areadlinkat): ...to new file.
9175         * lib/areadlink.h (areadlinkat): Declare it.
9176         * modules/linkat (Depends-on): Add areadlinkat.
9177         * MODULES.html.sh (File system functions): Mention it.
9178         * modules/areadlinkat-tests: New test.
9179         * tests/test-areadlinkat.c: New file.
9180
9181         areadlink, areadlink-with-size: add tests
9182         * modules/areadlink-tests: New test.
9183         * modules/areadlink-with-size-tests: Likewise.
9184         * tests/test-areadlink.h: New file.
9185         * tests/test-areadlink.c: Likewise.
9186         * tests/test-areadlink-with-size.c: Likewise.
9187
9188         maint: minor cleanups
9189         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9190         _UNUSED_PARAMETER_ instead.
9191         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9192         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9193         * modules/linkat-tests (Files): Distribute test-link.h.
9194
9195         openat, utimens: whitespace cleanup
9196         * lib/openat.c: Prefer space throughout, rather than mix of 8
9197         spaces vs. tabs.
9198         * lib/at-func.c: Likewise.
9199         * lib/utimens.c: Likewise.
9200
9201         openat: avoid using wrong fd
9202         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9203         working directory chooses same fd.
9204         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9205
9206         mkdir, mkdirat: fix cygwin 1.5.x bug
9207         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9208         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9209         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9210         bug.
9211         (gl_PREREQ_MKDIR): Delete unused macro.
9212         * modules/mkdir (Files): Track file rename.
9213         (configure.ac): Update macro name.
9214         * modules/openat (Depends-on): Add mkdir.
9215         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9216
9217         mkdir, mkdirat: add tests
9218         * modules/mkdir-tests: New test.
9219         * tests/test-mkdir.h: New file.
9220         * tests/test-mkdir.c: Likewise.
9221         * tests/test-mkdirat.c: Likewise.
9222         * modules/openat-tests (Files): Add new files.
9223         (Makefile.am): Run new test.
9224
9225 2009-10-06  Eric Blake  <ebb9@byu.net>
9226
9227         doc: tweak *at function documentation
9228         * doc/posix-functions/faccessat.texi (faccessat): Mention
9229         known issue with replacement.
9230         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9231         * doc/posix-functions/linkat.texi (linkat): Likewise.
9232         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9233         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9234         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9235         * doc/posix-functions/renameat.texi (renameat): Likewise.
9236         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9237
9238         openat: fix GNU/Hurd bug in unlinkat
9239         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9240         broken.
9241         * doc/posix-functions/unlink.texi (unlink): Document this.
9242         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9243
9244         fdopendir: fix GNU/Hurd bug
9245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9246         allowing non-directory fds.
9247         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9248         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9249         * modules/dirent (Makefile.am): Substitute it.
9250         * lib/dirent.in.h (fdopendir): Declare replacement.
9251         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9252         * tests/test-fdopendir.c (main): Test something other than
9253         /dev/null, since on Hurd that behaves like a directory.
9254
9255         test-symlink: port to GNU/Hurd
9256         * tests/test-symlink.h (test_symlink): Relax expected errno.
9257
9258         doc: tweak more cygwin information
9259         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9260         now compatible with glibc.
9261         * doc/posix-functions/getopt.texi (getopt): Likewise.
9262
9263         getopt-gnu: add another test
9264         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9265         guarantee behavior relied on by m4.
9266         * tests/test-getopt.c (main): Use it.
9267         * modules/getopt-posix-tests (Depends-on): Add setenv.
9268         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9269
9270         getopt: fix compilation on darwin
9271         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9272         include.
9273         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9274         Reported by Ludovic Courtès.
9275
9276 2009-10-06  Bruno Haible  <bruno@clisp.org>
9277
9278         * modules/size_max (Description): Discourage its use.
9279         Reported by Simon Josefsson.
9280
9281 2009-10-06  Jim Meyering  <meyering@redhat.com>
9282
9283         linkat: avoid compilation failure
9284         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9285
9286 2009-10-05  Eric Blake  <ebb9@byu.net>
9287
9288         linkat: support Linux 2.6.17
9289         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9290         linkat on Linux, but allow cache variable override.
9291         * lib/linkat.c (rpl_linkat): Define override.
9292         * modules/linkat (Depends-on): Add symlinkat.
9293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9294         * modules/unistd (Makefile.am): Substitute it.
9295         * lib/unistd.in.h (linkat): Declare replacement.
9296         Reported by Pádraig Brady.
9297
9298         quotearg: port test to systems with C.UTF-8 locale
9299         * tests/test-quotearg.c (struct result_strings): Add another
9300         member, differentiating between C.ASCII and C.UTF-8 handling.
9301         (compare_strings): Add parameter.
9302         (main): Adjust all callers.
9303
9304         getopt: avoid clash with FreeBSD _getopt_internal
9305         * lib/getopt.in.h (_getopt_internal): Override the name.
9306         * lib/getopt_int.h (includes): Pick up any overrides.
9307         Reported by Reuben Thomas.
9308
9309         hash: allow C89 compilation
9310         * lib/hash.c (check_tuning): Move declaration before statement.
9311         Reported by Reuben Thomas.
9312
9313 2009-10-05  Karl Berry  <karl@gnu.org>
9314
9315         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9316
9317 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9318             Bruno Haible  <bruno@clisp.org>
9319
9320         * lib/uname.c (uname): Use a table-driven algorithm to compute
9321         Windows NT versions.
9322
9323 2009-10-04  Bruno Haible  <bruno@clisp.org>
9324
9325         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9326         program_invocation_short_name.
9327         * modules/progname (configure.ac): Test for presence of
9328         program_invocation_short_name.
9329         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9330
9331 2009-10-04  Bruno Haible  <bruno@clisp.org>
9332
9333         * lib/progname.c (set_program_name): Fix comment.
9334         Reported by Jim Meyering.
9335
9336 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9337             Bruno Haible  <bruno@clisp.org>
9338
9339         * lib/uname.c: Include <string.h>.
9340         (uname): Do only one call to GetVersionEx in the common case.
9341
9342 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9343             Bruno Haible  <bruno@clisp.org>
9344
9345         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9346         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9347         (uname): Add support for Windows CE and various non-x86 CPU types.
9348
9349 2009-10-03  Bruno Haible  <bruno@clisp.org>
9350
9351         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9352         invocation to tests/configure.ac.
9353         Reported by Ian Beckwith <ianb@erislabs.net>.
9354
9355 2009-10-02  Eric Blake  <ebb9@byu.net>
9356
9357         fchdir: avoid compiler warning
9358         * lib/fchdir.c (canonicalize_file_name)
9359         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9360
9361         test-open: support mingw errno values
9362         * tests/test-open.h (test_open): Relax test.
9363         * tests/test-fopen.h (test_fopen): Likewise.
9364         * tests/test-openat-safer.c (main): Likewise.
9365
9366         open: fix opening directory on mingw
9367         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9368
9369         test-open: on GNU/Hurd, /dev/null is a directory
9370         * tests/test-fopen.h (main): Rename...
9371         (test_fopen): ...to this.  Use a guaranteed non-directory when
9372         confirming open behavior on trailing slash.
9373         * tests/test-openat-safer.c (main): Likewise.
9374         * tests/test-open.h (main): Likewise....
9375         (test_open): ...to this.
9376         * tests/test-fopen.c (main): Adjust caller.
9377         * tests/test-fopen-safer.c (main): Likewise.
9378         * tests/test-open.c (main): Likewise.
9379         * tests/test-fcntl-safer.c (main): Likewise.
9380         Reported by Samuel Thibault.
9381
9382         rename, fchdir: don't ignore chdir failure
9383         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9384         * lib/rename.c (rpl_rename) [W32]: Likewise.
9385         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9386         an empty destination directory if source cannot be renamed,
9387         although there is still possibility for failure.
9388         * doc/posix-functions/rename.texi (rename): Document the race.
9389         Reported by Jim Meyering.
9390
9391         maint: cleanup whitespace in recent commits
9392         * lib/rename.c (rpl_rename): Remove tabs.
9393         * tests/test-link.h (test_link): Likewise.
9394         * lib/fchdir.c (get_name): Likewise.
9395         Reported by Jim Meyering.
9396
9397 2009-10-02  Ben Pfaff  <blp@gnu.org>
9398
9399         relocatable-prog-wrapper: Add missing dependency on
9400         double-slash-root.
9401         * modules/relocatable-prog-wrapper: Add dependency.
9402         Reported by Ian Beckwith <ianb@erislabs.net>.
9403
9404 2009-10-02  Eric Blake  <ebb9@byu.net>
9405
9406         renameat: fix Solaris bugs
9407         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9408         needed fixing.
9409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9410         * modules/stdio (Makefile.am): Substitute it.
9411         * lib/stdio.in.h (renameat): Declare replacement.
9412         * lib/renameat.c (rpl_renameat): Implement fix.
9413
9414         renameat: new module
9415         * modules/renameat: New file.
9416         * lib/renameat.c (renameat): Likewise.
9417         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9419         * modules/stdio (Makefile.am): Substitute them.
9420         * lib/stdio.in.h (renameat): Declare it.
9421         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9422         * doc/posix-functions/renameat.texi (renameat): Likewise.
9423         * modules/renameat-tests: New test.
9424         * tests/test-renameat.c: Likewise.
9425
9426         rename: fix mingw bugs
9427         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9428         directory overwrite bugs.
9429
9430         rename: fix another cygwin 1.5 bug
9431         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9432         checks.
9433         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9434         unnecessary cygwin workarounds.  Also work around bug with moving
9435         full directory onto an empty one.
9436         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9437
9438         rename-dest-slash: merge into rename module
9439         * modules/rename-dest-slash (Status): Mark obsolete.
9440         (Depends-on): Add rename.
9441         (Files): Let rename do it all.
9442         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9443         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9444         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9445         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9446         * lib/rename.c (rpl_rename): Update comments.
9447
9448         rename: fix cygwin 1.5.x bugs
9449         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9450         * lib/rename.c (rpl_rename): Work around them.
9451         * modules/rename (Depends-on): Add same-inode.
9452
9453         rename: fix Solaris 10 bug
9454         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9455         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9456         was the only bug.
9457
9458         rename: fix Solaris 9 bug
9459         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9460         on non-directory.  Avoid calling exit.
9461         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9462         strdup.
9463         * modules/rename-tests (Depends-on): Drop lstat.
9464         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9465         (gl_PREREQ_RENAME): Delete unused macro.
9466
9467         rename-dest-slash: fix NetBSD bug
9468         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9469         links.
9470         * modules/rename-dest-slash (Depends-on): Add same-inode.
9471
9472         rename-tests: new test, exposes several platform bugs
9473         * modules/rename-tests: New file.
9474         * tests/test-rename.h: Likewise.
9475         * tests/test-rename.c: Likewise.
9476         * doc/posix-functions/rename.texi (rename): Improve documentation,
9477         including bugs that will eventually be fixed in gnulib.
9478
9479 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9480
9481         * lib/uname.c: Include <stdlib.h>
9482         (uname): Assume version info is available.
9483
9484 2009-10-02  Jim Meyering  <meyering@redhat.com>
9485
9486         gnu-web-doc-update: correct --help output
9487         * build-aux/gnu-web-doc-update: Make --help output relevant.
9488
9489         gnu-web-doc-update: add standard options
9490         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9491
9492         gnu-web-doc-update: New module.
9493         Use this script to automatically update the on-line web documentation
9494         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9495         * modules/gnu-web-doc-update: New file, from coreutils.
9496         * build-aux/gnu-web-doc-update: New script.
9497
9498 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9499
9500         link: LoadLibrary is not needed.
9501         * lib/link.c: Use GetModuleHandle.
9502
9503 2009-10-01  Eric Blake  <ebb9@byu.net>
9504
9505         getopt: bump serial number
9506         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9507         change.
9508
9509         tests: tighten link, rmdir, and remove tests
9510         * tests/test-link.h (includes): No need to use <config.h> here.
9511         Clean up if directory hard link was created, otherwise test for
9512         trailing '.'.
9513         * tests/test-linkat.c (main): Simplify.
9514         * tests/test-remove.c (main): Enhance test for trailing '.'.
9515         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9516
9517 2009-10-01  Jim Meyering  <meyering@redhat.com>
9518
9519         maint.mk: requiring "make major" was annoying, for a "minor" release.
9520         What is intended is "stable", to contrast with alpha and beta,
9521         so require "make stable", not "make major".
9522         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9523         (get_tool_versions): Likewise.
9524         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9525
9526 2009-09-30  Ben Pfaff  <blp@gnu.org>
9527
9528         Fix broken build of replacement for Windows tmpfile().
9529         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9530         flags argument added along with the 'mkostemp' module.
9531
9532 2009-09-28  Bruno Haible  <bruno@clisp.org>
9533
9534         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9535         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9536         to 'remove_elt'.
9537         (gl_list_remove): Update.
9538         * lib/gl_list.c (gl_list_remove): Update.
9539         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9540         to 'remove_elt'.
9541         (gl_oset_remove): Update.
9542         * lib/gl_list.c (gl_oset_remove): Update.
9543         Reported by Eric Blake.
9544
9545 2009-09-28  Eric Blake  <ebb9@byu.net>
9546
9547         doc: mention yet more cygwin 1.7 status
9548         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9549         cygwin.
9550         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9551         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9552
9553         argp: fix test failure
9554         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9555         that are not upper-case.  Pass correct range to tolower.
9556
9557 2009-09-27  Jim Meyering  <meyering@redhat.com>
9558
9559         test-yesno: work around sparc-dash here-document infelicity
9560         Without this change, the literal \177 byte in a here document
9561         would make dash 0.5.5.1-3 access uninitialized memory.
9562         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9563         Instead, use a marker, "@", and filter through tr to create the desired
9564         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9565
9566 2009-09-27  Bruno Haible  <bruno@clisp.org>
9567
9568         Disable untested support for new flavours of ACLs on AIX.
9569         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9570         progress.
9571         * lib/set-mode-acl.c (qset_acl): Likewise.
9572
9573 2008-12-07  Bruno Haible  <bruno@clisp.org>
9574
9575         Add support for new flavours of ACLs on AIX. (Untested.)
9576         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9577         (file_has_acl): Add support for newer AIX.
9578         * lib/set-mode-acl.c (qset_acl): Likewise.
9579         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9580         Rainer Tammer <tammer@tammer.net>.
9581
9582 2009-09-26  Eric Blake  <ebb9@byu.net>
9583
9584         argp: fix compilation of getopt
9585         * lib/getopt.in.h (includes): Use different guard than glibc.
9586         Reported by Sergey Poznyakoff.
9587
9588         doc: mention more cygwin 1.7 status
9589         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9590         bug.
9591         * doc/posix-functions/execl.texi (execl): Likewise.
9592         * doc/posix-functions/execle.texi (execle): Likewise.
9593         * doc/posix-functions/execlp.texi (execlp): Likewise.
9594         * doc/posix-functions/execv.texi (execv): Likewise.
9595         * doc/posix-functions/execve.texi (execve): Likewise.
9596         * doc/posix-functions/execvp.texi (execvp): Likewise.
9597         * doc/glibc-functions/canonicalize_file_name.texi
9598         (canonicalize_file_name): Cygwin 1.7 now provides this.
9599         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9600         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9601         on AT_SYMLINK_NOFOLLOW.
9602
9603 2009-09-24  Eric Blake  <ebb9@byu.net>
9604
9605         test-linkat: make test more robust
9606         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9607
9608         getopt: fix inclusion guards for cygwin
9609         * modules/getopt-posix (Depends-on): Add include-next.
9610         (Makefile.am): Substitute more items in replacement header.
9611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9612         <getopt.h>.
9613         * lib/getopt.in.h (includes): Use split inclusion guard, and
9614         prefer <getopt.h> over include <unistd.h> when one is present.
9615         (option): Also override name of 'struct option'.
9616
9617         same-inode: revert prior change; it is not yet ready
9618         * NEWS: Undo mention of this change.
9619         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9620         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9621         * lib/cycle-check.c (cycle_check): Likewise.
9622         * lib/same.c (same_name): Likewise.
9623         * lib/at-func2.c (at_func2): Likewise.
9624
9625 2009-09-23  Eric Blake  <ebb9@byu.net>
9626
9627         linkat: new module
9628         * modules/linkat: New file.
9629         * lib/at-func2.c (at_func2): Likewise.
9630         * lib/linkat.c (linkat): Likewise.
9631         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9632         * lib/openat-priv.h (at_func2): Add declaration.
9633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9634         * modules/unistd (Makefile.am): Substitute them.
9635         * lib/unistd.in.h (linkat): Declare it.
9636         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9637         * doc/posix-functions/linkat.texi (linkat): Likewise.
9638         * doc/posix-functions/link.texi (link): Tweak wording.
9639         * tests/test-link.c (main): Move guts...
9640         * tests/test-link.h (test_link): ...into new file.
9641         * modules/linkat-tests: New test.
9642         * tests/test-linkat.c: Likewise.
9643         * modules/link-tests (Files): Ship new file.
9644         (Depends-on): Add stdbool.
9645
9646         dirname: add library-safe mdir_name
9647         * lib/dirname.h (mdir_name): New prototype.
9648         * lib/dirname.c (dir_name): Move guts...
9649         (mdir_name): ...to new function that avoids xalloc_die.
9650
9651         fchdir: another mingw fix
9652         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9653         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9654         on mingw (where it has not yet been ported), and make it optional
9655         elsewhere.
9656         (_gl_register_fd): Use it.
9657
9658         same-inode: make SAME_INODE tri-state, to port to mingw
9659         * NEWS: Mention this change.
9660         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9661         st_ino always being 0.
9662         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9663         * lib/cycle-check.c (cycle_check): Likewise.
9664         * lib/same.c (same_name): Likewise.
9665
9666         lstat: avoid mingw compilation error
9667         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9668         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9669         lstat ourselves.
9670         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9671         was adequate.
9672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9673         the checks for lstat.
9674         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9675
9676         link: fix test failure on Solaris 9
9677         * lib/link.c (rpl_link): Don't assume link will catch bogus
9678         trailing slash on source.
9679
9680         test-symlinkat: enhance test
9681         * tests/test-readlink.c (main): Move guts...
9682         * tests/test-readlink.h (test_readlink): ...into new file.
9683         * tests/test-symlink.c (main): Move guts...
9684         * tests/test-symlink.h (test_symlink): ...into new file.
9685         * tests/test-symlinkat.c (main): Use new files for further
9686         coverage.
9687         (do_symlink, do_readlink): New helper functions.
9688         * modules/symlink-tests (Files): Ship new file.
9689         (Depends-on): Add stdbool.
9690         * modules/readlink-tests (Files): Ship new file.
9691         (Depends-on): Add stdbool.
9692         * modules/symlinkat-tests (Files): Use new files.
9693
9694 2009-09-23  Eric Blake  <ebb9@byu.net>
9695
9696         readlink: document portability issue with symlink length
9697         * doc/posix-functions/lstat.texi (lstat): Mention that some file
9698         systems have bogus st_size on symlinks, and mention the
9699         areadlink-with-size module.
9700         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9701         * doc/posix-functions/readlink.texi (readlink): Mention the
9702         areadlink module, and ERANGE failure.
9703         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9704         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
9705
9706         readlink: fix Solaris 9 bug with trailing slash
9707         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
9708         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
9709         * doc/posix-functions/readlink.texi (readlink): Document this.
9710         * modules/readlink-tests: New test.
9711         * tests/test-readlink.c: Likewise.
9712
9713         readlink: fix cygwin 1.5.x bug with return type
9714         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
9715         * lib/unistd.in.h (readlink): Use ssize_t.
9716         * lib/readlink.c (readlink): Likewise.
9717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9718         * modules/unistd (Makefile.am): Substitute it.
9719         * lib/unistd.in.h (readlink): Declare replacement.
9720         * doc/posix-functions/readlink.texi (readlink): Document this.
9721
9722         symlink: use throughout gnulib
9723         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
9724         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
9725         symlink is not used.
9726         * modules/symlinkat (Depends-on): Add symlink.
9727         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9728         * modules/canonicalize-tests (Depends-on): Likewise.
9729         * modules/lstat-tests (Depends-on): Likewise.
9730         * modules/openat-tests (Depends-on): Likewise.
9731         * modules/remove-tests (Depends-on): Likewise.
9732         * modules/rmdir-tests (Depends-on): Likewise.
9733         * modules/unlink-tests (Depends-on): Likewise.
9734         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
9735         * tests/test-canonicalize.c (symlink): Likewise.
9736         * tests/test-fstatat.c (symlink): Likewise.
9737         * tests/test-lstat.c (symlink): Likewise.
9738         * tests/test-remove.c (symlink): Likewise.
9739         * tests/test-rmdir.c (symlink): Likewise.
9740         * tests/test-unlink.c (symlink): Likewise.
9741         * tests/test-unlinkat.c (symlink): Likewise.
9742
9743         symlink: new module, for Solaris 9 bug
9744         * modules/symlink: New file.
9745         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9746         * lib/symlink.c: Likewise.
9747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
9748         * modules/unistd (Makefile.am): Substitute them.
9749         * lib/unistd.in.h (symlink): Declare replacement.
9750         * MODULES.html.sh (File system functions): Mention it.
9751         * doc/posix-functions/symlink.texi (symlink): Likewise.
9752         * modules/symlink-tests: New test.
9753         * tests/test-symlink.c: Likewise.
9754
9755 2009-09-23  Bruno Haible  <bruno@clisp.org>
9756
9757         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
9758         when needed.
9759         Test case: gnulib-tool --import --with-tests atexit inttypes.
9760         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
9761
9762 2009-09-23  Bruno Haible  <bruno@clisp.org>
9763
9764         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
9765         subcommand, not in a subshell.
9766
9767 2009-09-22  Eric Blake  <ebb9@byu.net>
9768
9769         unistd: sort replacement declarations
9770         * lib/unistd.in.h: Sort declarations.
9771
9772         open, openat: minor optimization
9773         * lib/open.c (open): If open succeeded, len is non-zero.
9774         * lib/openat.c (rpl_openat): Likewise.
9775
9776         link-follow: ensure correct result
9777         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
9778         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
9779         distinguish between possible failures.
9780
9781 2009-09-21  Eric Blake  <ebb9@byu.net>
9782
9783         fts: avoid compiler warning
9784         * lib/fts.c (dirent_inode_sort_may_be_useful)
9785         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
9786
9787 2009-09-19  Bruno Haible  <bruno@clisp.org>
9788
9789         * lib/progreloc.c (canonicalize_file_name): New declaration.
9790
9791 2009-09-19  Eric Blake  <ebb9@byu.net>
9792
9793         link: fix quoting
9794         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
9795
9796         openat: fix openat bugs on Solaris 9
9797         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
9798         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
9799         * modules/openat (Depends-on): Add open.
9800         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
9801         * modules/fcntl-h (Makefile.am): Substitute it.
9802         * lib/fcntl.in.h (openat): Declare replacement.
9803         * doc/posix-functions/openat.texi (openat): Document this.
9804
9805         openat: move fstatat and unlinkat into correct files
9806         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
9807         compiled.
9808         * lib/openat.c (fstatat, unlinkat): Move...
9809         * lib/fstatat.c (fstatat): ...into correct files.
9810         * lib/unlinkat.c (unlinkat): Likewise.
9811
9812         openat: fix unlinkat bugs on Solaris 9
9813         * lib/unlinkat.c (unlinkat): New file.
9814         * modules/openat (Depends-on): Add unlink.
9815         (Files): Distribute it.
9816         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
9817         trailing slash behavior is broken.
9818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9819         * modules/unistd (Makefile.am): Substitute it.
9820         * lib/unistd.in.h (unlinkat): Declare replacement.
9821         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
9822
9823         openat: fix fstatat bugs on Solaris 9
9824         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
9825         stat.
9826         * doc/posix-functions/fstatat.texi (fstatat): Document this.
9827
9828         test-unlinkat: enhance test, to expose Solaris 9 bug
9829         * tests/test-unlink.c (main): Factor guts...
9830         * tests/test-unlink.h (test_rmdir_func): ...into new file.
9831         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
9832         * tests/test-rmdir.c (main): Adjust caller.
9833         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
9834         (unlinker): New helper function.
9835         (rmdirat): Enhance check.
9836         * modules/rmdir-tests (Depends-on): Add stdbool.
9837         * modules/unlink-tests (Depends-on): Likewise.
9838         (Files): Add test-unlink.h.
9839         * modules/openat-tests (Files): Likewise.
9840         (Depends-on): Add unlinkdir.
9841
9842         test-fstatat: new test, to expose Solaris 9 bugs
9843         * tests/test-stat.c (main): Factor guts...
9844         * tests/test-stat.h (test_stat_func): ...into new file.
9845         * tests/test-lstat.c (main): Factor guts...
9846         * tests/test-lstat.h (test_lstat_func): ...into new file.
9847         * tests/test-fstatat.c: New file.
9848         * modules/stat-tests (Files): Add test-stat.h.
9849         * modules/lstat-tests (Files): Add test-lstat.h.
9850         (Depends-on): Add stdbool.
9851         * modules/openat-tests (Depends-on): Add pathmax.
9852         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
9853         (Makefile.am): Run new test.
9854
9855         remove: new module, for mingw and Solaris 9 bugs
9856         * modules/remove: New file.
9857         * lib/remove.c: Likewise.
9858         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
9859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9860         * modules/stdio (Makefile.am): Use them.
9861         * lib/stdio.in.h (remove): Declare replacement.
9862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9863         * doc/posix-functions/remove.texi (remove): Likewise.
9864         * modules/remove-tests: New test.
9865         * tests/test-remove.c: Likewise.
9866
9867         unlink: new module, for Solaris 9 bug
9868         * modules/unlink: New file.
9869         * lib/unlink.c: Likewise.
9870         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9872         * modules/unistd (Makefile.am): Use them.
9873         * lib/unistd.in.h (stat): Declare replacement.
9874         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9875         * doc/posix-functions/unlink.texi (unlink): Likewise.
9876         * modules/unlink-tests: New test.
9877         * tests/test-unlink.c: Likewise.
9878
9879         lstat: fix Solaris 9 bug
9880         * lib/lstat.c (lstat): Also check for trailing slash on
9881         non-symlink, non-directories.  Use stat module to simplify logic.
9882         * doc/posix-functions/lstat.texi (lstat): Document it.
9883         * modules/lstat-tests (Depends-on): Add errno, same-inode.
9884         (configure.ac): Check for symlink.
9885         * tests/test-lstat.c (main): Add more tests.
9886
9887         stat: add as dependency to other modules
9888         * modules/chown (Depends-on): Add stat.
9889         * modules/euidaccess (Depends-on): Likewise.
9890         * modules/fchdir (Depends-on): Likewise.
9891         * modules/isdir (Depends-on): Likewise.
9892         * modules/link (Depends-on): Likewise.
9893         * modules/lstat (Depends-on): Likewise.
9894         * modules/mkdir-p (Depends-on): Likewise.
9895         * modules/modechange (Depends-on): Likewise.
9896         * modules/open (Depends-on): Likewise.
9897         * modules/readlink (Depends-on): Likewise.
9898         * modules/same (Depends-on): Likewise.
9899
9900         stat: fix Solaris 9 bug
9901         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
9902         slash.
9903         * lib/stat.c (rpl_stat): Work around it.
9904         * doc/posix-functions/stat.texi (stat): Update documentation.
9905
9906         stat: new module, for mingw bug
9907         * modules/stat: New file.
9908         * lib/stat.c: Likewise.
9909         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9911         * modules/sys_stat (Makefile.am): Use them.
9912         * lib/sys_stat.in.h (stat): Declare replacement.
9913         * lib/openat.c (fstatat): Deal with lstat and stat being function
9914         macros.
9915         * modules/openat (Depends-on): Add inline.
9916         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9917         * doc/posix-functions/stat.texi (stat): Likewise.
9918         * modules/stat-tests: New test.
9919         * tests/test-stat.c: Likewise.
9920
9921 2009-09-19  Jim Meyering  <meyering@redhat.com>
9922
9923         syntax-check: detect unnecessary inclusion of canonicalize.h
9924         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
9925
9926 2009-09-19  Eric Blake  <ebb9@byu.net>
9927
9928         canonicalize-lgpl: adjust clients to use correct header
9929         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
9930         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
9931         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
9932         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
9933         * lib/progreloc.c (includes): Likewise.
9934
9935 2009-09-19  Jim Meyering  <meyering@redhat.com>
9936
9937         test-posixtm.c: correct a comment
9938         * tests/test-posixtm.c: Correct first-line comment.
9939         Spotted by Eric Blake.
9940
9941 2009-09-16  Jim Meyering  <meyering@redhat.com>
9942
9943         posixtm-tests: make T const-correct; add a test case
9944         * tests/test-posixtm.c (T): Declare const.
9945         Add a test for -(2^31+1).
9946         Remove useless can-succeed-only-in-2002 test.
9947
9948         posixtm-tests: adjust the sole failing test
9949         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
9950         expected output matches what mktime now produces.  Cross-checked via
9951         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
9952
9953         posixtm: move #ifdef'd tests into a new module
9954         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
9955         * tests/test-posixtm.c: ... this new file.
9956         * modules/posixtm-tests: New module.
9957
9958 2009-09-19  Eric Blake  <ebb9@byu.net>
9959
9960         openat: simplify use of at-func.c
9961         * lib/at-func.c (includes): Include prerequisites here, to
9962         simplify requirements on client files.
9963         * lib/openat-priv.h: Add double-inclusion guard.
9964         * lib/faccessat.c (includes): Simplify.
9965         * lib/fchmodat.c (includes): Likewise.
9966         * lib/fchownat.c (includes): Likewise.
9967         * lib/mkdirat.c (includes): Likewise.
9968         * lib/mkfifoat.c (includes): Likewise.
9969         * lib/symlinkat.c (includes): Likewise.
9970
9971         openat: allow return of fd 0
9972         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
9973         * modules/save-cwd (Depends-on): Replace fcntl-safer with
9974         unistd-safer.
9975         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
9976         <fcntl.h>; this module does not leak fds.
9977         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
9978         must be allowed to return 0, leaving openat_safer to add the
9979         safety.
9980         (openat_permissive): Avoid writing to just-opened fd 2 if
9981         restoring the current directory fails.
9982         * lib/openat-die.c (openat_restore_fail): Add comment.
9983         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
9984         (save_cwd): Guarantee safe fd, but without use of open_safer.
9985         * tests/test-openat.c: New test.
9986         * modules/openat-tests (Files, Makefile.am): Distribute and build
9987         new file.
9988
9989         relocatable-prog-wrapper: fix build
9990         * modules/relocatable-prog-wrapper (Files): Update name of
9991         canonicalize m4 file, broken on 2009-09-17.
9992         Reported by emad hajjar <aleppos@hotmail.com>.
9993
9994 2009-09-19  Bruno Haible  <bruno@clisp.org>
9995
9996         * lib/safe-alloc.h: Use the standard header with GPL copyright.
9997         * lib/safe-alloc.c: Likewise.
9998         Reported by Ian Beckwith <ianb@erislabs.net>.
9999
10000 2009-09-18  Bruno Haible  <bruno@clisp.org>
10001
10002         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10003         Reported by <erobles@sensacd.com.mx>.
10004
10005 2009-09-17  Eric Blake  <ebb9@byu.net>
10006
10007         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10008         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10009         slashes when checking if last component is missing.
10010         * tests/test-canonicalize.c (main): Test this.
10011
10012         canonicalize, canonicalize-lgpl: honor // if distinct from /
10013         * modules/canonicalize (Files): Add double-slash-root.m4.
10014         * modules/canonicalize-lgpl (Files): Likewise.
10015         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10016         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10017         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10018         fallback definition.
10019         (canonicalize_filename_mode): Use it to protect //.
10020         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10021         (__realpath): Likewise.
10022         * tests/test-canonicalize.c (main): Test this.
10023         * tests/test-canonicalize-lgpl.c (main): Likewise.
10024         * modules/canonicalize-tests (Depends-on): Add same-inode.
10025         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10026
10027         canonicalize-lgpl: fix glibc bug with trailing slash
10028         * m4/canonicalize-lgpl.m4: Move contents...
10029         * m4/canonicalize.m4: ...here.
10030         (gl_CANONICALIZE_LGPL): Factor realpath check...
10031         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10032         glibc 2.3.5 bug, fixed 2005-04-27.
10033         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10034         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10035         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10036         * modules/canonicalize-lgpl (Files): Manage file rename.
10037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10038         * modules/stdlib (Makefile.am): Substitute witness.
10039         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10040         is needed.
10041         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10042         replacement is required.
10043         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10044         * doc/glibc-functions/canonicalize_file_name.texi
10045         (canonicalize_file_name): Document this.
10046         * doc/posix-functions/realpath.texi (realpath): Likewise.
10047
10048         canonicalize-lgpl: reject non-directory with trailing slash
10049         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10050         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10051         catches failures in glibc 2.3.5.
10052         * tests/test-canonicalize.c (main): Likewise.
10053
10054         canonicalize-lgpl: use native realpath if it works
10055         * lib/canonicalize-lgpl.c (realpath): Guard with
10056         FUNC_REALPATH_WORKS.
10057         * lib/stdlib.in.h (realpath): Make declaration optional based on
10058         HAVE_REALPATH.
10059         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10060         native realpath works.
10061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10062         * modules/stdlib (Makefile.am): Substitute witness.
10063
10064         canonicalize, canonicalize-lgpl: use <stdlib.h>
10065         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10066         (Include): Mention <stdlib.h>.
10067         (configure.ac): Mention functions we provide.
10068         * modules/canonicalize (configure.ac): Likewise.
10069         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10070         realpath if canonicalize_file_name is missing.
10071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10072         * modules/stdlib (Makefile.am): Substitute witnesses.
10073         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10074         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10075         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10076         * NEWS: Document this.
10077         * doc/glibc-functions/canonicalize_file_name.texi
10078         (canonicalize_file_name): Likewise.
10079         * doc/posix-functions/realpath.texi (realpath): Likewise.
10080         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10081
10082         test-canonicalize: consolidate into single C program
10083         * tests/test-canonicalize.sh: Delete; move setup into...
10084         * tests/test-canonicalize.c (main): ...the program, making it
10085         easier to run in debugger.  Add some tests.
10086         * modules/canonicalize-tests (Files): Remove unused file.
10087         (Depends-on): Add progname.
10088         (configure.ac, Makefile.am): Simplify.
10089
10090         test-canonicalize-lgpl: consolidate into single C program
10091         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10092         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10093         easier to run in debugger.  Add some tests.
10094         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10095         (configure.ac, Makefile.am): Simplify.
10096
10097         canonicalize: avoid resolvepath
10098         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10099         unnecessary checks.
10100         * lib/canonicalize.c (includes): Simplify.
10101         (canonicalize_file_name): Drop resolvepath implementation.
10102         * modules/canonicalize (Depends-on): Drop filenamecat.
10103
10104         canonicalize: don't lose errno
10105         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10106         over calls to free.
10107
10108         canonicalize: simplify errno handling
10109         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10110         assignment.
10111
10112         canonicalize, canonicalize-lgpl: update module dependencies
10113         * modules/canonicalize (Depends-on): Add extensions, lstat,
10114         pathmax, stdlib.
10115         (Files): Drop pathmax.h.
10116         (configure.ac): Adjust macro name.
10117         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10118         lstat, stdlib, sys_stat.
10119         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10120         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10121         extensions.
10122         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10123         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10124         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10125         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10126         declaration, if available.
10127         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10128         we can rely on the readlink module.
10129         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10130         (includes): Use <unistd.h> unconditionally.
10131
10132 2009-09-17  Eric Blake  <ebb9@byu.net>
10133
10134         maint: make Include sections of modules consistent
10135         * modules/alloca: Use only header name; no need to list #include.
10136         * modules/alloca-opt: Likewise.
10137         * modules/arpa_inet: Likewise.
10138         * modules/canon-host: Likewise.
10139         * modules/configmake: Likewise.
10140         * modules/dirent: Likewise.
10141         * modules/eealloc: Likewise.
10142         * modules/environ: Likewise.
10143         * modules/fchdir: Likewise.
10144         * modules/fcntl: Likewise.
10145         * modules/fcntl-h: Likewise.
10146         * modules/gethrxtime: Likewise.
10147         * modules/gettime: Likewise.
10148         * modules/ignore-value: Likewise.
10149         * modules/inet_ntop: Likewise.
10150         * modules/inet_pton: Likewise.
10151         * modules/inttypes: Likewise.
10152         * modules/isnand-nolibm: Likewise.
10153         * modules/isnanf-nolibm: Likewise.
10154         * modules/mbchar: Likewise.
10155         * modules/mbfile: Likewise.
10156         * modules/mbiter: Likewise.
10157         * modules/mbuiter: Likewise.
10158         * modules/netdb: Likewise.
10159         * modules/netinet_in: Likewise.
10160         * modules/nproc: Likewise.
10161         * modules/pagealign_alloc: Likewise.
10162         * modules/poll: Likewise.
10163         * modules/printf-frexp: Likewise.
10164         * modules/pthread: Likewise.
10165         * modules/putenv: Likewise.
10166         * modules/random_r: Likewise.
10167         * modules/relocatable-prog: Likewise.
10168         * modules/search: Likewise.
10169         * modules/select: Likewise.
10170         * modules/selinux-h: Likewise.
10171         * modules/settime: Likewise.
10172         * modules/signal: Likewise.
10173         * modules/size_max: Likewise.
10174         * modules/socklen: Likewise.
10175         * modules/ssize_t: Likewise.
10176         * modules/stdarg: Likewise.
10177         * modules/stdbool: Likewise.
10178         * modules/stddef: Likewise.
10179         * modules/stdint: Likewise.
10180         * modules/stdio: Likewise.
10181         * modules/stdlib: Likewise.
10182         * modules/string: Likewise.
10183         * modules/strings: Likewise.
10184         * modules/sys_file: Likewise.
10185         * modules/sys_ioctl: Likewise.
10186         * modules/sys_select: Likewise.
10187         * modules/sys_socket: Likewise.
10188         * modules/sys_stat: Likewise.
10189         * modules/sys_time: Likewise.
10190         * modules/sys_times: Likewise.
10191         * modules/sys_utsname: Likewise.
10192         * modules/sys_wait: Likewise.
10193         * modules/sysexits: Likewise.
10194         * modules/time: Likewise.
10195         * modules/times: Likewise.
10196         * modules/tmpfile: Likewise.
10197         * modules/trim: Likewise.
10198         * modules/unistd: Likewise.
10199         * modules/wchar: Likewise.
10200         * modules/wctype: Likewise.
10201
10202 2009-09-17  Bruno Haible  <bruno@clisp.org>
10203
10204         Make getdate.y compile on QNX and NetBSD 5 / i386.
10205         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10206         TIME_T_FITS_IN_LONG_INT.
10207         * lib/getdate.y (long_time_t): New type.
10208         (relative_time): Change type of 'seconds' field to long_time_t.
10209         (get_date): Update types of local variables. Check against overflow
10210         during conversion from long_time_t to time_t.
10211         Reported by Matt Kraai <kraai@ftbfs.org>
10212         and Hasso Tepper <hasso@netbsd.org>.
10213
10214 2009-09-17  Bruno Haible  <bruno@clisp.org>
10215
10216         * modules/COPYING: Update copyright years.
10217         * modules/README: Likeiwse.
10218         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10219         Reported by Ian Beckwith <ianb@erislabs.net>.
10220
10221 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10222
10223         * users.txt: Update references for gnuit package.
10224
10225 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10226
10227         * m4/getdelim.m4: Fix typo in copyright line.
10228
10229 2009-09-17  Bruno Haible  <bruno@clisp.org>
10230
10231         * lib/atoll.c: Use the standard header with GPL copyright.
10232         * lib/argz.in.h: Likewise.
10233         * lib/glob.c: Likewise.
10234         * lib/glob-libc.h: Likewise.
10235         * lib/random_r.c: Likewise.
10236         * lib/siglist.h: Likewise.
10237         * lib/strsignal.c: Likewise.
10238         Reported by Ian Beckwith <ianb@erislabs.net>.
10239
10240 2009-09-17  Eric Blake  <ebb9@byu.net>
10241
10242         rmdir: ensure correct dependency order
10243         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10244
10245 2009-09-17  Bruno Haible  <bruno@clisp.org>
10246
10247         Disable assertion that fails on NetBSD 5 / i386.
10248         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10249         Reported by Sam Steingold <sds@gnu.org>
10250         and Hasso Tepper <hasso@netbsd.org>.
10251
10252 2009-09-16  Eric Blake  <ebb9@byu.net>
10253
10254         unlinkdir: port to mingw
10255         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10256         on which no one can unlink a directory.
10257
10258         stdlib: sort witness names
10259         * modules/stdlib (Makefile.am): Sort replacements.
10260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10261         * lib/stdlib.in.h: Likewise.
10262
10263         parse-duration-tests: avoid link failure
10264         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10265         LIBINTL.
10266         Reported by Tom G. Christensen.
10267
10268         openat-tests: ensure unlinkat behaves like rmdir
10269         * tests/test-rmdir.c (main): Factor guts...
10270         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10271         * modules/rmdir-tests (Files): Ship new file.
10272         * modules/openat-tests: New test.
10273         * tests/test-unlinkat.c: Likewise.
10274
10275         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10276         * modules/rmdir-errno (Status, Notice): Now obsolete.
10277
10278         rmdir: work around cygwin 1.5.x and mingw bugs
10279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10280         * lib/rmdir.c (rmdir): Work around it.
10281         * modules/rmdir (Status, Notice): No longer obsolete.
10282         (Files): Add dos.m4.
10283         (Depends-on): Add unistd.
10284         (configure.ac): Set witnesses.
10285         (License): Relax to LGPLv2+.
10286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10287         * modules/unistd (Makefile.am): Substitute witnesses.
10288         * lib/unistd.in.h (rmdir): Declare replacement.
10289         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10290         * modules/rmdir-tests: New tests.
10291         * tests/test-rmdir.c: Likewise.
10292
10293 2009-09-15  Eric Blake  <ebb9@byu.net>
10294
10295         fchdir: improve use of replacement functions
10296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10297         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10298         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10299         REPLACE_CLOSEDIR.
10300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10301         * modules/sys_stat (Makefile.am): Substitute correct witness.
10302         * modules/dirent (Makefile.am): Likewise.
10303         * modules/unistd (Makefile.am): Likewise.
10304         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10305         * lib/unistd.in.h (dup): Likewise.
10306         * lib/sys_stat.in.h (fstat): Likewise.
10307
10308         maint: ignore gnulib-tool temp files
10309         * .gitignore: Ignore files created during gnulib-tool --test.
10310
10311 2009-09-13  Jim Meyering  <meyering@redhat.com>
10312
10313         posixtm: don't reject a time that specify "60" as the number of seconds
10314         * lib/posixtm.c (posixtime): The code to reject invalid dates
10315         would also reject a time specified with the .60 suffix.
10316         But POSIX allows that, in order to accommodate leap seconds.
10317         So don't reject it.
10318         (main): Adjust tests accordingly.
10319         * modules/posixtm (Depends-on): Add stpcpy.
10320
10321 2009-09-11  Jim Meyering  <meyering@redhat.com>
10322
10323         announce-gen: include [$release_type] in emitted Subject:
10324         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10325         e.g., [stable] in the emitted Subject: line.
10326
10327 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10328
10329         Remove obsolete macros from several modules.
10330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10331         obsolete Autoconf macros with their modern counterparts.
10332         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10333         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10335         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10336         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10337         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10339         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10340         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10341         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10342         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10343         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10344         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10345         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10346         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10347         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10348         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10349         * m4/time_r.m4 (gl_TIME_R): Likewise.
10350         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10351         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10352         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10353
10354         Fix copyright header in build-aux scripts.
10355         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10356         recommendation.
10357         * build-aux/ncftpput-ftp: Likewise.
10358         * build-aux/update-copyright: Likewise.
10359
10360 2009-09-09  Eric Blake  <ebb9@byu.net>
10361
10362         test-link: allow Linux choice of errno
10363         * tests/test-link.c (main): Relax test for alternate error.
10364
10365         strndup: fix improper m4 caching
10366         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10367         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10368         (gl_PREREQ_STRNDUP): Delete.
10369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10370         * modules/string (Makefile.am): Substitute it.
10371         * lib/string.in.h (strndup): Modernize prototype.
10372
10373         getcwd: port to mingw
10374         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10375         different from the POSIX assumptions made throughout the getcwd
10376         module; fortunately, the mingw getcwd does not need replacement.
10377         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10378         * modules/getcwd-tests: New test.
10379         * tests/test-getcwd.c: Likewise.
10380
10381         link: fix platform bugs
10382         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10383         * lib/link.c (link): Work around them.  Fix related mingw bug.
10384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10385         * modules/unistd (Makefile.am): Substitute it.
10386         * lib/unistd.in.h (link): Declare replacement.
10387         * doc/posix-functions/link.texi (link): Document this.
10388         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10389
10390         test-link: consolidate into single C program, test more cases
10391         * tests/test-link.sh: Delete.
10392         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10393         at least Cygwin and Solaris.
10394         * modules/link-tests (Files): Remove unused file.
10395         (Depends-on): Add errno, sys_stat.
10396         (Makefile.am): Simplify.
10397
10398 2009-09-08  Bruno Haible  <bruno@clisp.org>
10399
10400         Work around towlower, towupper bug on mingw.
10401         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10402         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10403         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10404         * doc/posix-functions/towupper.texi: Likewise.
10405         Reported by Eric Blake.
10406
10407 2009-09-08  Jim Meyering  <meyering@redhat.com>
10408
10409         build: don't try to run autoheader if we don't use it
10410         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10411         is not used in configure.ac.
10412
10413 2009-09-08  Eric Blake  <ebb9@byu.net>
10414
10415         euidaccess: fix compilation error
10416         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10417
10418         rawmemchr: relax license
10419         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10420         okay.
10421         Reported by Jim Meyering.
10422
10423         mkfifoat: new module
10424         * modules/mkfifoat: New file.
10425         * lib/mkfifoat.c: Likewise.
10426         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10428         * modules/sys_stat (Makefile.am): Use them.
10429         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10430         * MODULES.html.sh (File system functions): Mention module.
10431         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10432         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10433         * modules/mkfifoat-tests: New test.
10434         * tests/test-mkfifoat.c: Likewise.
10435
10436         strchrnul: relax license
10437         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10438         okay.
10439         Reported by Jim Meyering.
10440
10441 2009-09-08  Eric Blake  <ebb9@byu.net>
10442
10443         fstatat: fix compilation on Solaris
10444         * lib/fstatat.c (includes): Add fcntl.h.
10445         Reported by Pádraig Brady.
10446
10447 2009-09-07  Eric Blake  <ebb9@byu.net>
10448
10449         rename: modernize replacement
10450         * modules/rename (Depends-on): Add stdio.
10451         (configure.ac): Declare witness.
10452         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10453         stdio take care of replacement.
10454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10455         * modules/stdio (Makefile.am): Substitute them.
10456         * lib/stdio.in.h (rename): Declare replacement.
10457         * lib/rename.c (includes): Allow cross-compilation to non-windows
10458         machines.
10459         * doc/posix-functions/rename.texi (rename): Improve
10460         documentation.
10461
10462         stdio: sort witness names
10463         * modules/stdio (Makefile.am): Sort replacements.
10464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10465         * lib/stdio.in.h: Likewise.
10466
10467         getcwd: minor cleanups
10468         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10469         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10470
10471         openat: provide more convenience names
10472         * modules/faccessat (configure.ac): Add C witness.
10473         * lib/unistd.in.h (readlinkat): Fix typo.
10474         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10475         convenience wrappers.
10476         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10477         wrappers in syntax checks.
10478
10479 2009-09-06  Eric Blake  <ebb9@byu.net>
10480
10481         doc: fix comments in recent patches
10482         * lib/faccessat.c: Mention correct function.
10483         * lib/fchmodat.c: Likewise.
10484         * lib/fchownat.c: Likewise.
10485         * lib/symlinkat.c: Likewise.
10486         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10487         constants.
10488
10489         faccessat, symlinkat: continue cleanup of previous patch
10490         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10491         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10492         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10494         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10495         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10496         set.
10497
10498 2009-09-06  Bruno Haible  <bruno@clisp.org>
10499
10500         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10501         (fstatat): Declare if GNULIB_FSTATAT is set.
10502         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10503         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10504         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10505         * modules/fcntl-h (Files): Remove m4/openat.m4.
10506         * modules/sys_stat (Files): Remove m4/openat.m4.
10507         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10508         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10509         * modules/unistd (Files): Remove m4/openat.m4.
10510         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10511         GNULIB_OPENAT.
10512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10513         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10515         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10516         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10517         gl_OPENAT_DEFAULTS.
10518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10519         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10520         Don't require gl_OPENAT_DEFAULTS.
10521         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10522         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10523         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10524         (gl_OPENAT_DEFAULTS): Remove macro.
10525
10526 2009-09-06  Bruno Haible  <bruno@clisp.org>
10527
10528         * modules/openat (configure.ac): Remove unneeded witness.
10529
10530 2009-09-06  Bruno Haible  <bruno@clisp.org>
10531
10532         Set errno to ENOSYS when a function is entirely unsupported.
10533         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10534         EOPNOTSUPP.
10535         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10536         * modules/chown (Depends-on): Remove errno.
10537
10538 2009-09-06  Bruno Haible  <bruno@clisp.org>
10539
10540         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10541
10542 2009-09-06  Bruno Haible  <bruno@clisp.org>
10543
10544         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10545
10546 2009-09-06  Ben Pfaff  <blp@gnu.org>
10547             Bruno Haible  <bruno@clisp.org>
10548
10549         Work around a glibc bug in strtok_r.
10550         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10551         Undefine if UNDEFINE_STRTOK_R is set.
10552         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10554         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10555         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10556         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10557         UNDEFINE_STRTOK_R.
10558         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10559
10560 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10561
10562         exclude: minor fix
10563         * lib/exclude.c: Include wctype.h
10564
10565 2009-09-06  Akim Demaille  <demaille@gostai.com>
10566
10567         bootstrap: improve error message
10568         * build-aux/bootstrap (find_tool): Upon failure, report the list
10569         of candidates.
10570         Honor the initial value of the envvar.
10571
10572 2009-09-05  Eric Blake  <ebb9@byu.net>
10573
10574         symlinkat: new module
10575         * modules/symlinkat: New file.
10576         * lib/symlinkat.c: Likewise.
10577         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10579         * modules/unistd (Makefile.am): Use them.
10580         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10581         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10582         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10583         * MODULES.html.sh (File system functions): Mention module.
10584         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10585         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10586         * modules/symlinkat-tests: New test.
10587         * tests/test-symlinkat.c: Likewise.
10588
10589         test-openat-safer: add more checks
10590         * tests/test-openat-safer.c (main): Check more code paths.
10591
10592 2009-09-05  Jim Meyering  <meyering@redhat.com>
10593
10594         syntax-check: detect unnecessary inclusion of openat.h
10595         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10596
10597 2009-09-05  Bruno Haible  <bruno@clisp.org>
10598
10599         Support towlower, towupper.
10600         * doc/posix-functions/towlower.texi: Mention module wctype.
10601         * doc/posix-functions/towupper.texi: Likewise.
10602         * lib/wctype.in.h (towlower, towupper): New functions.
10603         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10604         (ASSERT): New macro.
10605         (e): New variable.
10606         (main): Test also towlower, towupper. Test WEOF argument.
10607         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10608
10609 2009-09-05  Bruno Haible  <bruno@clisp.org>
10610
10611         Fix conversion behaviour when the input is invalid.
10612         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10613         mark occurring in first pass of indirect conversion.
10614         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10615         input.
10616         Found by clang's static analyzer.
10617
10618 2009-09-05  Bruno Haible  <bruno@clisp.org>
10619
10620         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10621         where direct conversion is possible.
10622
10623 2009-09-04  Eric Blake  <ebb9@byu.net>
10624
10625         openat: fail with ENOENT on empty name
10626         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10627         buffer.
10628
10629         link-follow: fix logic bug in prior patch
10630         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10631         reversed sense of yes and no in prior patch.  Avoid confusing
10632         compilation failure with desired semantics.
10633
10634         link-follow: accomodate mingw and cross-compilation
10635         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10636         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10637         cross-compilation results to -1, to make linkat easier to
10638         implement when cross-compiling.  Trivially support mingw.
10639         * modules/link-follow (configure.ac): Call new name.
10640         * NEWS: Mention this.
10641
10642 2009-09-03  Eric Blake  <ebb9@byu.net>
10643
10644         faccessat: compile replacement
10645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10646         needed.
10647
10648         fts: fix compilation error
10649         * lib/fts.c (includes): Re-add "openat.h", for
10650         openat_needs_fchdir.
10651
10652         faccessat: new module
10653         * modules/faccessat: New file.
10654         * lib/faccessat.c: Likewise.
10655         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10657         * modules/unistd (Makefile.am): Use it.
10658         * lib/unistd.in.h (faccessat): Declare it.
10659         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10660         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10661         * MODULES.html.sh (File system functions): Mention it.
10662         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10663         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10664
10665         euidaccess: prefer POSIX over non-standard implementation
10666         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10667         * lib/euidaccess.c (euidaccess): Use it if available.
10668
10669         openat: make template easier to use
10670         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10671         AT_FUNC_F2 to be undefined.
10672         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10673         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10674         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10675         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10676         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10677         Likewise.
10678         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10679         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10680         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10681         Likewise.
10682
10683         openat: declare in POSIX headers
10684         * NEWS: Mention this.
10685         * modules/openat (configure.ac): Declare witnesses.
10686         (Depends-on): Add fcntl-h, sys_stat, unistd.
10687         (Include): Mention correct headers.
10688         * modules/fcntl-h (Depends-on): Add link-warning.
10689         (Files): Add openat.m4.
10690         (Makefile.am): Substitute witnesses.
10691         * modules/sys_stat (Files, Makefile.am): Likewise.
10692         * modules/unistd (Files, Makefile.am): Likewise.
10693         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
10694         (gl_OPENAT_DEFAULTS): New macro.
10695         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
10696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
10697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
10698         (SYS_STAT_H): Remove unused variable.
10699         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
10700         * lib/fcntl--.h (includes): Remove unneeded header.
10701         * lib/openat-safer.c (includes): Likewise.
10702         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
10703         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
10704         appropriate headers.
10705         (__OPENAT_PREFIX): Delete.
10706         * lib/fcntl.in.h (openat): Provide declaration.
10707         (AT_FDCWD): Fix Solaris bug.
10708         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
10709         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
10710         * lib/fchmodat.c (includes):  Adjust to find declaration.
10711         * lib/fchownat.c (includes): Likewise.
10712         * lib/mkdirat.c (includes): Likewise.
10713         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
10714         still visible.
10715
10716 2009-09-02  Eric Blake  <ebb9@byu.net>
10717
10718         errno: use consistently
10719         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
10720         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
10721         * lib/canonicalize.c (ELOOP): Likewise.
10722         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
10723         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
10724         * lib/lchown.c (EOPNOTSUPP): Likewise.
10725         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
10726         * lib/savewd.c (ESTALE): Likewise.
10727         * lib/settime.c (ENOSYS): Likewise.
10728         * lib/utimens.c (ENOSYS): Likewise.
10729         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
10730         * lib/chdir-safer.c (ELOOP): Likewise.
10731         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
10732         * modules/c-stack (Depends-on): Add errno.
10733         * modules/canonicalize (Depends-on): Likewise.
10734         * modules/chdir-safer (Depends-on): Likewise.
10735         * modules/fdopendir (Depends-on): Likewise.
10736         * modules/inet_ntop (Depends-on): Likewise.
10737         * modules/inet_pton (Depends-on): Likewise.
10738         * modules/lchown (Depends-on): Likewise.
10739         * modules/openat (Depends-on): Likewise.
10740         * modules/savewd (Depends-on): Likewise.
10741         * modules/settime (Depends-on): Likewise.
10742         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
10743
10744         fts: avoid leaking fds
10745         * modules/fts (Depends-on): Add cloexec.
10746         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
10747         flag.
10748
10749         fts: make directory fds more robust
10750         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
10751         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
10752
10753         backupfile, chdir-long, fts, savedir: make safer
10754         * lib/backupfile.c (includes): Use "dirent--.h", since
10755         numbered_backup can write to stderr during readdir.
10756         * lib/savedir.c (includes): Likewise.
10757         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
10758         emulation can write to stderr on failure.
10759         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
10760         * lib/getcwd.c: Document why opendir_safer is unused.
10761         * lib/glob.c: Likewise.
10762         * lib/scandir.c: Likewise.
10763         * lib/openat-proc.c: Likewise, for open_safer.
10764         * modules/backupfile (Depends-on): Add dirent-safer.
10765         * modules/savedir (Depends-on): Likewise.
10766         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
10767         * modules/chdir-long (Depends-on): Add openat-safer.
10768
10769         openat-safer: new module
10770         * modules/openat-safer: New file.
10771         * lib/openat-safer.c: Likewise.
10772         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
10773         * lib/fcntl-safer.h (openat_safer): Declare.
10774         * lib/fcntl--.h (openat): Override.
10775         * MODULES.html.sh (File descriptor based I/O): Mention it.
10776         * lib/openat.h: Add double-inclusion guards.
10777         * lib/openat.c (includes): Only include "fcntl-safer.h", not
10778         "fcntl--.h", so we can implement openat.
10779         * modules/openat-safer-tests: New test.
10780         * tests/test-openat-safer.c: New file.
10781
10782         dirent-safer: new module
10783         * modules/dirent-safer: New file.
10784         * lib/dirent--.h: Likewise.
10785         * lib/dirent-safer.h: Likewise.
10786         * lib/opendir-safer.c: Likewise.
10787         * m4/dirent-safer.m4: Likewise.
10788         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
10789         * modules/dirent-safer-tests: New test.
10790         * tests/test-dirent-safer.c: New file.
10791         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
10792
10793         fdopendir: optimize on mingw
10794         * lib/unistd.in.h (_gl_directory_name): New prototype.
10795         * lib/fchdir.c (_gl_directory_name): Implement it.
10796         (fchdir): Use it to simplify implementation.
10797         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
10798         fchdir, when available, to avoid calling [f]chdir().
10799
10800         fdopendir: split into its own module
10801         * lib/openat.c (fdopendir): Move...
10802         * lib/fdopendir.c: ...into new file.
10803         * modules/fdopendir: New module.
10804         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
10805         * modules/openat (Depends-on): Add fdopendir.
10806         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
10807         fdopendir here.
10808         * modules/savedir (Depends-on): Only need fdopendir, not full
10809         openat.
10810         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
10811         * lib/openat.h (fdopendir): Drop prototype.
10812         * lib/dirent.in.h (fdopendir): Provide prototype.
10813         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
10814         * modules/dirent (Makefile.am): Substitute them.
10815         * MODULES.html.sh (File system functions): Mention it.
10816         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
10817         * modules/fdopendir-tests: New file.
10818         * tests/test-fdopendir.c: Likewise.
10819
10820         fchdir: use more consistent macro convention
10821         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
10822         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
10823         REPLACE_FCHDIR, rather than relying on config.h macros.
10824         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
10825         inside a single make-time REPLACE_FCHDIR block, rather than using
10826         the config.h FCHDIR_REPLACEMENT.
10827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
10828         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
10829         Manage fstat replacement.
10830         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
10831         REPLACE_FCHDIR.
10832         * modules/sys_stat (Files): Add m4/unistd_h.m4.
10833         (Makefile.am): Substitute REPLACE_FCHDIR.
10834         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
10835         FCHDIR_REPLACEMENT.
10836         * lib/dup-safer.c (dup_safer): Likewise.
10837         * lib/dup2.c (rpl_dup2): Likewise.
10838         * lib/dup3.c (rpl_dup3): Likewise.
10839         * lib/open.c (rpl_open): Likewise.
10840
10841         fchdir: simplify error handling, and support dup3
10842         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
10843         stdbool, malloc-posix, realloc-posix.
10844         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
10845         (ensure_dirs_slot): Return false on allocation failure.
10846         (rpl_dup2): Delete.
10847         (_gl_register_dup): New function.
10848         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
10849         (_gl_register_fd): Close fd on allocation failure.
10850         * lib/fcntl.in.h (_gl_register_fd): Update signature.
10851         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
10852         prototype.
10853         (rpl_dup2_fchdir): Delete prototype.
10854         * lib/open.c (open): Update caller.
10855         * lib/dup2.c (dup2): Track fchdir metadata.
10856         * lib/dup3.c (dup3): Likewise.
10857         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
10858         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
10859
10860 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10861
10862         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
10863         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
10864         don't pass arguments to AC_OUTPUT.
10865
10866 2009-09-02  Bruno Haible  <bruno@clisp.org>
10867
10868         * modules/mkdtemp (License): Relicense under LGPLv2+.
10869         Reported by Paolo Bonzini.
10870
10871 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10872
10873         Replace uses of obsolete autoconf macros in Jim's modules.
10874         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
10875         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
10876         can evoke a warning from autoconf when run with -Wobsolete
10877         enabled.  They were declared obsolete for good reasons (see
10878         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
10879         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
10880         should not continue using the deprecated macros.
10881         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
10882         obsolete Autoconf macros with modern counterparts.
10883         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10884         * m4/dos.m4 (gl_AC_DOS): Likewise.
10885         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
10886         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10887         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
10888         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
10889         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
10891         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
10892         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
10893         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10894         Likewise.
10895         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10896         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
10897         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
10898         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
10899         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10900         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
10901
10902 2009-09-01  Eric Blake  <ebb9@byu.net>
10903
10904         fchdir: fix off-by-one bug in previous patch
10905         * lib/fchdir.c (rpl_fstat): Use correct bounds.
10906         (_gl_unregister_fd): Delete useless if.
10907
10908 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
10909
10910         maint.mk: sort the list of syntax-check rules
10911         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
10912         easier to get a sense of progress when the rules are run sequentially
10913         and take a long time.
10914
10915 2009-09-01  Simon Josefsson  <simon@josefsson.org>
10916
10917         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
10918         * modules/netinet_in: Likewise.
10919         * modules/sys_file: Likewise.
10920         * modules/sys_ioctl: Likewise.
10921         * modules/sys_select: Likewise.
10922         * modules/sys_socket: Likewise.
10923         * modules/sys_stat: Likewise.
10924         * modules/sys_time: Likewise.
10925         * modules/sys_times: Likewise.
10926         * modules/sys_utsname: Likewise.
10927         * modules/sys_wait: Likewise.
10928
10929 2009-09-01  Jim Meyering  <meyering@redhat.com>
10930
10931         fts: help ensure that return values are not ignored
10932         * lib/fts_.h (__GNUC_PREREQ): Define.
10933         (__attribute_warn_unused_result__): Define.
10934         (fts_children, fts_close, fts_open, fts_read): Declare with
10935         __attribute_warn_unused_result__.
10936
10937         fts: fts_close now fails also when closing a dir file descriptor fails
10938         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
10939         and propagate to caller, along with errno.
10940
10941         announce-gen: correct formatting in --help output
10942         * build-aux/announce-gen (usage): Move the one-line description in
10943         --help output "up", to where it belongs, just after Usage:.
10944
10945 2009-08-31  Eric Blake  <ebb9@byu.net>
10946
10947         fchdir: port to mingw
10948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
10949         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
10950         opened, then use a substitute.
10951         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
10952         replacement.
10953         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
10954         (_gl_register_fd): No need to check stat if open already filters
10955         all directories.
10956         (fchdir): Fix error condition to match POSIX.
10957         * modules/fchdir (Depends-on): Add sys_stat.
10958         * doc/posix-functions/open.texi (open): Document the limitation.
10959         * modules/fchdir-tests: New file.
10960         * tests/test-fchdir.c: Likewise.
10961
10962         canonicalize: allow cross-testing from cygwin to mingw
10963         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
10964         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
10965         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
10966         Likewise.
10967         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
10968         target does not support symlinks.
10969         * tests/test-canonicalize-lgpl.sh: Likewise.
10970
10971         chown: avoid compilation warning on mingw
10972         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
10973         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
10974         mingw.
10975         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10976         * modules/chown (Depends-on): Add errno.
10977
10978 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10979
10980         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
10981         command.
10982
10983 2009-08-31  Jim Meyering  <meyering@redhat.com>
10984
10985         canonicalize: remove useless initialization
10986         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
10987         initialization of local, "end".
10988
10989 2009-08-30  Bruno Haible  <bruno@clisp.org>
10990
10991         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
10992         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
10993         ENOSYS.
10994
10995 2009-08-30  Bruno Haible  <bruno@clisp.org>
10996
10997         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
10998         /usr/xpg4/bin/tr when it exists.
10999         * tests/test-pipe-filter-gi1.sh: Likewise.
11000
11001 2009-08-30  Bruno Haible  <bruno@clisp.org>
11002
11003         Work around deficient /usr/bin/id program on Solaris.
11004         * tests/test-file-has-acl.sh (ID): New variable.
11005         * tests/test-set-mode-acl.sh (ID): Likewise.
11006         * tests/test-copy-acl.sh (ID): Likewise.
11007         * tests/test-copy-file.sh (ID): Likewise.
11008
11009 2009-08-30  Bruno Haible  <bruno@clisp.org>
11010
11011         New module 'xstriconveh'.
11012         * lib/xstriconveh.h: New file.
11013         * lib/xstriconveh.c: New file.
11014         * modules/xstriconveh: New file.
11015
11016 2009-08-30  Bruno Haible  <bruno@clisp.org>
11017
11018         Make it easier to use mem_cd_iconveh.
11019         * lib/striconveh.h (iconveh_t): New type.
11020         (iconveh_open, iconveh_close): New declarations.
11021         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11022         with a single 'const iconveh_t *' argument.
11023         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11024         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11025         with a single 'const iconveh_t *' argument.
11026         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11027         * tests/test-striconveh.c (main): Update.
11028         * NEWS: Mention the change.
11029
11030 2009-08-30  Bruno Haible  <bruno@clisp.org>
11031
11032         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11033         problem.
11034
11035 2009-08-30  Bruno Haible  <bruno@clisp.org>
11036
11037         Work around iconv_open problem on Solaris.
11038         * lib/iconv_open-solaris.gperf: New file.
11039         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11040         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11041         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11042         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11043         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11044         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11045
11046 2009-08-29  Jim Meyering  <meyering@redhat.com>
11047
11048         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11049         * top/maint.mk (cvs-check): Remove target; it was just an alias
11050         to the better-named vc-diff-check.
11051         (maintainer-distcheck): Remove rule.  It was used only from
11052         the (alpha/beta/major) target, and all of its commands but one
11053         were coreutils-specific.
11054         (vc-dist): Remove rule.
11055         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11056         Run vc-diff-check, not vc-dist.
11057         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11058
11059 2009-08-27  Bruno Haible  <bruno@clisp.org>
11060
11061         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11062         of 0.
11063
11064 2009-08-27  Bruno Haible  <bruno@clisp.org>
11065
11066         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11067         compilers.
11068         * doc/func.texi: Document the SunPRO C bug.
11069
11070 2009-08-27  Bruno Haible  <bruno@clisp.org>
11071
11072         Fix link error on Solaris.
11073         * tests/test-parse-duration.c (xstrdup): Remove function.
11074
11075 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11076
11077         ignore-value: handle pointer types, too
11078         * lib/ignore-value.h (__attribute__): Remove definition.
11079         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11080         of a more concise and more-often effective "(void) i" statement.
11081         (ignore_ptr): New function to suppress warnings from functions that
11082         return pointers, and to make it explicit that one function doesn't
11083         handle all cases.
11084
11085 2009-08-25  Bruno Haible  <bruno@clisp.org>
11086
11087         dup2: work around a Linux bug.
11088         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11089         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11090         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11091         Reported by Simon Josefsson.
11092
11093 2009-08-25  Jim Meyering  <meyering@redhat.com>
11094
11095         libguestfs uses gnulib
11096         * users.txt: Add libguestfs.
11097
11098 2009-08-24  Eric Blake  <ebb9@byu.net>
11099
11100         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11101         * lib/pipe2.c (includes): Add binary-io.h.
11102         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11103
11104 2009-08-24  Bruno Haible  <bruno@clisp.org>
11105
11106         Tolerate declared but missing accept4 syscall.
11107         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11108         available.
11109         * lib/sys_socket.in.h (accept4): If the function is already present,
11110         override it.
11111         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11112         * modules/accept4 (Makefile.am): Compile accept4.c always.
11113         Reported by Paolo Bonzini and Eric Blake.
11114
11115 2009-08-23  Bruno Haible  <bruno@clisp.org>
11116
11117         New module 'accept4'.
11118         * lib/sys_socket.in.h (accept4): New declaration.
11119         * lib/accept4.c: New file.
11120         * m4/accept4.m4: New file.
11121         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11122         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11123         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11124         HAVE_ACCEPT4.
11125         * modules/accept4: New file.
11126         * doc/glibc-functions/accept4.texi: Mention the new module.
11127
11128 2009-08-24  Jim Meyering  <meyering@redhat.com>
11129
11130         progname: also set global program_invocation_name, when possible
11131         Before this change, a libtool-enabled program that calls glibc's
11132         error function would report the program name as
11133         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11134         * modules/progname (configure.ac): Check for a declaration of
11135         program_invocation_name.
11136         * lib/progname.c:  Include <errno.h>.
11137         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11138         Set program_invocation_name.
11139
11140 2009-08-23  Bruno Haible  <bruno@clisp.org>
11141
11142         * lib/dup3.c: Include <string.h>.
11143
11144 2009-08-23  Bruno Haible  <bruno@clisp.org>
11145
11146         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11147         * lib/pipe2.c (pipe2): Likewise.
11148         Suggested by Eric Blake.
11149
11150 2009-08-23  Bruno Haible  <bruno@clisp.org>
11151
11152         Tolerate declared but missing dup3 syscall.
11153         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11154         * lib/unistd.in.h (dup3): If the function is already present,
11155         override it.
11156         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11157         * modules/dup3 (Makefile.am): Compile dup3.c always.
11158         Reported by Paolo Bonzini.
11159
11160 2009-08-23  Bruno Haible  <bruno@clisp.org>
11161
11162         Tolerate declared but missing pipe2 syscall.
11163         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11164         available.
11165         * lib/unistd.in.h (pipe2): If the function is already present,
11166         override it.
11167         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11168         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11169         Reported by Paolo Bonzini.
11170
11171 2009-08-23  Bruno Haible  <bruno@clisp.org>
11172
11173         * lib/pipe2.c (pipe2): Move #ifs inside function.
11174
11175 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11176
11177         quotearg: document limitations of quote_these_too
11178         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11179         those limitations are created.
11180         * lib/quotearg.h (set_char_quoting): Document that digits and
11181         letters that are special after backslash are not permitted.
11182         (quotearg_char): Cross-reference set_char_quoting documentation.
11183
11184 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11185
11186         quotearg: implement custom_quoting_style
11187         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11188         right_quote fields.
11189         (set_custom_quoting): New public function.
11190         (quotearg_buffer_restyled): Add left_quote and right_quote
11191         arguments, handle them very much like locale quoting, and update
11192         all uses.
11193         (quotearg_n_custom): New public function.
11194         (quotearg_n_custom_mem): New public function.
11195         (quotearg_custom): New public function.
11196         (quotearg_custom_mem): New public function.
11197         * lib/quotearg.h: Prototype and document new public functions.
11198         (enum quoting_style): For escape_quoting_style and
11199         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11200         ignored even though they're otherwise like c_quoting_style.
11201         Add custom_quoting_style member and document with comparison to
11202         clocale_quoting_style.
11203         * tests/test-quotearg.c (custom_quotes): New array.
11204         (custom_results): New array.
11205         (main): Extend to test custom quoting.
11206
11207 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11208
11209         quotearg: fix right quote escaping when it's in quote_these_too
11210         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11211         quote, be sure to prepend only one backslash.
11212         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11213         (main): Test it.
11214
11215 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11216
11217         quotearg-tests: test escaping of embedded locale quotes
11218         * tests/test-quotearg.c (struct result_strings): Add member for
11219         new input.
11220         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11221         (inputs): Add new input.
11222         (results_g): Add expected results.
11223         (flag_results): Likewise.
11224         (locale_results): Likewise.
11225         (compare_strings): Check those.
11226
11227 2009-08-23  Bruno Haible  <bruno@clisp.org>
11228
11229         Tests for module 'dup3'.
11230         * modules/dup3-tests: New file.
11231         * tests/test-dup3.c: New file.
11232
11233         New module 'dup3'.
11234         * lib/unistd.in.h (dup3): New declaration.
11235         * lib/dup3.c: New file.
11236         * m4/dup3.m4: New file.
11237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11238         HAVE_DUP3.
11239         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11240         * modules/dup3: New file.
11241         * doc/glibc-functions/dup3.texi: Mention the new module.
11242
11243 2009-08-23  Bruno Haible  <bruno@clisp.org>
11244
11245         Tweak the dup2 test.
11246         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11247         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11248         the test file is still empty. Fix argument order of lseek.
11249
11250 2009-08-23  Bruno Haible  <bruno@clisp.org>
11251
11252         Avoid test link errors when the modules getopt-gnu, gettext are used.
11253         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11255
11256 2009-08-23  Bruno Haible  <bruno@clisp.org>
11257
11258         Fix getdtablesize() on mingw.
11259         * lib/getdtablesize.c (getdtablesize): Implement differently.
11260         * lib/unistd.in.h (getdtablesize): Improve comment.
11261
11262 2009-08-23  Bruno Haible  <bruno@clisp.org>
11263
11264         New module 'mkostemp'.
11265         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11266         * lib/stdlib.in.h (mksotemp): New declaration.
11267         * lib/mkostemp.c: New file, from glibc with modifications.
11268         * lib/tempname.h (GT_FILE): Remove outdated comment.
11269         (gen_tempname): Add flags argument.
11270         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11271         (__GT_FILE): Map to 1.
11272         (small_open, large_open): Remove macros.
11273         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11274         * lib/mkstemp.c (mkstemp): Update.
11275         * lib/mkdtemp.c (mkdtemp): Likewise.
11276         * m4/mkostemp.m4: New file.
11277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11278         HAVE_MKOSTEMP.
11279         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11280         HAVE_MKOSTEMP.
11281         * modules/mkostemp: New file, based on modules/mkstemp.
11282         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11283         * NEWS: Mention the change.
11284
11285 2009-08-23  Bruno Haible  <bruno@clisp.org>
11286
11287         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11288         Reported by Eric Blake.
11289
11290 2009-08-23  Bruno Haible  <bruno@clisp.org>
11291
11292         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11293         Reported by Eric Blake.
11294
11295 2009-08-23  Bruno Haible  <bruno@clisp.org>
11296
11297         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11298         * modules/pipe2 (Depends-on): Likewise.
11299
11300 2009-08-23  Eric Blake  <ebb9@byu.net>
11301
11302         fcntl-h: add O_TTY_INIT support
11303         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11304         * tests/test-fcntl-h.c (o): Test it.
11305         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11306
11307         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11308         * modules/fcntl: Move <fcntl.h> header replacement...
11309         * modules/fcntl-h: ...to new name, so as not to collide with
11310         like-named function.
11311         * tests/test-fcntl.c: Rename...
11312         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11313         * modules/fcntl-tests: Rename...
11314         * modules/fcntl-h-tests: ...to this.  Update test file name.
11315         * modules/chdir-long (Depends-on): Update clients.
11316         * modules/chdir-safer (Depends-on): Likewise.
11317         * modules/fcntl-safer (Depends-on): Likewise.
11318         * modules/fts (Depends-on): Likewise.
11319         * modules/mkancesdirs (Depends-on): Likewise.
11320         * modules/mkdir-p (Depends-on): Likewise.
11321         * modules/open (Depends-on): Likewise.
11322         * modules/savewd (Depends-on): Likewise.
11323         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11324         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11325
11326 2009-08-22  Bruno Haible  <bruno@clisp.org>
11327
11328         * modules/binary-io (License): Relicense under LGPL.
11329         * modules/pipe2 (License): Likewise.
11330
11331 2009-08-22  Bruno Haible  <bruno@clisp.org>
11332
11333         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11334         return value.
11335         * lib/pipe-filter-gi.c (filter_init): Likewise.
11336         Reported by Eric Blake.
11337
11338 2009-08-22  Bruno Haible  <bruno@clisp.org>
11339
11340         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11341         * modules/pipe (Depends-on): Add pipe2.
11342
11343 2009-08-22  Bruno Haible  <bruno@clisp.org>
11344
11345         Tests for module 'pipe2'.
11346         * modules/pipe2-tests: New file.
11347         * tests/test-pipe2.c: New file.
11348
11349         New module 'pipe2'.
11350         * lib/unistd.in.h (pipe2): New declaration.
11351         * lib/pipe2.c: New file.
11352         * m4/pipe2.m4: New file.
11353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11354         HAVE_PIPE2.
11355         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11356         * modules/pipe2: New file.
11357         * doc/glibc-functions/pipe2.texi: Mention the new module.
11358
11359 2009-08-22  Bruno Haible  <bruno@clisp.org>
11360
11361         Reference some new glibc functions.
11362         * doc/glibc-functions/accept4.texi: New file.
11363         * doc/glibc-functions/dup3.texi: New file.
11364         * doc/glibc-functions/mkostemp.texi: New file.
11365         * doc/glibc-functions/pipe2.texi: New file.
11366         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11367         (Glibc sys/socket.h): Refer to accept4.
11368         (Glibc unistd.h): Refer to dup3, pipe2.
11369         Reported by Eric Blake.
11370
11371 2009-08-22  Jim Meyering  <meyering@redhat.com>
11372             Bruno Haible  <bruno@clisp.org>
11373
11374         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11375         This makes it so packages using automake-1.11's silent-rules option
11376         can print e.g., a single "GEN    configmake.h" line, rather than
11377         the 30+ statements that perform the job.  If you want to see the
11378         actual commands, you can still run "make V=1".
11379         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11380         so that make output is abbreviated when those variables are defined
11381         appropriately.
11382         * modules/argz: Likewise.
11383         * modules/arpa_inet: Likewise.
11384         * modules/byteswap: Likewise.
11385         * modules/configmake: Likewise.
11386         * modules/dirent: Likewise.
11387         * modules/errno: Likewise.
11388         * modules/fcntl: Likewise.
11389         * modules/float: Likewise.
11390         * modules/fnmatch: Likewise.
11391         * modules/getopt-posix: Likewise.
11392         * modules/glob: Likewise.
11393         * modules/iconv_open: Likewise.
11394         * modules/inttypes: Likewise.
11395         * modules/localcharset: Likewise.
11396         * modules/locale: Likewise.
11397         * modules/math: Likewise.
11398         * modules/netdb: Likewise.
11399         * modules/netinet_in: Likewise.
11400         * modules/poll: Likewise.
11401         * modules/posix_spawnp-tests: Likewise.
11402         * modules/sched: Likewise.
11403         * modules/search: Likewise.
11404         * modules/selinux-h: Likewise.
11405         * modules/signal: Likewise.
11406         * modules/spawn: Likewise.
11407         * modules/stdarg: Likewise.
11408         * modules/stdbool: Likewise.
11409         * modules/stddef: Likewise.
11410         * modules/stdint: Likewise.
11411         * modules/stdio: Likewise.
11412         * modules/stdlib: Likewise.
11413         * modules/string: Likewise.
11414         * modules/strings: Likewise.
11415         * modules/sys_file: Likewise.
11416         * modules/sys_ioctl: Likewise.
11417         * modules/sys_select: Likewise.
11418         * modules/sys_socket: Likewise.
11419         * modules/sys_stat: Likewise.
11420         * modules/sys_time: Likewise.
11421         * modules/sys_times: Likewise.
11422         * modules/sys_utsname: Likewise.
11423         * modules/sys_wait: Likewise.
11424         * modules/sysexits: Likewise.
11425         * modules/time: Likewise.
11426         * modules/unistd: Likewise.
11427         * modules/wchar: Likewise.
11428         * modules/wctype: Likewise.
11429
11430 2009-08-22  Jim Meyering  <meyering@redhat.com>
11431
11432         announce-gen: detect write failure
11433         * build-aux/announce-gen: Add Coda at end.
11434         Remove equivalent-but-more-verbose block at top.
11435
11436 2009-08-19  Akim Demaille  <demaille@gostai.com>
11437
11438         bootstrap: --help to stdout.
11439         * bootstrap (usage): Don't send --help to stderr.
11440         Use a here doc instead of a long string.
11441
11442 2009-08-21  Eric Blake  <ebb9@byu.net>
11443
11444         test-popen-safer: split from test-popen
11445         * tests/test-popen.c (main): Move...
11446         * tests/test-popen.h: ...into new file.
11447         * tests/test-popen-safer2.c: New file.
11448         * modules/popen-tests (Files): Add test-popen.h.
11449         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11450         Suggested by Bruno Haible.
11451
11452         test-fcntl-safer: split from test-open
11453         * tests/test-open.c (main): Move...
11454         * tests/test-open.h: ...into new file.
11455         * tests/test-fcntl-safer.c: New file.
11456         * modules/open-tests (Files): Add test-open.h.
11457         * modules/fcntl-safer-tests: New file.
11458         Suggested by Bruno Haible.
11459
11460         test-fopen-safer: split from test-fopen
11461         * tests/test-fopen.c (main): Move...
11462         * tests/test-fopen.h: ...into new file.
11463         * tests/test-fopen-safer.c: New file.
11464         * modules/fopen-tests (Files): Add test-fopen.h.
11465         * modules/fopen-safer-tests: New file.
11466         Suggested by Bruno Haible.
11467
11468 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11469
11470         popen-safer: test O_CLOEXEC at run-time.
11471         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11472
11473 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11474
11475         fcntl: move more flags to the header
11476         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11477         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11478         * lib/fcntl.in.h: Do both things here.
11479
11480 2009-08-21  Jim Meyering  <meyering@redhat.com>
11481
11482         consistently remove $@-t before redirecting to it
11483         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11484         * modules/alloca-opt: Likewise.
11485         * modules/byteswap: Likewise.
11486         * modules/fnmatch: Likewise.
11487         * modules/getopt-posix: Likewise.
11488         * modules/glob: Likewise.
11489         * modules/poll: Likewise.
11490         * modules/posix_spawnp-tests: Likewise.
11491         * modules/sys_socket: Likewise.
11492         * modules/sysexits: Likewise.
11493
11494 2009-08-21  Eric Blake  <ebb9@byu.net>
11495
11496         popen: simplify access to original popen
11497         * lib/popen.c (rpl_popen): No need to worry about popen being a
11498         macro.
11499         Reported by Bruno Haible.
11500
11501 2009-08-20  Eric Blake  <ebb9@byu.net>
11502
11503         build: avoid some compiler warnings
11504         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11505         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11506         type.
11507         (new_exclude_segment, excluded_file_pattern_p)
11508         (excluded_file_name_p): Reduce scope.
11509         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11510         old-style declaration.
11511
11512 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11513
11514         * tests/test-exclude1.sh: Handle Windows EOL.
11515         * tests/test-exclude2.sh: Likewise.
11516         * tests/test-exclude3.sh: Likewise.
11517         * tests/test-exclude4.sh: Likewise.
11518         * tests/test-exclude5.sh: Likewise.
11519         * tests/test-exclude6.sh: Likewise.
11520         * tests/test-exclude7.sh: Likewise.
11521
11522 2009-08-19  Akim Demaille  <demaille@gostai.com>
11523
11524         bootstrap: find sha1sum when named gsha1sum.
11525         * bootstrap (find_tool): New.
11526         ($SHA1SUM): New.
11527         Use it.
11528
11529 2009-08-20  Jim Meyering  <meyering@redhat.com>
11530
11531         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11532         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11533         expression that converts "." in a file name to "\." in the resulting
11534         regexp.  Start with a dummy statement, so that prior shell variable
11535         definitions are expanded portably.  Reported by Simon Josefsson.
11536
11537 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11538
11539         Fix polling for writeability of a screen buffer.
11540         * lib/poll.c: Distinguish input and screen buffers for the
11541         Win32 implementation.
11542         * lib/select.c: Likewise.
11543
11544 2009-08-19  Eric Blake  <ebb9@byu.net>
11545
11546         popen-safer: prevent popen from clobbering std descriptors
11547         * modules/popen-safer: New file.
11548         * lib/popen-safer.c: Likewise.
11549         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11550         * lib/stdio--.h (popen): Provide override.
11551         * lib/stdio-safer.h (popen_safer): Provide declaration.
11552         * tests/test-popen.c (includes): Partially test this.
11553         * modules/popen-safer-tests: New file, for more tests.
11554         * tests/test-popen-safer.c: Likewise.
11555         * MODULES.html.sh (file stream based Input/Output): Mention it.
11556
11557         tests: test some of the *-safer modules
11558         * modules/fopen-safer (Depends-on): Add fopen.
11559         * modules/fcntl-safer (Depends-on): Add fcntl.
11560         * modules/stdlib-safer (Depends-on): Add stdlib.
11561         (configure.ac): Set indicator.
11562         * modules/unistd-safer (configure.ac): Likewise.
11563         * modules/tmpfile-safer (configure.ac): Likewise.
11564         (Depends-on): Add tmpfile.
11565         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11566         active.
11567         * tests/test-fopen.c (includes): Test safer versions when they are
11568         in use.
11569         * tests/test-open.c (includes): Likewise.
11570
11571         popen: fix cygwin 1.5 bug when stdin closed
11572         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11573         * modules/popen: New file.
11574         * modules/popen-tests: Likewise.
11575         * tests/test-popen.c: Likewise.
11576         * m4/popen.m4: Likewise.
11577         * lib/popen.c: Likewise.
11578         * lib/stdio.in.h (popen): New declaration.
11579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11580         * modules/stdio (Makefile.am): Likewise.
11581         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11582
11583 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11584
11585         maint.mk: give full control over update-copyright exclusions
11586         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11587         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11588         (update-copyright): Don't force inclusion of top-level
11589         ChangeLog.  Don't force exclusion of all COPYING files, but make
11590         them the default exclusion instead.
11591
11592 2009-08-16  Bruno Haible  <bruno@clisp.org>
11593
11594         Fix test failures on Solaris 10.
11595         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11596         tests when Solaris iconv() is used.
11597         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11598         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11599         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11600         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11601         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11602
11603 2009-08-16  Bruno Haible  <bruno@clisp.org>
11604
11605         Fix test failures on Solaris 10.
11606         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11607         'tr' program and pass it as first argument.
11608         * tests/test-pipe-filter-gi1.sh: Likewise.
11609         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11610         program as first argument.
11611         * tests/test-pipe-filter-gi1.c (main): Likewise.
11612
11613 2009-08-16  Eric Blake  <ebb9@byu.net>
11614
11615         fpurge: fix previous commits
11616         * modules/fpurge (Makefile.am): Make replacement conditional,
11617         partially reverting 2007-04-29 change; missed in previous
11618         attempt.
11619         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11620         is missing.
11621
11622 2009-08-16  Bruno Haible  <bruno@clisp.org>
11623
11624         Clarify fpurge's effect on the file position.
11625         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11626         * tests/test-fpurge.c (main): Make a second pass for checking the file
11627         position.
11628
11629 2009-08-16  Bruno Haible  <bruno@clisp.org>
11630
11631         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11632         declaration of fpurge is missing.
11633         * tests/test-fpurge.c (main): Check that the file has not more contents
11634         than expected. Close the file before removing it.
11635
11636 2009-08-15  Eric Blake  <ebb9@byu.net>
11637
11638         fpurge: don't wrap working cygwin implementation
11639         * lib/fpurge.c (fpurge): Fix comment typo.
11640         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11641         1.7 to avoid replacement.
11642         * tests/test-fpurge.c (main): Enhance test.
11643
11644 2009-08-15  Eric Blake  <ebb9@byu.net>
11645         and Jim Meyering  <meyering@redhat.com>
11646
11647         test-update-copyright: skip if perl is insufficient
11648         * tests/test-update-copyright.sh: Failure to run maintainer tool
11649         should not cause testsuite failure on cygwin 1.5.
11650
11651 2009-08-14  Eric Blake  <ebb9@byu.net>
11652
11653         doc: mention more functions added in cygwin 1.7.0
11654         * doc/posix-headers/limits.texi (limits.h): Update for recent
11655         cygwin additions.
11656         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11657         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11658         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11659         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11660         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11661
11662 2009-08-14  Eric Blake  <ebb9@byu.net>
11663
11664         maint.mk: simplify update-copyright rule
11665         * top/maint.mk (update-copyright-local): Delete, and document how
11666         to do it in cfg.mk instead.
11667         (update-copyright-exclude-regexp): Delete, and document how to do
11668         it in .x-update-copyright instead.
11669         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11670         exclude ChangeLog.
11671
11672 2009-08-14  Bruno Haible  <bruno@clisp.org>
11673
11674         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11675
11676 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11677
11678         maint.mk: support update-copyright-env
11679         * top/maint.mk (update-copyright-env): Define place-holder.
11680         (update-copyright): Expand $(update-copyright-env) before
11681         invoking update-copyright.
11682
11683 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11684
11685         update-copyright: implement forced reformatting
11686         * build-aux/update-copyright: Implement and document
11687         UPDATE_COPYRIGHT_FORCE.
11688         * tests/test-update-copyright.sh: Test it.
11689
11690 2009-08-14  Eric Blake  <ebb9@byu.net>
11691         and Bruno Haible  <bruno@clisp.org>
11692
11693         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
11694         * tests/test-locale.c: Revert previous patch related to NULL.
11695         * tests/test-stdio.c: Likewise.
11696         * tests/test-stdlib.c: Likewise.
11697         * tests/test-string.c: Likewise.
11698         * tests/test-unistd.c: Likewise.
11699         * modules/time-tests (Depends-on): Add verify.
11700         * modules/wchar-tests (Depends-on): Likewise.
11701         * tests/test-time.c: Test for NULL compliance.
11702         * tests/test-wchar.c: Likewise.
11703         * modules/locale (Depends-on): Add stddef.
11704         * modules/stdio (Depends-on): Likewise.
11705         * modules/stdlib (Depends-on): Likewise.
11706         * modules/string (Depends-on): Likewise.
11707         * modules/time (Depends-on): Likewise.
11708         * modules/unistd (Depends-on): Likewise.
11709         * modules/wchar (Depends-on): Likewise.
11710         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
11711         * lib/stdlib.in.h (includes): Likewise.
11712         * lib/string.in.h (includes): Likewise.
11713         * lib/time.in.h (includes): Likewise.
11714         * lib/unistd.in.h (includes): Likewise.
11715         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
11716         replaced.
11717         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11718         * m4/stddef_h.m4: New file.
11719         * modules/stddef: Likewise.
11720         * lib/stddef.in.h: Likewise.
11721         * modules/stddef-tests: Likewise.
11722         * tests/test-stddef.c: Likewise.
11723         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
11724         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
11725         * doc/posix-headers/locale.texi (locale.h): Likewise.
11726         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
11727         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11728         * doc/posix-headers/string.texi (string.h): Likewise.
11729         * doc/posix-headers/time.texi (time.h): Likewise.
11730         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
11731         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
11732
11733 2009-08-14  Eric Blake  <ebb9@byu.net>
11734
11735         doc: improve git diff of texinfo files
11736         * .gitattributes: Add rule for *.texi files, with hint on how to
11737         use it.
11738         Copied from m4, and based on a report by Bruno Haible.
11739
11740 2009-08-14  Bruno Haible  <bruno@clisp.org>
11741
11742         Disable multithread support by default on Cygwin 1.5.x for real.
11743         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
11744
11745 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11746
11747         update-copyright: much ado about intervals
11748         * build-aux/update-copyright: Implement and document
11749         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
11750         of copyright year intervals.
11751         Also, document UPDATE_COPYRIGHT_YEAR.
11752         * tests/test-update-copyright.sh: Test it.
11753
11754         update-copyright: convert 2-digit to 4-digit years
11755         * build-aux/update-copyright: Implement and document.
11756         * tests/test-update-copyright.sh: Update.
11757
11758 2009-08-14  Jim Meyering  <meyering@redhat.com>
11759
11760         test-exclude: avoid coreutils "make check" failure
11761         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
11762         just as in test-argmatch.c.
11763
11764 2009-08-13  Eric Blake  <ebb9@byu.net>
11765
11766         test-dup2: fix bad assumption
11767         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
11768         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
11769
11770         test-version-etc: fix CRLF portability issue
11771         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
11772         recognize \r.
11773         * tests/test-argp-version-etc-1.sh: Likewise.
11774
11775         getopt: update client modules
11776         * modules/argp (Depends-on): Use getopt-gnu.
11777         * modules/git-merge-changelog (Depends-on): Likewise.
11778         * modules/long-options (Depends-on): Likewise.
11779         * modules/xstrtol (Depends-on): Likewise.
11780
11781 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11782
11783         * tests/test-version-etc.sh: Don't fail on different
11784         project/version.  Don't fail on CRLF differences.  Rewrite to use
11785         multiple -e instead of multiple sed forks, suggested by Eric Blake
11786         <ebb9@byu.net>.
11787         * tests/test-argp-version-etc-1.sh: Likewise.
11788
11789 2009-08-13  Simon Josefsson  <simon@josefsson.org>
11790
11791         * tests/test-version-etc.sh: Don't fail on different
11792         project/version.
11793
11794 2009-08-12  Bruno Haible  <bruno@clisp.org>
11795
11796         Tests for modules 'getopt-posix', 'getopt-gnu'.
11797         * modules/getopt-posix-tests: New file.
11798         * tests/test-getopt.c: New file.
11799         * tests/test-getopt.h: New file.
11800         * tests/test-getopt_long.h: New file.
11801
11802         New modules 'getopt-posix', 'getopt-gnu'.
11803         * modules/getopt-gnu: New file, renamed from modules/getopt.
11804         * modules/getopt-posix: New file.
11805         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
11806         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
11807         (gl_GETOPT): Remove macro.
11808         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
11809         Disable the test against BSD systems that declare optreset. Test
11810         against mingw bug. Test against lack of support of optional arguments
11811         on many platforms.
11812         * doc/glibc-headers/getopt.texi: Update module name and list of
11813         relevant platforms.
11814         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
11815         'getopt-gnu' and more portability problems.
11816         * NEWS: Mention the changes.
11817
11818 2009-08-12  Bruno Haible  <bruno@clisp.org>
11819
11820         Ensure that optarg etc. get declared by <unistd.h>.
11821         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
11822         AC_USE_SYSTEM_EXTENSIONS.
11823         * modules/getopt (Depends-on): Add 'extensions'.
11824
11825 2009-08-12  Bruno Haible  <bruno@clisp.org>
11826
11827         Avoid test link errors.
11828         * modules/pipe-filter-ii-tests (Makefile.am): Define
11829         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
11830         * modules/pipe-filter-gi-tests (Makefile.am): Define
11831         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
11832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11833
11834 2009-08-12  Bruno Haible  <bruno@clisp.org>
11835
11836         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
11837         gl_GETOPT_SUBSTITUTE before.
11838         (gl_GETOPT): Use it.
11839         * m4/argp.m4 (gl_ARGP): Update.
11840         Reported by Sergey Poznyakoff.
11841
11842         * m4/getopt.m4: Reorder macros.
11843         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
11844         (gl_GETOPT_SUBSTITUTE): Remove macro.
11845
11846 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11847
11848         Minor improvement in gitlog-to-changelog
11849
11850         * build-aux/gitlog-to-changelog: New option `--format' makes
11851         output format string configurable.
11852
11853 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11854
11855         Optimize exclude: use hash tables for non-wildcard patterns.
11856
11857         * lib/exclude.c: Include hash.h and mbuiter.h
11858         (struct exclude_pattern, exclude_segment): New data types.
11859         (struct exclude): Rewrite.
11860         (fnmatch_pattern_has_wildcards): New function.
11861         (new_exclude_segment, free_exclude_segment): New functions.
11862         (excluded_file_pattern_p, excluded_file_name_p): New functions.
11863         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
11864         * lib/exclude.h (is_fnmatch_pattern): New prototype.
11865         * modules/exclude: Depend on hash and mbuiter.
11866
11867         * modules/exclude-tests: New file.
11868         * tests/test-exclude.c: New file.
11869         * tests/test-exclude1.sh: New file.
11870         * tests/test-exclude2.sh: New file.
11871         * tests/test-exclude3.sh: New file.
11872         * tests/test-exclude4.sh: New file.
11873         * tests/test-exclude5.sh: New file.
11874         * tests/test-exclude6.sh: New file.
11875         * tests/test-exclude7.sh: New file.
11876
11877 2009-08-12  Bruno Haible  <bruno@clisp.org>
11878
11879         Ensure that getopt() gets declared by <unistd.h>.
11880         * lib/unistd.in.h: Conditionally include getopt.h.
11881         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
11882         Set GNULIB_UNISTD_H_GETOPT.
11883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11884         GNULIB_UNISTD_H_GETOPT.
11885         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
11886
11887 2009-08-12  Bruno Haible  <bruno@clisp.org>
11888
11889         Clarify logic.
11890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
11891         gl_replace_getopt instead of GETOPT_H.
11892
11893 2009-08-12  Bruno Haible  <bruno@clisp.org>
11894
11895         * m4/getopt.m4: Add comments.
11896
11897 2009-08-12  Bruno Haible  <bruno@clisp.org>
11898
11899         Disable multithread support by default on Cygwin 1.5.x.
11900         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
11901         set gl_use_threads=no if not specified otherwise.
11902
11903 2009-08-11  Bruno Haible  <bruno@clisp.org>
11904
11905         Avoid compilation error on NetBSD 5.0.
11906         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
11907         * tests/test-stdio.c: Likewise.
11908         * tests/test-stdlib.c: Likewise.
11909         * tests/test-string.c: Likewise.
11910         * tests/test-unistd.c: Likewise.
11911         Reported by Greg Troxel <gdt@ir.bbn.com>
11912         at <https://savannah.gnu.org/support/?106973>.
11913
11914 2009-08-11  Bruno Haible  <bruno@clisp.org>
11915
11916         * modules/dup2-tests (Depends-on): Remove close.
11917
11918         Undo 2009-07-19 commit.
11919         * modules/acl-tests (Depends-on): Remove close.
11920         * modules/binary-io-tests (Depends-on): Likewise.
11921         * modules/closein-tests (Depends-on): Likewise.
11922         * modules/flock-tests (Depends-on): Likewise.
11923         * modules/fsync-tests (Depends-on): Likewise.
11924         * modules/lseek-tests (Depends-on): Likewise.
11925         * modules/pipe-tests (Depends-on): Likewise.
11926         * modules/posix_spawn-tests (Depends-on): Likewise.
11927         * modules/posix_spawnp-tests (Depends-on): Likewise.
11928         * modules/stat-time-tests (Depends-on): Likewise.
11929         * modules/yesno-tests (Depends-on): Likewise.
11930
11931 2009-08-10  Bruno Haible  <bruno@clisp.org>
11932
11933         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
11934
11935 2009-08-10  Bruno Haible  <bruno@clisp.org>
11936
11937         Fix a gcc warning.
11938         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
11939
11940 2009-08-10  Bruno Haible  <bruno@clisp.org>
11941
11942         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
11943         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
11944         not only the first time.
11945         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
11946         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
11947         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
11948         is 1, not only the the first time.
11949
11950 2009-08-10  Bruno Haible  <bruno@clisp.org>
11951
11952         Make it possible to use module 'gethostname' without module 'close'.
11953         * lib/unistd.in.h (close): Evoke a link error only if
11954         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11956         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11957         * modules/unistd (Makefile.am): Substitute
11958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11959         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
11960         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
11961         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
11962         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11963         * modules/sys_ioctl (Makefile.am): Substitute
11964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11965         * modules/socket (configure.ac): On native Windows, set
11966         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
11967         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
11968         Reported by Sam Steingold <sds@gnu.org>.
11969
11970 2009-08-10  Bruno Haible  <bruno@clisp.org>
11971
11972         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
11973         * modules/ioctl (configure.ac): Likewise.
11974
11975 2009-08-10  Bruno Haible  <bruno@clisp.org>
11976
11977         Avoid collision between gnulib wrapper and libintl wrapper.
11978         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
11979         already defined in intl/printf.c.
11980         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
11981         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
11982
11983 2009-08-09  Bruno Haible  <bruno@clisp.org>
11984
11985         Make <sys/select.h> really self-contained, also on Solaris 10.
11986         * lib/sys_select.in.h: Include <string.h>.
11987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
11988         Solaris 10 problem.
11989         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
11990         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
11991         Reported by Jim Meyering.
11992
11993 2009-08-09  Bruno Haible  <bruno@clisp.org>
11994
11995         Avoid warnings from 'aclocal' that are due to a use of macro name
11996         AM_XGETTEXT_OPTION that is not defined in automake.
11997         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
11998         automake.
11999         * modules/error (configure.ac): Likewise.
12000         * modules/propername (configure.ac): Likewise.
12001         * modules/vasprintf (configure.ac): Likewise.
12002         * modules/verror (configure.ac): Likewise.
12003         * modules/xprintf (configure.ac): Likewise.
12004         * modules/xvasprintf (configure.ac): Likewise.
12005
12006 2009-08-08  Bruno Haible  <bruno@clisp.org>
12007
12008         Avoid compilation error in C++ mode.
12009         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12010         Reported by Sam Steingold <sds@gnu.org>.
12011
12012 2009-08-08  Bruno Haible  <bruno@clisp.org>
12013
12014         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12015         for the various Unix platforms.
12016         * doc/posix-headers/limits.texi: Update platforms list regarding
12017         HOST_NAME_MAX.
12018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12019
12020 2009-08-07  Jim Meyering  <meyering@redhat.com>
12021
12022         selinux-at: fix typo in a comment
12023         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12024         Spotted by Paolo Bonzini.
12025
12026         selinux-at: remove redundant m4 code, add documentation
12027         * modules/selinux-at (configure.ac): Remove redundant code.
12028         LIB_SELINUX is already set via the dependent module, selinux-h.
12029         (Include): Add quotes around selinux-at.h.
12030         * lib/selinux-at.h: Add documentation.
12031         Reported by Bruno Haible in
12032         http://marc.info/?l=gnulib-bug&m=124958988300749
12033
12034 2009-08-07  Bruno Haible  <bruno@clisp.org>
12035
12036         Avoid link error on MacOS X 10.3 and 10.4.
12037         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12038         on non-ELF systems.
12039         * lib/argp-pv.c (argp_program_version): Likewise.
12040         Reported by Simon Josefsson.
12041
12042 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12043
12044         * tests/test-version-etc.sh: Use $EXEEXT.
12045
12046 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12047
12048         update-copyright: update documentation to point to maint.mk
12049         * build-aux/update-copyright: Here.
12050
12051 2009-08-06  Jim Meyering  <meyering@redhat.com>
12052
12053         maint.mk: support update-copyright-local
12054         * top/maint.mk (update-copyright-local): Define place-holder.
12055         (update-copyright): Depend on $(update-copyright-local).
12056
12057 2009-08-06  Jim Meyering  <meyering@redhat.com>
12058
12059         selinux-at: new module
12060         Initially written for coreutils, this module will soon be
12061         used by findutils, too.
12062         * MODULES.html.sh [Misc]: Add selinux-at.
12063         * lib/selinux-at.h: New file, from coreutils.
12064         * lib/selinux-at.c: Likewise.
12065         * modules/selinux-at: Likewise.
12066         (License): Change from LGPL to GPL, since it depends
12067         on the GPL'd openat module.
12068
12069         doc: update README
12070         * README: Remove references to cogito.
12071         Remove cvs-repo-updating instructions from 2007.
12072         Don't imply that CVS is better if you have limited disk space.
12073
12074 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12075
12076         update-copyright: support C-style comments
12077         * build-aux/update-copyright: Implement and document.
12078         * tests/test-update-copyright.sh: Test.
12079
12080 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12081
12082         update-copyright: support omitted "(C)"
12083         * build-aux/update-copyright: Implement and document.  Also,
12084         allow variable whitespace before "(C)".
12085         * tests/test-update-copyright.sh: Test.
12086
12087 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12088
12089         update-copyright: don't trip on non-FSF copyright statements
12090         * build-aux/update-copyright: Fix so that the first correctly
12091         formatted FSF copyright statement is recognized no matter what
12092         appears before it.  Update documentation.
12093         * tests/test-update-copyright.sh: Test that.
12094
12095 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12096
12097         update-copyright: clean up code a little
12098         * build-aux/update-copyright: Append "_re" to the name of any
12099         variable holding a regular expression.
12100         Replace "old" and "new" with "stmt" in variable names.
12101         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12102         handled correctly.
12103         Format code more consistently.
12104
12105 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12106
12107         update-copyright-tests: improve portability
12108         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12109         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12110
12111 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12112
12113         update-copyright: support @copyright{} and &copy;
12114         * build-aux/update-copyright: Implement and document.
12115         * tests/test-update-copyright.sh: Test.
12116
12117 2009-08-04  Jim Meyering  <meyering@redhat.com>
12118
12119         update-copyright-tests: correctly test EOL=\r\n handling
12120         * tests/test-update-copyright.sh: Put \r at the end of some lines
12121         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12122
12123         maint.mk: make update-copyright exclusion list more configurable
12124         * top/maint.mk (update-copyright): Default to excluding COPYING,
12125         but allow an override, in case someone does want to update that file.
12126
12127         maint.mk: don't update copyright date in COPYING
12128         * top/maint.mk (update-copyright): Exclude COPYING.
12129
12130         maint.mk: add a copyright-updating rule
12131         * top/maint.mk (update-copyright): New rule.
12132         Derived from coreutils/Makefile.am.
12133
12134         update-copyright: rename some variables
12135         * build-aux/update-copyright: Rename a few variables for clarity.
12136         Tweak syntax.  List Joel E. Denny as coauthor.
12137
12138 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12139
12140         update-copyright: fix bug for 2-digit last year and add tests
12141         * build-aux/update-copyright: Fix bug.
12142         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12143         specified.
12144         * modules/update-copyright-tests: New
12145         * tests/test-update-copyright.sh: New.
12146
12147 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12148
12149         update-copyright: handle leading tabs in line prefix
12150         * build-aux/update-copyright: Count leading tabs as 8 spaces
12151         when computing margin.  This helps with the formatting of
12152         ChangeLogs, for example.
12153         Fix documentation a little.
12154
12155 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12156
12157         update-copyright: support EOL=\r\n
12158         * build-aux/update-copyright: Implement that.
12159
12160 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12161
12162         update-copyright: automatically format copyright statements
12163         * build-aux/update-copyright: Implement that.
12164         Also, be a little more predictable and safer by always failing
12165         when the full copyright format is not perfectly recognized as an
12166         unbroken whole.  Discussed at
12167         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12168         Rewrite documentation.
12169
12170 2009-08-03  Bruno Haible  <bruno@clisp.org>
12171
12172         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12173
12174 2009-08-02  Bruno Haible  <bruno@clisp.org>
12175
12176         Tests for module 'uname'.
12177         * modules/uname-tests: New file.
12178         * tests/test-uname.c: New file.
12179
12180         New module 'uname'.
12181         * lib/uname.c: New file.
12182         * m4/uname.m4: New file.
12183         * modules/uname: New file.
12184         * doc/posix-functions/uname.texi: Mention the new module.
12185
12186 2009-08-02  Bruno Haible  <bruno@clisp.org>
12187
12188         Tests for module 'sys_utsname'.
12189         * modules/sys_utsname-tests: New file.
12190         * tests/test-sys_utsname.c: New file.
12191
12192         New module 'sys_utsname'.
12193         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12194         * m4/sys_utsname_h.m4: New file.
12195         * modules/sys_utsname: New file.
12196         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12197
12198 2009-08-02  Bruno Haible  <bruno@clisp.org>
12199
12200         Implicitly initialize the sockets library.
12201         * lib/gethostname.c: Include sockets.h.
12202         (rpl_gethostname): Invoke gl_sockets_startup.
12203         * lib/socket.c: Include sockets.h.
12204         (rpl_socket): Invoke gl_sockets_startup.
12205         * modules/gethostname (Depends-on): Add sockets.
12206         * modules/socket (Depends-on): Likewise.
12207         * tests/test-poll.c: Don't include sockets.h.
12208         (main): Don't invoke gl_sockets_startup.
12209         * tests/test-select.c: Don't include sockets.h.
12210         (main): Don't invoke gl_sockets_startup.
12211
12212 2009-08-02  Bruno Haible  <bruno@clisp.org>
12213
12214         Allow multiple calls to gl_sockets_startup.
12215         * lib/sockets.c (initialized_sockets_version): New variable.
12216         (gl_sockets_startup): Do nothing if already called for this or a higher
12217         version.
12218         (gl_sockets_cleanup): Reset initialized_sockets_version.
12219
12220 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12221
12222         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12223         different project/version.
12224
12225 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12226             Bruno Haible  <bruno@clisp.org>
12227
12228         Tests for module 'pipe-filter-gi'.
12229         * modules/pipe-filter-gi-tests: New file.
12230         * tests/test-pipe-filter-gi1.sh: New file.
12231         * tests/test-pipe-filter-gi1.c: New file.
12232         * tests/test-pipe-filter-gi2.sh: New file.
12233         * tests/test-pipe-filter-gi2-main.c: New file.
12234         * tests/test-pipe-filter-gi2-child.c: New file.
12235
12236         New module 'pipe-filter-gi'.
12237         * lib/pipe-filter-gi.c: New file.
12238         * modules/pipe-filter-gi: New file.
12239
12240 2009-08-02  Bruno Haible  <bruno@clisp.org>
12241             Paolo Bonzini  <bonzini@gnu.org>
12242
12243         Tests for module 'pipe-filter-ii'.
12244         * modules/pipe-filter-ii-tests: New file.
12245         * tests/test-pipe-filter-ii1.sh: New file.
12246         * tests/test-pipe-filter-ii1.c: New file.
12247         * tests/test-pipe-filter-ii2.sh: New file.
12248         * tests/test-pipe-filter-ii2-main.c: New file.
12249         * tests/test-pipe-filter-ii2-child.c: New file.
12250
12251         New module 'pipe-filter-ii'.
12252         * lib/pipe-filter.h: New file.
12253         * lib/pipe-filter-ii.c: New file.
12254         * lib/pipe-filter-aux.h: New file.
12255         * modules/pipe-filter-ii: New file.
12256
12257 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12258
12259         * lib/gc-libgcrypt.c: Change copyright to FSF.
12260         * lib/gc-gnulib.c: Likewise.
12261
12262 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12263
12264         * lib/gethostname.c: Include limits.h.
12265
12266 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12267             Bruno Haible  <bruno@clisp.org>
12268
12269         Ensure HOST_NAME_MAX as part of the gethostname module.
12270         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12271         define also HOST_NAME_MAX.
12272         * tests/test-gethostname.c: Include <limits.h>.
12273         (main): Check also HOST_NAME_MAX.
12274         * doc/posix-headers/limits.texi: Document the mingw problem.
12275
12276 2009-08-02  Bruno Haible  <bruno@clisp.org>
12277
12278         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12279         Add comments.
12280
12281 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12282
12283         * lib/gethostname.c: Add Windows wrapper.
12284         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12285         * modules/gethostname: Depend on sys_socket & errno, for also
12286         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12287         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12288
12289 2009-07-31  Jim Meyering  <meyering@redhat.com>
12290
12291         getloadavg: fix symbol name in comment
12292         * lib/getloadavg.c: Correct a typo I introduced when adding
12293         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12294         Matt Kraai spotted the problem.
12295
12296 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12297
12298         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12299         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12300         code also if ! defined N_NAME_POINTER.
12301         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12302         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12303         but the n_name member is a 12-byte array.
12304
12305 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12306
12307         update-copyright: generalize comment handling
12308         * build-aux/update-copyright: Handle copyright statements
12309         within more comment styles.
12310         Document usage.
12311         Report any file with an external copyright holder or parse failure.
12312
12313 2009-07-29  Jim Meyering  <meyering@redhat.com>
12314
12315         mktime: correct setting of REPLACE_MKTIME
12316         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12317
12318         update-copyright: new module
12319         * modules/update-copyright: New file.
12320         * build-aux/update-copyright: New file.
12321         * MODULES.html.sh (maint+release support): Add update-copyright.
12322
12323 2009-07-27  Bruno Haible  <bruno@clisp.org>
12324
12325         Fix compilation error when <ctime> is used and mktime is replaced.
12326         * lib/time.in.h (mktime): New declaration.
12327         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12328         REPLACE_MKTIME instead of defining mktime in config.h.
12329         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12330         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12331         Reported by Ross McFarland <rwmcfa1@neces.com>.
12332
12333 2009-07-27  Bruno Haible  <bruno@clisp.org>
12334
12335         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12336         Reported by Matt Kraai <mkraai@beckman.com>.
12337
12338 2009-07-25  Jim Meyering  <meyering@redhat.com>
12339
12340         maint.mk: avoid warnings about missing files
12341         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12342         diagnostic when .prev-version does not exist.
12343         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12344         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12345         nonexistent cfg.mk.
12346         Suggestions from Simon Josefsson.
12347
12348 2009-07-25  Bruno Haible  <bruno@clisp.org>
12349
12350         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12351         defined as macros. Needed on QNX 6.4.1.
12352         Reported by Matt Kraai <mkraai@beckman.com>.
12353
12354 2009-07-23  Jim Meyering  <meyering@redhat.com>
12355
12356         maint.mk: invoke "make dist" with a working value of XZ_OPT
12357         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12358
12359 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12360
12361         Make fseeko.c compile on QNX.
12362         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12363
12364 2009-07-22  Peter Simons  <simons@cryp.to>
12365
12366         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12367         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12368         * lib/md4.h: Likewise.
12369         * lib/md5.h: Likewise.
12370         * lib/sha1.h: Likewise.
12371         * lib/sha256.h: Likewise.
12372         * lib/sha512.h: Likewise.
12373
12374         tests-sha1: don't assign literal string to 'char *' variable
12375         * tests/test-sha1.c (main): Declare locals with "const" to match
12376         attributes of the right hand side.
12377
12378 2009-07-21  Eric Blake  <ebb9@byu.net>
12379
12380         dup2: fix more mingw problems
12381         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12382         fd to itself.
12383         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12384         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12385         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12386         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12387         care of mingw bugs.
12388
12389 2009-07-21  Jim Meyering  <meyering@redhat.com>
12390
12391         vc-list-files: avoid failure when /bin/sh is dash
12392         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12393         On some Debian based systems, /bin/sh is a symlink to dash, and running
12394         this command would omit the "/" following each 'tests' prefix:
12395           dash -x build-aux/vc-list-files -C . tests
12396         That is because bash and dash work differently:
12397           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12398           bash ok
12399           dash odd
12400
12401 2009-07-21  Eric Blake  <ebb9@byu.net>
12402
12403         dup2-tests: test previous patch
12404         * modules/dup2-tests: New file.
12405         * tests/test-dup2.c: Likewise.
12406         * tests/test-open.c (main): Avoid unspecified behavior.
12407         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12408         test.
12409
12410         dup2: work around mingw and cygwin 1.5 bug
12411         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12413         * modules/unistd (Makefile.am): Substitute it.
12414         * lib/unistd.in.h (dup2): Declare the replacement.
12415         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12416         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12417         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12418         * modules/execute (Depends-on): Add dup2.
12419         * modules/fseterr (Depends-on): Likewise.
12420         * modules/pipe (Depends-on): Likewise.
12421         * modules/posix_spawn-internal (Depends-on): Likewise.
12422
12423 2009-07-21  Bruno Haible  <bruno@clisp.org>
12424
12425         * modules/.gitattributes: New file.
12426
12427 2009-07-20  Bruno Haible  <bruno@clisp.org>
12428
12429         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12430         (main): Use it.
12431
12432 2009-07-20  Eric Blake  <ebb9@byu.net>
12433
12434         test-pipe: make a bit more robust.
12435         * tests/test-pipe.c (myerr): Allow error messages regardless of
12436         what we do to stderr.
12437         (test_pipe): Rearrange to avoid deadlock.
12438         (child_main): Try a larger read, to ensure we avoided deadlock.
12439         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12440         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12441         if misused.
12442
12443 2009-07-19  Jim Meyering  <meyering@redhat.com>
12444
12445         fts: avoid false-positive cycle-detection
12446         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12447         for each new command line argument.
12448
12449 2009-07-19  Bruno Haible  <bruno@clisp.org>
12450
12451         Fix build error on mingw with the modules sys_select and unistd.
12452         * modules/acl-tests (Depends-on): Add close.
12453         * modules/binary-io-tests (Depends-on): Likewise.
12454         * modules/closein-tests (Depends-on): Likewise.
12455         * modules/flock-tests (Depends-on): Likewise.
12456         * modules/fsync-tests (Depends-on): Likewise.
12457         * modules/lseek-tests (Depends-on): Likewise.
12458         * modules/pipe-tests (Depends-on): Likewise.
12459         * modules/posix_spawn-tests (Depends-on): Likewise.
12460         * modules/posix_spawnp-tests (Depends-on): Likewise.
12461         * modules/stat-time-tests (Depends-on): Likewise.
12462         * modules/yesno-tests (Depends-on): Likewise.
12463
12464 2009-07-19  Bruno Haible  <bruno@clisp.org>
12465
12466         Unify conditionals.
12467         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12468         macros, not at the compiler macros.
12469         * lib/pipe.c: Likewise.
12470         * lib/execute.c: Likewise.
12471         * lib/spawni.c: Likewise.
12472
12473 2009-07-19  Bruno Haible  <bruno@clisp.org>
12474
12475         Fix handling of closed stdin/stdout/stderr on mingw.
12476         * lib/w32spawn.h: Include unistd.h.
12477         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12478         file descriptor with O_NOINHERIT flag.
12479         (fd_safer_noinherit): New function, based on fd-safer.c.
12480         (dup_safer_noinherit): New function, based on dup-safer.c.
12481         (undup_safer_noinherit): New function.
12482         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12483         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12484         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12485         instead of fd_safer.
12486         * tests/test-pipe.c: Include <windows.h>.
12487         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12488
12489         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12490         from main.
12491         (test_pipe): Pass an extra argument for disambiguation.
12492         (main): Invoke parent_main or child_main.
12493
12494         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12495         consistently.
12496
12497 2009-07-18  Eric Blake  <ebb9@byu.net>
12498
12499         test-pipe: fix mingw build
12500         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12501
12502 2009-07-18  Bruno Haible  <bruno@clisp.org>
12503
12504         * modules/pipe-tests (Makefile.am): Fix typo.
12505
12506 2009-07-18  Eric Blake  <ebb9@byu.net>
12507
12508         error: fix mingw build
12509         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12510         Reported by Bruno Haible.
12511
12512         error: avoid undefined use of stdout
12513         * lib/error.c (error, error_at_line): Check that fd 1 is open
12514         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12515         is handling faults and the close_stdout module wants to report the
12516         detection of closed stdout as an error.
12517
12518 2009-07-17  Eric Blake  <ebb9@byu.net>
12519
12520         pipe: be robust in face of closed fds
12521         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12522         should cause child to misbehave.
12523         * modules/pipe-tests: New module.
12524         * tests/test-pipe.c: New file.
12525         * tests/test-pipe.sh: New file.
12526         Reported by Akim Demaille.
12527
12528 2009-07-14  Bruno Haible  <bruno@clisp.org>
12529
12530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12531         Reported by anonymous kc.
12532
12533 2009-07-07  Jim Meyering  <meyering@redhat.com>
12534
12535         maint.mk: don't look for translatable strings in *.m4 or *.mk
12536         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12537         when searching for translatable strings.
12538
12539 2009-07-05  Jim Meyering  <meyering@redhat.com>
12540
12541         remove superfluous parentheses in STREQ definition
12542         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12543         * lib/getugroups.c (STREQ): Likewise.
12544         * lib/fnmatch.c (STREQ): Likewise.
12545         Spotted by Bruno Haible.
12546
12547 2009-07-04  Jim Meyering  <meyering@redhat.com>
12548
12549         argv-iter: new module
12550         * MODULES.html.sh: Add argv-iter.
12551         * lib/argv-iter.c, lib/argv-iter.h: New files.
12552         * modules/argv-iter: New file.
12553         * modules/argv-iter-tests: New file.
12554         * tests/test-argv-iter.c: Test it.
12555
12556 2009-07-04  Bruno Haible  <bruno@clisp.org>
12557
12558         Fix assertion.
12559         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12560         contains more exact copies of a given entry than file2, leave the extra
12561         copies unpaired rather than aborting.
12562         Reported by Eric Blake.
12563
12564 2009-07-02  Bruno Haible  <bruno@clisp.org>
12565
12566         Speedup git-merge-changelog for git cherry-pick.
12567         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12568         (entries_mapping_get): New function, extracted from compute_mapping.
12569         (entries_mapping_reverse_get): New function.
12570         (compute_mapping): Add a 'full' argument. Return the result in a
12571         'struct entries_mapping'.
12572         (main): Update. Access the mappings through entries_mapping_get.
12573         Reported by Eric Blake.
12574
12575 2009-07-02  Bruno Haible  <bruno@clisp.org>
12576
12577         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12578         best_i.
12579
12580 2009-07-02  Bruno Haible  <bruno@clisp.org>
12581
12582         Speed up approximate search for matching ChangeLog entries.
12583         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12584         argument. Call fstrcmp_bounded instead of fstrcmp.
12585         (compute_mapping, try_split_merged_entry, main): Update callers.
12586
12587 2009-07-02  Bruno Haible  <bruno@clisp.org>
12588
12589         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12590
12591 2009-06-30  Bruno Haible  <bruno@clisp.org>
12592
12593         Reduce the number of uc_is_cased calls.
12594         * lib/unicase.h (casing_suffix_context_t): Add
12595         'first_char_except_ignorable' field.
12596         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12597         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12598         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12599         Update initializer.
12600         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12601         case-ignorable characters.
12602         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12603         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12604         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12605         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12606         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12607
12608 2009-06-30  Bruno Haible  <bruno@clisp.org>
12609
12610         Tests for module 'unicase/ignorable'.
12611         * modules/unicase/ignorable-tests: New file.
12612         * tests/unicase/test-ignorable.c: New file, generated by
12613         gen-uni-tables.
12614
12615         Tests for module 'unicase/cased'.
12616         * modules/unicase/cased-tests: New file.
12617         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12618         * tests/unicase/test-predicate-part1.h: New file, derived from
12619         tests/unictype/test-predicate-part1.h.
12620         * tests/unicase/test-predicate-part2.h: New file, same as
12621         tests/unictype/test-predicate-part2.h.
12622
12623         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12624         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12625         (output_casing_properties): New function.
12626         (main): Call it.
12627         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12628         * lib/unicase/cased.c: Include unictype/bitmap.h.
12629         (uc_is_cased): Define through a bitmap lookup.
12630         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12631         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12632         (uc_is_case_ignorable): Define through a bitmap lookup.
12633         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12634         lib/unictype/bitmap.h.
12635         (Depends-on): Add inline. Clean up.
12636         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12637         lib/unictype/bitmap.h.
12638         (Depends-on): Add inline. Clean up.
12639         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12640         recognition.
12641         * tests/unicase/test-u16-tolower.c (main): Likewise.
12642         * tests/unicase/test-u32-tolower.c (main): Likewise.
12643
12644 2009-06-30  Bruno Haible  <bruno@clisp.org>
12645
12646         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12647         * lib/unicase/u16-casemap.c: Likewise.
12648         * lib/unicase/u32-casemap.c: Likewise.
12649
12650 2009-06-29  Bruno Haible  <bruno@clisp.org>
12651
12652         Define u32_casefold as a wrapper around u32_ct_casefold.
12653         * lib/unicase/u32-casefold.c: Update.
12654         * modules/unicase/u32-casefold (Depends-on): Add
12655         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12656         unicase/empty-suffix-context. Clean up.
12657
12658         Define u16_casefold as a wrapper around u16_ct_casefold.
12659         * lib/unicase/u16-casefold.c: Update.
12660         * modules/unicase/u16-casefold (Depends-on): Add
12661         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12662         unicase/empty-suffix-context. Clean up.
12663
12664         Define u8_casefold as a wrapper around u8_ct_casefold.
12665         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12666         * lib/unicase/u8-casefold.c: Update.
12667         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12669
12670         Define u32_totitle as a wrapper around u32_ct_totitle.
12671         * lib/unicase/u32-totitle.c: Update.
12672         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12674
12675         Define u16_totitle as a wrapper around u16_ct_totitle.
12676         * lib/unicase/u16-totitle.c: Update.
12677         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12678         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12679
12680         Define u8_totitle as a wrapper around u8_ct_totitle.
12681         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
12682         functions.
12683         (FUNC): Delegate to U_CT_TOTITLE.
12684         * lib/unicase/u8-totitle.c: Update.
12685         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
12686         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12687
12688         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
12689         invocation.
12690         * modules/unicase/u32-tolower (Depends-on): Add
12691         unicase/empty-prefix-context, unicase/empty-suffix-context.
12692
12693         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
12694         invocation.
12695         * modules/unicase/u16-tolower (Depends-on): Add
12696         unicase/empty-prefix-context, unicase/empty-suffix-context.
12697
12698         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
12699         * modules/unicase/u8-tolower (Depends-on): Add
12700         unicase/empty-prefix-context, unicase/empty-suffix-context.
12701
12702         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
12703         invocation.
12704         * modules/unicase/u32-toupper (Depends-on): Add
12705         unicase/empty-prefix-context, unicase/empty-suffix-context.
12706
12707         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
12708         invocation.
12709         * modules/unicase/u16-toupper (Depends-on): Add
12710         unicase/empty-prefix-context, unicase/empty-suffix-context.
12711
12712         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
12713         * modules/unicase/u8-toupper (Depends-on): Add
12714         unicase/empty-prefix-context, unicase/empty-suffix-context.
12715
12716         New module 'unicase/u32-ct-casefold'.
12717         * lib/unicase/u32-ct-casefold.c: New file.
12718         * modules/unicase/u32-ct-casefold: New file.
12719
12720         New module 'unicase/u16-ct-casefold'.
12721         * lib/unicase/u16-ct-casefold.c: New file.
12722         * modules/unicase/u16-ct-casefold: New file.
12723
12724         New module 'unicase/u8-ct-casefold'.
12725         * lib/unicase/u8-ct-casefold.c: New file.
12726         * lib/unicase/u-ct-casefold.h: New file, derived from
12727         lib/unicase/u-casefold.h.
12728         * modules/unicase/u8-ct-casefold: New file.
12729
12730         New module 'unicase/u32-ct-totitle'.
12731         * lib/unicase/u32-ct-totitle.c: New file.
12732         * modules/unicase/u32-ct-totitle: New file.
12733
12734         New module 'unicase/u16-ct-totitle'.
12735         * lib/unicase/u16-ct-totitle.c: New file.
12736         * modules/unicase/u16-ct-totitle: New file.
12737
12738         New module 'unicase/u8-ct-totitle'.
12739         * lib/unicase/u8-ct-totitle.c: New file.
12740         * lib/unicase/u-ct-totitle.h: New file, derived from
12741         lib/unicase/u-totitle.h.
12742         * modules/unicase/u8-ct-totitle: New file.
12743
12744         New module 'unicase/u32-ct-tolower'.
12745         * lib/unicase/u32-ct-tolower.c: New file.
12746         * modules/unicase/u32-ct-tolower: New file.
12747
12748         New module 'unicase/u16-ct-tolower'.
12749         * lib/unicase/u16-ct-tolower.c: New file.
12750         * modules/unicase/u16-ct-tolower: New file.
12751
12752         New module 'unicase/u8-ct-tolower'.
12753         * lib/unicase/u8-ct-tolower.c: New file.
12754         * modules/unicase/u8-ct-tolower: New file.
12755
12756         New module 'unicase/u32-ct-toupper'.
12757         * lib/unicase/u32-ct-toupper.c: New file.
12758         * modules/unicase/u32-ct-toupper: New file.
12759
12760         New module 'unicase/u16-ct-toupper'.
12761         * lib/unicase/u16-ct-toupper.c: New file.
12762         * modules/unicase/u16-ct-toupper: New file.
12763
12764         New module 'unicase/u8-ct-toupper'.
12765         * lib/unicase/u8-ct-toupper.c: New file.
12766         * modules/unicase/u8-ct-toupper: New file.
12767
12768         Add context arguments to u*_casemap functions.
12769         * lib/unicase/unicasemap.h: Include unicase.h.
12770         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
12771         suffix_context arguments.
12772         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
12773         functions.
12774         (FUNC): Add prefix_context and suffix_context arguments. Use
12775         uc_is_cased and uc_is_case_ignorable.
12776         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
12777         * lib/unicase/u16-casemap.c: Likewise.
12778         * lib/unicase/u32-casemap.c: Likewise.
12779         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
12780         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12781         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
12782         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12783         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
12784         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
12785
12786         New module 'unicase/u32-suffix-context'.
12787         * lib/unicase/u32-suffix-context.c: New file.
12788         * modules/unicase/u32-suffix-context: New file.
12789
12790         New module 'unicase/u16-suffix-context'.
12791         * lib/unicase/u16-suffix-context.c: New file.
12792         * modules/unicase/u16-suffix-context: New file.
12793
12794         New module 'unicase/u8-suffix-context'.
12795         * lib/unicase/u8-suffix-context.c: New file.
12796         * lib/unicase/u-suffix-context.h: New file.
12797         * modules/unicase/u8-suffix-context: New file.
12798
12799         New module 'unicase/empty-suffix-context'.
12800         * lib/unicase/empty-suffix-context.c: New file.
12801         * modules/unicase/empty-suffix-context: New file.
12802
12803         New module 'unicase/u32-prefix-context'.
12804         * lib/unicase/u32-prefix-context.c: New file.
12805         * modules/unicase/u32-prefix-context: New file.
12806
12807         New module 'unicase/u16-prefix-context'.
12808         * lib/unicase/u16-prefix-context.c: New file.
12809         * modules/unicase/u16-prefix-context: New file.
12810
12811         New module 'unicase/u8-prefix-context'.
12812         * lib/unicase/u8-prefix-context.c: New file.
12813         * lib/unicase/u-prefix-context.h: New file.
12814         * lib/unicase/context.h: New file.
12815         * modules/unicase/u8-prefix-context: New file.
12816
12817         New module 'unicase/empty-prefix-context'.
12818         * lib/unicase/empty-prefix-context.c: New file.
12819         * modules/unicase/empty-prefix-context: New file.
12820
12821         New module 'unicase/ignorable'.
12822         * lib/unicase/ignorable.c: New file.
12823         * modules/unicase/ignorable: New file.
12824
12825         New module 'unicase/cased'.
12826         * lib/unicase/caseprop.h: New file.
12827         * lib/unicase/cased.c: New file.
12828         * modules/unicase/cased: New file.
12829
12830         New functions for case mapping of substrings.
12831         * lib/unicase.h (casing_prefix_context_t): New type.
12832         (unicase_empty_prefix_context): New variable.
12833         (u8_casing_prefix_context, u16_casing_prefix_context,
12834         u32_casing_prefix_context, u8_casing_prefixes_context,
12835         u16_casing_prefixes_context, u32_casing_prefixes_context): New
12836         declarations.
12837         (casing_suffix_context_t): New type.
12838         (unicase_empty_suffix_context): New variable.
12839         (u8_casing_suffix_context, u16_casing_suffix_context,
12840         u32_casing_suffix_context, u8_casing_suffixes_context,
12841         u16_casing_suffixes_context, u32_casing_suffixes_context,
12842         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
12843         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
12844         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
12845         declarations.
12846
12847 2009-06-28  Jim Meyering  <meyering@redhat.com>
12848
12849         boostrap: indent only with spaces
12850         * build-aux/bootstrap: Indent only with spaces, never TABs.
12851
12852         bootstrap: split long lines
12853         * build-aux/bootstrap: Keep line length < 80.
12854
12855         bootstrap: sync from coreutils
12856         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
12857         just as autoreconf does.  Verify a list of prerequisite
12858         package-name,version-number pairs if defined in bootstrap.conf.
12859         Refer to README-prereq, if prerequisites are not satisfied.
12860
12861 2009-06-27  Eric Blake  <ebb9@byu.net>
12862
12863         tests: add test for bogus NULL definition
12864         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
12865         * tests/test-stdlib.c: Likewise.
12866         * tests/test-string.c: Likewise.
12867         * tests/test-locale.c: Likewise.
12868         * tests/test-unistd.c: Likewise.
12869         * modules/stdio-tests (Depends-on): Add verify.
12870         * modules/stdlib-tests (Depends-on): Likewise.
12871         * modules/string-tests (Depends-on): Likewise.
12872         * modules/locale-tests (Depends-on): Likewise.
12873         * modules/unistd-tests (Depends-on): Likewise.
12874
12875 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12876
12877         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
12878         self-explaining comment.
12879         * m4/selinux-selinux-h: Update serial.
12880         (gl_LIBSELINUX): New macro, adding a warning for missing development
12881         packages to code extracted from...
12882         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
12883         Add warning for missing development packages here, too.
12884
12885 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
12886
12887         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
12888
12889 2009-06-25  Eric Blake  <ebb9@byu.net>
12890
12891         version-etc: fix regression
12892         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
12893         gcc.
12894         (version_etc): Use it, to catch bugs with trailing NULL.
12895         * lib/version-etc.c (version_etc_arn): Delete unused argument.
12896         (version_etc_va): Fix logic bug.
12897         * modules/version-etc-tests: Add test.
12898         * tests/test-version-etc.c: New file.
12899         * tests/test-version-etc.sh: Likewise.
12900
12901 2009-06-25  Sam Steingold  <sds@gnu.org>
12902
12903         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
12904         mbtowc declaration.
12905
12906 2009-06-25  Eric Blake  <ebb9@byu.net>
12907
12908         fpurge: migrate into <stdio.h>
12909         * lib/fpurge.h: Delete...
12910         * lib/stdio.in.h (fpurge): ...and declare here, instead.
12911         * lib/fpurge.c (fpurge): Change declaring header.
12912         * modules/fpurge (Files): Drop deleted file.
12913         (Depends-on): Add stdio.
12914         (configure.ac): Set witness.
12915         * modules/stdio (Makefile.am): Support fpurge macros.
12916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12917         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
12918         * lib/fflush.c: Update client.
12919         * tests/test-fpurge.c: Likewise.
12920         * NEWS: Mention the change.
12921
12922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12923
12924         * lib/argp-version-etc.c (program_authors): Add const
12925         qualifier.
12926         * lib/version-etc.c: Fix typos in the comments.
12927         * modules/argp-version-etc: Depends on version-etc.
12928
12929 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12930
12931         argp-version-etc: new module.
12932
12933         * lib/argp-version-etc.c: New file.
12934         * lib/argp-version-etc.h: New file.
12935         * modules/argp-version-etc: New file.
12936         * modules/argp-version-etc-tests: New file.
12937         * tests/test-argp-version-etc.c: New test.
12938         * tests/test-argp-version-etc-1.sh: New test.
12939
12940 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12941
12942         Provide additional interfaces and documentation for version-etc
12943         module.
12944
12945         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
12946         interfaces.
12947         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
12948         prototypes.
12949
12950 2009-06-24  Bruno Haible  <bruno@clisp.org>
12951
12952         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
12953         HAVE_LIB${NAME} macro.
12954         Reported by Sam Steingold <sds@gnu.org>.
12955
12956 2009-06-23  Simon Josefsson  <simon@josefsson.org>
12957
12958         * modules/hash-tests (test_hash_LDADD): Link to libintl when
12959         needed.
12960
12961 2009-06-21  Bruno Haible  <bruno@clisp.org>
12962
12963         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
12964         work.
12965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
12966         together with LIB${NAME}, LTLIB${NAME}.
12967         Reported by Sam Steingold <sds@gnu.org>.
12968
12969 2009-06-20  Jim Meyering  <meyering@redhat.com>
12970
12971         tests: make sc_require_test_exit_idiom more generic
12972         * top/maint.mk (Exit_witness_file): New overridable variable.
12973         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
12974         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
12975
12976 2009-06-19  Jim Meyering  <meyering@redhat.com>
12977
12978         hash: reverse order of src/dst parameters in an internal interface
12979         * lib/hash.c (transfer_entries): Reverse order of parameters to
12980         put DST before SRC.  Adjust callers.
12981
12982         tests: test-hash: avoid wholesale duplication
12983         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
12984         Instead, use a loop and add a single conditional.
12985
12986         tests: test-hash: allow seed selection via a command line argument
12987         * tests/test-hash.c (get_seed): New function.
12988         (main): Use it.
12989
12990 2009-06-19  Eric Blake  <ebb9@byu.net>
12991
12992         hash: avoid memory leak on allocation failure
12993         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
12994         failure.  Factor repeated algorithm...
12995         (transfer_entries): ...into new helper routine.
12996         (hash_delete): React to hash_rehash return value.
12997
12998         hash: reduce memory pressure in hash_rehash no-op case
12999         * lib/hash.c (next_prime): Avoid overflow.
13000         (hash_initialize): Factor bucket size computation...
13001         (compute_bucket_size): ...into new helper function.
13002         (hash_rehash): Use new function and open coding to reduce memory
13003         pressure, and avoid a memory leak in USE_OBSTACK code.
13004         Reported by Jim Meyering.
13005
13006 2009-06-18  Eric Blake  <ebb9@byu.net>
13007
13008         hash: make rotation more obvious
13009         * modules/hash (Depends-on): Add bitrotate and stdint.
13010         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13011         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13012         (SIZE_MAX): Rely on headers for definition.
13013         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13014         (raw_hasher): Use rotr_sz.
13015         Suggested by Jim Meyering.
13016
13017         hash: fix memory leak in last patch
13018         * lib/hash.c (hash_rehash): Avoid memory leak.
13019
13020         hash: avoid no-op rehashing
13021         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13022
13023         hash: provide default callback functions
13024         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13025         (hash_initialize): Use them as defaults.
13026         * tests/test-hash.c (main): Test this.
13027
13028         hash: minor optimization
13029         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13030         when possible.
13031         (hash_initialize): Document this promise.
13032         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13033         * tests/test-hash.c (hash_compare_strings): Test this.
13034
13035 2009-06-18  Bruno Haible  <bruno@clisp.org>
13036
13037         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13038         going to be replaced anyway.
13039
13040 2009-06-18  Bruno Haible  <bruno@clisp.org>
13041
13042         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13043         in one place.
13044         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13045         be replaced anyway.
13046
13047 2009-06-18  Eric Blake  <ebb9@byu.net>
13048
13049         hash: check for resize before insertion
13050         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13051         threshold before insertion, so that a pathological hash_rehash
13052         that fills every bucket can still trigger another rehash.
13053
13054 2009-06-18  Jim Meyering  <meyering@redhat.com>
13055
13056         hash-tests: add a loop around the small tests
13057         * tests/test-hash.c (main): Repeat small tests with selected
13058         small initial table sizes.
13059
13060 2009-06-17  Eric Blake  <ebb9@byu.net>
13061
13062         hash: minor cleanups
13063         * lib/hash.h (hash_entry): Make opaque, by moving...
13064         * lib/hash.c (hash_entry): ...here.
13065         (hash_insert): Clarify restrictions on what can be inserted.
13066         (hash_get_next): Clarify when it is safe to remove an element
13067         during traversal.
13068         (check_tuning): Skip verification when tuning is known safe.
13069         (hash_initialize): Clarify restrictions on tuning.
13070
13071 2009-06-17  Jim Meyering  <jim@meyering.net>
13072         and Eric Blake  <ebb9@byu.net>
13073
13074         hash-tests: new module
13075         * modules/hash-tests: New file.
13076         * tests/test-hash.c: New file.
13077
13078 2009-06-17  Eric Blake  <ebb9@byu.net>
13079
13080         strstr-simple: document new module
13081         * MODULES.html.sh: Document new module.
13082
13083         strstr, strcasestr: replace on platforms with broken memchr
13084         * modules/strstr: Split into...
13085         * modules/strstr-simple: ...new module that does not care about
13086         performance, but does care about glibc bug.
13087         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13088         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13089         if platform memchr is broken, per Debian bug 521737.
13090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13091         memchr.
13092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13093         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13094         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13095         * modules/mountlist (Depends-on): Add strstr-simple.
13096         * modules/gen-uni-tables (Depends-on): Likewise.
13097         * modules/argz (Depends-on): Add strstr.
13098
13099 2009-06-17  Bruno Haible  <bruno@clisp.org>
13100
13101         * modules/posix_spawn-internal (Depends-on): Add errno.
13102
13103 2009-06-17  Bruno Haible  <bruno@clisp.org>
13104
13105         Define missing ESTALE on Interix 3.5.
13106         * lib/errno.in.h (ESTALE): Assign a value if missing.
13107         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13108         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13109         missing.
13110         * doc/posix-headers/errno.texi: Mention the Interix bug.
13111         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13112
13113 2009-06-15  Eric Blake  <ebb9@byu.net>
13114
13115         memchr, memchr2: add valgrind exception
13116         * lib/memchr.valgrind: New file.
13117         * lib/memchr2.valgrind: New file.
13118         * modules/memchr (Files): Distribute valgrind file.
13119         * modules/memchr2 (Files): Likewise.
13120
13121         docs: memchr is no longer obsolete
13122         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13123         * lib/string.in.h (memchr): Simplify logic.
13124
13125 2009-06-14  Jim Meyering  <meyering@redhat.com>
13126
13127         link-follow: fix the "checking..." message to not mention trailing slash
13128         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13129         never considered trailing slashes.
13130
13131 2009-06-14  Bruno Haible  <bruno@clisp.org>
13132
13133         * m4/memchr.m4: Mention also the bug on IA-64.
13134         * doc/posix-functions/memchr.texi: Likewise.
13135
13136 2009-06-12  Eric Blake  <ebb9@byu.net>
13137
13138         memchr: detect broken x86_64 and alpha implementations
13139         * modules/memchr-tests (Depends-on): Move mmap detection...
13140         * modules/memchr (Depends-on): ...here.
13141         (configure.ac): Set indicator.
13142         * lib/string.in.h (memchr): Declare replacement.
13143         * modules/string (Makefile.am): Trigger replacement.
13144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13145         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13146         bugs.
13147         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13148         * modules/getpagesize (License): Relax license.
13149
13150 2009-06-11  Bruno Haible  <bruno@clisp.org>
13151
13152         * lib/idpriv.h: Add more references.
13153
13154 2009-06-08  Bruno Haible  <bruno@clisp.org>
13155
13156         Tests for module 'idpriv-droptemp'.
13157         * modules/idpriv-droptemp-tests: New file.
13158         * tests/test-idpriv-droptemp.sh: New file.
13159         * tests/test-idpriv-droptemp.su.sh: New file.
13160         * tests/test-idpriv-droptemp.c: New file.
13161
13162         New module 'idpriv-droptemp'.
13163         * lib/idpriv-droptemp.c: New file.
13164         * modules/idpriv-droptemp: New file.
13165
13166 2009-06-08  Bruno Haible  <bruno@clisp.org>
13167
13168         Tests for module 'idpriv-drop'.
13169         * modules/idpriv-drop-tests: New file.
13170         * tests/test-idpriv-drop.sh: New file.
13171         * tests/test-idpriv-drop.su.sh: New file.
13172         * tests/test-idpriv-drop.c: New file.
13173
13174         New module 'idpriv-drop'.
13175         * lib/idpriv.h: New file.
13176         * lib-idpriv-drop.c: New file.
13177         * m4/idpriv.m4: New file.
13178         * modules/idpriv-drop: New file.
13179
13180 2009-06-08  Bruno Haible  <bruno@clisp.org>
13181
13182         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13183         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13184         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13185         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13186         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13187         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13189
13190 2009-06-08  Eric Blake  <ebb9@byu.net>
13191
13192         test-strstr: use memory fence, when possible
13193         * tests/test-strstr.c (main): Use memory fence, in order to be
13194         more likely to trigger Debian bug 521737.
13195         * modules/strstr-tests (Files): Pull in additional files.
13196
13197         memchr: no longer obsolete, for wider field testing
13198         * modules/memchr (Status, Notice): Delete, this module is no
13199         longer obsolete.
13200         * modules/vasnprintf (Depends-on): Add memchr.
13201
13202 2009-06-07  Jim Meyering  <meyering@redhat.com>
13203
13204         hash: declare some functions with the warn_unused_result attribute
13205         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13206
13207 2009-06-07  Bruno Haible  <bruno@clisp.org>
13208
13209         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13210         Reported by Eric Blake.
13211
13212 2009-06-06  Eric Blake  <ebb9@byu.net>
13213
13214         test-alignof: fix typo with long double
13215         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13216         compiler error.
13217
13218 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13219
13220         Escape non-texinfo { and }s.
13221         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13222         markup error.
13223
13224 2009-06-04  Jim Meyering  <meyering@redhat.com>
13225
13226         gitlog-to-changelog: don't infloop on an empty commit log
13227         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13228         Reported by Boris Petersen <transacid@centerim.org>.
13229
13230 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13231
13232         version-etc: extend for packagers
13233         Add three new configure options, intended for packagers:
13234           --with-packager="packager name"
13235           --with-packager-version="packager-specific version"
13236           --with-packager-bug-reports="packager bug reporting"
13237         An example with coreutils:
13238           $ ./configure \
13239             --with-packager=Gentoo \
13240             --with-packager-bug-report=http://bugs.gentoo.org/ \
13241             --with-packager-version="patchset 1.6"
13242           $ ./src/ls --version | head -n2
13243           ls (GNU coreutils) 7.1-dirty
13244           Packaged by Gentoo (patchset 1.6)
13245         Note that the bug reporting info via --help doesn't show up because
13246         coreutils uses its own custom emit_bug_reporting_address() implementation
13247         in src/system.h.  If it didn't, it'd look like:
13248           $ ./src/ls --help | tail -n4
13249           Report bugs to <bug-coreutils@gnu.org>.
13250           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13251           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13252           General help using GNU software: <http://www.gnu.org/gethelp/>.
13253         * lib/version-etc.c: Print new information, if provided.
13254         * m4/version-etc.m4: New file.
13255         * modules/version-etc (Files): Add m4/version-etc.m4.
13256         (configure.ac): Add gl_VERSION_ETC.
13257
13258 2009-05-31  Bruno Haible  <bruno@clisp.org>
13259
13260         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13261         and 'int64_t'.
13262         * modules/alignof-tests (Dependencies): Add stdint.
13263         Reported by Eric Blake.
13264
13265 2009-05-31  Bruno Haible  <bruno@clisp.org>
13266
13267         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13268         restriction due to compiler bugs.
13269         Reported by Eric Blake.
13270
13271 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13272             Bruno Haible  <bruno@clisp.org>
13273
13274         Fix test-alignof failure.
13275         * lib/alignof.h (alignof_slot): New macro.
13276         (alignof_type): New macro, with the same semantics as the previous
13277         'alignof'.
13278         (alignof): Alias to alignof_slot.
13279         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13280         check that the results are usable as constant expressions.
13281
13282 2009-05-31  Bruno Haible  <bruno@clisp.org>
13283
13284         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13285         * tests/test-memchr.c (main): Check that memchr does not read past the
13286         first occurrence of the byte.
13287         * tests/test-strstr.c (main): Update comment.
13288         Suggested by Eric Blake.
13289
13290 2009-05-30  Bruno Haible  <bruno@clisp.org>
13291
13292         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13293         detail how to use dumpbin.
13294         Reported by David Byron <dbyron@dbyron.com>.
13295
13296 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13297
13298         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13299
13300 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13301
13302         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13303
13304 2009-05-28  Bruno Haible  <bruno@clisp.org>
13305
13306         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13307         build-aux/ files.
13308
13309 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13310
13311         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13312
13313 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13314
13315         * gnulib-tool (sed_transform_main_lib_file)
13316         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13317         regexps.
13318
13319 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13320
13321         * tests/test-strstr.c: Add another self-test.
13322         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13323         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13324
13325 2009-05-23  Bruno Haible  <bruno@clisp.org>
13326
13327         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13328         change.
13329
13330 2009-05-21  Bruno Haible  <bruno@clisp.org>
13331
13332         Simplify use of mode_t varargs.
13333         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13334         uses 'mode_t' or 'int'.
13335         * lib/openat.c (openat): Likewise.
13336         * lib/open-safer.c (open_safer): Likewise.
13337         * m4/mode_t.m4: New file.
13338         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13339         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13341         * modules/open (Files): Add m4/mode_t.m4.
13342         * modules/openat (Files): Likewise.
13343         * modules/fcntl-safer (Files): Likewise.
13344         Suggested by Eric Blake.
13345
13346 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13347
13348         * doc/glibc-functions/fallocate.texi: New file.
13349         * doc/gnulib.texi: Include it.
13350
13351 2009-05-21  Eric Blake  <ebb9@byu.net>
13352             Bruno Haible  <bruno@clisp.org>
13353
13354         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13355         invocations.
13356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13357
13358 2009-05-21  Eric Blake  <ebb9@byu.net>
13359             Bruno Haible  <bruno@clisp.org>
13360
13361         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13362         include_next. Fix of 2008-11-20 commit.
13363         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13364         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13365         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13366         NEXT_MATH_H.
13367         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13368         instead of NEXT_MATH_H.
13369
13370 2009-05-21  Bruno Haible  <bruno@clisp.org>
13371
13372         Avoid redefinition warnings for SIZE_MAX.
13373         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13374         Reported by Simon Josefsson.
13375
13376 2009-05-21  Bruno Haible  <bruno@clisp.org>
13377
13378         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13379         AC_CACHE_VAL.
13380
13381 2009-05-20  Bruno Haible  <bruno@clisp.org>
13382
13383         Make zeroptr.h work on mingw.
13384         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13385         mprotect.
13386         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13387         * modules/memchr2-tests (configure.ac): Likewise.
13388         * modules/memcmp-tests (configure.ac): Likewise.
13389         * modules/memmem-tests (configure.ac): Likewise.
13390         * modules/memrchr-tests (configure.ac): Likewise.
13391         Reported by Simon Josefsson.
13392
13393 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13394
13395         * tests/test-glob.c: Include string.h for strcmp prototype.
13396
13397 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13398
13399         * modules/getdelim (Depends-on): Add explicit stdint, although it
13400         was implicitly already pulled in via realloc-posix.
13401         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13402
13403 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13404
13405         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13406         G. Christensen" <tgc@jupiterrise.com>.
13407         * m4/sys_socket_h.m4: Check for sa_family_t.
13408         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13409         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13410         * tests/test-sys_socket.c: Check that sa_family_t works.
13411
13412 2009-05-18  Eric Blake  <ebb9@byu.net>
13413
13414         maint.mk: allow gnulib_dir in VPATH build
13415         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13416
13417 2009-05-15  Jim Meyering  <meyering@redhat.com>
13418
13419         maint.mk: Give gnulib_dir a default definition.
13420         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13421         Thus, most packages no longer need to specify this variable in cfg.mk
13422
13423 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13424
13425         rename.m4: fix typos that would make non-mingw cross-configure fail
13426         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13427
13428 2009-05-13  Eric Blake  <ebb9@byu.net>
13429
13430         mmap-anon: avoid out-of-order autoconf expansion
13431         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13432         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13433         * modules/memchr-tests (Depends-on): Add extensions.
13434         * modules/memchr2-tests (Depends-on): Add extensions.
13435         * modules/memcmp-tests (Depends-on): Add extensions.
13436         * modules/memmem-tests (Depends-on): Add extensions.
13437         * modules/memrchr-tests (Depends-on): Add extensions.
13438
13439 2009-05-13  Bruno Haible  <bruno@clisp.org>
13440
13441         Make some tests ISO C 99 compliant.
13442         * tests/zerosize-ptr.h: New file.
13443         * tests/test-memchr.c: Include zerosize-ptr.h.
13444         (main): Use a zero-size object pointer instead of NULL.
13445         * tests/test-memchr2.c: Include zerosize-ptr.h.
13446         (main): Use a zero-size object pointer instead of NULL.
13447         * tests/test-memcmp.c: Include zerosize-ptr.h.
13448         (main): Use a zero-size object pointer instead of NULL.
13449         * tests/test-memmem.c: Include zerosize-ptr.h.
13450         (main): Use a zero-size object pointer instead of NULL.
13451         * tests/test-memrchr.c: Include zerosize-ptr.h.
13452         (main): Use a zero-size object pointer instead of NULL.
13453         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13454         m4/mmap-anon.m4.
13455         (Depends-on): Add getpagesize.
13456         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13457         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13458         m4/mmap-anon.m4.
13459         (Depends-on): Add getpagesize.
13460         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13461         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13462         m4/mmap-anon.m4.
13463         (Depends-on): Add getpagesize.
13464         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13465         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13466         m4/mmap-anon.m4.
13467         (Depends-on): Add getpagesize.
13468         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13469         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13470         m4/mmap-anon.m4.
13471         (Depends-on): Add getpagesize.
13472         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13473
13474 2009-05-12  Bruno Haible  <bruno@clisp.org>
13475
13476         Tests for module 'alignof'.
13477         * modules/alignof-tests: New file.
13478         * tests/test-alignof.c: New file.
13479
13480 2009-05-12  Bruno Haible  <bruno@clisp.org>
13481
13482         Fix alignof macro.
13483         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13484         vendor compilers that are always correct.
13485
13486 2009-05-12  Bruno Haible  <bruno@clisp.org>
13487
13488         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13490         not whether its fully works.
13491
13492 2009-05-12  Bruno Haible  <bruno@clisp.org>
13493
13494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13495
13496 2009-05-12  Jim Meyering  <meyering@redhat.com>
13497
13498         * top/maint.mk: Adjust backslash alignment.
13499
13500 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13501
13502         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13503
13504 2009-05-11  Eric Blake  <ebb9@byu.net>
13505
13506         argp: avoid undefined behavior
13507         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13508         macros.
13509
13510 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13511
13512         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13513         user.name to prevent git commit from complaining.
13514
13515 2009-05-10  Bruno Haible  <bruno@clisp.org>
13516
13517         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13518         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13519         it rewrites every file name only once.
13520         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13521
13522 2009-05-08  Bruno Haible  <bruno@clisp.org>
13523
13524         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13525         instead of 'max'.
13526
13527 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13528
13529         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13530         sockaddr_storage test.
13531
13532 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13533
13534         * modules/sys_socket (Makefile.am): Substitute
13535         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13536         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13537         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13538         * tests/test-sys_socket.c: Check sockaddr_storage.
13539
13540 2009-05-08  Bruno Haible  <bruno@clisp.org>
13541
13542         New module 'alignof'.
13543         * lib/alignof.h: New file.
13544         * modules/alignof: New file.
13545
13546 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13547             Bruno Haible  <bruno@clisp.org>
13548
13549         Fix test-file-has-acl on FreeBSD.
13550         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13551         mask is implicitly added.
13552         * tests/test-file-has-acl.c: Include <signal.h>.
13553         (main): Terminate the test after 5 seconds.
13554         * modules/acl-tests (configure.ac): Check for alarm function.
13555
13556 2009-05-04  Bruno Haible  <bruno@clisp.org>
13557
13558         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13559         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13560         * modules/errno (configure.ac): Drop AC_REQUIRE.
13561         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13562         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13563
13564 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13565
13566         * modules/glob-tests: New module.
13567         * tests/test-glob.c: Add.
13568
13569 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13570
13571         * modules/fnmatch-tests: New module.
13572         * tests/test-fnmatch.c: Add.
13573
13574 2009-05-04  Eric Blake  <ebb9@byu.net>
13575
13576         maint: make the new no-submodule-changes rule VPATH-safe
13577         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13578
13579 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13580             Bruno Haible  <bruno@clisp.org>
13581
13582         acl: Fix infinite loop on FreeBSD.
13583         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13584         of return value from acl_get_entry.
13585         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13586         Likewise.
13587
13588 2009-05-03  Bruno Haible  <bruno@clisp.org>
13589
13590         * lib/acl-internal.h (acl_entries): Clarify return value.
13591         * lib/acl_entries.c (acl_entries): Likewise.
13592
13593 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13594
13595         Bug fix in acl module.
13596         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13597
13598 2009-05-03  Bruno Haible  <bruno@clisp.org>
13599
13600         Create gperf-generated file in the source dir, not in the build dir.
13601         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13602         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13603         * modules/unicase/locale-language (unicase/locale-languages.h):
13604         Likewise.
13605         * modules/unicase/special-casing (unicase/special-casing-table.h):
13606         Likewise.
13607         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13608         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13609         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13610         Reported by Ralf Wildenhues.
13611
13612 2009-05-03  Bruno Haible  <bruno@clisp.org>
13613
13614         * modules/fnmatch (Description, configure.ac): Taken from
13615         fnmatch-posix.
13616         * modules/fnmatch-posix: Turn into a symbolic reference to the
13617         'fnmatch' module, and deprecate.
13618         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13619
13620 2009-05-03  Bruno Haible  <bruno@clisp.org>
13621
13622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13623         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13624         Reported by Ralf Wildenhues.
13625
13626 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13627
13628         * m4/fnmatch.m4: Fix fnmatch re-define.
13629
13630 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13631
13632         priv-set: new module and tests; adapt write-any-file
13633         * lib/priv-set.c: New file.
13634         * lib/priv-set.h: New file.
13635         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13636         * lib/write-any-file.c: Simplify by using priv-set module.
13637         * m4/priv-set.m4: New file.
13638         * modules/priv-set: New file.
13639         * modules/unlinkdir: Add dependency on priv-set module.
13640         * modules/write-any-file: Likewise.
13641
13642         Tests for module 'priv-set'.
13643         * modules/priv-set-tests: New file.
13644         * tests/test-priv-set.c: New file.
13645
13646 2009-05-03  Jim Meyering  <meyering@redhat.com>
13647             Bruno Haible  <bruno@clisp.org>
13648
13649         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13650         use the converted UTF-8 variant of the name instead.
13651
13652 2009-05-03  Jim Meyering  <meyering@redhat.com>
13653
13654         tests: tighten some getdate tests
13655         * tests/test-getdate.c (main): Tighten tests: require equality,
13656         not just greater than.  Set TZ envvar to UTC0.
13657
13658 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13659
13660         getdate: correctly interpret "next monday" when run on a Monday
13661         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13662         that e.g., "next tues" (when run on a tuesday) results in a date
13663         that is one week in the future, and not today's date.
13664         I.e., add a week when the wday is the same as the current one.
13665         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13666         and earlier by Martin Bernreuther and Jan Minář.
13667         * tests/test-getdate.c (main): Check that "next DAY" is always in
13668         the future and that "last DAY" is always in the past.
13669
13670 2009-05-02  Jim Meyering  <meyering@redhat.com>
13671
13672         build: ensure that a release build fails when a submodule is unclean
13673         * top/maint.mk (no-submodule-changes): New rule.
13674         (alpha beta major): Depend on it.
13675
13676 2009-05-02  Bruno Haible  <bruno@clisp.org>
13677
13678         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13680         shell variable gl_fnmatch_required to detect which variant is
13681         requested.
13682         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
13683         gl_FUNC_FNMATCH_POSIX.
13684         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
13685         exclude fnmatch-posix.
13686
13687 2009-05-02  Bruno Haible  <bruno@clisp.org>
13688
13689         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
13690         * modules/mbsrtowcs (License): Change to LGPLv2+.
13691         * modules/strnlen1 (License): Likewise.
13692         Reported by Simon Josefsson.
13693
13694 2009-05-02  Bruno Haible  <bruno@clisp.org>
13695
13696         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
13697         "cross".
13698         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
13699         gnulib-tool was called with option --source-base=lib.
13700
13701 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13702
13703         Use automake *-local hooks without commands, for extensibility.
13704         * modules/localcharset (Makefile.am): Rename install-exec-local
13705         rule to install-exec-localcharset, and make it a prerequisite of
13706         install-exec-local.  Likewise, rename the uninstall-local rule to
13707         uninstall-localcharset, and make it a prerequisite of the former.
13708
13709 2009-05-01  Bruno Haible  <bruno@clisp.org>
13710
13711         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
13712         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13713         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
13714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
13715         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
13716         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13717         m4/locale-zh.m4, m4/codeset.m4.
13718
13719         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
13720         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
13721         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
13722         m4/locale-zh.m4.
13723
13724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
13725         REPLACE_WCRTOMB if mbstate_t must be replaced.
13726         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
13727         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
13728
13729 2009-05-01  Bruno Haible  <bruno@clisp.org>
13730
13731         Avoid compiler warnings when redefining macros defined by <libintl.h>.
13732         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
13733         dngettext, dcngettext, textdomain, bindtextdomain,
13734         bind_textdomain_codeset): Undefine before redefining.
13735
13736 2009-04-30  Bruno Haible  <bruno@clisp.org>
13737
13738         Fix bug introduced on 2009-04-25.
13739         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
13740         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
13741         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
13742         is defined.
13743         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
13744         is defined.
13745         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
13746         is defined.
13747         Reported by Elbert_Pol <elbert.pol@gmail.com>.
13748
13749 2009-04-28  Bruno Haible  <bruno@clisp.org>
13750
13751         Comment tweaks.
13752         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
13753         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
13754         * lib/unicase.h (u*_casexfrm): Likewise.
13755         Reported by Paolo Bonzini.
13756
13757 2009-04-28  Bruno Haible  <bruno@clisp.org>
13758
13759         Fix a compilation error.
13760         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
13761         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13762         Reported by Jim Meyering.
13763
13764 2009-04-27  Bruno Haible  <bruno@clisp.org>
13765
13766         New module 'libunistring'.
13767         * modules/libunistring: New file.
13768         * m4/libunistring.m4: New file.
13769         * MODULES.html.sh (Unicode string functions): Add it.
13770
13771 2009-04-27  Eric Blake  <ebb9@byu.net>
13772
13773         maint.mk: allow package-specific header to provide <config.h>
13774         * top/maint.mk (sc_require_config_h): New variable.
13775         (sc_require_config_h, sc_require_config_h_first): Use it.
13776
13777 2009-04-27  Simon Josefsson  <simon@josefsson.org>
13778
13779         * top/maint.mk (sc_avoid_if_before_free): Except
13780         useless-if-before-free script.
13781
13782 2009-04-27  Eric Blake  <ebb9@byu.net>
13783
13784         maintainer-makefile: depend on all required helper scripts
13785         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
13786         useless-if-before-free.
13787         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
13788         version, rather than assuming gnulib checkout is available.
13789         Reported by Simen Josefsson.
13790
13791 2009-04-26  Bruno Haible  <bruno@clisp.org>
13792
13793         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
13794         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
13795         "../" or "..".
13796
13797 2009-04-26  Bruno Haible  <bruno@clisp.org>
13798
13799         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
13800         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
13801         AC_LIB_HAVE_LINKFLAGS.
13802
13803 2009-04-26  Bruno Haible  <bruno@clisp.org>
13804
13805         Simplify calling convention of u*_conv_from_encoding.
13806         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
13807         u32_conv_from_encoding): Expect a resultbuf argument and return the
13808         result directly as a pointer.
13809         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
13810         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
13811         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
13812         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
13813         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
13814         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13815         Update.
13816         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
13817         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
13818         * lib/vasnprintf.c (VASNPRINTF): Update.
13819         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
13820         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
13821         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
13822         * NEWS: Mention the change.
13823
13824 2009-04-26  Bruno Haible  <bruno@clisp.org>
13825
13826         Simplify calling convention of u*_conv_to_encoding.
13827         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
13828         u32_conv_to_encoding): Expect a resultbuf argument and return the
13829         result directly as a pointer.
13830         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13831         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
13832         freeing scaled_offsets if mem_iconveha failed.
13833         * lib/unicase/u-casexfrm.h (FUNC): Update.
13834         * lib/uninorm/u-normxfrm.h (FUNC): Update.
13835         * lib/vasnprintf.c (VASNPRINTF): Update.
13836         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
13837         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
13838         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
13839         * NEWS: Mention the change.
13840
13841 2009-04-26  Bruno Haible  <bruno@clisp.org>
13842
13843         Avoid test failures on AIX and OSF/1.
13844         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
13845         malloc(0).
13846         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
13847         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
13848         Likewise.
13849         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
13850         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
13851         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
13852         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
13853         * doc/posix-functions/malloc.texi: Document the portability problem
13854         related to malloc(0).
13855
13856 2009-04-26  Bruno Haible  <bruno@clisp.org>
13857
13858         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
13859         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
13860         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
13861
13862 2009-04-25  Bruno Haible  <bruno@clisp.org>
13863
13864         Avoid link error when creating a namespace clean library.
13865         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
13866         as macro with arguments if already defined as an alias.
13867         * lib/signbitf.c (gl_signbitf): Don't undefine.
13868         * lib/signbitd.c (gl_signbitd): Don't undefine.
13869         * lib/signbitl.c (gl_signbitl): Don't undefine.
13870
13871 2009-04-25  Jim Meyering  <meyering@redhat.com>
13872
13873         vc-list-files: fix another quoting bug
13874         * build-aux/vc-list-files: Avoid sed backslash expansion
13875         of pathological directory names.
13876
13877 2009-04-25  Eric Blake  <ebb9@byu.net>
13878
13879         vc-list-files: fix shell quoting error
13880         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
13881         timestamp.
13882
13883 2009-04-25  Jim Meyering  <meyering@redhat.com>
13884
13885         vc-list-files: restore lost functionality with subdir argument
13886         * build-aux/vc-list-files: When given a non-"." sub-directory
13887         argument, substitute the $dir/ prefix back onto each resulting name.
13888         Otherwise, coreutils' root_tests check would fail.
13889
13890 2009-04-24  Eric Blake  <ebb9@byu.net>
13891
13892         vc-list-files: ignore git symlinks
13893         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
13894         than ls-files, to ignore git symlinks.
13895
13896         maint.mk: import improvements from m4
13897         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
13898         (move_if_change): Delete unused macro.
13899         (news-date-check, vc-diff-check): Support VPATH builds.
13900         (announcement): Likewise.  Split --bootstrap-tools list...
13901         (boostrap-tools): ...into separate list, which can be overridden
13902         in cfg.mk.
13903         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
13904         requiring dependency on useless-if-before-free module.
13905         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
13906         Support VPATH builds.
13907
13908 2009-04-24  Jim Meyering  <meyering@redhat.com>
13909
13910         maint.mk: remove coreutils-specific rules and variables
13911         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
13912         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
13913         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
13914
13915         maint.mk: remove obsolete rule
13916         * top/maint.mk (rel-check): Remove rule.
13917         (WGET, WGETFLAGS): Remove now-unused variables.
13918
13919 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13920
13921         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
13922         consistency.
13923
13924         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
13925         '$(PATH_SEPARATOR)' instead of ':'.
13926
13927 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13928
13929         * lib/getopt1.c (main): Use 'const' for static array.
13930
13931 2009-04-24  Simon Josefsson  <simon@josefsson.org>
13932
13933         * top/maint.mk: Sync with coreutils.
13934         * NEWS: Explain incompatibilities.
13935
13936 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13937             Bruno Haible  <bruno@clisp.org>
13938
13939         Fix cross-compilation results.
13940         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
13941         statement, as third argument of AC_TRY_RUN.
13942         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13943         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13944         Likewise.
13945         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13946         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13947         Likewise.
13948         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
13950         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
13951
13952 2009-04-20  Bruno Haible  <bruno@clisp.org>
13953
13954         Avoid test failure on mingw.
13955         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
13956
13957 2009-04-20  Bruno Haible  <bruno@clisp.org>
13958
13959         Avoid compilation error on mingw.
13960         * modules/localename-tests (Depends-on): Add locale.
13961
13962 2009-04-19  Bruno Haible  <bruno@clisp.org>
13963
13964         Support for building a shared library on Windows platforms.
13965         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
13966         (main): Test the presence of UNINORM_NFC here.
13967         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
13968         (main): Test the presence of UNINORM_NFD here.
13969         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
13970         (main): Test the presence of UNINORM_NFKC here.
13971         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
13972         (main): Test the presence of UNINORM_NFKD here.
13973
13974 2009-04-19  Bruno Haible  <bruno@clisp.org>
13975
13976         Avoid a compiler warning.
13977         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
13978         Change type of variable 'sequence'.
13979
13980 2009-04-19  Bruno Haible  <bruno@clisp.org>
13981
13982         * modules/configmake (Makefile.am): When the contents of configmake.h
13983         does not change, arrange to preserve its modification time.
13984
13985 2009-04-17  Simon Josefsson  <simon@josefsson.org>
13986
13987         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
13988         gettext domain.
13989
13990 2009-04-16  Jim Meyering  <meyering@redhat.com>
13991
13992         useless-if-before-free: improve conversion code
13993         * build-aux/useless-if-before-free: Adjust code-in-comment to match
13994         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
13995
13996 2009-04-14  Bruno Haible  <bruno@clisp.org>
13997
13998         * modules/fcntl (Depends-on): Add extensions.
13999         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14000
14001 2009-04-12  Ben Pfaff  <blp@gnu.org>
14002
14003         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14004         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14005
14006 2009-03-20  Ben Pfaff  <blp@gnu.org>
14007
14008         Make rename replace existing destinations on Windows.
14009         * m4/rename.m4: Add test for Mingw.
14010         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14011         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14012         * doc/posix-functions/rename.texi: Document.
14013
14014 2009-04-10  Bruno Haible  <bruno@clisp.org>
14015
14016         New include file "iconveh.h".
14017         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14018         * lib/striconveh.h: Include it.
14019         (enum iconv_ilseq_handler): Remove definition.
14020         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14021         striconveh.h.
14022         * lib/striconveha.c: Include striconveh.h.
14023         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14024         * modules/striconveh (Files): Add lib/iconveh.h.
14025         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14026         lib/striconveh.h.
14027
14028 2009-04-10  Bruno Haible  <bruno@clisp.org>
14029
14030         * lib/uniconv.h: Update comment.
14031
14032 2009-04-10  Bruno Haible  <bruno@clisp.org>
14033
14034         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14035         always.
14036         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14037         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14038         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14039         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14040         "unistring-notinline.h", so that the function gets defined always.
14041         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14042         * lib/unistr/u8-uctomb.c: Likewise.
14043         * lib/unistr/u16-mbtouc.c: Likewise.
14044         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14045         * lib/unistr/u16-uctomb.c: Likewise.
14046         * lib/unistr/u32-mbtouc.c: Likewise.
14047         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14048         * lib/unistr/u32-uctomb.c: Likewise.
14049
14050 2009-04-10  Bruno Haible  <bruno@clisp.org>
14051
14052         Mark 'utime' obsolete.
14053         * modules/utime (Status, Notice): New sections.
14054         Suggested by Jim Meyering.
14055
14056         Fix cross-compile guess for utime test.
14057         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14058         autoconf.
14059         * doc/posix-functions/utime.texi: Give more precisions.
14060         Reported by Jan <ipif@ymail.com>.
14061
14062 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14063
14064         filevercmp: correct today's change
14065         * lib/filevercmp.c: Also handle coreutils' test inputs.
14066         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14067
14068         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14069         for reporting it.
14070         * lib/filevercmp.c: Special handle for "", "." and "..".
14071         * tests/test-filevercmp.c: Enlarge the set suite.
14072
14073 2009-04-07  Jim Meyering  <meyering@redhat.com>
14074
14075         useless-if-before-free: show how to remove braced useless free, too
14076         * build-aux/useless-if-before-free: still only in a comment, though.
14077
14078 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14079
14080         maint.mk: import changes to syntax-check macros from coreutils
14081         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14082         Use them in the relevant macros.
14083
14084 2009-04-06  Bruno Haible  <bruno@clisp.org>
14085
14086         Fix unportable use of bit-fields.
14087         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14088         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14089         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14090
14091 2009-04-06  Bruno Haible  <bruno@clisp.org>
14092
14093         Avoid test failures on AIX and OSF/1.
14094         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14095         that malloc(0) = NULL.
14096         * tests/unicase/test-u8-tolower.c (check): Likewise.
14097         * tests/unicase/test-u8-totitle.c (check): Likewise.
14098         * tests/unicase/test-u8-toupper.c (check): Likewise.
14099         * tests/unicase/test-u16-casefold.c (check): Likewise.
14100         * tests/unicase/test-u16-tolower.c (check): Likewise.
14101         * tests/unicase/test-u16-totitle.c (check): Likewise.
14102         * tests/unicase/test-u16-toupper.c (check): Likewise.
14103         * tests/unicase/test-u32-casefold.c (check): Likewise.
14104         * tests/unicase/test-u32-tolower.c (check): Likewise.
14105         * tests/unicase/test-u32-totitle.c (check): Likewise.
14106         * tests/unicase/test-u32-toupper.c (check): Likewise.
14107         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14108         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14109         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14110         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14111         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14112         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14113         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14114         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14115         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14116         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14117         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14118         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14119
14120 2009-04-05  Bruno Haible  <bruno@clisp.org>
14121
14122         Work around an autoconf limitation.
14123         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14124         comment line if it would be longer than 3 KB.
14125
14126 2009-04-05  Bruno Haible  <bruno@clisp.org>
14127
14128         Avoid test failure with libiconv-1.13.
14129         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14130         of the expected test results.
14131
14132 2009-04-05  Bruno Haible  <bruno@clisp.org>
14133
14134         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14135         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14136         that it should be installed.
14137
14138 2009-04-05  Bruno Haible  <bruno@clisp.org>
14139
14140         * gnulib-tool: New option --copy-file.
14141         (func_usage): Document it.
14142         (func_dest_tmpfilename): Moved out of func_import.
14143         (func_add_file, func_update_file): New functions, extracted from
14144         func_import.
14145         (func_import): Update.
14146
14147 2009-04-05  Karl Berry  <karl@gnu.org>
14148
14149         * README: prominently mention gnulib-tool.
14150         Rearrange sections so getting the code is near the top.
14151
14152 2009-04-05  Bruno Haible  <bruno@clisp.org>
14153
14154         * lib/unicase.h: Mention u*_cmp2.
14155         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14156         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14157         * lib/unicase/ulc-casecmp.c: Likewise.
14158         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14159         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14160         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14161         unistr/u8-cmp.
14162         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14163         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14164         unistr/u16-cmp.
14165         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14166         unistr/u32-cmp.
14167
14168         * lib/uninorm.h: Mention u*_cmp2.
14169         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14170         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14171         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14172         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14173         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14174         unistr/u8-cmp.
14175         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14176         unistr/u16-cmp.
14177         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14178         unistr/u32-cmp.
14179
14180         New module 'unistr/u32-cmp2'.
14181         * lib/unistr/u32-cmp2.c: New file.
14182         * modules/unistr/u32-cmp2: New file.
14183
14184         New module 'unistr/u16-cmp2'.
14185         * lib/unistr/u16-cmp2.c: New file.
14186         * modules/unistr/u16-cmp2: New file.
14187
14188         New module 'unistr/u8-cmp2'.
14189         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14190         * lib/unistr/u8-cmp2.c: New file.
14191         * lib/unistr/u-cmp2.h: New file.
14192         * modules/unistr/u8-cmp2: New file.
14193
14194 2009-04-05  Bruno Haible  <bruno@clisp.org>
14195
14196         * lib/unictype.h (uc_property_is_valid): New macro.
14197         * tests/unictype/test-pr_byname.c (main): Use it.
14198
14199         * lib/unistr.h: Doc fixes.
14200         * lib/uniconv.h: Doc fixes.
14201         * lib/unictype.h: Doc fixes.
14202
14203 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14204
14205         Port coreutils 7.2 to Solaris 8.
14206
14207         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14208         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14209         for Solaris 8.  This is a bit of a hack, as it means it's the
14210         caller's responsibility to add -lnsl if needed, but most likely it
14211         won't be needed since only getaddrinfo uses this and getaddrinfo
14212         isn't needed on Solaris 8.
14213
14214         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14215         problem to Solaris 8 encountered with coreutils 7.2, which
14216         resulted in a message "fnmatch.c:292: warning: passing argument 4
14217         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14218         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14219
14220 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14221
14222         * m4/ld-version-script.m4: Add FIXME comment.
14223
14224 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14225
14226         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14227         SOVERSION variable.
14228
14229 2009-04-02  Bruno Haible  <bruno@clisp.org>
14230
14231         * Makefile (info, html, dvi, pdf): Combine the rules.
14232         Suggested by Jim Meyering.
14233
14234 2009-04-01  Bruno Haible  <bruno@clisp.org>
14235
14236         * Makefile (info, html, dvi, pdf): New targets.
14237         Reported by Reuben Thomas <rrt@sc3d.org>.
14238
14239 2009-04-01  Bruno Haible  <bruno@clisp.org>
14240
14241         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14242         can be put into PATH.
14243         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14244
14245 2009-04-01  Bruno Haible  <bruno@clisp.org>
14246
14247         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14248
14249 2009-04-01  Bruno Haible  <bruno@clisp.org>
14250
14251         Rename module 'visibility'.
14252         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14253         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14254         * doc/gnulib.texi: Update.
14255         * MODULES.html.sh (Misc): Update.
14256         * NEWS: Mention the change.
14257
14258 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14259
14260         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14261         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14262         Eric Blake <ebb9@byu.net> for review.
14263         * MODULES.html.sh: Add lib-msvc-compat.
14264         * doc/gnulib.texi: Link to new section.
14265         * m4/ld-output-def.m4: New file.
14266         * doc/ld-output-def.texi: New file.
14267
14268 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14269
14270         Rename ld-version-script to lib-symbol-versions.  Suggested by
14271         Bruno Haible <bruno@clisp.org>.
14272         * modules/ld-version-script: Renamed to lib-symbol-versions.
14273         * doc/ld-version-script.texi: Fix module name.
14274         * MODULES.html.sh: Add lib-symbol-versions.
14275
14276 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14277
14278         * modules/u64-tests: New file.
14279         * tests/test-u64.c: New file.
14280
14281 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14282
14283         * MODULES.html.sh: Mention u64.
14284         * modules/u64: New module.
14285         * modules/crypto/sha512: Depend on u64 module instead of providing
14286         u64.h.
14287
14288 2009-03-27  Eric Blake  <ebb9@byu.net>
14289
14290         test-strerror: make debugging EAI_SYSTEM easier
14291         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14292         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14293         failure was EAI_SYSTEM.
14294
14295 2009-03-25  Bruno Haible  <bruno@clisp.org>
14296
14297         Fix a problem with --enable-relocatable on Solaris 7.
14298         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14299         since 2008-02-24.
14300
14301 2009-03-25  Eric Blake  <ebb9@byu.net>
14302
14303         test-sockets: avoid gcc warning
14304         * tests/test-sockets.c (main): Silence compiler warning.
14305
14306 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14307
14308         New modules nproc, pthread, contributed by Glen Lenker.
14309
14310         * MODULES.html.sh: Add pthread, nproc.
14311         * lib/nproc.c: New file.
14312         * lib/nproc.h: New file.
14313         * lib/pthread.in.h: New file.
14314         * m4/pthread.m4: New file.
14315         * modules/nproc: New file.
14316         * modules/pthread: New file.
14317
14318 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14319
14320         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14321         New variable.
14322
14323 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14324
14325         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14326         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14327         * tests/test-filevercmp.c: Add tests for backup suffixes.
14328
14329 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14330
14331         * modules/stdlib (Depends-on): Add stdint, needed when defining
14332         struct random_data on, for example, HP-UX 10.20.  Reported by
14333         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14334
14335 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14336
14337         * lib/readline.c (readline): Call fflush on stdout after printing
14338         prompt.
14339
14340 2009-03-20  Bruno Haible  <bruno@clisp.org>
14341
14342         Remove dependency from 'close' module to -lws2_32 on native Windows.
14343         * lib/close-hook.h: New file.
14344         * lib/close-hook.c: New file.
14345         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14346         w32sock.h.
14347         (_gl_close_fd_maybe_socket): Remove function.
14348         (rpl_close): Invoke execute_all_close_hooks instead of
14349         _gl_close_fd_maybe_socket.
14350         * lib/sockets.c: Include close-hook.h, w32sock.h.
14351         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14352         (close_sockets_hook): New variable.
14353         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14354         (gl_sockets_cleanup): Unregister it.
14355         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14356         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14357         * modules/close-hook: New file.
14358         * modules/close (Files): Remove lib/w32sock.h.
14359         (Depends-on): Add close-hook.
14360         (Link): Remove section.
14361         * modules/sockets (Files): Add lib/w32sock.h.
14362         (Depends-on): Add close-hook.
14363         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14364         invocation.
14365         * NEWS: Mention that LIB_CLOSE is gone.
14366
14367 2009-03-23  Eric Blake  <ebb9@byu.net>
14368
14369         signal-tests: test previous patch
14370         * tests/test-signal.c: New file.
14371         * modules/signal-tests: Likewise.
14372
14373         signal.h: always support 'volatile sig_atomic_t'
14374         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14375         (gl_SIGNAL_H_DEFAULTS): Add a default.
14376         * modules/signal (Makefile.am): Substitute if needed.
14377         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14378         users can blindly add volatile.
14379         * doc/posix-headers/signal.texi (signal.h): Document it.
14380         Reported by Matthew Woehlke.
14381
14382 2009-03-23  Jim Meyering  <meyering@redhat.com>
14383
14384         pathmax: PATH_MAX: use pathconf only when available
14385         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14386         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14387         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14388         This avoids a link failure in a PSP cross-compilation environment
14389         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14390
14391         * lib/vasnprintf.c (divide): Fix typo in comment.
14392
14393 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14394
14395         * gnulib-tool (func_filter_filelist): Fix comment.
14396
14397 2009-03-20  Bruno Haible  <bruno@clisp.org>
14398
14399         Make sockets.h self-contained.
14400         * lib/sockets.c: Include sockets.h first.
14401         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14402
14403 2009-03-19  Eric Blake  <ebb9@byu.net>
14404
14405         doc: mention more functions added in cygwin 1.7.0
14406         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14407         addition.
14408         * doc/posix-functions/log2f.texi: Likewise.
14409
14410 2009-03-19  Jim Meyering  <meyering@redhat.com>
14411
14412         fsusage: avoid syntax error due to statement-before-declaration
14413         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14414         after all declarations.  Reported by Matthew Woehlke in
14415         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14416
14417 2009-03-18  Eric Blake  <ebb9@byu.net>
14418
14419         build-aux/compile: sync from automake
14420         * build-aux/compile: New file, from automake.
14421         * config/srclist.txt: Mention build-aux/compile.
14422
14423 2009-03-17  Bruno Haible  <bruno@clisp.org>
14424
14425         * lib/git-merge-changelog.c: Fix typo in comment.
14426         Reported by Reuben Thomas <rrt@sc3d.org>.
14427
14428 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14429
14430         * m4/regex.m4: update and improve help for
14431         --without-included-regex.
14432
14433 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14434
14435         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14436         failure on missing include files.
14437
14438 2009-03-17  Eric Blake  <ebb9@byu.net>
14439
14440         doc: mention more functions added in cygwin 1.7.0
14441         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14442         addition.
14443         * doc/posix-functions/fwscanf.texi: Likewise.
14444         * doc/posix-functions/swprintf.texi: Likewise.
14445         * doc/posix-functions/swscanf.texi: Likewise.
14446         * doc/posix-functions/vfwprintf.texi: Likewise.
14447         * doc/posix-functions/vfwscanf.texi: Likewise.
14448         * doc/posix-functions/vswprintf.texi: Likewise.
14449         * doc/posix-functions/vswscanf.texi: Likewise.
14450         * doc/posix-functions/vwprintf.texi: Likewise.
14451         * doc/posix-functions/vwscanf.texi: Likewise.
14452         * doc/posix-functions/wcscasecmp.texi: Likewise.
14453         * doc/posix-functions/wcsdup.texi: Likewise.
14454         * doc/posix-functions/wcsftime.texi: Likewise.
14455         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14456         * doc/posix-functions/wprintf.texi: Likewise.
14457         * doc/posix-functions/wscanf.texi: Likewise.
14458         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14459
14460 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14461
14462         maint.mk: really add $(AM_MAKEFLAGS)
14463         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14464         was inadvertently omitted in the last commit.
14465         Spotted by Bruno Haible.
14466
14467         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14468         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14469         $(AM_MAKEFLAGS)' rather than plain `make'.
14470
14471         gnulib-tool: execute $MAKE not make
14472         * gnulib-tool: Default $MAKE to 'make'.
14473         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14474         than make.  Initialize $MAKE in the do-autobuild script.
14475
14476         gnulib-tool: use $MAKE not make in generated files
14477         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14478         make, in generated files.  Initialize $MAKE in the do-autobuild
14479         script.
14480
14481         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14482
14483         GNUmakefile: disable parallelism only for multiple, recursive targets
14484         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14485         additions in the Makefile.
14486         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14487         by Automake.
14488         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14489         are listed on the command line and at least one of them is
14490         listed in $(ALL_RECURSIVE_TARGETS).
14491
14492 2009-03-14  Bruno Haible  <bruno@clisp.org>
14493
14494         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14495         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14496         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14497         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14498         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14499         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14500         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14501         unistr/u8-uctomb.
14502         * modules/unistr/u8-strchr (Depends-on): Likewise.
14503         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14504         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14505         unistr/u16-uctomb.
14506         * modules/unistr/u16-strchr (Depends-on): Likewise.
14507         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14508
14509 2009-03-12  Bruno Haible  <bruno@clisp.org>
14510
14511         Work around select() bug on Interix 3.5.
14512         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14513         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14514         * m4/select.m4: New file.
14515         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14516         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14517         * modules/select (Files): Add m4/select.m4.
14518         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14519         * modules/nanosleep (Depends-on): Add select.
14520         * modules/poll (Depends-on): Likewise.
14521         * doc/posix-functions/select.texi: Mention the Interix bug.
14522         Reported by Markus Duft <mduft@gentoo.org>.
14523
14524         * lib/select.c: Renamed from lib/winsock-select.c.
14525         * modules/select (Files): Add lib/select.c, remove
14526         lib/winsock-select.c.
14527         (configure.ac): Update.
14528
14529 2009-03-12  Jim Meyering  <meyering@redhat.com>
14530
14531         avoid gcc warnings about unused macro definitions
14532         * lib/readtokens.c (STREQ): Remove unused definition.
14533         * lib/xmalloc.c (SIZE_MAX): Likewise.
14534         * lib/openat-die.c (N_): Likewise.
14535         * lib/mountlist.c (SIZE_MAX): Remove definition.
14536         Instead, include <stdint.h>.
14537         * lib/readutmp.c: Likewise.
14538         * modules/readutmp (Depends-on): Add stdint.
14539         * modules/mountlist (Depends-on): Add stdint.
14540         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14541
14542 2009-03-10  Bruno Haible  <bruno@clisp.org>
14543
14544         Tests for module 'mbmemcasecoll'.
14545         * modules/mbmemcasecoll-tests: New file.
14546         * tests/test-mbmemcasecoll1.sh: New file.
14547         * tests/test-mbmemcasecoll2.sh: New file.
14548         * tests/test-mbmemcasecoll3.sh: New file.
14549         * tests/test-mbmemcasecoll.c: New file.
14550
14551         New module 'mbmemcasecoll'.
14552         * lib/mbmemcasecoll.h: New file.
14553         * lib/mbmemcasecoll.c: New file.
14554         * modules/mbmemcasecoll: New file.
14555
14556         * tests/test-mbmemcasecmp.h: New file, extracted from
14557         tests/test-mbmemcasecmp.c.
14558         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14559         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14560         (main): Update.
14561         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14562
14563 2009-03-09  Bruno Haible  <bruno@clisp.org>
14564
14565         Tests for module 'mbmemcasecmp'.
14566         * modules/mbmemcasecmp-tests: New file.
14567         * tests/test-mbmemcasecmp1.sh: New file.
14568         * tests/test-mbmemcasecmp2.sh: New file.
14569         * tests/test-mbmemcasecmp3.sh: New file.
14570         * tests/test-mbmemcasecmp.c: New file.
14571
14572         New module 'mbmemcasecmp'.
14573         * lib/mbmemcasecmp.h: New file.
14574         * lib/mbmemcasecmp.c: New file.
14575         * modules/mbmemcasecmp: New file.
14576
14577 2009-03-09  Bruno Haible  <bruno@clisp.org>
14578
14579         Tests for module 'unicase/ulc-casecoll'.
14580         * modules/unicase/ulc-casecoll-tests: New file.
14581         * tests/unicase/test-ulc-casecoll1.sh: New file.
14582         * tests/unicase/test-ulc-casecoll2.sh: New file.
14583         * tests/unicase/test-ulc-casecoll.c: New file.
14584
14585         New module 'unicase/ulc-casecoll'.
14586         * lib/unicase.h (ulc_casecoll): New declaration.
14587         * lib/unicase/ulc-casecoll.c: New file.
14588         * modules/unicase/ulc-casecoll: New file.
14589
14590         New module 'unicase/ulc-casexfrm'.
14591         * lib/unicase.h (ulc_casexfrm): New declaration.
14592         * lib/unicase/ulc-casexfrm.c: New file.
14593         * modules/unicase/ulc-casexfrm: New file.
14594
14595 2009-03-09  Bruno Haible  <bruno@clisp.org>
14596
14597         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14598         invocations.
14599
14600         * m4/mbscasecmp.m4: Remove file.
14601         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14602         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14603
14604         * m4/mbscasestr.m4: Remove file.
14605         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14606         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14607
14608         * m4/mbschr.m4: Remove file.
14609         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14610         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14611
14612         * m4/mbscspn.m4: Remove file.
14613         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14614         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14615
14616         * m4/mbslen.m4: Remove file.
14617         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14618         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14619
14620         * m4/mbsncasecmp.m4: Remove file.
14621         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14622         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14623
14624         * m4/mbsnlen.m4: Remove file.
14625         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14626         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14627
14628         * m4/mbspbrk.m4: Remove file.
14629         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14630         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14631
14632         * m4/mbspcasecmp.m4: Remove file.
14633         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14634         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14635
14636         * m4/mbsrchr.m4: Remove file.
14637         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14638         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14639
14640         * m4/mbssep.m4: Remove file.
14641         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14642         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14643
14644         * m4/mbsspn.m4: Remove file.
14645         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14646         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14647
14648         * m4/mbsstr.m4: Remove file.
14649         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14650         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14651
14652         * m4/mbstok_r.m4: Remove file.
14653         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14654         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14655
14656         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14657
14658         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14659         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14660
14661         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14662
14663 2009-03-08  Bruno Haible  <bruno@clisp.org>
14664
14665         Tests for module 'unicase/ulc-casecmp'.
14666         * modules/unicase/ulc-casecmp-tests: New file.
14667         * tests/unicase/test-ulc-casecmp1.sh: New file.
14668         * tests/unicase/test-ulc-casecmp2.sh: New file.
14669         * tests/unicase/test-ulc-casecmp.c: New file.
14670
14671         New module 'unicase/ulc-casecmp'.
14672         * lib/unicase.h (ulc_casecmp): New declaration.
14673         * lib/unicase/ulc-casecmp.c: New file.
14674         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14675         'const SRC_UNIT *'.
14676         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14677         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14678         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14679         * modules/unicase/ulc-casecmp: New file.
14680
14681         Tests for module 'unicase/u32-is-cased'.
14682         * modules/unicase/u32-is-cased-tests: New file.
14683         * tests/unicase/test-u32-is-cased.c: New file.
14684
14685         Tests for module 'unicase/u16-is-cased'.
14686         * modules/unicase/u16-is-cased-tests: New file.
14687         * tests/unicase/test-u16-is-cased.c: New file.
14688
14689         Tests for module 'unicase/u8-is-cased'.
14690         * modules/unicase/u8-is-cased-tests: New file.
14691         * tests/unicase/test-u8-is-cased.c: New file.
14692         * tests/unicase/test-is-cased.h: New file.
14693
14694         New module 'unicase/u32-is-cased'.
14695         * lib/unicase/u32-is-cased.c: New file.
14696         * modules/unicase/u32-is-cased: New file.
14697
14698         New module 'unicase/u16-is-cased'.
14699         * lib/unicase/u16-is-cased.c: New file.
14700         * modules/unicase/u16-is-cased: New file.
14701
14702         New module 'unicase/u8-is-cased'.
14703         * lib/unicase/u8-is-cased.c: New file.
14704         * lib/unicase/u-is-cased.h: New file.
14705         * modules/unicase/u8-is-cased: New file.
14706
14707         Tests for module 'unicase/u32-is-casefolded'.
14708         * modules/unicase/u32-is-casefolded-tests: New file.
14709         * tests/unicase/test-u32-is-casefolded.c: New file.
14710
14711         Tests for module 'unicase/u16-is-casefolded'.
14712         * modules/unicase/u16-is-casefolded-tests: New file.
14713         * tests/unicase/test-u16-is-casefolded.c: New file.
14714
14715         Tests for module 'unicase/u8-is-casefolded'.
14716         * modules/unicase/u8-is-casefolded-tests: New file.
14717         * tests/unicase/test-u8-is-casefolded.c: New file.
14718         * tests/unicase/test-is-casefolded.h: New file.
14719
14720         New module 'unicase/u32-is-casefolded'.
14721         * lib/unicase/u32-is-casefolded.c: New file.
14722         * modules/unicase/u32-is-casefolded: New file.
14723
14724         New module 'unicase/u16-is-casefolded'.
14725         * lib/unicase/u16-is-casefolded.c: New file.
14726         * modules/unicase/u16-is-casefolded: New file.
14727
14728         New module 'unicase/u8-is-casefolded'.
14729         * lib/unicase/u8-is-casefolded.c: New file.
14730         * modules/unicase/u8-is-casefolded: New file.
14731
14732         Tests for module 'unicase/u32-is-titlecase'.
14733         * modules/unicase/u32-is-titlecase-tests: New file.
14734         * tests/unicase/test-u32-is-titlecase.c: New file.
14735
14736         Tests for module 'unicase/u16-is-titlecase'.
14737         * modules/unicase/u16-is-titlecase-tests: New file.
14738         * tests/unicase/test-u16-is-titlecase.c: New file.
14739
14740         Tests for module 'unicase/u8-is-titlecase'.
14741         * modules/unicase/u8-is-titlecase-tests: New file.
14742         * tests/unicase/test-u8-is-titlecase.c: New file.
14743         * tests/unicase/test-is-titlecase.h: New file.
14744
14745         New module 'unicase/u32-is-titlecase'.
14746         * lib/unicase/u32-is-titlecase.c: New file.
14747         * modules/unicase/u32-is-titlecase: New file.
14748
14749         New module 'unicase/u16-is-titlecase'.
14750         * lib/unicase/u16-is-titlecase.c: New file.
14751         * modules/unicase/u16-is-titlecase: New file.
14752
14753         New module 'unicase/u8-is-titlecase'.
14754         * lib/unicase/u8-is-titlecase.c: New file.
14755         * modules/unicase/u8-is-titlecase: New file.
14756
14757         Tests for module 'unicase/u32-is-lowercase'.
14758         * modules/unicase/u32-is-lowercase-tests: New file.
14759         * tests/unicase/test-u32-is-lowercase.c: New file.
14760
14761         Tests for module 'unicase/u16-is-lowercase'.
14762         * modules/unicase/u16-is-lowercase-tests: New file.
14763         * tests/unicase/test-u16-is-lowercase.c: New file.
14764
14765         Tests for module 'unicase/u8-is-lowercase'.
14766         * modules/unicase/u8-is-lowercase-tests: New file.
14767         * tests/unicase/test-u8-is-lowercase.c: New file.
14768         * tests/unicase/test-is-lowercase.h: New file.
14769
14770         New module 'unicase/u32-is-lowercase'.
14771         * lib/unicase/u32-is-lowercase.c: New file.
14772         * modules/unicase/u32-is-lowercase: New file.
14773
14774         New module 'unicase/u16-is-lowercase'.
14775         * lib/unicase/u16-is-lowercase.c: New file.
14776         * modules/unicase/u16-is-lowercase: New file.
14777
14778         New module 'unicase/u8-is-lowercase'.
14779         * lib/unicase/u8-is-lowercase.c: New file.
14780         * modules/unicase/u8-is-lowercase: New file.
14781
14782         Tests for module 'unicase/u32-is-uppercase'.
14783         * modules/unicase/u32-is-uppercase-tests: New file.
14784         * tests/unicase/test-u32-is-uppercase.c: New file.
14785
14786         Tests for module 'unicase/u16-is-uppercase'.
14787         * modules/unicase/u16-is-uppercase-tests: New file.
14788         * tests/unicase/test-u16-is-uppercase.c: New file.
14789
14790         Tests for module 'unicase/u8-is-uppercase'.
14791         * modules/unicase/u8-is-uppercase-tests: New file.
14792         * tests/unicase/test-u8-is-uppercase.c: New file.
14793         * tests/unicase/test-is-uppercase.h: New file.
14794
14795         New module 'unicase/u32-is-uppercase'.
14796         * lib/unicase/u32-is-uppercase.c: New file.
14797         * modules/unicase/u32-is-uppercase: New file.
14798
14799         New module 'unicase/u16-is-uppercase'.
14800         * lib/unicase/u16-is-uppercase.c: New file.
14801         * modules/unicase/u16-is-uppercase: New file.
14802
14803         New module 'unicase/u8-is-uppercase'.
14804         * lib/unicase/u8-is-uppercase.c: New file.
14805         * modules/unicase/u8-is-uppercase: New file.
14806
14807         New module 'unicase/u32-is-invariant'.
14808         * lib/unicase/u32-is-invariant.c: New file.
14809         * modules/unicase/u32-is-invariant: New file.
14810
14811         New module 'unicase/u16-is-invariant'.
14812         * lib/unicase/u16-is-invariant.c: New file.
14813         * modules/unicase/u16-is-invariant: New file.
14814
14815         New module 'unicase/u8-is-invariant'.
14816         * lib/unicase/u8-is-invariant.c: New file.
14817         * lib/unicase/invariant.h: New file.
14818         * lib/unicase/u-is-invariant.h: New file.
14819         * modules/unicase/u8-is-invariant: New file.
14820
14821         Tests for module 'unicase/u32-casecoll'.
14822         * modules/unicase/u32-casecoll-tests: New file.
14823         * tests/unicase/test-u32-casecoll.c: New file.
14824
14825         Tests for module 'unicase/u16-casecoll'.
14826         * modules/unicase/u16-casecoll-tests: New file.
14827         * tests/unicase/test-u16-casecoll.c: New file.
14828
14829         Tests for module 'unicase/u8-casecoll'.
14830         * modules/unicase/u8-casecoll-tests: New file.
14831         * tests/unicase/test-u8-casecoll.c: New file.
14832
14833         New module 'unicase/u32-casecoll'.
14834         * lib/unicase/u32-casecoll.c: New file.
14835         * modules/unicase/u32-casecoll: New file.
14836
14837         New module 'unicase/u16-casecoll'.
14838         * lib/unicase/u16-casecoll.c: New file.
14839         * modules/unicase/u16-casecoll: New file.
14840
14841         New module 'unicase/u8-casecoll'.
14842         * lib/unicase/u8-casecoll.c: New file.
14843         * lib/unicase/u-casecoll.h: New file.
14844         * modules/unicase/u8-casecoll: New file.
14845
14846         New module 'unicase/u32-casexfrm'.
14847         * lib/unicase/u32-casexfrm.c: New file.
14848         * modules/unicase/u32-casexfrm: New file.
14849
14850         New module 'unicase/u16-casexfrm'.
14851         * lib/unicase/u16-casexfrm.c: New file.
14852         * modules/unicase/u16-casexfrm: New file.
14853
14854         New module 'unicase/u8-casexfrm'.
14855         * lib/unicase/u8-casexfrm.c: New file.
14856         * lib/unicase/u-casexfrm.h: New file.
14857         * modules/unicase/u8-casexfrm: New file.
14858
14859         Tests for module 'unicase/u32-casecmp'.
14860         * modules/unicase/u32-casecmp-tests: New file.
14861         * tests/unicase/test-u32-casecmp.c: New file.
14862
14863         Tests for module 'unicase/u16-casecmp'.
14864         * modules/unicase/u16-casecmp-tests: New file.
14865         * tests/unicase/test-u16-casecmp.c: New file.
14866
14867         Tests for module 'unicase/u8-casecmp'.
14868         * modules/unicase/u8-casecmp-tests: New file.
14869         * tests/unicase/test-u8-casecmp.c: New file.
14870         * tests/unicase/test-casecmp.h: New file.
14871
14872         New module 'unicase/u32-casecmp'.
14873         * lib/unicase/u32-casecmp.c: New file.
14874         * modules/unicase/u32-casecmp: New file.
14875
14876         New module 'unicase/u16-casecmp'.
14877         * lib/unicase/u16-casecmp.c: New file.
14878         * modules/unicase/u16-casecmp: New file.
14879
14880         New module 'unicase/u8-casecmp'.
14881         * lib/unicase/u8-casecmp.c: New file.
14882         * lib/unicase/u-casecmp.h: New file.
14883         * modules/unicase/u8-casecmp: New file.
14884
14885         Tests for module 'unicase/u32-casefold'.
14886         * modules/unicase/u32-casefold-tests: New file.
14887         * tests/unicase/test-u32-casefold.c: New file.
14888
14889         Tests for module 'unicase/u16-casefold'.
14890         * modules/unicase/u16-casefold-tests: New file.
14891         * tests/unicase/test-u16-casefold.c: New file.
14892
14893         Tests for module 'unicase/u8-casefold'.
14894         * modules/unicase/u8-casefold-tests: New file.
14895         * tests/unicase/test-u8-casefold.c: New file.
14896
14897         New module 'unicase/u32-casefold'.
14898         * lib/unicase/u32-casefold.c: New file.
14899         * modules/unicase/u32-casefold: New file.
14900
14901         New module 'unicase/u16-casefold'.
14902         * lib/unicase/u16-casefold.c: New file.
14903         * modules/unicase/u16-casefold: New file.
14904
14905         New module 'unicase/u8-casefold'.
14906         * lib/unicase/u8-casefold.c: New file.
14907         * lib/unicase/u-casefold.h: New file.
14908         * modules/unicase/u8-casefold: New file.
14909
14910         New module 'unicase/tocasefold'.
14911         * lib/unicase/casefold.h: New file.
14912         * lib/unicase/tocasefold.c: New file.
14913         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
14914         * modules/unicase/tocasefold: New file.
14915
14916         Tests for module 'unicase/u32-totitle'.
14917         * modules/unicase/u32-totitle-tests: New file.
14918         * tests/unicase/test-u32-totitle.c: New file.
14919
14920         Tests for module 'unicase/u16-totitle'.
14921         * modules/unicase/u16-totitle-tests: New file.
14922         * tests/unicase/test-u16-totitle.c: New file.
14923
14924         Tests for module 'unicase/u8-totitle'.
14925         * modules/unicase/u8-totitle-tests: New file.
14926         * tests/unicase/test-u8-totitle.c: New file.
14927
14928         New module 'unicase/u32-totitle'.
14929         * lib/unicase/u32-totitle.c: New file.
14930         * modules/unicase/u32-totitle: New file.
14931
14932         New module 'unicase/u16-totitle'.
14933         * lib/unicase/u16-totitle.c: New file.
14934         * modules/unicase/u16-totitle: New file.
14935
14936         New module 'unicase/u8-totitle'.
14937         * lib/unicase/u8-totitle.c: New file.
14938         * lib/unicase/u-totitle.h: New file.
14939         * modules/unicase/u8-totitle: New file.
14940
14941         Tests for module 'unicase/u32-tolower'.
14942         * modules/unicase/u32-tolower-tests: New file.
14943         * tests/unicase/test-u32-tolower.c: New file.
14944
14945         Tests for module 'unicase/u16-tolower'.
14946         * modules/unicase/u16-tolower-tests: New file.
14947         * tests/unicase/test-u16-tolower.c: New file.
14948
14949         Tests for module 'unicase/u8-tolower'.
14950         * modules/unicase/u8-tolower-tests: New file.
14951         * tests/unicase/test-u8-tolower.c: New file.
14952
14953         New module 'unicase/u32-tolower'.
14954         * lib/unicase/u32-tolower.c: New file.
14955         * modules/unicase/u32-tolower: New file.
14956
14957         New module 'unicase/u16-tolower'.
14958         * lib/unicase/u16-tolower.c: New file.
14959         * modules/unicase/u16-tolower: New file.
14960
14961         New module 'unicase/u8-tolower'.
14962         * lib/unicase/u8-tolower.c: New file.
14963         * modules/unicase/u8-tolower: New file.
14964
14965         Tests for module 'unicase/u32-toupper'.
14966         * modules/unicase/u32-toupper-tests: New file.
14967         * tests/unicase/test-u32-toupper.c: New file.
14968
14969         Tests for module 'unicase/u16-toupper'.
14970         * modules/unicase/u16-toupper-tests: New file.
14971         * tests/unicase/test-u16-toupper.c: New file.
14972
14973         Tests for module 'unicase/u8-toupper'.
14974         * modules/unicase/u8-toupper-tests: New file.
14975         * tests/unicase/test-u8-toupper.c: New file.
14976
14977         New module 'unicase/u32-toupper'.
14978         * lib/unicase/u32-toupper.c: New file.
14979         * modules/unicase/u32-toupper: New file.
14980
14981         New module 'unicase/u16-toupper'.
14982         * lib/unicase/u16-toupper.c: New file.
14983         * modules/unicase/u16-toupper: New file.
14984
14985         New module 'unicase/u8-toupper'.
14986         * lib/unicase/u8-toupper.c: New file.
14987         * modules/unicase/u8-toupper: New file.
14988
14989         New module 'unicase/u32-casemap'.
14990         * lib/unicase/u32-casemap.c: New file.
14991         * modules/unicase/u32-casemap: New file.
14992
14993         New module 'unicase/u16-casemap'.
14994         * lib/unicase/u16-casemap.c: New file.
14995         * modules/unicase/u16-casemap: New file.
14996
14997         New module 'unicase/u8-casemap'.
14998         * lib/unicase/unicasemap.h: New file.
14999         * lib/unicase/u8-casemap.c: New file.
15000         * lib/unicase/u-casemap.h: New file.
15001         * modules/unicase/u8-casemap: New file.
15002
15003         New module 'unicase/special-casing'.
15004         * lib/unicase/special-casing.h: New file.
15005         * lib/unicase/special-casing.c: New file.
15006         * lib/unicase/special-casing-table.gperf: New file, generated by
15007         gen-uni-tables.c.
15008         * modules/unicase/special-casing: New file.
15009
15010         Tests for module 'unicase/locale-language'.
15011         * modules/unicase/locale-language-tests: New file.
15012         * tests/unicase/test-locale-language.sh: New file.
15013         * tests/unicase/test-locale-language.c: New file.
15014
15015         New module 'unicase/locale-language'.
15016         * lib/unicase/locale-language.c: New file.
15017         * lib/unicase/locale-languages.gperf: New file.
15018         * modules/unicase/locale-language: New file.
15019
15020         Generate more tables for case conversion and case folding.
15021         * lib/gen-uni-tables.c (SCC_*): New enum items.
15022         (struct special_casing_rule): New type.
15023         (casing_rules, num_casing_rules, allocated_casing_rules): New
15024         variables.
15025         (add_casing_rule, fill_casing_rules): New functions.
15026         (struct casefold_rule): New type.
15027         (casefolding_rules, num_casefolding_rules,
15028         allocated_casefolding_rules): New variables.
15029         (fill_casefolding_rules): New function.
15030         (unicode_casefold): New variable.
15031         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15032         sort_casing_rules, output_casing_rules): New functions.
15033         (main): Accept to more arguments: SpecialCasing.txt and
15034         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15035         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15036         Output mapping for casefolding.
15037
15038         * lib/unicase.h: Include stdbool.h, uninorm.h.
15039         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15040         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15041         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15042         arguments.
15043         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15044         resultp arguments.
15045         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15046         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15047         resultp arguments.
15048         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15049         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15050         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15051         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15052         declarations.
15053         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15054
15055 2009-03-08  Bruno Haible  <bruno@clisp.org>
15056
15057         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15058         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15059         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15060         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15061
15062 2009-03-07  Bruno Haible  <bruno@clisp.org>
15063
15064         Adjust u*_normcmp, u*_normcoll API.
15065         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15066         u16_normcoll, u32_normcoll): Change failure conventions.
15067         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15068         errno and return -1.
15069         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15070
15071 2009-03-07  Bruno Haible  <bruno@clisp.org>
15072
15073         Tests for module 'uninorm/u32-normcoll'.
15074         * modules/uninorm/u32-normcoll-tests: New file.
15075         * tests/uninorm/test-u32-normcoll.c: New file.
15076
15077         Tests for module 'uninorm/u16-normcoll'.
15078         * modules/uninorm/u16-normcoll-tests: New file.
15079         * tests/uninorm/test-u16-normcoll.c: New file.
15080
15081         Tests for module 'uninorm/u8-normcoll'.
15082         * modules/uninorm/u8-normcoll-tests: New file.
15083         * tests/uninorm/test-u8-normcoll.c: New file.
15084
15085 2009-03-07  Bruno Haible  <bruno@clisp.org>
15086
15087         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15088         tests/uninorm/test-u32-normcmp.c.
15089         * tests/uninorm/test-u32-normcmp.c: Include it.
15090         (test_nonascii): New function, extracted from main. Add some more
15091         tests.
15092         (main): Invoke test_ascii and test_nonascii.
15093         * modules/uninorm/u32-normcmp-tests (Files): Add
15094         tests/uninorm/test-u32-normcmp.h.
15095         (Depends-on): Remove uninorm/u32-normcmp.
15096
15097         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15098         tests/uninorm/test-u16-normcmp.c.
15099         * tests/uninorm/test-u16-normcmp.c: Include it.
15100         (test_nonascii): New function, extracted from main. Add some more
15101         tests.
15102         (main): Invoke test_ascii and test_nonascii.
15103         * modules/uninorm/u16-normcmp-tests (Files): Add
15104         tests/uninorm/test-u16-normcmp.h.
15105         (Depends-on): Remove uninorm/u16-normcmp.
15106
15107         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15108         tests/uninorm/test-u8-normcmp.c.
15109         * tests/uninorm/test-u8-normcmp.c: Include it.
15110         (test_nonascii): New function, extracted from main. Add some more
15111         tests.
15112         (main): Invoke test_ascii and test_nonascii.
15113         * modules/uninorm/u8-normcmp-tests (Files): Add
15114         tests/uninorm/test-u8-normcmp.h.
15115         (Depends-on): Remove uninorm/u8-normcmp.
15116
15117 2009-03-07  Bruno Haible  <bruno@clisp.org>
15118
15119         New module 'uninorm/u32-normcoll'.
15120         * lib/uninorm/u32-normcoll.c: New file.
15121         * modules/uninorm/u32-normcoll: New file.
15122
15123         New module 'uninorm/u16-normcoll'.
15124         * lib/uninorm/u16-normcoll.c: New file.
15125         * modules/uninorm/u16-normcoll: New file.
15126
15127         New module 'uninorm/u8-normcoll'.
15128         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15129         declarations.
15130         * lib/uninorm/u8-normcoll.c: New file.
15131         * lib/uninorm/u-normcoll.h: New file.
15132         * modules/uninorm/u8-normcoll: New file.
15133
15134         New module 'uninorm/u32-normxfrm'.
15135         * lib/uninorm/u32-normxfrm.c: New file.
15136         * modules/uninorm/u32-normxfrm: New file.
15137
15138         New module 'uninorm/u16-normxfrm'.
15139         * lib/uninorm/u16-normxfrm.c: New file.
15140         * modules/uninorm/u16-normxfrm: New file.
15141
15142         New module 'uninorm/u8-normxfrm'.
15143         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15144         declarations.
15145         * lib/uninorm/u8-normxfrm.c: New file.
15146         * lib/uninorm/u-normxfrm.h: New file.
15147         * modules/uninorm/u8-normxfrm: New file.
15148
15149 2009-03-07  Bruno Haible  <bruno@clisp.org>
15150
15151         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15152         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15153         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15154
15155 2009-03-07  Bruno Haible  <bruno@clisp.org>
15156
15157         New module 'memxfrm'.
15158         * lib/memxfrm.h: New file.
15159         * lib/memxfrm.c: New file.
15160         * modules/memxfrm: New file.
15161
15162 2009-03-07  Bruno Haible  <bruno@clisp.org>
15163
15164         New module 'memcmp2'.
15165         * lib/memcmp2.h: New file.
15166         * lib/memcmp2.c: New file.
15167         * modules/memcmp2: New file.
15168
15169 2009-03-07  Bruno Haible  <bruno@clisp.org>
15170
15171         Tests for module 'uninorm/decomposing-form'.
15172         * modules/uninorm/decomposing-form-tests: New file.
15173         * tests/uninorm/test-decomposing-form.c: New file.
15174
15175         New module 'uninorm/decomposing-form'.
15176         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15177         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15178         Add 'decomposing_variant' field.
15179         * lib/uninorm/decomposing-form.c: New file.
15180         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15181         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15182         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15183         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15184         * modules/uninorm/decomposing-form: New file.
15185         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15186         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15187
15188 2009-03-07  Bruno Haible  <bruno@clisp.org>
15189
15190         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15191         strings.
15192
15193 2009-03-06  Bruno Haible  <bruno@clisp.org>
15194
15195         Tests for module 'uninorm/u32-normcmp'.
15196         * tests/uninorm/test-u32-normcmp.c: New file.
15197         * modules/uninorm/u32-normcmp-tests: New file.
15198
15199         Tests for module 'uninorm/u16-normcmp'.
15200         * tests/uninorm/test-u16-normcmp.c: New file.
15201         * modules/uninorm/u16-normcmp-tests: New file.
15202
15203         Tests for module 'uninorm/u8-normcmp'.
15204         * tests/uninorm/test-u8-normcmp.c: New file.
15205         * modules/uninorm/u8-normcmp-tests: New file.
15206
15207         New module 'uninorm/u32-normcmp'.
15208         * lib/uninorm/u32-normcmp.c: New file.
15209         * modules/uninorm/u32-normcmp: New file.
15210
15211         New module 'uninorm/u16-normcmp'.
15212         * lib/uninorm/u16-normcmp.c: New file.
15213         * modules/uninorm/u16-normcmp: New file.
15214
15215         New module 'uninorm/u8-normcmp'.
15216         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15217         declarations.
15218         * lib/uninorm/u8-normcmp.c: New file.
15219         * lib/uninorm/u-normcmp.h: New file.
15220         * modules/uninorm/u8-normcmp: New file.
15221
15222 2009-03-06  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15225         Reported by Eric Blake.
15226
15227 2009-03-06  Eric Blake  <ebb9@byu.net>
15228             Bruno Haible  <bruno@clisp.org>
15229
15230         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15231         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15232         condition.
15233         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15234         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15235         condition.
15236         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15237
15238 2009-03-06  Eric Blake  <ebb9@byu.net>
15239
15240         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15241         to avoid compiler warnings.
15242         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15243
15244 2009-03-05  Bruno Haible  <bruno@clisp.org>
15245
15246         * tests/test-ftell.c (main): Disable test beyond end of file on
15247         FreeMiNT.
15248         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15249
15250 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15251
15252         * lib/filevercmp.c: Move hidden files up in ordering.
15253         * tests/test-filevercmp.c: Add tests for hidden files.
15254
15255 2009-03-04  Bruno Haible  <bruno@clisp.org>
15256
15257         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15258         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15259         AM_CFLAGS.
15260         Reported by Simon Josefsson.
15261
15262 2009-03-03  Bruno Haible  <bruno@clisp.org>
15263
15264         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15265         Reported by Simon Josefsson.
15266
15267         * doc/ld-version-script.texi: Update node reference.
15268
15269 2009-03-03  Bruno Haible  <bruno@clisp.org>
15270
15271         * modules/visibility (License): Change to 'unlimited'.
15272         Suggested by Simon Josefsson.
15273
15274 2009-03-03  Jim Meyering  <meyering@redhat.com>
15275
15276         unlinkdir: cannot_unlink_dir may modify process state
15277         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15278         it's neither thread-safe nor appropriate for use in a library.
15279
15280 2009-03-03  Eric Blake  <ebb9@byu.net>
15281
15282         test-closein: silence test under Darwin
15283         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15284         care if it dies from EPIPE or EBADF.
15285
15286 2009-03-03  Bruno Haible  <bruno@clisp.org>
15287
15288         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15289         earlier.
15290         * doc/visibility.texi: Fix @node and @section.
15291
15292 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15293
15294         * doc/gnulib.texi: Link to sections for ld version script and
15295         visibility.
15296         * doc/visibility.texi: Add @node and @section.
15297         * modules/ld-version-script: New module.
15298         * m4/ld-version-script.m4: New file.
15299         * doc/ld-version-script.texi: New file.
15300
15301 2009-03-02  David Lutterkort  <lutter@redhat.com>
15302
15303         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15305
15306 2009-03-02  Bruno Haible  <bruno@clisp.org>
15307
15308         * doc/visibility.texi: Mention libtool's -export-symbols option.
15309
15310 2009-03-02  Jim Meyering  <meyering@redhat.com>
15311
15312         announce-gen: new option: --no-print-checksums
15313         * build-aux/announce-gen (usage): Describe it.
15314         (print_checksums): Print a newline here, not in the [*] footnote.
15315         (main): Honor it.
15316
15317 2009-03-01  Bruno Haible  <bruno@clisp.org>
15318
15319         Use socklen_t in the native Windows replacements prototypes.
15320         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15321         instead of 'int'.
15322         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15323         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15324         * modules/getsockopt (Depends-on): Add socklen.
15325         * modules/setsockopt (Depends-on): Add socklen.
15326
15327 2009-03-01  Bruno Haible  <bruno@clisp.org>
15328
15329         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15330         least 4.2.
15331
15332 2009-03-01  Eric Blake  <ebb9@byu.net>
15333             Bruno Haible  <bruno@clisp.org>
15334
15335         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15336         error messages.
15337         * lib/wait-process.c (wait_subprocess): Omit error message about
15338         deadly signal sent to the child of termsigp != NULL.
15339
15340 2009-03-01  Eric Blake  <ebb9@byu.net>
15341
15342         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15343
15344 2009-03-01  Bruno Haible  <bruno@clisp.org>
15345
15346         Avoid a gcc warning.
15347         * tests/test-sched.c (b): Make global.
15348         Reported by Eric Blake.
15349
15350 2009-01-19  Martin Lambers  <marlam@marlam.de>
15351
15352         Provide POSIX semantics for socket timeout options on W32.
15353         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15354         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15355         * modules/setsockopt: Depend on sys_time module for struct timeval.
15356         * modules/getsockopt: Depend on sys_time module for struct timeval.
15357
15358 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15359
15360         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15361         __USE_GNU, for consistency with netdb.in.h.
15362         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15363
15364 2009-03-01  Bruno Haible  <bruno@clisp.org>
15365
15366         More support for FreeMiNT.
15367         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15368         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15369
15370 2009-03-01  Bruno Haible  <bruno@clisp.org>
15371
15372         More support for FreeMiNT.
15373         * lib/fpurge.c (fpurge): Correct last commit.
15374         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15375
15376 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15377
15378         Fix unportable awk script in vc-list-files.
15379         * build-aux/vc-list-files: In the replacement awk script, use
15380         substr with a second argument of 1, not zero.
15381         Report by Simon Josefsson.
15382
15383 2009-02-28  Bruno Haible  <bruno@clisp.org>
15384
15385         More support for FreeMiNT.
15386         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15387         to FreeMiNT today.
15388         * lib/fwriting.c (fwriting): Likewise.
15389         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15390
15391 2009-02-28  Bruno Haible  <bruno@clisp.org>
15392
15393         * tests/test-freadseek.c (main): Disable test beyond end of file on
15394         FreeMiNT.
15395         * tests/test-ftello.c (main): Likewise.
15396         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15397
15398 2009-02-28  Bruno Haible  <bruno@clisp.org>
15399
15400         Add tentative support for FreeMiNT.
15401         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15402         * lib/fpurge.c (fpurge): Likewise.
15403         * lib/freadable.c (freadable): Likewise.
15404         * lib/freading.c (freading): Likewise.
15405         * lib/freadptr.c (freadptr): Likewise.
15406         * lib/freadseek.c (freadptrinc): Likewise.
15407         * lib/fseeko.c (rpl_fseeko): Likewise.
15408         * lib/fseterr.c (fseterr): Likewise.
15409         * lib/fwritable.c (fwritable): Likewise.
15410         * lib/fwriting.c (fwriting): Likewise.
15411         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15412         Hourihane.
15413         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15414
15415 2009-02-28  Bruno Haible  <bruno@clisp.org>
15416
15417         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15418         SIGCHLD.
15419         Reported by Jim Meyering.
15420
15421 2009-02-28  Bruno Haible  <bruno@clisp.org>
15422
15423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15424         Mention the results of these tests on various platforms.
15425         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15426         order.
15427         * doc/posix-functions/printf.texi: Likewise.
15428         * doc/posix-functions/snprintf.texi: Likewise.
15429         * doc/posix-functions/sprintf.texi: Likewise.
15430         * doc/posix-functions/vfprintf.texi: Likewise.
15431         * doc/posix-functions/vprintf.texi: Likewise.
15432         * doc/posix-functions/vsnprintf.texi: Likewise.
15433         * doc/posix-functions/vsprintf.texi: Likewise.
15434         * doc/glibc-functions/obstack_printf.texi: Likewise.
15435         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15436
15437 2009-02-28  Bruno Haible  <bruno@clisp.org>
15438
15439         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15440         Reported by Loïc Minier <lool@dooz.org>.
15441
15442 2009-02-27  Bruno Haible  <bruno@clisp.org>
15443
15444         * gnulib-tool (func_import): Make the sed expression used to create the
15445         sed script for updating the .gitignore file POSIX compliant.
15446         Reported by Eric Blake.
15447
15448 2009-02-27  Bruno Haible  <bruno@clisp.org>
15449
15450         * gnulib-tool (sed): Don't alias as "sed --posix".
15451         Reported by Eric Blake.
15452
15453 2009-02-27  Bruno Haible  <bruno@clisp.org>
15454
15455         Avoid test link errors.
15456         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15457         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15458         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15459         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15461
15462 2009-02-27  Bruno Haible  <bruno@clisp.org>
15463
15464         Avoid spurious "(cached)" in configure output.
15465         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15467         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15468         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15469         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15470         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15471         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15472         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15473         Reported by Eric Blake.
15474
15475 2009-02-27  Eric Blake  <ebb9@byu.net>
15476
15477         printf: fix regression in previous patch
15478         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15479
15480 2009-02-27  Bruno Haible  <bruno@clisp.org>
15481
15482         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15483         value.
15484         * lib/stdint.in.h: Likewise.
15485         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15486
15487 2009-02-27  Eric Blake  <ebb9@byu.net>
15488
15489         doc: mention more functions added in cygwin 1.7.0
15490         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15491         addition.
15492         * doc/posix-functions/open_wmemstream.texi: Likewise.
15493         * doc/posix-functions/wcsnlen.texi: Likewise.
15494         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15495         * doc/posix-functions/wcstod.texi: Likewise.
15496         * doc/posix-functions/wcstof.texi: Likewise.
15497         * doc/posix-functions/wcstoimax.texi: Likewise.
15498         * doc/posix-functions/wcstok.texi: Likewise.
15499         * doc/posix-functions/wcstoumax.texi: Likewise.
15500
15501         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15503         * doc/posix-functions/fprintf.texi: Update.
15504         * doc/posix-functions/printf.texi: Update.
15505         * doc/posix-functions/snprintf.texi: Update.
15506         * doc/posix-functions/sprintf.texi: Update.
15507         * doc/posix-functions/vfprintf.texi: Update.
15508         * doc/posix-functions/vprintf.texi: Update.
15509         * doc/posix-functions/vsnprintf.texi: Update.
15510         * doc/posix-functions/vsprintf.texi: Update.
15511         * doc/glibc-functions/obstack_printf.texi: Update.
15512         * doc/glibc-functions/obstack_vprintf.texi: Update.
15513
15514 2009-02-26  Eric Blake  <ebb9@byu.net>
15515
15516         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15517         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15518         compilation bug by using runtime conversion.
15519         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15520         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15521         * modules/ceill-tests (Files): Use nan.h.
15522         * modules/floorl-tests (Files): Likewise.
15523         * modules/frexpl-tests (Files): Likewise.
15524         * modules/isnanl-tests (Files): Likewise.
15525         * modules/ldexpl-tests (Files): Likewise.
15526         * modules/roundl-tests (Files): Likewise.
15527         * modules/truncl-tests (Files): Likewise.
15528         * tests/test-ceill.c (main): Use a working NaN.
15529         * tests/test-floorl.c (main): Likewise.
15530         * tests/test-frexpl.c (main): Likewise.
15531         * tests/test-isnan.c (test_long_double): Likewise.
15532         * tests/test-isnanl.h (main): Likewise.
15533         * tests/test-ldexpl.h (main): Likewise.
15534         * tests/test-roundl.h (main): Likewise.
15535         * tests/test-truncl.h (main): Likewise.
15536         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15537
15538 2009-02-26  Eric Blake  <ebb9@byu.net>
15539             Bruno Haible  <bruno@clisp.org>
15540
15541         Work around a *printf bug with %ls on Solaris.
15542         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15543         precision is specified, sprintf stops converting the wide string
15544         argument when the number of bytes that have been produced by this
15545         conversion equals or exceeds the precision.
15546         * doc/posix-functions/fprintf.texi: Update.
15547         * doc/posix-functions/printf.texi: Update.
15548         * doc/posix-functions/snprintf.texi: Update.
15549         * doc/posix-functions/sprintf.texi: Update.
15550         * doc/posix-functions/vfprintf.texi: Update.
15551         * doc/posix-functions/vprintf.texi: Update.
15552         * doc/posix-functions/vsnprintf.texi: Update.
15553         * doc/posix-functions/vsprintf.texi: Update.
15554         * doc/glibc-functions/obstack_printf.texi: Update.
15555         * doc/glibc-functions/obstack_vprintf.texi: Update.
15556
15557 2009-02-26  Eric Blake  <ebb9@byu.net>
15558
15559         stdlib: favor compiler check of random.h
15560         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15561         to avoid an ObjC random.h installed by Swarm.
15562
15563 2009-02-26  Bruno Haible  <bruno@clisp.org>
15564
15565         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15566         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15567         Reported by Gary V. Vaughan <gary@gnu.org>.
15568
15569 2009-02-26  Bruno Haible  <bruno@clisp.org>
15570
15571         Fix *printf behaviour regarding the %ls directive.
15572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15573         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15574         NEED_PRINTF_DIRECTIVE_LS.
15575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15578         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15579         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15580         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15581         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15583         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15586         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15587         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15589         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15590         * doc/posix-functions/fprintf.texi: Update.
15591         * doc/posix-functions/printf.texi: Update.
15592         * doc/posix-functions/snprintf.texi: Update.
15593         * doc/posix-functions/sprintf.texi: Update.
15594         * doc/posix-functions/vfprintf.texi: Update.
15595         * doc/posix-functions/vprintf.texi: Update.
15596         * doc/posix-functions/vsnprintf.texi: Update.
15597         * doc/posix-functions/vsprintf.texi: Update.
15598         * doc/glibc-functions/obstack_printf.texi: Update.
15599         * doc/glibc-functions/obstack_vprintf.texi: Update.
15600         Reported by Eric Blake.
15601
15602 2009-02-25  Bruno Haible  <bruno@clisp.org>
15603
15604         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15605         with known value.
15606         Reported by Gary V. Vaughan <gary@gnu.org>.
15607
15608 2009-02-25  Bruno Haible  <bruno@clisp.org>
15609
15610         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15611         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15612         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15613         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15614         Reported by Gary V. Vaughan <gary@gnu.org>.
15615
15616 2009-02-25  Bruno Haible  <bruno@clisp.org>
15617
15618         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15619         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15620         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15621         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15622         Reported by Gary V. Vaughan <gary@gnu.org>.
15623
15624 2009-02-25  Eric Blake  <ebb9@byu.net>
15625
15626         tests: skip fseek/ftell tests if ungetc is broken
15627         * m4/ungetc.m4: New file.
15628         * modules/fseek-tests: Split test, so ungetc dependency is
15629         separate from rest of test.
15630         * modules/fseeko-tests: Likewise.
15631         * modules/ftell-tests: Likewise.
15632         * modules/ftello-tests: Likewise.
15633         * tests/test-fseek.c (main): Isolate ungetc dependency.
15634         * tests/test-fseeko.c (main): Likewise.
15635         * tests/test-ftell.c (main): Likewise.
15636         * tests/test-ftello.c (main): Likewise.
15637         * tests/test-fseek2.sh: New file.
15638         * tests/test-fseeko2.sh: Likewise.
15639         * tests/test-ftell2.sh: Likewise.
15640         * tests/test-ftello2.sh: Likewise.
15641
15642 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15643
15644         test-getaddrinfo: fix usage of skip return code 77
15645         * tests/test-gettaddrinfo.c: Return skip code 77 only
15646         for first occurance of skip (4x77 is not 77)
15647
15648 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15649
15650         strtod: avoid C99 decl-after-statement
15651         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15652
15653 2009-02-24  Eric Blake  <ebb9@byu.net>
15654
15655         strtod: detect HP-UX 11.31 bug
15656         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15657         Reported by Gary V. Vaughan.
15658
15659 2009-02-23  Bruno Haible  <bruno@clisp.org>
15660
15661         Fix invalid read past end of memory block.
15662         * lib/vasnprintf.c (DCHAR_SET): Define.
15663         (local_wcslen): Define only when needed.
15664         (local_strnlen, local_wcsnlen): New functions.
15665         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15666         directives that involve a conversion ourselves.
15667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15668         wcsnlen, mbrtowc, wcrtomb.
15669         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15670         * tests/test-vasprintf-posix.c (test_function): Likewise.
15671         * tests/test-snprintf-posix.h (test_function): Likewise.
15672         * tests/test-sprintf-posix.h (test_function): Likewise.
15673         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15674
15675 2009-02-22  Bruno Haible  <bruno@clisp.org>
15676
15677         Implement new clarified decomposition of Hangul syllables.
15678         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15679         of type LTV, return only a pairwise decomposition.
15680         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15681         Likewise.
15682         * tests/uninorm/test-decomposition.c (main): Updated expected result.
15683         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
15684         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
15685
15686 2009-02-22  Bruno Haible  <bruno@clisp.org>
15687
15688         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
15689         zero-length results and shrink excess allocated memory.
15690         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
15691         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
15692         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
15693         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
15694         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
15695         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
15696         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
15697         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
15698         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
15699         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
15700         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
15701         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
15702
15703 2009-02-21  Bruno Haible  <bruno@clisp.org>
15704
15705         * doc/gnulib.texi: Include safe-alloc.texi earlier.
15706         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
15707         spaces after a period. Put a space between a macro name and its
15708         argument list. Trivial rewordings.
15709         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
15710         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
15711         (main): Return 0 explicitly.
15712
15713 2009-02-21  Bruno Haible  <bruno@clisp.org>
15714
15715         Tests for module 'uninorm/filter'.
15716         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
15717         * modules/uninorm/filter-tests: New file.
15718
15719         New module 'uninorm/filter'.
15720         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
15721         uninorm_filter_flush, uninorm_filter_free): New declarations.
15722         * lib/uninorm/uninorm-filter.c: New file.
15723         * modules/uninorm/filter: New file.
15724
15725 2009-02-21  Bruno Haible  <bruno@clisp.org>
15726
15727         Tests for module 'uninorm/nfkc'.
15728         * tests/uninorm/test-nfkc.c: New file.
15729         * tests/uninorm/test-u8-nfkc.c: New file.
15730         * tests/uninorm/test-u16-nfkc.c: New file.
15731         * tests/uninorm/test-u32-nfkc.c: New file.
15732         * tests/uninorm/test-u32-nfkc-big.sh: New file.
15733         * tests/uninorm/test-u32-nfkc-big.c: New file.
15734         * modules/uninorm/nfkc-tests: New file.
15735
15736         New module 'uninorm/nfkc'.
15737         * lib/uninorm/nfkc.c: New file.
15738         * modules/uninorm/nfkc: New file.
15739
15740         Tests for module 'uninorm/nfkd'.
15741         * tests/uninorm/test-nfkd.c: New file.
15742         * tests/uninorm/test-u8-nfkd.c: New file.
15743         * tests/uninorm/test-u16-nfkd.c: New file.
15744         * tests/uninorm/test-u32-nfkd.c: New file.
15745         * tests/uninorm/test-u32-nfkd-big.sh: New file.
15746         * tests/uninorm/test-u32-nfkd-big.c: New file.
15747         * modules/uninorm/nfkd-tests: New file.
15748
15749         New module 'uninorm/nfkd'.
15750         * lib/uninorm/nfkd.c: New file.
15751         * modules/uninorm/nfkd: New file.
15752
15753         Tests for module 'uninorm/nfc'.
15754         * tests/uninorm/test-nfc.c: New file.
15755         * tests/uninorm/test-u8-nfc.c: New file.
15756         * tests/uninorm/test-u16-nfc.c: New file.
15757         * tests/uninorm/test-u32-nfc.c: New file.
15758         * tests/uninorm/test-u32-nfc-big.sh: New file.
15759         * tests/uninorm/test-u32-nfc-big.c: New file.
15760         * modules/uninorm/nfc-tests: New file.
15761
15762         New module 'uninorm/nfc'.
15763         * lib/uninorm/nfc.c: New file.
15764         * modules/uninorm/nfc: New file.
15765
15766         Tests for module 'uninorm/nfd'.
15767         * tests/uninorm/test-nfd.c: New file.
15768         * tests/uninorm/test-u8-nfd.c: New file.
15769         * tests/uninorm/test-u16-nfd.c: New file.
15770         * tests/uninorm/test-u32-nfd.c: New file.
15771         * tests/uninorm/test-u32-nfd-big.sh: New file.
15772         * tests/uninorm/test-u32-nfd-big.c: New file.
15773         * tests/uninorm/test-u32-normalize-big.h: New file.
15774         * tests/uninorm/test-u32-normalize-big.c: New file.
15775         * tests/uninorm/NormalizationTest.txt: New file, created from
15776         Unicode 5.1.0 NormalizationTest.txt.
15777         * modules/uninorm/nfd-tests: New file.
15778
15779         New module 'uninorm/nfd'.
15780         * lib/uninorm/nfd.c: New file.
15781         * modules/uninorm/nfd: New file.
15782
15783         New module 'uninorm/u32-normalize'.
15784         * lib/uninorm/u32-normalize.c: New file.
15785         * modules/uninorm/u32-normalize: New file.
15786
15787         New module 'uninorm/u16-normalize'.
15788         * lib/uninorm/u16-normalize.c: New file.
15789         * modules/uninorm/u16-normalize: New file.
15790
15791         New module 'uninorm/u8-normalize'.
15792         * lib/uninorm/u8-normalize.c: New file.
15793         * lib/uninorm/normalize-internal.h: New file.
15794         * lib/uninorm/u-normalize-internal.h: New file.
15795         * modules/uninorm/u8-normalize: New file.
15796
15797         New module 'uninorm/decompose-internal'.
15798         * lib/uninorm/decompose-internal.c: New file.
15799         * modules/uninorm/decompose-internal: New file.
15800
15801         Tests for module 'uninorm/composition'.
15802         * tests/uninorm/test-composition.c: New file.
15803         * modules/uninorm/composition-tests: New file.
15804
15805         New module 'uninorm/composition'.
15806         * lib/uninorm/composition.c: New file.
15807         * lib/uninorm/composition-table.gperf: New file, generated by
15808         gen-uni-tables.
15809         * modules/uninorm/composition: New file.
15810
15811         Tests for module 'uninorm/compat-decomposition'.
15812         * tests/uninorm/test-compat-decomposition.c: New file.
15813         * modules/uninorm/compat-decomposition-tests: New file.
15814
15815         New module 'uninorm/compat-decomposition'.
15816         * lib/uninorm/decompose-internal.h: New file.
15817         * lib/uninorm/compat-decomposition.c: New file.
15818         * modules/uninorm/compat-decomposition: New file.
15819
15820         Tests for module 'uninorm/canonical-decomposition'.
15821         * tests/uninorm/test-canonical-decomposition.c: New file.
15822         * modules/uninorm/canonical-decomposition-tests: New file.
15823
15824         New module 'uninorm/canonical-decomposition'.
15825         * lib/uninorm/canonical-decomposition.c: New file.
15826         * modules/uninorm/canonical-decomposition: New file.
15827
15828         Tests for module 'uninorm/decomposition'.
15829         * tests/uninorm/test-decomposition.c: New file.
15830         * modules/uninorm/decomposition-tests: New file.
15831
15832         New module 'uninorm/decomposition'.
15833         * lib/uninorm/decomposition.c: New file.
15834         * modules/uninorm/decomposition: New file.
15835
15836         New module 'uninorm/decomposition-table'.
15837         * lib/uninorm/decomposition-table.h: New file.
15838         * lib/uninorm/decomposition-table.c: New file.
15839         * lib/uninorm/decomposition-table1.h: New file, generated by
15840         gen-uni-tables.
15841         * lib/uninorm/decomposition-table2.h: New file, generated by
15842         gen-uni-tables.
15843         * modules/uninorm/decomposition-table: New file.
15844
15845         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
15846         (UC_DECOMP_*): New enumeration items.
15847         (get_decomposition): New function.
15848         (struct decomp_table): New type.
15849         (output_decomposition, output_decomposition_tables): New functions.
15850         (unicode_composition_exclusions): New variable.
15851         (fill_composition_exclusions, debug_output_composition_tables): New
15852         functions.
15853         (main): Accept one more argument. Invoke fill_composition_exclusions.
15854         Output decomposition and composition tables.
15855
15856         New module 'uninorm/base'.
15857         * lib/uninorm.h: New file.
15858         * lib/unictype.h: Update comment.
15859         * modules/uninorm/base: New file.
15860
15861 2009-02-21  David Lutterkort  <lutter@redhat.com>
15862
15863         Tests for module 'safe-alloc'.
15864         * tests/test-safe-alloc.c: New file.
15865         * modules/safe-alloc-tests: New file.
15866
15867         New module 'safe-alloc'.
15868         * lib/safe-alloc.h: New file.
15869         * lib/safe-alloc.c: New file.
15870         * m4/safe-alloc.m4: New file.
15871         * modules/safe-alloc: New file.
15872         * doc/safe-alloc.texi: New file.
15873         * doc/gnulib.texi: Include it.
15874         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
15875         safe-alloc.
15876
15877 2009-02-18  Bruno Haible  <bruno@clisp.org>
15878
15879         Fix link error on non-glibc systems.
15880         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
15881         variable.
15882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15883
15884 2009-02-18  Jim Meyering  <meyering@redhat.com>
15885
15886         fts: avoid used-uninitialized error due to recent change
15887         * lib/fts.c (fts_read): Guard uses of the new member,
15888         parent->fts_n_dirs_remaining, since it's not relevant for
15889         the parent of a directory specified on the command-line.
15890
15891 2009-02-17  James Youngman  <jay@gnu.org>
15892             Bruno Haible  <bruno@clisp.org>
15893
15894         * m4/include_next.m4: Reformulate comment.
15895
15896 2009-02-16  Jim Meyering  <meyering@redhat.com>
15897
15898         fts: add #if guards so that the fts_lgpl module still builds
15899         * lib/fts.c: Guard just-added hash-table-using parts with
15900         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
15901         Reported by Simon Josefsson.
15902
15903 2009-02-15  Bruno Haible  <bruno@clisp.org>
15904
15905         * modules/array-mergesort-tests: New file.
15906         * tests/test-array-mergesort.c: New file.
15907
15908         New module 'array-mergesort'.
15909         * modules/array-mergesort: New file.
15910         * lib/array-mergesort.h: New file.
15911
15912 2009-02-15  Bruno Haible  <bruno@clisp.org>
15913
15914         Fix 2009-02-07 commit.
15915         * lib/gen-uni-tables.c (output_predicate, output_category,
15916         output_combclass, output_bidi_category, output_decimal_digit,
15917         output_digit, output_numeric, output_mirror, output_scripts,
15918         output_ident_category, output_simple_mapping): Fix format directives.
15919         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
15920
15921 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
15922
15923         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
15924         fixes are available from IBM.
15925
15926 2009-02-13  Jim Meyering  <meyering@redhat.com>
15927
15928         fts: arrange not to stat non-directories in more cases
15929         This makes GNU find (when it doesn't need to stat each file)
15930         *much* more efficient at traversing reiserfs file systems.
15931         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
15932         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
15933         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
15934         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
15935         (leaf_optimization_applies): New function.
15936         (LCO_hash, LCO_compare): New helper functions.
15937         (link_count_optimize_ok): New function.
15938         (fts_stat): Initialize new member (if dir).
15939         (fts_read): Decrement parent's fts_n_dirs_remaining count if
15940         we've just stat'ed a directory.  Skip the stat call when possible.
15941         ---
15942         Note this AFS-related exchange:
15943         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
15944         and note find's pioctl call in find/fstype.c.
15945         But that is necessary only if you want to enable the
15946         optimization for AFS, and for now, I don't.
15947
15948         fts: move a function definition "up" (no semantic change)
15949         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
15950         "up" to precede upcoming use of a related function.
15951
15952 2009-02-11  Jim Meyering  <meyering@redhat.com>
15953
15954         fts: correct internal computation of nlinks (optimization-related)
15955         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
15956         whether the current entry is a directory, so don't test it.
15957
15958 2009-02-10  Bruno Haible  <bruno@clisp.org>
15959
15960         Tests for module 'uniwbrk/ulc-wordbreaks'.
15961         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
15962         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
15963         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
15964
15965         Tests for module 'uniwbrk/u32-wordbreaks'.
15966         * modules/uniwbrk/u32-wordbreaks-tests: New file.
15967         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
15968
15969         Tests for module 'uniwbrk/u16-wordbreaks'.
15970         * modules/uniwbrk/u16-wordbreaks-tests: New file.
15971         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
15972
15973         Tests for module 'uniwbrk/u8-wordbreaks'.
15974         * modules/uniwbrk/u8-wordbreaks-tests: New file.
15975         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
15976
15977 2009-02-10  Bruno Haible  <bruno@clisp.org>
15978
15979         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
15980         property.
15981         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
15982         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
15983         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
15984
15985 2009-02-10  Simon Josefsson  <simon@josefsson.org>
15986
15987         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
15988         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
15989
15990 2009-02-10  Bruno Haible  <bruno@clisp.org>
15991
15992         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
15993         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
15994         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
15995         * lib/unilbrk/u8-possible-linebreaks.c: Update.
15996         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
15997         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
15998
15999 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16000
16001         * lib/sockets.h (gl_fd_to_handle): New function.
16002
16003         * tests/test-sockets.c: Call gl_fd_to_handle.
16004
16005 2009-02-09  Bruno Haible  <bruno@clisp.org>
16006
16007         * doc/havelib.texi: Document the conventions on bi-arch systems.
16008
16009 2009-02-08  Bruno Haible  <bruno@clisp.org>
16010
16011         Document the AC_LIB_LINKFLAGS macro.
16012         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16013         * doc/gnulib.texi: Include it.
16014
16015 2009-02-08  Bruno Haible  <bruno@clisp.org>
16016
16017         Fix wrong order of sections, compared to TOC.
16018         * doc/gnulib.texi: Include relocatable-maint.texi after the
16019         "Regular expressions" node, not before.
16020
16021 2009-02-08  Bruno Haible  <bruno@clisp.org>
16022
16023         Tests for module 'unicase/totitle'.
16024         * modules/unicase/totitle-tests: New file.
16025
16026         Tests for module 'unicase/tolower'.
16027         * modules/unicase/tolower-tests: New file.
16028
16029         Tests for module 'unicase/toupper'.
16030         * modules/unicase/toupper-tests: New file.
16031         * tests/unicase/test-mapping-part1.h: New file.
16032         * tests/unicase/test-mapping-part2.h: New file.
16033
16034         New module 'unicase/totitle'.
16035         * modules/unicase/totitle: New file.
16036         * lib/unicase/totitle.c: New file.
16037
16038         New module 'unicase/tolower'.
16039         * modules/unicase/tolower: New file.
16040         * lib/unicase/tolower.c: New file.
16041
16042         New module 'unicase/toupper'.
16043         * modules/unicase/toupper: New file.
16044         * lib/unicase/toupper.c: New file.
16045         * lib/unicase/simple-mapping.h: New file.
16046
16047         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16048         (mapping_table): New structure.
16049         (output_simple_mapping): New function.
16050         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16051         * modules/gen-uni-tables (Description): Update.
16052         * lib/unicase/toupper.h: New file, automatically generated by
16053         gen-uni-tables.
16054         * lib/unicase/tolower.h: New file, automatically generated by
16055         gen-uni-tables.
16056         * lib/unicase/totitle.h: New file, automatically generated by
16057         gen-uni-tables.
16058         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16059         gen-uni-tables.
16060         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16061         gen-uni-tables.
16062         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16063         gen-uni-tables.
16064
16065         New module 'unicase/base'.
16066         * modules/unicase/base: New file.
16067         * lib/unicase.h: New file.
16068
16069 2009-02-08  Bruno Haible  <bruno@clisp.org>
16070
16071         New module 'uniwbrk/ulc-wordbreaks'.
16072         * modules/uniwbrk/ulc-wordbreaks: New file.
16073         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16074
16075         New module 'uniwbrk/u32-wordbreaks'.
16076         * modules/uniwbrk/u32-wordbreaks: New file.
16077         * lib/uniwbrk/u32-wordbreaks.c: New file.
16078
16079         New module 'uniwbrk/u16-wordbreaks'.
16080         * modules/uniwbrk/u16-wordbreaks: New file.
16081         * lib/uniwbrk/u16-wordbreaks.c: New file.
16082
16083         New module 'uniwbrk/u8-wordbreaks'.
16084         * modules/uniwbrk/u8-wordbreaks: New file.
16085         * lib/uniwbrk/u8-wordbreaks.c: New file.
16086         * lib/uniwbrk/u-wordbreaks.h: New file.
16087
16088         New module 'uniwbrk/table'.
16089         * modules/uniwbrk/table: New file.
16090         * lib/uniwbrk/wbrktable.h: New file.
16091         * lib/uniwbrk/wbrktable.c: New file.
16092
16093         New module 'uniwbrk/wordbreak-property'.
16094         * modules/uniwbrk/wordbreak-property: New file.
16095         * lib/uniwbrk/wordbreak-property.c: New file.
16096
16097         * lib/gen-uni-tables.c (WBP_*): New enum items.
16098         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16099         (unicode_org_wbp): New variable.
16100         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16101         New functions.
16102         (wbp_table): New structure.
16103         (output_wbp, output_wbrk_tables): New functions.
16104         (main): Accept additional argument. Invoke fill_org_wbp,
16105         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16106         output_wbrk_tables.
16107         * modules/gen-uni-tables (Description): Update.
16108         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16109         gen-uni-tables.
16110
16111         New module 'uniwbrk/base'.
16112         * modules/uniwbrk/base: New file.
16113         * lib/uniwbrk.h: New file.
16114
16115 2009-02-08  Bruno Haible  <bruno@clisp.org>
16116
16117         Update to Unicode 5.1.0.
16118         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16119         U+2185..U+2188.
16120         (is_property_default_ignorable_code_point): Don't include characters
16121         of category Cc or Cs and not-a-characters.
16122         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16123         U+0D79, U+109E, U+109F, U+A60C.
16124         * lib/unictype/bidi_of.h: Regenerated.
16125         * lib/unictype/blocks.h: Regenerated.
16126         * lib/unictype/categ_C.h: Regenerated.
16127         * lib/unictype/categ_Cf.h: Regenerated.
16128         * lib/unictype/categ_Cn.h: Regenerated.
16129         * lib/unictype/categ_L.h: Regenerated.
16130         * lib/unictype/categ_Ll.h: Regenerated.
16131         * lib/unictype/categ_Lm.h: Regenerated.
16132         * lib/unictype/categ_Lo.h: Regenerated.
16133         * lib/unictype/categ_Lu.h: Regenerated.
16134         * lib/unictype/categ_M.h: Regenerated.
16135         * lib/unictype/categ_Mc.h: Regenerated.
16136         * lib/unictype/categ_Me.h: Regenerated.
16137         * lib/unictype/categ_Mn.h: Regenerated.
16138         * lib/unictype/categ_N.h: Regenerated.
16139         * lib/unictype/categ_Nd.h: Regenerated.
16140         * lib/unictype/categ_Nl.h: Regenerated.
16141         * lib/unictype/categ_No.h: Regenerated.
16142         * lib/unictype/categ_P.h: Regenerated.
16143         * lib/unictype/categ_Pd.h: Regenerated.
16144         * lib/unictype/categ_Pe.h: Regenerated.
16145         * lib/unictype/categ_Pf.h: Regenerated.
16146         * lib/unictype/categ_Pi.h: Regenerated.
16147         * lib/unictype/categ_Po.h: Regenerated.
16148         * lib/unictype/categ_Ps.h: Regenerated.
16149         * lib/unictype/categ_S.h: Regenerated.
16150         * lib/unictype/categ_Sk.h: Regenerated.
16151         * lib/unictype/categ_Sm.h: Regenerated.
16152         * lib/unictype/categ_So.h: Regenerated.
16153         * lib/unictype/categ_of.h: Regenerated.
16154         * lib/unictype/combining.h: Regenerated.
16155         * lib/unictype/ctype_alnum.h: Regenerated.
16156         * lib/unictype/ctype_alpha.h: Regenerated.
16157         * lib/unictype/ctype_graph.h: Regenerated.
16158         * lib/unictype/ctype_lower.h: Regenerated.
16159         * lib/unictype/ctype_print.h: Regenerated.
16160         * lib/unictype/ctype_punct.h: Regenerated.
16161         * lib/unictype/ctype_upper.h: Regenerated.
16162         * lib/unictype/decdigit.h: Regenerated.
16163         * lib/unictype/digit.h: Regenerated.
16164         * lib/unictype/mirror.h: Regenerated.
16165         * lib/unictype/numeric.h: Regenerated.
16166         * lib/unictype/pr_alphabetic.h: Regenerated.
16167         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16168         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16169         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16170         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16171         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16172         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16173         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16174         * lib/unictype/pr_combining.h: Regenerated.
16175         * lib/unictype/pr_dash.h: Regenerated.
16176         * lib/unictype/pr_decimal_digit.h: Regenerated.
16177         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16178         * lib/unictype/pr_deprecated.h: Regenerated.
16179         * lib/unictype/pr_diacritic.h: Regenerated.
16180         * lib/unictype/pr_extender.h: Regenerated.
16181         * lib/unictype/pr_format_control.h: Regenerated.
16182         * lib/unictype/pr_grapheme_base.h: Regenerated.
16183         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16184         * lib/unictype/pr_grapheme_link.h: Regenerated.
16185         * lib/unictype/pr_id_continue.h: Regenerated.
16186         * lib/unictype/pr_id_start.h: Regenerated.
16187         * lib/unictype/pr_ideographic.h: Regenerated.
16188         * lib/unictype/pr_ignorable_control.h: Regenerated.
16189         * lib/unictype/pr_lowercase.h: Regenerated.
16190         * lib/unictype/pr_math.h: Regenerated.
16191         * lib/unictype/pr_numeric.h: Regenerated.
16192         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16193         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16194         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16195         * lib/unictype/pr_other_id_continue.h: Regenerated.
16196         * lib/unictype/pr_other_lowercase.h: Regenerated.
16197         * lib/unictype/pr_other_math.h: Regenerated.
16198         * lib/unictype/pr_punctuation.h: Regenerated.
16199         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16200         * lib/unictype/pr_soft_dotted.h: Regenerated.
16201         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16202         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16203         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16204         * lib/unictype/pr_uppercase.h: Regenerated.
16205         * lib/unictype/pr_xid_continue.h: Regenerated.
16206         * lib/unictype/pr_xid_start.h: Regenerated.
16207         * lib/unictype/pr_zero_width.h: Regenerated.
16208         * lib/unictype/scripts.h: Regenerated.
16209         * lib/unictype/scripts_byname.gperf: Regenerated.
16210         * lib/unictype/sy_java_ident.h: Regenerated.
16211         * lib/unilbrk/lbrkprop1.h: Regenerated.
16212         * lib/unilbrk/lbrkprop2.h: Regenerated.
16213         * tests/unictype/test-categ_C.c: Regenerated.
16214         * tests/unictype/test-categ_Cf.c: Regenerated.
16215         * tests/unictype/test-categ_Cn.c: Regenerated.
16216         * tests/unictype/test-categ_L.c: Regenerated.
16217         * tests/unictype/test-categ_Ll.c: Regenerated.
16218         * tests/unictype/test-categ_Lm.c: Regenerated.
16219         * tests/unictype/test-categ_Lo.c: Regenerated.
16220         * tests/unictype/test-categ_Lu.c: Regenerated.
16221         * tests/unictype/test-categ_M.c: Regenerated.
16222         * tests/unictype/test-categ_Mc.c: Regenerated.
16223         * tests/unictype/test-categ_Me.c: Regenerated.
16224         * tests/unictype/test-categ_Mn.c: Regenerated.
16225         * tests/unictype/test-categ_N.c: Regenerated.
16226         * tests/unictype/test-categ_Nd.c: Regenerated.
16227         * tests/unictype/test-categ_Nl.c: Regenerated.
16228         * tests/unictype/test-categ_No.c: Regenerated.
16229         * tests/unictype/test-categ_P.c: Regenerated.
16230         * tests/unictype/test-categ_Pd.c: Regenerated.
16231         * tests/unictype/test-categ_Pe.c: Regenerated.
16232         * tests/unictype/test-categ_Pf.c: Regenerated.
16233         * tests/unictype/test-categ_Pi.c: Regenerated.
16234         * tests/unictype/test-categ_Po.c: Regenerated.
16235         * tests/unictype/test-categ_Ps.c: Regenerated.
16236         * tests/unictype/test-categ_S.c: Regenerated.
16237         * tests/unictype/test-categ_Sk.c: Regenerated.
16238         * tests/unictype/test-categ_Sm.c: Regenerated.
16239         * tests/unictype/test-categ_So.c: Regenerated.
16240         * tests/unictype/test-ctype_alnum.c: Regenerated.
16241         * tests/unictype/test-ctype_alpha.c: Regenerated.
16242         * tests/unictype/test-ctype_graph.c: Regenerated.
16243         * tests/unictype/test-ctype_lower.c: Regenerated.
16244         * tests/unictype/test-ctype_print.c: Regenerated.
16245         * tests/unictype/test-ctype_punct.c: Regenerated.
16246         * tests/unictype/test-ctype_upper.c: Regenerated.
16247         * tests/unictype/test-decdigit.h: Regenerated.
16248         * tests/unictype/test-digit.h: Regenerated.
16249         * tests/unictype/test-numeric.h: Regenerated.
16250         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16251         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16252         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16253         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16254         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16255         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16256         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16257         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16258         * tests/unictype/test-pr_combining.c: Regenerated.
16259         * tests/unictype/test-pr_dash.c: Regenerated.
16260         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16261         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16262         * tests/unictype/test-pr_deprecated.c: Regenerated.
16263         * tests/unictype/test-pr_diacritic.c: Regenerated.
16264         * tests/unictype/test-pr_extender.c: Regenerated.
16265         * tests/unictype/test-pr_format_control.c: Regenerated.
16266         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16267         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16268         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16269         * tests/unictype/test-pr_id_continue.c: Regenerated.
16270         * tests/unictype/test-pr_id_start.c: Regenerated.
16271         * tests/unictype/test-pr_ideographic.c: Regenerated.
16272         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16273         * tests/unictype/test-pr_lowercase.c: Regenerated.
16274         * tests/unictype/test-pr_math.c: Regenerated.
16275         * tests/unictype/test-pr_numeric.c: Regenerated.
16276         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16277         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16278         Regenerated.
16279         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16280         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16281         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16282         * tests/unictype/test-pr_other_math.c: Regenerated.
16283         * tests/unictype/test-pr_punctuation.c: Regenerated.
16284         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16285         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16286         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16287         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16288         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16289         * tests/unictype/test-pr_uppercase.c: Regenerated.
16290         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16291         * tests/unictype/test-pr_xid_start.c: Regenerated.
16292         * tests/unictype/test-pr_zero_width.c: Regenerated.
16293
16294         Update to Unicode 5.1.0.
16295         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16296         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16297         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16298         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16299         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16300         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16301         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16302         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16303         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16304         (nonspacing_table_ind): Update.
16305         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16306
16307         Update to Unicode 5.1.0.
16308         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16309         code transform.
16310         * lib/uniname/uniname.c (unicode_character_name,
16311         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16312         * lib/uniname/uninames.h: Regenerated.
16313         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16314
16315 2009-02-07  Bruno Haible  <bruno@clisp.org>
16316
16317         Merge gen-ctype and gen-lbrk into a single program.
16318         * lib/gen-uni-tables.c: New file, incorporating
16319         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16320         Add directory prefixes to the names of the generated files.
16321         * lib/unictype/gen-ctype.c: Remove file.
16322         * lib/unilbrk/gen-lbrk.c: Remove file.
16323         * modules/gen-uni-tables: New file.
16324         * modules/unictype/gen-ctype: Remove file.
16325         * modules/unilbrk/gen-lbrk: Remove file.
16326
16327 2009-02-07  Bruno Haible  <bruno@clisp.org>
16328
16329         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16330
16331         New module 'unistr/u32-strcoll'.
16332         * modules/unistr/u32-strcoll: New file.
16333         * lib/unistr/u32-strcoll.c: New file.
16334
16335         New module 'unistr/u16-strcoll'.
16336         * modules/unistr/u16-strcoll: New file.
16337         * lib/unistr/u16-strcoll.c: New file.
16338
16339         New module 'unistr/u8-strcoll'.
16340         * modules/unistr/u8-strcoll: New file.
16341         * lib/unistr/u8-strcoll.c: New file.
16342         * lib/unistr/u-strcoll.h: New file.
16343
16344 2009-02-07  Bruno Haible  <bruno@clisp.org>
16345
16346         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16347         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16348         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16349         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16350         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16351         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16352
16353 2009-02-07  Bruno Haible  <bruno@clisp.org>
16354
16355         Make 64-bit clean.
16356         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16357         output_combclass, output_bidi_category, output_decimal_digit,
16358         output_digit, output_numeric, output_mirror, output_scripts,
16359         output_ident_category): Use proper width specifier in format strings.
16360
16361 2009-02-07  Bruno Haible  <bruno@clisp.org>
16362
16363         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16364         failure behaviour.
16365
16366 2009-02-07  Jim Meyering  <meyering@redhat.com>
16367
16368         regex: avoid compilation failure with upcoming gcc-4.4
16369         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16370         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16371         "... error: integer overflow in preprocessor expression".
16372
16373 2009-02-05  Ben Pfaff  <blp@gnu.org>
16374
16375         Fix link errors on Windows when close module is used.
16376         * modules/close: Add $(LIB_CLOSE) to Link section.
16377         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16378         $(LIB_CLOSE) on Windows.
16379
16380 2009-02-05  Jim Meyering  <meyering@redhat.com>
16381
16382         still avoid unused-parameter warnings, but do it cleanly
16383         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16384         (get_fs_usage): Cast to void instead.
16385         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16386         (dev_from_mount_options, read_file_system_list): Cast to void.
16387         Prompted by Bruno Haible.
16388
16389 2009-02-04  Jim Meyering  <meyering@redhat.com>
16390
16391         fsusage.c: correct copyright year
16392         * lib/fsusage.c: Reflect year in which the change is pushed into
16393
16394         avoid misc. warnings
16395         * lib/fsusage.c (UNUSED_PARAM): Define.
16396         (get_fs_usage): Mark parameter "disk" as unused.
16397         * lib/getugroups.c (getgrent): Use "void" in prototype.
16398         * lib/mountlist.c: Mark unused parameters.
16399         (read_file_system_list): Declare a local with "const".
16400         * lib/nanosleep.c (getnow): Declare static.
16401         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16402
16403         dirfd: set errno upon failure
16404         * lib/dirfd.c: Include <errno.h>.
16405         Set errno to ENOTSUP when returning -1.
16406         * modules/dirfd (Depends-on): Add errno.
16407         Suggested by John Kodis <kodis@comcast.net>.
16408
16409 2009-02-01  Bruno Haible  <bruno@clisp.org>
16410
16411         Don't assume sizeof (long) >= sizeof (void *).
16412         * lib/memcmp.c: Include stdint.h.
16413         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16414         srcp2 to 'const byte *'.
16415         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16416         types to uintptr_t.
16417         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16418         * modules/memcmp (Depends-on): Add stdint.
16419         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16420
16421 2009-01-30  Eric Blake  <ebb9@byu.net>
16422
16423         fix more require-before-expand issues
16424         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16425         expand, AC_PROG_AWK.
16426         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16427
16428 2009-01-28  Eric Blake  <ebb9@byu.net>
16429
16430         version-etc: use consistent URL formatting
16431         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16432         Improve formatting.  Use fputs for string without %.
16433
16434 2009-01-28  Jim Meyering  <meyering@redhat.com>
16435
16436         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16437         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16438         "underquoted definition of NAME" from autoconf-2.59.
16439
16440 2009-01-28  Bruno Haible  <bruno@clisp.org>
16441
16442         * doc/gnulib.texi: Add "Obsolete modules" to index.
16443
16444 2009-01-28  Jim Meyering  <meyering@redhat.com>
16445
16446         useless-if-before-free: recognize more variants
16447         * build-aux/useless-if-before-free: Also recognize e.g.,
16448         if (NULL != p) free (p);
16449
16450 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16451
16452         test-getaddrinfo: skip (don't fail) this test when there's no network
16453         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16454         on the presumption that it means you lack network access.
16455
16456 2009-01-26  Jim Meyering  <meyering@redhat.com>
16457
16458         fflush: avoid warnings on modern systems
16459         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16460         pos and result, into scopes where they're used.
16461
16462 2009-01-26  Eric Blake  <ebb9@byu.net>
16463
16464         Silence warning reintroduced by recent extensions patch.
16465         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16466         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16467         autoconf.
16468
16469         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16470         * m4/00gnulib.m4: New file.
16471         * gnulib-tool (func_get_filelist): Always use it.
16472         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16473         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16474
16475 2009-01-25  Bruno Haible  <bruno@clisp.org>
16476
16477         Make test-quotearg work on MacOS X and AIX.
16478         * tests/test-quotearg.sh: New file.
16479         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16480         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16481         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16482         include <libintl.h>.
16483         (fake_locale): Remove variable.
16484         (gettext, dgettext, dcgettext): Remove functions.
16485         (main): Instead of setting a fake locale, set a real locale. Call
16486         textdomain and bindtextdomain.
16487         * modules/quotearg-tests (Files): Add the new files.
16488         (Depends-on): Add gettext, setenv, unsetenv.
16489         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16490         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16491         Augment TESTS_ENVIRONMENT.
16492
16493 2009-01-25  Bruno Haible  <bruno@clisp.org>
16494
16495         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16496         fr_FR.ISO8859-1 locale on MacOS X.
16497         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16498         ja_JP.eucJP locale on MacOS X.
16499         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16500         zh_CN.GB18030 locale on MacOS X.
16501
16502 2009-01-25  Bruno Haible  <bruno@clisp.org>
16503
16504         Avoid link errors on MacOS X 10.3.
16505         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16506         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16507
16508 2009-01-25  Bruno Haible  <bruno@clisp.org>
16509
16510         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16511         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16512         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16513         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16514         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16515         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16516         posix_spawnattr_init, posix_spawnattr_setsigmask,
16517         posix_spawnattr_setflags, posix_spawnattr_destroy.
16518
16519         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16520         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16521         * modules/execute (Files): Remove m4/posix_spawn.m4.
16522         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16523         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16524         posix_spawnattr_init, posix_spawnattr_setsigmask,
16525         posix_spawnattr_setflags, posix_spawnattr_destroy.
16526
16527 2009-01-25  Bruno Haible  <bruno@clisp.org>
16528
16529         * lib/glthread/threadlib.c: Include <stdlib.h>.
16530
16531 2009-01-25  Bruno Haible  <bruno@clisp.org>
16532
16533         * lib/glthread/threadlib.c (dummy): New declaration.
16534
16535 2009-01-25  Bruno Haible  <bruno@clisp.org>
16536
16537         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16538         multibyte characters also for the GB18030 encoding. Don't crash when
16539         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16540
16541 2009-01-25  Bruno Haible  <bruno@clisp.org>
16542
16543         Avoid redefining 'struct random_data' on OSF/1 5.1.
16544         * lib/stdlib.in.h: Include <random.h> if it exists.
16545         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16546         HAVE_RANDOM_H. Include <random.h> when testing whether
16547         'struct random_data' exists.
16548         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16549
16550 2009-01-25  Bruno Haible  <bruno@clisp.org>
16551
16552         Don't install charset.alias on MacOS X >= 10.3.
16553         * lib/localcharset.c (DARWIN7): New macro.
16554         (get_charset_aliases): Hardcode the result for Darwin7.
16555         * modules/localcharset (install-exec-local): Don't install
16556         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16557
16558 2009-01-25  Bruno Haible  <bruno@clisp.org>
16559
16560         Don't install charset.alias on mingw and Cygwin.
16561         * modules/localcharset (install-exec-local): Don't install
16562         charset.alias on mingw and Cygwin, if the file does not yet exist.
16563         The result for these platforms is hardcoded in localcharset.c.
16564
16565 2009-01-25  Bruno Haible  <bruno@clisp.org>
16566
16567         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16568         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16569         before requiring AC_USE_SYSTEM_EXTENSIONS.
16570
16571 2009-01-25  Jim Meyering  <meyering@redhat.com>
16572
16573         c-strtod: avoid warnings
16574         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16575         "assignment discards qualifiers from pointer target type" warnings.
16576
16577 2009-01-24  Bruno Haible  <bruno@clisp.org>
16578
16579         Add support for non-UTF-8 locales on MacOS X.
16580         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16581         canonical encodings. For Darwin 7 and newer, don't map traditional
16582         encodings to UTF-8.
16583         Reported by Vincent Lefevre <vincent@vinc17.org>
16584         at <http://savannah.gnu.org/bugs/?25235>.
16585
16586 2009-01-24  Bruno Haible  <bruno@clisp.org>
16587
16588         * doc/gnulib.texi (Obsolete modules): New section.
16589         Reported by Mike Frysinger <vapier@gentoo.org>.
16590
16591 2009-01-24  Bruno Haible  <bruno@clisp.org>
16592
16593         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16594         (%.dvi): New rule.
16595
16596 2009-01-24  Bruno Haible  <bruno@clisp.org>
16597
16598         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16599         Reported by Eric Blake.
16600
16601 2009-01-24  Bruno Haible  <bruno@clisp.org>
16602
16603         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16604         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16605         Reported by Gary V. Vaughan <gary@gnu.org>.
16606
16607 2009-01-24  Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16610
16611 2009-01-23  Bruno Haible  <bruno@clisp.org>
16612
16613         Make c-strtod, c-strtold usable in libraries.
16614         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16615         (C_STRTOD): Call strdup instead of xstrdup.
16616         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16617         * modules/c-strtold (Depends-on): Likewise.
16618         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16619         * NEWS: Mention the change.
16620         Reported by Michael Gold <mgold@ncf.ca>.
16621
16622 2009-01-23  Jim Meyering  <meyering@redhat.com>
16623
16624         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16625         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16626         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16627
16628 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16629
16630         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16631         GNU CoreUtils.
16632         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16633         * modules/version-etc (Description): Update.
16634
16635 2009-01-22  Bruno Haible  <bruno@clisp.org>
16636
16637         Cache the C locale object.
16638         * lib/c-strtod.c (c_locale_cache): New variable.
16639         (c_locale): New function.
16640         (C_STRTOD): Use it, and don't call freelocale.
16641         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16642         Suggested by Paolo Bonzini.
16643
16644 2009-01-21  Bruno Haible  <bruno@clisp.org>
16645
16646         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16647         conditions other than overflow.
16648
16649 2009-01-21  Bruno Haible  <bruno@clisp.org>
16650
16651         * lib/c-strtod.c: Include errno.h.
16652         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16653         value from STRTOD_L and STRTOD.
16654
16655 2009-01-21  Bruno Haible  <bruno@clisp.org>
16656         and Jim Meyering  <meyering@redhat.com>
16657
16658         nanosleep: skip configure test (fail it) for apple universal builds
16659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16660         universal builds, assume that nanosleep does not work.
16661         * modules/nanosleep (Depends-on): Add multiarch.
16662
16663         mktime: skip configure test (fail it) for apple universal builds
16664         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16665         universal builds, assume that mktime does not work.
16666         * modules/mktime (Depends-on): Add multiarch.
16667
16668 2009-01-21  Eric Blake  <ebb9@byu.net>
16669
16670         multiarch: avoid expand-before-require warning
16671         * modules/multiarch (configure.ac): Require, rather than expand,
16672         gl_MULTIARCH.
16673         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16674         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16675         enforce that all clients require it.  Partial reversion of
16676         2008-12-29 patch.
16677
16678         error: avoid expand-before-require warning
16679         * modules/errno (configure.ac): Require, rather than expand,
16680         gl_HEADER_ERRNO_H.
16681         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
16682         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
16683         enforce that all clients require it.
16684
16685         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
16686         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
16687         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
16688         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
16689
16690 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
16691
16692         Revert:
16693         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16694
16695         regex: do not depend on obsolete modules.
16696         * modules/regex: Remove memcmp and memmove.
16697
16698 2009-01-20  Bruno Haible  <bruno@clisp.org>
16699
16700         Make the 'link' module link on Windows NT 4.
16701         * lib/link.c (_WIN32_WINNT): Don't define.
16702         (CreateHardLinkFuncType): New type.
16703         (CreateHardLinkFunc, initialized): New variables.
16704         (initialize): New function.
16705         (link): Invoke CreateHardLink indirectly through the function pointer.
16706
16707 2009-01-20  Bruno Haible  <bruno@clisp.org>
16708
16709         Fix compilation failure on mingw.
16710         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
16711
16712 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
16713
16714         * doc/c-strtod.texi: Mention a couple of restrictions.
16715
16716 2009-01-20  Jim Meyering  <meyering@redhat.com>
16717
16718         gettimeofday: move more declarations out of functions
16719         * lib/gettimeofday.c: Move extern declarations of tzset and
16720         gmtime out of containing functions.  Prompted by Bruno Haible.
16721
16722 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
16723
16724         regex: do not depend on obsolete modules.
16725         * modules/regex: Remove memcmp and memmove.
16726
16727 2009-01-19  Bruno Haible  <bruno@clisp.org>
16728
16729         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16730         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
16731         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16732         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
16733         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
16734
16735 2009-01-19  Bruno Haible  <bruno@clisp.org>
16736
16737         * tests/test-link.c: Include <errno.h>.
16738         (main): Exit with code 77 when a hard link cannot be created due to
16739         the file system.
16740         * tests/test-link.sh: Skip test when a hard link cannot be created due
16741         to the file system.
16742         Suggested by Eric Blake.
16743
16744 2009-01-19  Martin Lambers  <marlam@marlam.de>
16745
16746         * modules/link-tests: New file.
16747         * tests/test-link.sh: New file.
16748         * tests/test-link.c: New file.
16749
16750 2009-01-19  Eric Blake  <ebb9@byu.net>
16751
16752         doc: mention another function added in cygwin 1.7.0
16753         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
16754         Another new function in cygwin 1.7.
16755
16756 2009-01-19  Bruno Haible  <bruno@clisp.org>
16757
16758         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
16759         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
16760         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
16761         gl_BIGENDIAN, not AC_C_BIGENDIAN.
16762         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16763         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16764         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16765         * m4/md4.m4 (gl_MD4): Likewise.
16766         * m4/md5.m4 (gl_MD5): Likewise.
16767         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
16768         * m4/sha1.m4 (gl_SHA1): Likewise.
16769         * m4/sha256.m4 (gl_SHA256): Likewise.
16770         * m4/sha512.m4 (gl_SHA512): Likewise.
16771
16772 2009-01-19  Bruno Haible  <bruno@clisp.org>
16773
16774         * modules/uniname/uniname-tests (Depends-on): Add progname.
16775         * tests/uniname/test-uninames.c: Include progname.h.
16776         (main): Call set_program_name.
16777
16778         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
16779         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
16780         (main): Call set_program_name.
16781
16782         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
16783         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
16784         (main): Call set_program_name.
16785
16786         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
16787         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
16788         (main): Call set_program_name.
16789
16790         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
16791         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
16792         (main): Call set_program_name.
16793
16794         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
16795         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
16796         (main): Call set_program_name.
16797
16798         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
16799         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
16800         (main): Call set_program_name.
16801
16802         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
16803         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
16804         (main): Call set_program_name.
16805
16806         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
16807         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
16808         (main): Call set_program_name.
16809
16810 2009-01-19  Eric Blake  <ebb9@byu.net>
16811
16812         test-unistd: test previous patch
16813         * tests/test-unistd.c: Test *_FILENO macros.
16814
16815         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
16816         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16817         Guarantee a definition.
16818         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
16819         * modules/unistd-safer (Depends-on): Add dependency on unistd.
16820         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
16821         * lib/dup-safer.c (STDERR_FILENO): Likewise.
16822         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16823         Likewise.
16824         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
16825         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
16826         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
16827         Likewise.
16828         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
16829         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
16830         (STDERR_FILENO): Likewise.
16831         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
16832         (STDERR_FILENO): Likewise.
16833         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
16834         (STDERR_FILENO): Likewise.
16835         Reported by Elbert Pol.
16836
16837 2009-01-19  Eric Blake  <ebb9@byu.net>
16838
16839         doc: mention more functions added in cygwin 1.7.0
16840         * doc/posix-functions/abort.texi (abort): Update wording related
16841         to cygwin.
16842         * doc/posix-functions/daylight.texi (daylight): Likewise.
16843         * doc/posix-functions/optarg.texi (optarg): Likewise.
16844         * doc/posix-functions/optarg.texi (opterr): Likewise.
16845         * doc/posix-functions/optarg.texi (optind): Likewise.
16846         * doc/posix-functions/optarg.texi (optopt): Likewise.
16847         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
16848         worked in 1.5.x, and was withdrawn in 1.7.
16849         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16850         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
16851         cygwin versions.
16852         * doc/posix-functions/perror.texi (perror): Likewise.
16853         * doc/posix-functions/printf.texi (printf): Likewise.
16854         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16855         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16856         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16857         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16858         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16859         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16860         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
16861         Likewise.
16862         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
16863         Likewise.
16864         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
16865         this function.
16866         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
16867         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
16868         Likewise.
16869         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
16870         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
16871         * doc/posix-functions/confstr.texi (confstr): Likewise.
16872         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16873         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
16874         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
16875         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
16876         * doc/posix-functions/fputws.texi (fputws): Likewise.
16877         * doc/posix-functions/fwide.texi (fwide): Likewise.
16878         * doc/posix-functions/getwc.texi (getwc): Likewise.
16879         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
16880         * doc/posix-functions/putwc.texi (putwc): Likewise.
16881         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16882         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
16883         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
16884         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16885         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
16886         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
16887         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
16888         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
16889         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
16890         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
16891         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
16892
16893 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16894
16895         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
16896         * lib/ioctl.c: Include <sys/ioctl.h>.
16897
16898 2009-01-19  Simon Josefsson  <simon@josefsson.org>
16899
16900         * modules/getdate-tests (Depends-on): Add progname.
16901         * tests/test-getdate.c: Use progname module, to avoid link errors
16902         on non-glibc systems.
16903
16904 2009-01-18  Simon Josefsson  <simon@josefsson.org>
16905
16906         * modules/filenamecat-tests (Depends-on): Add progname.
16907         * modules/fstrcmp-tests (Depends-on): Likewise.
16908
16909         * tests/test-filenamecat.c: Use progname module, to avoid link
16910         errors on non-glibc systems.
16911         * tests/test-fstrcmp.c: Likewise.
16912
16913 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
16914
16915         gettimeofday: avoid warning: nested extern declaration of 'localtime'
16916         * lib/gettimeofday.c: Move extern declaration out of function.
16917
16918 2009-01-18  Bruno Haible  <bruno@clisp.org>
16919
16920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
16921         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
16922         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
16923
16924 2009-01-18  Bruno Haible  <bruno@clisp.org>
16925
16926         * lib/strftime.c (MEMPCPY): Remove unused macro.
16927         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
16928
16929 2009-01-18  Martin Lambers  <marlam@marlam.de>
16930
16931         New module 'link'.
16932         * lib/unistd.in.h (link): New declaration.
16933         * lib/link.c: New file.
16934         * m4/link.m4: New file.
16935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
16936         HAVE_LINK.
16937         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
16938         * modules/link: New file.
16939         * doc/posix-functions/link.texi: Mention the new module.
16940
16941 2009-01-18  Bruno Haible  <bruno@clisp.org>
16942
16943         * tests/test-avltree_list.c (main): Call set_program_name.
16944         * tests/test-avltree_oset.c (main): Likewise.
16945         * tests/test-obstack-printf.c: Include progname.h.
16946         (main): Call set_program_name.
16947         * tests/test-quotearg.c: Include progname.h.
16948         (main): Call set_program_name.
16949         * tests/test-xmemdup0.c: Include progname.h.
16950         (main): Call set_program_name.
16951
16952 2009-01-18  Bruno Haible  <bruno@clisp.org>
16953
16954         New module 'alphasort'.
16955         * lib/dirent.in.h (alphasort): New declaration.
16956         * lib/alphasort.c: New file, from glibc with modifications.
16957         * m4/alphasort.m4: New file.
16958         * modules/alphasort: New file.
16959         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
16960         HAVE_ALPHASORT.
16961         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
16962         HAVE_ALPHASORT.
16963         * doc/posix-functions/alphasort.texi: Mention the new module and the
16964         portability problems.
16965
16966 2009-01-18  Bruno Haible  <bruno@clisp.org>
16967
16968         New module 'scandir'.
16969         * lib/dirent.in.h (scandir): New declaration.
16970         * lib/scandir.c: New file, from glibc with modifications.
16971         * m4/scandir.m4: New file.
16972         * modules/scandir: New file.
16973         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
16974         HAVE_SCANDIR.
16975         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
16976         HAVE_SCANDIR.
16977         * doc/posix-functions/scandir.texi: Mention the new module and the
16978         portability problems.
16979
16980 2009-01-17  Bruno Haible  <bruno@clisp.org>
16981
16982         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
16983         Update documentation.
16984         (func_remove_suffix): Escape all dots in the suffix. Update
16985         documentation.
16986         (func_filter_filelist): Update documentation.
16987         Reported by Ralf Wildenhues.
16988
16989 2009-01-17  Bruno Haible  <bruno@clisp.org>
16990
16991         * modules/dprintf-posix-tests: New file.
16992         * tests/test-dprintf-posix.sh: New file.
16993         * tests/test-dprintf-posix.c: New file.
16994
16995         New modules 'dprintf', 'dprintf-posix'.
16996         * lib/stdio.in.h (dprintf): New declaration.
16997         * lib/dprintf.c: New file.
16998         * m4/dprintf.m4: New file.
16999         * m4/dprintf-posix.m4: New file.
17000         * modules/dprintf: New file.
17001         * modules/dprintf-posix: New file.
17002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17003         HAVE_DPRINTF, REPLACE_DPRINTF.
17004         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17005         HAVE_DPRINTF, REPLACE_DPRINTF.
17006         * doc/posix-functions/dprintf.texi: Mention the new modules.
17007
17008 2009-01-17  Bruno Haible  <bruno@clisp.org>
17009
17010         * modules/vdprintf-posix-tests: New file.
17011         * tests/test-vdprintf-posix.sh: New file.
17012         * tests/test-vdprintf-posix.c: New file.
17013
17014         New modules 'vdprintf', 'vdprintf-posix'.
17015         * lib/stdio.in.h (vdprintf): New declaration.
17016         * lib/vdprintf.c: New file.
17017         * m4/vdprintf.m4: New file.
17018         * m4/vdprintf-posix.m4: New file.
17019         * modules/vdprintf: New file.
17020         * modules/vdprintf-posix: New file.
17021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17022         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17023         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17024         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17025         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17026
17027 2009-01-17  Bruno Haible  <bruno@clisp.org>
17028
17029         Fix replacement of fopen on mingw.
17030         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17031         mingw.
17032
17033 2009-01-17  Bruno Haible  <bruno@clisp.org>
17034
17035         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17036         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17037
17038 2009-01-17  Bruno Haible  <bruno@clisp.org>
17039
17040         Avoid test-fflush2.sh failure on mingw.
17041         * tests/test-fflush2.c: Include binary-io.h.
17042         (main): Put standard input into binary mode.
17043         * modules/fflush-tests (Depends-on): Add binary-io.
17044
17045 2009-01-17  Bruno Haible  <bruno@clisp.org>
17046
17047         * lib/wchar.in.h: In another particular situation, include only the
17048         system's <wchar.h> file.
17049         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17050         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17051         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17052
17053 2009-01-17  Bruno Haible  <bruno@clisp.org>
17054
17055         Support for stripping executables in --enable-relocatable.
17056         * build-aux/install-reloc: Expect one more argument, or an environment
17057         variable RELOC_STRIP_PROG. If set, strip the destination program and
17058         its wrapper.
17059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17060         RELOC_STRIP_PROG.
17061         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17062         to set RELOCATABLE_STRIP.
17063         * NEWS: Mention the new Makefile requirement.
17064
17065 2009-01-17  Bruno Haible  <bruno@clisp.org>
17066
17067         * build-aux/install-reloc: Remove debugging information left over by
17068         C compiler on MacOS X.
17069
17070 2009-01-17  Bruno Haible  <bruno@clisp.org>
17071
17072         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17073         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17074         _NSGetExecutablePath.
17075
17076 2009-01-16  Jim Meyering  <meyering@redhat.com>
17077
17078         strerror: avoid warnings about discarding "const"
17079         * lib/strerror.c (rpl_strerror): Instead of returning a const
17080         string from each and every "case", use a variable, and add a single
17081         cast after the switch.
17082
17083 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17084
17085         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17086
17087 2009-01-16  Bruno Haible  <bruno@clisp.org>
17088
17089         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17090         array initializer syntax that also works in C++ mode.
17091         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17092
17093 2009-01-16  Jim Meyering  <meyering@redhat.com>
17094
17095         poll: suppress a warning
17096         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17097         to ignore "...unsigned expression < 0 is always false" warnings.
17098
17099 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17100
17101         poll: remove declarations of unused variables
17102         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17103         sockbuf and optlen.
17104
17105 2009-01-15  Bruno Haible  <bruno@clisp.org>
17106
17107         Make fflush-after-ungetc POSIX compliant on BSD systems.
17108         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17109         (clear_ungetc_buffer): Implement also for other systems.
17110         (rpl_fflush): On glibc systems, invoke
17111         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17112         clear_ungetc_buffer after fetching the stream's position, not before.
17113
17114 2009-01-15  Bruno Haible  <bruno@clisp.org>
17115
17116         Make fflush-after-ungetc POSIX compliant on glibc systems.
17117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17118         after ungetc.
17119         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17120         (rpl_fflush): On glibc systems, simply call the system's fflush
17121         function after clearing the ungetc buffer.
17122         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17123         Instead, lseek only to the end of file, then use the system's fseeko
17124         for the rest. On glibc systems, reset the EOF indicator bit.
17125
17126 2009-01-15  Jim Meyering  <meyering@redhat.com>
17127
17128         openmp.m4: revert quote-adding change, for portability to older autoconf
17129         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17130         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17131         Simon Josefsson noticed the problem when using autoconf-2.61.
17132
17133 2009-01-15  Bruno Haible  <bruno@clisp.org>
17134
17135         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17136         * tests/test-fflush2.c (ASSERT): Always fail.
17137         (main): Add two tests for fflush() after ungetc(), taking into account
17138         the Austin Group's clarification.
17139         Suggested by Eric Blake.
17140
17141 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17142
17143         mktime.m4: remove K&R-style function prototypes
17144         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17145         for the Sun C++ compiler.
17146
17147 2009-01-14  Bruno Haible  <bruno@clisp.org>
17148
17149         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17150         while including <wchar.h>.
17151         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17152         the system's <wchar.h> file.
17153         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17154
17155 2009-01-14  Bruno Haible  <bruno@clisp.org>
17156
17157         * m4/csharp.m4: Don't mention gettext on the serial number line.
17158         * m4/csharpexec.m4: Likewise.
17159         * m4/eaccess.m4: Likewise.
17160         * m4/javaexec.m4: Likewise.
17161         * m4/sig_atomic_t.m4: Likewise.
17162         * m4/tmpdir.m4: Likewise.
17163         * m4/intldir.m4: Bump gettext version.
17164         * m4/lib-ld.m4: Likewise.
17165
17166 2009-01-14  Bruno Haible  <bruno@clisp.org>
17167
17168         * lib/progname.c (set_program_name): Add more comments.
17169         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17170
17171 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17172
17173         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17174         were sys/stat.h does not define it.
17175
17176 2009-01-14  Jim Meyering  <meyering@redhat.com>
17177
17178         many *.m4 files: improve m4 quoting
17179         99% of this change was performed by running the following commands:
17180         git ls-files | grep '\.m4$' | xargs perl -pi \
17181           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17182           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17183           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17184           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17185         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17186         The remainder were to add Copyright dates, increment serial numbers,
17187         undo some changes in comments, exclude m4/intl.m4, and add quotes
17188         around the "1" in ",1" where the unusual spacing prohibited the
17189         above regexps from doing the job.  For more details, see
17190         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17191         * m4/acl.m4: Modified.
17192         * m4/afs.m4: Likewise.
17193         * m4/alloca.m4: Likewise.
17194         * m4/argp.m4: Likewise.
17195         * m4/argz.m4: Likewise.
17196         * m4/atexit.m4: Likewise.
17197         * m4/bison-i18n.m4: Likewise.
17198         * m4/bison.m4: Likewise.
17199         * m4/byteswap.m4: Likewise.
17200         * m4/c-stack.m4: Likewise.
17201         * m4/c-strtod.m4: Likewise.
17202         * m4/calloc.m4: Likewise.
17203         * m4/canonicalize-lgpl.m4: Likewise.
17204         * m4/chown.m4: Likewise.
17205         * m4/clock_time.m4: Likewise.
17206         * m4/codeset.m4: Likewise.
17207         * m4/copy-file.m4: Likewise.
17208         * m4/csharp.m4: Likewise.
17209         * m4/csharpcomp.m4: Likewise.
17210         * m4/csharpexec.m4: Likewise.
17211         * m4/d-ino.m4: Likewise.
17212         * m4/d-type.m4: Likewise.
17213         * m4/dirfd.m4: Likewise.
17214         * m4/double-slash-root.m4: Likewise.
17215         * m4/eaccess.m4: Likewise.
17216         * m4/eealloc.m4: Likewise.
17217         * m4/environ.m4: Likewise.
17218         * m4/errno_h.m4: Likewise.
17219         * m4/euidaccess.m4: Likewise.
17220         * m4/execute.m4: Likewise.
17221         * m4/fatal-signal.m4: Likewise.
17222         * m4/fchdir.m4: Likewise.
17223         * m4/fcntl_h.m4: Likewise.
17224         * m4/fileblocks.m4: Likewise.
17225         * m4/filenamecat.m4: Likewise.
17226         * m4/findprog.m4: Likewise.
17227         * m4/flexmember.m4: Likewise.
17228         * m4/fnmatch.m4: Likewise.
17229         * m4/fopen.m4: Likewise.
17230         * m4/fpending.m4: Likewise.
17231         * m4/fprintf-posix.m4: Likewise.
17232         * m4/free.m4: Likewise.
17233         * m4/frexp.m4: Likewise.
17234         * m4/frexpl.m4: Likewise.
17235         * m4/fsusage.m4: Likewise.
17236         * m4/ftruncate.m4: Likewise.
17237         * m4/gc-camellia.m4: Likewise.
17238         * m4/gc-random.m4: Likewise.
17239         * m4/gc.m4: Likewise.
17240         * m4/getaddrinfo.m4: Likewise.
17241         * m4/getcwd-abort-bug.m4: Likewise.
17242         * m4/getcwd-path-max.m4: Likewise.
17243         * m4/getdate.m4: Likewise.
17244         * m4/getdomainname.m4: Likewise.
17245         * m4/getgroups.m4: Likewise.
17246         * m4/gethostname.m4: Likewise.
17247         * m4/gethrxtime.m4: Likewise.
17248         * m4/getline.m4: Likewise.
17249         * m4/getloadavg.m4: Likewise.
17250         * m4/getndelim2.m4: Likewise.
17251         * m4/getpass.m4: Likewise.
17252         * m4/gettext.m4: Likewise.
17253         * m4/gettime.m4: Likewise.
17254         * m4/gettimeofday.m4: Likewise.
17255         * m4/gnulib-common.m4: Likewise.
17256         * m4/group-member.m4: Likewise.
17257         * m4/host-os.m4: Likewise.
17258         * m4/iconv.m4: Likewise.
17259         * m4/iconv_open.m4: Likewise.
17260         * m4/inet_ntop.m4: Likewise.
17261         * m4/inet_pton.m4: Likewise.
17262         * m4/inline.m4: Likewise.
17263         * m4/intldir.m4: Likewise.
17264         * m4/intlmacosx.m4: Likewise.
17265         * m4/intmax.m4: Likewise.
17266         * m4/intmax_t.m4: Likewise.
17267         * m4/inttypes.m4: Likewise.
17268         * m4/inttypes_h.m4: Likewise.
17269         * m4/inttypes-pri.m4: Likewise.
17270         * m4/isapipe.m4: Likewise.
17271         * m4/isnand.m4: Likewise.
17272         * m4/isnanf.m4: Likewise.
17273         * m4/isnanl.m4: Likewise.
17274         * m4/javacomp.m4: Likewise.
17275         * m4/javaexec.m4: Likewise.
17276         * m4/jm-winsz1.m4: Likewise.
17277         * m4/jm-winsz2.m4: Likewise.
17278         * m4/lchown.m4: Likewise.
17279         * m4/lcmessage.m4: Likewise.
17280         * m4/ldexpl.m4: Likewise.
17281         * m4/lib-ld.m4: Likewise.
17282         * m4/lib-link.m4: Likewise.
17283         * m4/libsigsegv.m4: Likewise.
17284         * m4/link-follow.m4: Likewise.
17285         * m4/localcharset.m4: Likewise.
17286         * m4/locale-fr.m4: Likewise.
17287         * m4/locale-ja.m4: Likewise.
17288         * m4/locale-tr.m4: Likewise.
17289         * m4/locale-zh.m4: Likewise.
17290         * m4/lock.m4: Likewise.
17291         * m4/longlong.m4: Likewise.
17292         * m4/ls-mntd-fs.m4: Likewise.
17293         * m4/lstat.m4: Likewise.
17294         * m4/malloc.m4: Likewise.
17295         * m4/mathl.m4: Likewise.
17296         * m4/mbrtowc.m4: Likewise.
17297         * m4/mbstate_t.m4: Likewise.
17298         * m4/mbswidth.m4: Likewise.
17299         * m4/memchr.m4: Likewise.
17300         * m4/memcmp.m4: Likewise.
17301         * m4/memcpy.m4: Likewise.
17302         * m4/memmem.m4: Likewise.
17303         * m4/memmove.m4: Likewise.
17304         * m4/mempcpy.m4: Likewise.
17305         * m4/memrchr.m4: Likewise.
17306         * m4/memset.m4: Likewise.
17307         * m4/minmax.m4: Likewise.
17308         * m4/mkdir-slash.m4: Likewise.
17309         * m4/mkdtemp.m4: Likewise.
17310         * m4/mktime.m4: Likewise.
17311         * m4/mmap-anon.m4: Likewise.
17312         * m4/mountlist.m4: Likewise.
17313         * m4/nanosleep.m4: Likewise.
17314         * m4/nls.m4: Likewise.
17315         * m4/nocrash.m4: Likewise.
17316         * m4/open.m4: Likewise.
17317         * m4/openat.m4: Likewise.
17318         * m4/openmp.m4: Likewise.
17319         * m4/pathmax.m4: Likewise.
17320         * m4/perl.m4: Likewise.
17321         * m4/physmem.m4: Likewise.
17322         * m4/pipe.m4: Likewise.
17323         * m4/po.m4: Likewise.
17324         * m4/poll.m4: Likewise.
17325         * m4/posixtm.m4: Likewise.
17326         * m4/posixver.m4: Likewise.
17327         * m4/printf-frexp.m4: Likewise.
17328         * m4/printf-frexpl.m4: Likewise.
17329         * m4/printf-posix.m4: Likewise.
17330         * m4/printf-posix-rpl.m4: Likewise.
17331         * m4/printf.m4: Likewise.
17332         * m4/progtest.m4: Likewise.
17333         * m4/putenv.m4: Likewise.
17334         * m4/readline.m4: Likewise.
17335         * m4/readlink.m4: Likewise.
17336         * m4/readutmp.m4: Likewise.
17337         * m4/realloc.m4: Likewise.
17338         * m4/regex.m4: Likewise.
17339         * m4/relocatable.m4: Likewise.
17340         * m4/relocatable-lib.m4: Likewise.
17341         * m4/rename-dest-slash.m4: Likewise.
17342         * m4/rename.m4: Likewise.
17343         * m4/rmdir-errno.m4: Likewise.
17344         * m4/rmdir.m4: Likewise.
17345         * m4/roundf.m4: Likewise.
17346         * m4/roundl.m4: Likewise.
17347         * m4/rpmatch.m4: Likewise.
17348         * m4/save-cwd.m4: Likewise.
17349         * m4/selinux-selinux-h.m4: Likewise.
17350         * m4/setenv.m4: Likewise.
17351         * m4/settime.m4: Likewise.
17352         * m4/sig2str.m4: Likewise.
17353         * m4/sig_atomic_t.m4: Likewise.
17354         * m4/signalblocking.m4: Likewise.
17355         * m4/signbit.m4: Likewise.
17356         * m4/sigpipe.m4: Likewise.
17357         * m4/sockets.m4: Likewise.
17358         * m4/sockpfaf.m4: Likewise.
17359         * m4/st_dm_mode.m4: Likewise.
17360         * m4/stat-time.m4: Likewise.
17361         * m4/stdbool.m4: Likewise.
17362         * m4/stdint.m4: Likewise.
17363         * m4/stdint_h.m4: Likewise.
17364         * m4/stpcpy.m4: Likewise.
17365         * m4/stpncpy.m4: Likewise.
17366         * m4/strcase.m4: Likewise.
17367         * m4/strchrnul.m4: Likewise.
17368         * m4/strcspn.m4: Likewise.
17369         * m4/strdup.m4: Likewise.
17370         * m4/strftime.m4: Likewise.
17371         * m4/strndup.m4: Likewise.
17372         * m4/strnlen.m4: Likewise.
17373         * m4/strpbrk.m4: Likewise.
17374         * m4/strptime.m4: Likewise.
17375         * m4/strsep.m4: Likewise.
17376         * m4/strtod.m4: Likewise.
17377         * m4/strtoimax.m4: Likewise.
17378         * m4/strtok_r.m4: Likewise.
17379         * m4/strtol.m4: Likewise.
17380         * m4/strtoll.m4: Likewise.
17381         * m4/strtoul.m4: Likewise.
17382         * m4/strtoull.m4: Likewise.
17383         * m4/strtoumax.m4: Likewise.
17384         * m4/strverscmp.m4: Likewise.
17385         * m4/threadlib.m4: Likewise.
17386         * m4/timegm.m4: Likewise.
17387         * m4/tm_gmtoff.m4: Likewise.
17388         * m4/tmpdir.m4: Likewise.
17389         * m4/tmpfile.m4: Likewise.
17390         * m4/tzset.m4: Likewise.
17391         * m4/uintmax_t.m4: Likewise.
17392         * m4/unlinkdir.m4: Likewise.
17393         * m4/unlocked-io.m4: Likewise.
17394         * m4/uptime.m4: Likewise.
17395         * m4/userspec.m4: Likewise.
17396         * m4/utimbuf.m4: Likewise.
17397         * m4/utime.m4: Likewise.
17398         * m4/utimes-null.m4: Likewise.
17399         * m4/utimes.m4: Likewise.
17400         * m4/vararrays.m4: Likewise.
17401         * m4/vasnprintf.m4: Likewise.
17402         * m4/vfprintf-posix.m4: Likewise.
17403         * m4/vprintf-posix.m4: Likewise.
17404         * m4/wait-process.m4: Likewise.
17405         * m4/wchar_t.m4: Likewise.
17406         * m4/wint_t.m4: Likewise.
17407         * m4/write-any-file.m4: Likewise.
17408         * m4/yield.m4: Likewise.
17409
17410 2009-01-13  Bruno Haible  <bruno@clisp.org>
17411
17412         Avoid test-copy-file.sh failures when ACL support insufficient.
17413         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17414         TESTS_ENVIRONMENT.
17415         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17416         Reported by Jim Meyering.
17417
17418 2009-01-13  Bruno Haible  <bruno@clisp.org>
17419
17420         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17421         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17422         * modules/unistdio/u8-printf-parse (Files): Likewise.
17423         * modules/unistdio/u32-printf-parse (Files): Likewise.
17424         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17425
17426 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17427
17428         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17429         and m4/inttypes_h.m4 too.
17430
17431 2009-01-12  Eric Blake  <ebb9@byu.net>
17432
17433         tests: IRIX 6.2 cc can't compile -0.0 into .data
17434         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17435         rather than at compile-time.
17436         * tests/test-floorl.c (minus_zero): Likewise.
17437         * tests/test-frexpl.c (minus_zero): Likewise.
17438         * tests/test-isnan.c (minus_zerol): Likewise.
17439         * tests/test-isnanl.h (minus_zero): Likewise.
17440         * tests/test-ldexpl.c (minus_zero): Likewise.
17441         * tests/test-roundl.c (minus_zero): Likewise.
17442         * tests/test-signbit.c (minus_zerol): Likewise.
17443         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17444         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17445         * tests/test-truncl.c (minus_zero): Likewise.
17446         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17447         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17448         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17449
17450 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17451
17452         regex: fix glibc bug 9697
17453         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17454         handling.
17455
17456 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17457
17458         regex: fix glibc bug 697
17459         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17460         being NULL also if there are no backreferences.
17461
17462 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17463
17464         regex: merge glibc changes
17465         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17466         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17467         re_string_skip_chars, re_string_reconstruct): Likewise.
17468         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17469
17470 2009-01-07  Jim Meyering  <meyering@redhat.com>
17471
17472         poll: filter through cppi
17473         * lib/poll.c: Indent cpp directives to reflect nesting.
17474
17475 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17476
17477         poll: don't return uninitialized
17478         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17479
17480 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17481
17482         avoid compile failure on AIX 6.1
17483         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17484         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17485
17486 2009-01-04  Jim Meyering  <meyering@redhat.com>
17487
17488         remove duplicate inclusion of <stdio.h>
17489         * tests/test-fprintf-posix.c: Likewise.
17490         * tests/test-printf-posix.c: Likewise.
17491         * tests/test-snprintf-posix.c: Likewise.
17492         * tests/test-sprintf-posix.c: Likewise.
17493         * tests/test-vasprintf-posix.c: Likewise.
17494         * tests/test-vfprintf-posix.c: Likewise.
17495         * tests/test-vprintf-posix.c: Likewise.
17496         * tests/test-vsnprintf-posix.c: Likewise.
17497         * tests/test-vsprintf-posix.c: Likewise.
17498
17499 2009-01-03  Jim Meyering  <meyering@redhat.com>
17500
17501         gnulib-tool: fix sed-based filtering
17502         * gnulib-tool (func_filter_filelist): Remove extra backslash
17503         in sed_fff_filter definition.
17504
17505 2009-01-02  Jim Meyering  <meyering@redhat.com>
17506
17507         strftime: avoid compilation failure on Solaris 2.6
17508         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17509         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17510         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17511         be available.  Reported by Tom G. Christensen.  Details in
17512         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17513
17514 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17515             Bruno Haible  <bruno@clisp.org>
17516
17517         Speed up gnulib-tool by doing more string processing through shell
17518         built-ins.
17519         * gnulib-tool (fast_func_append): New variable.
17520         (func_remove_prefix, func_remove_suffix): New functions.
17521         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17522         (func_filter_filelist): New function.
17523         (func_get_dependencies): Use func_remove_suffix instead of sed.
17524         (func_get_automake_snippet): Use func_filter_filelist instead of a
17525         subshell and sed invocation.
17526
17527 2009-01-01  Bruno Haible  <bruno@clisp.org>
17528
17529         Fix a security bug.
17530         * gnulib-tool (func_import, import, update): Don't allow the characters
17531         '"', '$', '`', '\' in macro arguments that become part of commands that
17532         are evaluated.
17533
17534 2009-01-01  Bruno Haible  <bruno@clisp.org>
17535
17536         * gnulib-tool (func_reset_sigpipe): Add more comments.
17537
17538 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17539
17540         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17541         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17542         already know the answer.
17543
17544 2009-01-01  Jim Meyering  <meyering@redhat.com>
17545
17546         * lib/version-etc.c (version_etc_va): Update copyright year.
17547
17548 2008-12-30  Bruno Haible  <bruno@clisp.org>
17549
17550         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17551         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17552         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17553
17554 2008-12-29  Eric Blake  <ebb9@byu.net>
17555
17556         multiarch: avoid autoconf AC_REQUIRE bug
17557         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17558         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17559         2.63 and older.
17560         Reported by Bruno Haible, and analyzed in
17561         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17562
17563 2008-12-29  Bruno Haible  <bruno@clisp.org>
17564
17565         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17566         files in subdirectories correctly.
17567         Reported by Ralf Wildenhues.
17568
17569 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17570
17571         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17572         rather than 'join FILE -', for Solaris join.
17573
17574 2008-12-29  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17577         quoting.
17578         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17579         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17580         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17581         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17582         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17583         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17584         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17585         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17586         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17587         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17588         * m4/nls.m4 (AM_NLS): Likewise.
17589         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17590         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17591         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17592         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17593         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17594         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17595         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17596         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17597         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17598         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17599         * m4/xsize.m4 (gl_XSIZE): Likewise.
17600         Suggested by Jim Meyering.
17601
17602 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17603
17604         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17605         * lib/parse-duration.c: use a switch instead of cascading if's.
17606
17607 2008-12-29  Eric Blake  <ebb9@byu.net>
17608
17609         wchar.h: supply WEOF on Irix 5.3
17610         * lib/wchar.in.h (wint_t): Also supply WEOF.
17611         * lib/wctype.in.h (wint_t): Likewise.
17612         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17613         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17614         Reported by Tom G. Christensen.
17615
17616 2008-12-26  Bruno Haible  <bruno@clisp.org>
17617
17618         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17619         i486, i586, i686.
17620
17621 2008-12-26  Bruno Haible  <bruno@clisp.org>
17622
17623         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17624
17625 2008-12-26  Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17628         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17629         not __STDC_CONSTANT_MACROS.
17630         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17631
17632 2008-12-25  Bruno Haible  <bruno@clisp.org>
17633
17634         Add support for universal builds to vasnprintf.
17635         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17636         universal builds, guess no.
17637         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17638         * modules/vasprintf-posix (Depends-on): Likewise.
17639         * modules/fprintf-posix (Depends-on): Likewise.
17640         * modules/vfprintf-posix (Depends-on): Likewise.
17641         * modules/snprintf-posix (Depends-on): Likewise.
17642         * modules/vsnprintf-posix (Depends-on): Likewise.
17643         * modules/sprintf-posix (Depends-on): Likewise.
17644         * modules/vsprintf-posix (Depends-on): Likewise.
17645         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17646         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17647         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17648         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17649         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17650         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17651         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17652
17653         Add support for universal builds to <inttypes.h>.
17654         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17655         _SCNu64_PREFIX): In Apple
17656         universal builds, define directly, using _LP64.
17657         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17658         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17659         * modules/inttypes (Depends-on): Add multiarch.
17660         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17661
17662         Add support for universal builds to <stdint.h>.
17663         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17664         universal builds, define directly, using _LP64.
17665         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17666         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17667         and size_t.
17668         * modules/stdint (Depends-on): Add multiarch.
17669         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17670
17671         New module 'multiarch'.
17672         * modules/multiarch: New file.
17673         * m4/multiarch.m4: New file.
17674
17675 2008-12-25  Bruno Haible  <bruno@clisp.org>
17676
17677         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17678
17679 2008-12-25  Bruno Haible  <bruno@clisp.org>
17680
17681         * modules/btowc (License): Relicense under LGPLv2+.
17682         * modules/mbsinit (License): Likewise.
17683         * modules/mbrtowc (License): Likewise.
17684         * modules/wcrtomb (License): Likewise.
17685         * modules/streq (License): Likewise.
17686         Reported by David Lutterkort <lutter@redhat.com>.
17687
17688 2008-12-23  Bruno Haible  <bruno@clisp.org>
17689
17690         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
17691
17692 2008-12-23  Bruno Haible  <bruno@clisp.org>
17693
17694         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
17695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
17696         GETADDRINFO_LIB, not in LIBS.
17697         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
17698         * modules/canon-host (Link): Likewise.
17699         * NEWS: Mention the change.
17700         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
17701         GETADDRINFO_LIB.
17702
17703 2008-12-22  Bruno Haible  <bruno@clisp.org>
17704
17705         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
17706         * doc/posix-functions/iswalpha_l.texi: Likewise.
17707         * doc/posix-functions/iswblank_l.texi: Likewise.
17708         * doc/posix-functions/iswcntrl_l.texi: Likewise.
17709         * doc/posix-functions/iswctype_l.texi: Likewise.
17710         * doc/posix-functions/iswdigit_l.texi: Likewise.
17711         * doc/posix-functions/iswgraph_l.texi: Likewise.
17712         * doc/posix-functions/iswlower_l.texi: Likewise.
17713         * doc/posix-functions/iswprint_l.texi: Likewise.
17714         * doc/posix-functions/iswpunct_l.texi: Likewise.
17715         * doc/posix-functions/iswspace_l.texi: Likewise.
17716         * doc/posix-functions/iswupper_l.texi: Likewise.
17717         * doc/posix-functions/iswxdigit_l.texi: Likewise.
17718         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
17719         * doc/posix-functions/open_wmemstream.texi: Likewise.
17720         * doc/posix-functions/swscanf.texi: Likewise.
17721         * doc/posix-functions/towctrans_l.texi: Likewise.
17722         * doc/posix-functions/towlower.texi: Likewise.
17723         * doc/posix-functions/towlower_l.texi: Likewise.
17724         * doc/posix-functions/towupper.texi: Likewise.
17725         * doc/posix-functions/towupper_l.texi: Likewise.
17726         * doc/posix-functions/vfwprintf.texi: Likewise.
17727         * doc/posix-functions/vfwscanf.texi: Likewise.
17728         * doc/posix-functions/vswscanf.texi: Likewise.
17729         * doc/posix-functions/vwprintf.texi: Likewise.
17730         * doc/posix-functions/vwscanf.texi: Likewise.
17731         * doc/posix-functions/wcpcpy.texi: Likewise.
17732         * doc/posix-functions/wcpncpy.texi: Likewise.
17733         * doc/posix-functions/wcscasecmp.texi: Likewise.
17734         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
17735         * doc/posix-functions/wcscoll_l.texi: Likewise.
17736         * doc/posix-functions/wcsdup.texi: Likewise.
17737         * doc/posix-functions/wcsncasecmp.texi: Likewise.
17738         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
17739         * doc/posix-functions/wcsnlen.texi: Likewise.
17740         * doc/posix-functions/wcsnrtombs.texi: Likewise.
17741         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
17742         * doc/posix-functions/wctrans_l.texi: Likewise.
17743         * doc/posix-functions/wctype_l.texi: Likewise.
17744         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
17745         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
17746         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
17747         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
17748         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
17749         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
17750         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
17751         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
17752         * doc/glibc-functions/wcschrnul.texi: Likewise.
17753         * doc/glibc-functions/wcsftime_l.texi: Likewise.
17754         * doc/glibc-functions/wcstod_l.texi: Likewise.
17755         * doc/glibc-functions/wcstof_l.texi: Likewise.
17756         * doc/glibc-functions/wcstol_l.texi: Likewise.
17757         * doc/glibc-functions/wcstold_l.texi: Likewise.
17758         * doc/glibc-functions/wcstoll_l.texi: Likewise.
17759         * doc/glibc-functions/wcstoq.texi: Likewise.
17760         * doc/glibc-functions/wcstoul_l.texi: Likewise.
17761         * doc/glibc-functions/wcstoull_l.texi: Likewise.
17762         * doc/glibc-functions/wcstouq.texi: Likewise.
17763         * doc/glibc-functions/wmempcpy.texi: Likewise.
17764
17765 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
17766             Eric Blake  <ebb9@byu.net>
17767             Paolo Bonzini  <bonzini@gnu.org>
17768             Bruno Haible  <bruno@clisp.org>
17769
17770         Make c-stack work on Haiku.
17771         * lib/c-stack.c (SA_ONSTACK): Define fallback.
17772         (c_stack_action): Use SA_ONSTACK flag.
17773
17774 2008-12-22  Bruno Haible  <bruno@clisp.org>
17775
17776         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
17777
17778 2008-12-22  Bruno Haible  <bruno@clisp.org>
17779
17780         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
17781         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
17782         being overridden.
17783         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
17784         New macros.
17785         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
17786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
17787         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
17788         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
17789
17790 2008-12-22  Bruno Haible  <bruno@clisp.org>
17791
17792         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
17793         from test code.
17794
17795 2008-12-22  Eric Blake  <ebb9@byu.net>
17796
17797         Avoid gcc warnings on cygwin.
17798         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17799         Avoid unused variable.
17800         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17801         Likewise.
17802
17803 2008-12-22  Bruno Haible  <bruno@clisp.org>
17804
17805         Remove HAVE_MBRTOWC conditionals.
17806         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
17807         (mbscasecmp): Assume mbrtowc function.
17808         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
17809         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
17810         * lib/mbschr.c: Include mbuiter.h unconditionally.
17811         (mbschr): Assume mbrtowc function.
17812         * lib/mbscspn.c: Include mbuiter.h unconditionally.
17813         (mbscspn): Assume mbrtowc function.
17814         * lib/mbslen.c: Include mbuiter.h unconditionally.
17815         (mbslen): Assume mbrtowc function.
17816         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
17817         (mbsncasecmp): Assume mbrtowc function.
17818         * lib/mbsnlen.c: Include mbiter.h unconditionally.
17819         (mbsnlen): Assume mbrtowc function.
17820         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
17821         (mbspbrk): Assume mbrtowc function.
17822         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
17823         (mbspcasecmp): Assume mbrtowc function.
17824         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
17825         (mbsrchr): Assume mbrtowc function.
17826         * lib/mbssep.c: Include mbuiter.h unconditionally.
17827         (mbssep): Assume mbrtowc function.
17828         * lib/mbsspn.c: Include mbuiter.h unconditionally.
17829         (mbsspn): Assume mbrtowc function.
17830         * lib/mbsstr.c: Include mbuiter.h unconditionally.
17831         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
17832         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
17833         (mbstok_r): Assume mbrtowc function.
17834         * lib/propername.c: Include mbuiter.h unconditionally.
17835         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
17836         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
17837         (trim2): Assume mbrtowc function.
17838         * lib/mbswidth.c (mbsinit): Remove fallback definition.
17839         (mbsnwidth): Assume mbrtowc function.
17840         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
17841         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
17842         fallback definitions.
17843         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
17844
17845 2008-12-22  Bruno Haible  <bruno@clisp.org>
17846
17847         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
17848
17849 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
17850
17851         * modules/regex: Request emulations for the mb*/wc* functions we need.
17852         * m4/regex.m4: Don't look for those functions here.
17853         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
17854
17855 2008-12-22  Bruno Haible  <bruno@clisp.org>
17856
17857         * modules/fnmatch (Depends-on): Remove duplicated dependency.
17858
17859 2008-12-21  Bruno Haible  <bruno@clisp.org>
17860
17861         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
17862         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
17863         (Include): Remove conditionalization.
17864         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
17865         (Include): Remove conditionalization.
17866         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
17867         (Include): Remove conditionalization.
17868         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
17869         * m4/mbfile.m4 (gl_MBFILE): Likewise.
17870         * NEWS: Mention the change.
17871         Reported by Alan Hourihane <alanh@fairlite.co.uk>
17872         via Sergey Poznyakoff <gray@gnu.org.ua>.
17873
17874 2008-12-21  Bruno Haible  <bruno@clisp.org>
17875
17876         * MODULES.html.sh (Extended multibyte and wide character utilities
17877         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
17878         wcrtomb, wcsrtombs.
17879         (Support for systems lacking POSIX:2008): Add accept, bind, close,
17880         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
17881         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
17882         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
17883
17884 2008-12-21  Bruno Haible  <bruno@clisp.org>
17885
17886         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
17887
17888 2008-12-21  Bruno Haible  <bruno@clisp.org>
17889
17890         * modules/wcsnrtombs-tests: New file.
17891         * tests/test-wcsnrtombs1.sh: New file.
17892         * tests/test-wcsnrtombs2.sh: New file.
17893         * tests/test-wcsnrtombs3.sh: New file.
17894         * tests/test-wcsnrtombs4.sh: New file.
17895         * tests/test-wcsnrtombs.c: New file.
17896
17897         New module 'wcsnrtombs'.
17898         * lib/wchar.in.h (wcsnrtombs): New declaration.
17899         * lib/wcsnrtombs.c: New file.
17900         * lib/wcsrtombs-state.c: New file.
17901         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
17902         (internal_state): Remove variable.
17903         * m4/wcsnrtombs.m4: New file.
17904         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
17905         compilation units.
17906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
17907         HAVE_WCSNRTOMBS.
17908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
17909         HAVE_WCSNRTOMBS.
17910         * modules/wcsnrtombs: New file.
17911         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
17912         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
17913
17914 2008-12-21  Bruno Haible  <bruno@clisp.org>
17915
17916         * modules/wcsrtombs-tests: New file.
17917         * tests/test-wcsrtombs1.sh: New file.
17918         * tests/test-wcsrtombs2.sh: New file.
17919         * tests/test-wcsrtombs3.sh: New file.
17920         * tests/test-wcsrtombs4.sh: New file.
17921         * tests/test-wcsrtombs.c: New file.
17922
17923         New module 'wcsrtombs'.
17924         * lib/wchar.in.h (wcsrtombs): New declaration.
17925         * lib/wcsrtombs.c: New file.
17926         * m4/wcsrtombs.m4: New file.
17927         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
17928         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
17930         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
17931         * modules/wcsrtombs: New file.
17932         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
17933         bugs.
17934
17935 2008-12-21  Bruno Haible  <bruno@clisp.org>
17936
17937         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
17938         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
17939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
17940         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
17941         if not correct.
17942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
17943         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
17944         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17945         m4/locale-zh.m4, m4/codeset.m4.
17946         * doc/posix-functions/wcrtomb.texi: Document the bug.
17947
17948 2008-12-21  Bruno Haible  <bruno@clisp.org>
17949
17950         Work around a btowc() bug on IRIX 6.5.
17951         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
17952         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
17953         REPLACE_WTOBC if not.
17954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
17955         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
17956         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
17957
17958 2008-12-21  Bruno Haible  <bruno@clisp.org>
17959
17960         * modules/wcrtomb-tests: New file.
17961         * tests/test-wcrtomb.sh: New file.
17962         * tests/test-wcrtomb.c: New file.
17963
17964         New module 'wcrtomb'.
17965         * lib/wchar.in.h (wcrtomb): New declaration.
17966         * lib/wcrtomb.c: New file.
17967         * m4/wcrtomb.m4: New file.
17968         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
17969         HAVE_WCRTOMB.
17970         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
17971         HAVE_WCRTOMB.
17972         * modules/wcrtomb: New file.
17973         * doc/posix-functions/wcrtomb.texi: Mention the new module.
17974
17975 2008-12-21  Bruno Haible  <bruno@clisp.org>
17976
17977         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
17978         * modules/mbsrtowcs (Files): Likewise.
17979         * modules/wctob (Files): Likewise.
17980         * modules/c-strcase-tests (Files): Likewise.
17981         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
17982         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
17983         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
17984         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
17985         * modules/vasnprintf-posix-tests (Files): Likewise.
17986
17987 2008-12-21  William Pursell  <bill.pursell@gmail.com>
17988
17989         gitlog-to-changelog: pass all command-line arguments to git-log
17990         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
17991         it is sometimes convenient to filter the commits in various ways.
17992         gitlog-to-changelog only allows --since to specify a start date,
17993         but git-log itself supports many other filtering mechanisms.
17994         At the moment, I want to filter by branch name.  Rather than
17995         adding a --branch option to gitlog-to-changelog, it seems more
17996         flexible to simply pass all options directly to git-log and let
17997         git do the work.  Notice that this effectively makes --since a
17998         redundant option for gitlog-to-changelog, but removing it would
17999         require current usage to change since calls would then require
18000         an additional '--'.
18001
18002 2008-12-21  Bruno Haible  <bruno@clisp.org>
18003
18004         * modules/mbsnrtowcs-tests: New file.
18005         * tests/test-mbsnrtowcs1.sh: New file.
18006         * tests/test-mbsnrtowcs2.sh: New file.
18007         * tests/test-mbsnrtowcs3.sh: New file.
18008         * tests/test-mbsnrtowcs4.sh: New file.
18009         * tests/test-mbsnrtowcs.c: New file.
18010
18011         New module 'mbsnrtowcs'.
18012         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18013         * lib/mbsnrtowcs.c: New file.
18014         * lib/mbsrtowcs-state.c: New file.
18015         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18016         (internal_state): Remove variable.
18017         * m4/mbsnrtowcs.m4: New file.
18018         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18019         compilation units.
18020         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18021         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18022         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18023         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18024         * modules/mbsnrtowcs: New file.
18025         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18026         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18027         portability problem.
18028
18029 2008-12-21  Bruno Haible  <bruno@clisp.org>
18030
18031         Work around mbsrtowcs bug.
18032         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18033         (gl_FUNC_MBSRTOWCS): Invoke it.
18034         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18035         m4/locale-zh.m4.
18036         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18037
18038 2008-12-21  Bruno Haible  <bruno@clisp.org>
18039
18040         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18041
18042 2008-12-21  Bruno Haible  <bruno@clisp.org>
18043
18044         Update doc for AIX.
18045         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18046         16-bit wchar_t type.
18047         * doc/posix-functions/btowc.texi: Likewise.
18048         * doc/posix-functions/fgetwc.texi: Likewise.
18049         * doc/posix-functions/fgetws.texi: Likewise.
18050         * doc/posix-functions/fputwc.texi: Likewise.
18051         * doc/posix-functions/fputws.texi: Likewise.
18052         * doc/posix-functions/fwide.texi: Likewise.
18053         * doc/posix-functions/fwprintf.texi: Likewise.
18054         * doc/posix-functions/fwscanf.texi: Likewise.
18055         * doc/posix-functions/getwchar.texi: Likewise.
18056         * doc/posix-functions/getwc.texi: Likewise.
18057         * doc/posix-functions/iswalnum.texi: Likewise.
18058         * doc/posix-functions/iswalpha.texi: Likewise.
18059         * doc/posix-functions/iswblank.texi: Likewise.
18060         * doc/posix-functions/iswcntrl.texi: Likewise.
18061         * doc/posix-functions/iswctype.texi: Likewise.
18062         * doc/posix-functions/iswdigit.texi: Likewise.
18063         * doc/posix-functions/iswgraph.texi: Likewise.
18064         * doc/posix-functions/iswlower.texi: Likewise.
18065         * doc/posix-functions/iswprint.texi: Likewise.
18066         * doc/posix-functions/iswpunct.texi: Likewise.
18067         * doc/posix-functions/iswspace.texi: Likewise.
18068         * doc/posix-functions/iswupper.texi: Likewise.
18069         * doc/posix-functions/iswxdigit.texi: Likewise.
18070         * doc/posix-functions/mbrtowc.texi: Likewise.
18071         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18072         * doc/posix-functions/mbstowcs.texi: Likewise.
18073         * doc/posix-functions/mbtowc.texi: Likewise.
18074         * doc/posix-functions/putwchar.texi: Likewise.
18075         * doc/posix-functions/putwc.texi: Likewise.
18076         * doc/posix-functions/swprintf.texi: Likewise.
18077         * doc/posix-functions/tolower.texi: Likewise.
18078         * doc/posix-functions/toupper.texi: Likewise.
18079         * doc/posix-functions/towctrans.texi: Likewise.
18080         * doc/posix-functions/ungetwc.texi: Likewise.
18081         * doc/posix-functions/vswprintf.texi: Likewise.
18082         * doc/posix-functions/wcrtomb.texi: Likewise.
18083         * doc/posix-functions/wcscat.texi: Likewise.
18084         * doc/posix-functions/wcschr.texi: Likewise.
18085         * doc/posix-functions/wcscmp.texi: Likewise.
18086         * doc/posix-functions/wcscoll.texi: Likewise.
18087         * doc/posix-functions/wcscpy.texi: Likewise.
18088         * doc/posix-functions/wcscspn.texi: Likewise.
18089         * doc/posix-functions/wcsftime.texi: Likewise.
18090         * doc/posix-functions/wcslen.texi: Likewise.
18091         * doc/posix-functions/wcsncat.texi: Likewise.
18092         * doc/posix-functions/wcsncmp.texi: Likewise.
18093         * doc/posix-functions/wcsncpy.texi: Likewise.
18094         * doc/posix-functions/wcspbrk.texi: Likewise.
18095         * doc/posix-functions/wcsrchr.texi: Likewise.
18096         * doc/posix-functions/wcsrtombs.texi: Likewise.
18097         * doc/posix-functions/wcsspn.texi: Likewise.
18098         * doc/posix-functions/wcsstr.texi: Likewise.
18099         * doc/posix-functions/wcstod.texi: Likewise.
18100         * doc/posix-functions/wcstof.texi: Likewise.
18101         * doc/posix-functions/wcstoimax.texi: Likewise.
18102         * doc/posix-functions/wcstok.texi: Likewise.
18103         * doc/posix-functions/wcstold.texi: Likewise.
18104         * doc/posix-functions/wcstoll.texi: Likewise.
18105         * doc/posix-functions/wcstol.texi: Likewise.
18106         * doc/posix-functions/wcstombs.texi: Likewise.
18107         * doc/posix-functions/wcstoull.texi: Likewise.
18108         * doc/posix-functions/wcstoul.texi: Likewise.
18109         * doc/posix-functions/wcstoumax.texi: Likewise.
18110         * doc/posix-functions/wcswidth.texi: Likewise.
18111         * doc/posix-functions/wcsxfrm.texi: Likewise.
18112         * doc/posix-functions/wctob.texi: Likewise.
18113         * doc/posix-functions/wctomb.texi: Likewise.
18114         * doc/posix-functions/wctrans.texi: Likewise.
18115         * doc/posix-functions/wctype.texi: Likewise.
18116         * doc/posix-functions/wcwidth.texi: Likewise.
18117         * doc/posix-functions/wmemchr.texi: Likewise.
18118         * doc/posix-functions/wmemcmp.texi: Likewise.
18119         * doc/posix-functions/wmemcpy.texi: Likewise.
18120         * doc/posix-functions/wmemmove.texi: Likewise.
18121         * doc/posix-functions/wmemset.texi: Likewise.
18122         * doc/posix-functions/wprintf.texi: Likewise.
18123         * doc/posix-functions/wscanf.texi: Likewise.
18124
18125 2008-12-21  Bruno Haible  <bruno@clisp.org>
18126
18127         Update doc for HP-UX 11.11.
18128         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18129         in HP-UX version 11.00, not in all versions of HP-UX 11.
18130         * doc/posix-functions/fwide.texi: Likewise.
18131         * doc/posix-functions/fwprintf.texi: Likewise.
18132         * doc/posix-functions/fwscanf.texi: Likewise.
18133         * doc/posix-functions/inet_ntop.texi: Likewise.
18134         * doc/posix-functions/inet_pton.texi: Likewise.
18135         * doc/posix-functions/mbrlen.texi: Likewise.
18136         * doc/posix-functions/mbrtowc.texi: Likewise.
18137         * doc/posix-functions/mbsinit.texi: Likewise.
18138         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18139         * doc/posix-functions/swprintf.texi: Likewise.
18140         * doc/posix-functions/swscanf.texi: Likewise.
18141         * doc/posix-functions/towctrans.texi: Likewise.
18142         * doc/posix-functions/vfwprintf.texi: Likewise.
18143         * doc/posix-functions/vswprintf.texi: Likewise.
18144         * doc/posix-functions/vwprintf.texi: Likewise.
18145         * doc/posix-functions/wcrtomb.texi: Likewise.
18146         * doc/posix-functions/wcsrtombs.texi: Likewise.
18147         * doc/posix-functions/wcsstr.texi: Likewise.
18148         * doc/posix-functions/wctob.texi: Likewise.
18149         * doc/posix-functions/wctrans.texi: Likewise.
18150         * doc/posix-functions/wmemchr.texi: Likewise.
18151         * doc/posix-functions/wmemcmp.texi: Likewise.
18152         * doc/posix-functions/wmemcpy.texi: Likewise.
18153         * doc/posix-functions/wmemmove.texi: Likewise.
18154         * doc/posix-functions/wmemset.texi: Likewise.
18155         * doc/posix-functions/wprintf.texi: Likewise.
18156         * doc/posix-functions/wscanf.texi: Likewise.
18157
18158 2008-12-21  Bruno Haible  <bruno@clisp.org>
18159
18160         Work around a portability problem.
18161         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18162         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18163
18164 2008-12-20  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18167         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18168         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18169         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18170         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18171
18172         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18173         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18174         set.
18175         (GNULIB_defined_mbstate_t): New macro.
18176         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18177         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18178         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18179         reuses the system's mbrtowc function but works around the bugs.
18180         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18181         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18182         macros.
18183         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18184         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18185         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18186         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18187         REPLACE_MBSINIT if mbsinit needs to be overridden.
18188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18189         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18190         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18191         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18192         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18193         m4/locale-zh.m4.
18194         (Depends): Add mbsinit.
18195         * modules/mbsinit (Depends): Add mbrtowc.
18196         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18197
18198 2008-12-20  Bruno Haible  <bruno@clisp.org>
18199
18200         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18201         so that there are no conversion errors on AIX.
18202         * tests/test-mbsrtowcs.c (main): LIkewise.
18203
18204 2008-12-20  Bruno Haible  <bruno@clisp.org>
18205
18206         Work around wctob bug on Solaris <= 9.
18207         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18208         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18209         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18210         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18211         * modules/wctob (Files): Add m4/locale-fr.m4.
18212         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18213
18214 2008-12-20  Bruno Haible  <bruno@clisp.org>
18215
18216         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18217         /dev/null.
18218         * tests/test-select-in.sh: Likewise.
18219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18220
18221 2008-12-20  Bruno Haible  <bruno@clisp.org>
18222
18223         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18224         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18225         Cygwin 1.5.x.
18226
18227 2008-12-20  Bruno Haible  <bruno@clisp.org>
18228
18229         Ensure mbstate_t is defined on HP-UX 11.11.
18230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18231         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18232         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18233         AC_USE_SYSTEM_EXTENSIONS.
18234         * modules/fnmatch (Depends-on): Add extensions.
18235         * modules/mbrlen (Depends-on): Likewise.
18236         * modules/mbrtowc (Depends-on): Likewise.
18237         * modules/mbsinit (Depends-on): Likewise.
18238         * modules/mbsrtowcs (Depends-on): Likewise.
18239         * modules/mbswidth (Depends-on): Likewise.
18240         * modules/quotearg (Depends-on): Likewise.
18241         * modules/strftime (Depends-on): Likewise.
18242
18243 2008-12-20  Bruno Haible  <bruno@clisp.org>
18244
18245         Ensure wctob is declared on IRIX 6.5.
18246         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18247         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18248         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18249         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18250         of HAVE_WCTOB.
18251         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18252         HAVE_WCTOB.
18253         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18254
18255 2008-12-19  Bruno Haible  <bruno@clisp.org>
18256
18257         * modules/mbsrtowcs-tests: New file.
18258         * tests/test-mbsrtowcs1.sh: New file.
18259         * tests/test-mbsrtowcs2.sh: New file.
18260         * tests/test-mbsrtowcs3.sh: New file.
18261         * tests/test-mbsrtowcs4.sh: New file.
18262         * tests/test-mbsrtowcs.c: New file.
18263
18264         New module 'mbsrtowcs'.
18265         * lib/wchar.in.h (mbsrtowcs): New declaration.
18266         * lib/mbsrtowcs.c: New file.
18267         * m4/mbsrtowcs.m4: New file.
18268         * modules/mbsrtowcs: New file.
18269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18270         HAVE_MBSRTOWCS.
18271         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18272         HAVE_MBSRTOWCS.
18273         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18274
18275 2008-12-19  Bruno Haible  <bruno@clisp.org>
18276
18277         New module 'mbrlen'.
18278         * lib/wchar.in.h (mbrlen): New declaration.
18279         * lib/mbrlen.c: New file.
18280         * m4/mbrlen.m4: New file.
18281         * modules/mbrlen: New file.
18282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18283         HAVE_MBRLEN.
18284         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18285         HAVE_MBRLEN.
18286         * doc/posix-functions/mbrlen.texi: Document the new module.
18287
18288 2008-12-19  Bruno Haible  <bruno@clisp.org>
18289
18290         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18291         * modules/mbrtowc (Depends-on): Add verify.
18292         Suggested by Paul Eggert.
18293
18294 2008-12-18  Bruno Haible  <bruno@clisp.org>
18295
18296         * modules/mbsinit-tests: New file.
18297         * tests/test-mbsinit.sh: New file.
18298         * tests/test-mbsinit.c: New file.
18299
18300 2008-12-18  Bruno Haible  <bruno@clisp.org>
18301
18302         * modules/mbrtowc-tests: New file.
18303         * tests/test-mbrtowc1.sh: New file.
18304         * tests/test-mbrtowc2.sh: New file.
18305         * tests/test-mbrtowc3.sh: New file.
18306         * tests/test-mbrtowc4.sh: New file.
18307         * tests/test-mbrtowc.c: New file.
18308
18309         New module 'mbrtowc'.
18310         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18311         mbsinit and mbrtowc.
18312         (mbrtowc): New declaration.
18313         * lib/mbrtowc.c: New file.
18314         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18315         * modules/mbrtowc: New file.
18316         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18317         HAVE_MBRTOWC.
18318         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18319         HAVE_MBRTOWC.
18320         * doc/posix-functions/mbrtowc.texi: Document the new module.
18321
18322 2008-12-18  Bruno Haible  <bruno@clisp.org>
18323
18324         New module 'wctob'.
18325         * lib/wchar.in.h (wctob): New declaration.
18326         * lib/wctob.c: New file.
18327         * m4/wctob.m4: New file.
18328         * modules/wctob: New file.
18329         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18330         HAVE_WCTOB.
18331         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18332         * doc/posix-functions/wctob.texi: Document the new module.
18333
18334 2008-12-18  Bruno Haible  <bruno@clisp.org>
18335
18336         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18337         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18338
18339 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18340
18341         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18342         G. Christensen" <tgc@jupiterrise.com>.
18343
18344         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18345         G. Christensen" <tgc@jupiterrise.com>.
18346
18347         * lib/flock.c: Need to include string.h.  Reported by "Tom
18348         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18349         <ebb9@byu.net>.
18350
18351 2008-12-18  Bruno Haible  <bruno@clisp.org>
18352
18353         * m4/locale-ja.m4: New file, from GNU gettext.
18354
18355 2008-12-17  Bruno Haible  <bruno@clisp.org>
18356
18357         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18358         Suggested by Eric Blake.
18359
18360 2008-12-17  Bruno Haible  <bruno@clisp.org>
18361
18362         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18363
18364 2008-12-17  Bruno Haible  <bruno@clisp.org>
18365
18366         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18367         * modules/mbsinit (Depends-on): Add verify.
18368         Suggested by Paul Eggert.
18369
18370 2008-12-17  Bruno Haible  <bruno@clisp.org>
18371
18372         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18373         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18374         gl_FUNC_MBRTOWC.
18375         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18376         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18377         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18378         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18379         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18380         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18381         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18382         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18383         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18384         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18385         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18386         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18387         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18388         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18389         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18390         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18391         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18392         * modules/trim (configure.ac): Likewise.
18393
18394 2008-12-17  Bruno Haible  <bruno@clisp.org>
18395
18396         * modules/btowc-tests: New file.
18397         * tests/test-btowc1.sh: New file.
18398         * tests/test-btowc2.sh: New file.
18399         * tests/test-btowc.c: New file.
18400
18401         New module 'btowc'.
18402         * lib/wchar.in.h (btowc): New declaration.
18403         * lib/btowc.c: New file.
18404         * m4/btowc.m4: New file.
18405         * modules/btowc: New file.
18406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18407         HAVE_BTOWC.
18408         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18409         * doc/posix-functions/btowc.texi: Document the new module.
18410
18411 2008-12-17  Bruno Haible  <bruno@clisp.org>
18412
18413         New module 'mbsinit'.
18414         * lib/wchar.in.h (mbsinit): New declaration.
18415         * lib/mbsinit.c: New file.
18416         * m4/mbsinit.m4: New file.
18417         * modules/mbsinit: New file.
18418         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18419         HAVE_MBSINIT.
18420         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18421         HAVE_MBSINIT.
18422         * doc/posix-functions/mbsinit.texi: Document the new module.
18423
18424 2008-12-16  Bruno Haible  <bruno@clisp.org>
18425
18426         * lib/unistd.in.h: Add comment.
18427         * tests/test-environ.c: Don't include <stdlib.h>.
18428
18429 2008-12-16  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/parse-duration.h (parse_duration): Document return value
18432         convention.
18433         * lib/parse-duration.c: Include specification header first. Add
18434         comments.
18435         (_): Remove macro.
18436         (parse_year_month_day, parse_hour_minute_second): Move side effects
18437         outside of strchr call.
18438         (parse_non_iso8601): Move side effects outside of isspace call.
18439         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18440         call.
18441
18442 2008-12-16  Bruno Haible  <bruno@clisp.org>
18443
18444         * tests/test-parse-duration.sh: Produce no output when the test
18445         succeeds.
18446
18447 2008-12-16  Bruno Haible  <bruno@clisp.org>
18448
18449         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18450         expressions.
18451
18452 2008-12-15  Bruno Haible  <bruno@clisp.org>
18453
18454         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18455         * doc/glibc-functions/flistxattr.texi: Likewise.
18456         * doc/glibc-functions/fopencookie.texi: Likewise.
18457         * doc/glibc-functions/fremovexattr.texi: Likewise.
18458         * doc/glibc-functions/fsetxattr.texi: Likewise.
18459         * doc/glibc-functions/getxattr.texi: Likewise.
18460         * doc/glibc-functions/lgetxattr.texi: Likewise.
18461         * doc/glibc-functions/listxattr.texi: Likewise.
18462         * doc/glibc-functions/llistxattr.texi: Likewise.
18463         * doc/glibc-functions/lremovexattr.texi: Likewise.
18464         * doc/glibc-functions/lsetxattr.texi: Likewise.
18465         * doc/glibc-functions/removexattr.texi: Likewise.
18466         * doc/glibc-functions/setxattr.texi: Likewise.
18467         * doc/posix-functions/open_memstream.texi: Likewise.
18468
18469 2008-12-15  Eric Blake  <ebb9@byu.net>
18470
18471         Update doc for cygwin 1.7.
18472         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18473         functions.
18474         * doc/posix-functions/fchmodat.texi: Likewise.
18475         * doc/posix-functions/fchownat.texi: Likewise.
18476         * doc/posix-functions/fdopendir.texi: Likewise.
18477         * doc/posix-functions/fmemopen.texi: Likewise.
18478         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18479         * doc/posix-functions/fstatat.texi: Likewise.
18480         * doc/posix-functions/futimens.texi: Likewise.
18481         * doc/posix-functions/gai_strerror.texi: Likewise.
18482         * doc/posix-functions/getaddrinfo.texi: Likewise.
18483         * doc/posix-functions/getnameinfo.texi: Likewise.
18484         * doc/posix-functions/if_freenameindex.texi: Likewise.
18485         * doc/posix-functions/if_indextoname.texi: Likewise.
18486         * doc/posix-functions/if_nameindex.texi: Likewise.
18487         * doc/posix-functions/if_nametoindex.texi: Likewise.
18488         * doc/posix-functions/insque.texi: Likewise.
18489         * doc/posix-functions/linkat.texi: Likewise.
18490         * doc/posix-functions/llrint.texi: Likewise.
18491         * doc/posix-functions/llrintf.texi: Likewise.
18492         * doc/posix-functions/llrintl.texi: Likewise.
18493         * doc/posix-functions/lockf.texi: Likewise.
18494         * doc/posix-functions/lrintl.texi: Likewise.
18495         * doc/posix-functions/mkdirat.texi: Likewise.
18496         * doc/posix-functions/mkfifoat.texi: Likewise.
18497         * doc/posix-functions/mknodat.texi: Likewise.
18498         * doc/posix-functions/mq_close.texi: Likewise.
18499         * doc/posix-functions/mq_getattr.texi: Likewise.
18500         * doc/posix-functions/mq_notify.texi: Likewise.
18501         * doc/posix-functions/mq_open.texi: Likewise.
18502         * doc/posix-functions/mq_receive.texi: Likewise.
18503         * doc/posix-functions/mq_send.texi: Likewise.
18504         * doc/posix-functions/mq_setattr.texi: Likewise.
18505         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18506         * doc/posix-functions/mq_timedsend.texi: Likewise.
18507         * doc/posix-functions/mq_unlink.texi: Likewise.
18508         * doc/posix-functions/open_memstream.texi: Likewise.
18509         * doc/posix-functions/openat.texi: Likewise.
18510         * doc/posix-functions/posix_fadvise.texi: Likewise.
18511         * doc/posix-functions/posix_fallocate.texi: Likewise.
18512         * doc/posix-functions/posix_madvise.texi: Likewise.
18513         * doc/posix-functions/posix_memalign.texi: Likewise.
18514         * doc/posix-functions/posix_openpt.texi: Likewise.
18515         * doc/posix-functions/readlinkat.texi: Likewise.
18516         * doc/posix-functions/remque.texi: Likewise.
18517         * doc/posix-functions/renameat.texi: Likewise.
18518         * doc/posix-functions/rintl.texi: Likewise.
18519         * doc/posix-functions/sem_unlink.texi: Likewise.
18520         * doc/posix-functions/shm_open.texi: Likewise.
18521         * doc/posix-functions/shm_unlink.texi: Likewise.
18522         * doc/posix-functions/signgam.texi: Likewise.
18523         * doc/posix-functions/sigset.texi: Likewise.
18524         * doc/posix-functions/stpcpy.texi: Likewise.
18525         * doc/posix-functions/stpncpy.texi: Likewise.
18526         * doc/posix-functions/strerror.texi: Likewise.
18527         * doc/posix-functions/strtod.texi: Likewise.
18528         * doc/posix-functions/symlinkat.texi: Likewise.
18529         * doc/posix-functions/unlinkat.texi: Likewise.
18530         * doc/posix-functions/utimensat.texi: Likewise.
18531         * doc/glibc-functions/bindresvport.texi: Likewise.
18532         * doc/glibc-functions/dn_expand.texi: Likewise.
18533         * doc/glibc-functions/exp10.texi: Likewise.
18534         * doc/glibc-functions/exp10f.texi: Likewise.
18535         * doc/glibc-functions/fgetxattr.texi: Likewise.
18536         * doc/glibc-functions/flistxattr.texi: Likewise.
18537         * doc/glibc-functions/fopencookie.texi: Likewise.
18538         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18539         * doc/glibc-functions/fremovexattr.texi: Likewise.
18540         * doc/glibc-functions/fsetxattr.texi: Likewise.
18541         * doc/glibc-functions/getifaddrs.texi: Likewise.
18542         * doc/glibc-functions/getxattr.texi: Likewise.
18543         * doc/glibc-functions/lgetxattr.texi: Likewise.
18544         * doc/glibc-functions/listxattr.texi: Likewise.
18545         * doc/glibc-functions/llistxattr.texi: Likewise.
18546         * doc/glibc-functions/lremovexattr.texi: Likewise.
18547         * doc/glibc-functions/lsetxattr.texi: Likewise.
18548         * doc/glibc-functions/pow10.texi: Likewise.
18549         * doc/glibc-functions/pow10f.texi: Likewise.
18550         * doc/glibc-functions/rcmd_af.texi: Likewise.
18551         * doc/glibc-functions/removexattr.texi: Likewise.
18552         * doc/glibc-functions/res_init.texi: Likewise.
18553         * doc/glibc-functions/res_mkquery.texi: Likewise.
18554         * doc/glibc-functions/res_query.texi: Likewise.
18555         * doc/glibc-functions/res_querydomain.texi: Likewise.
18556         * doc/glibc-functions/res_send.texi: Likewise.
18557         * doc/glibc-functions/rresvport_af.texi: Likewise.
18558         * doc/glibc-functions/setxattr.texi: Likewise.
18559         * doc/glibc-functions/strcasestr.texi: Likewise.
18560
18561 2008-12-15  Bruno Haible  <bruno@clisp.org>
18562
18563         Fix compilation error on OSF/1 4.0.
18564         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18565         <sys/time.h>, simply delegate to the system header.
18566         Reported by Daniel Richard G. <oss@teragram.com>.
18567
18568 2008-12-15  Bruno Haible  <bruno@clisp.org>
18569
18570         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18571         * doc/posix-functions/fchmodat.texi: Likewise.
18572         * doc/posix-functions/fchownat.texi: Likewise.
18573         * doc/posix-functions/fdopendir.texi: Likewise.
18574         * doc/posix-functions/fstatat.texi: Likewise.
18575         * doc/posix-functions/mkdirat.texi: Likewise.
18576         * doc/posix-functions/unlinkat.texi: Likewise.
18577
18578 2008-12-14  Bruno Haible  <bruno@clisp.org>
18579
18580         Update doc for POSIX:2008.
18581         * doc/posix-functions/faccessat.texi: New file.
18582         * doc/posix-functions/fchmodat.texi: New file.
18583         * doc/posix-functions/fchownat.texi: New file.
18584         * doc/posix-functions/fdopendir.texi: New file.
18585         * doc/posix-functions/fstatat.texi: New file.
18586         * doc/posix-functions/futimens.texi: New file.
18587         * doc/posix-functions/linkat.texi: New file.
18588         * doc/posix-functions/mkdirat.texi: New file.
18589         * doc/posix-functions/mkfifoat.texi: New file.
18590         * doc/posix-functions/mknodat.texi: New file.
18591         * doc/posix-functions/open_wmemstream.texi: New file.
18592         * doc/posix-functions/openat.texi: New file.
18593         * doc/posix-functions/psiginfo.texi: New file.
18594         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18595         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18596         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18597         * doc/posix-functions/readlinkat.texi: New file.
18598         * doc/posix-functions/renameat.texi: New file.
18599         * doc/posix-functions/strerror_l.texi: New file.
18600         * doc/posix-functions/symlinkat.texi: New file.
18601         * doc/posix-functions/unlinkat.texi: New file.
18602         * doc/posix-functions/utimensat.texi: New file.
18603         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18604
18605 2008-12-14  Bruno Haible  <bruno@clisp.org>
18606
18607         Update doc for POSIX:2008.
18608         * doc/posix-functions/alphasort.texi: Renamed from
18609         doc/glibc-functions/alphasort.texi.
18610         * doc/posix-functions/dirfd.texi: Renamed from
18611         doc/glibc-functions/dirfd.texi.
18612         * doc/posix-functions/dprintf.texi: Renamed from
18613         doc/glibc-functions/dprintf.texi.
18614         * doc/posix-functions/duplocale.texi: Renamed from
18615         doc/glibc-functions/duplocale.texi.
18616         * doc/posix-functions/fexecve.texi: Renamed from
18617         doc/glibc-functions/fexecve.texi.
18618         * doc/posix-functions/fmemopen.texi: Renamed from
18619         doc/glibc-functions/fmemopen.texi.
18620         * doc/posix-functions/freelocale.texi: Renamed from
18621         doc/glibc-functions/freelocale.texi.
18622         * doc/posix-functions/getdate_err.texi: Renamed from
18623         doc/glibc-functions/getdate_err.texi.
18624         * doc/posix-functions/isalnum_l.texi: Renamed from
18625         doc/glibc-functions/isalnum_l.texi.
18626         * doc/posix-functions/isalpha_l.texi: Renamed from
18627         doc/glibc-functions/isalpha_l.texi.
18628         * doc/posix-functions/isblank_l.texi: Renamed from
18629         doc/glibc-functions/isblank_l.texi.
18630         * doc/posix-functions/iscntrl_l.texi: Renamed from
18631         doc/glibc-functions/iscntrl_l.texi.
18632         * doc/posix-functions/isdigit_l.texi: Renamed from
18633         doc/glibc-functions/isdigit_l.texi.
18634         * doc/posix-functions/isgraph_l.texi: Renamed from
18635         doc/glibc-functions/isgraph_l.texi.
18636         * doc/posix-functions/islower_l.texi: Renamed from
18637         doc/glibc-functions/islower_l.texi.
18638         * doc/posix-functions/isprint_l.texi: Renamed from
18639         doc/glibc-functions/isprint_l.texi.
18640         * doc/posix-functions/ispunct_l.texi: Renamed from
18641         doc/glibc-functions/ispunct_l.texi.
18642         * doc/posix-functions/isspace_l.texi: Renamed from
18643         doc/glibc-functions/isspace_l.texi.
18644         * doc/posix-functions/isupper_l.texi: Renamed from
18645         doc/glibc-functions/isupper_l.texi.
18646         * doc/posix-functions/iswalnum_l.texi: Renamed from
18647         doc/glibc-functions/iswalnum_l.texi.
18648         * doc/posix-functions/iswalpha_l.texi: Renamed from
18649         doc/glibc-functions/iswalpha_l.texi.
18650         * doc/posix-functions/iswblank_l.texi: Renamed from
18651         doc/glibc-functions/iswblank_l.texi.
18652         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18653         doc/glibc-functions/iswcntrl_l.texi.
18654         * doc/posix-functions/iswctype_l.texi: Renamed from
18655         doc/glibc-functions/iswctype_l.texi.
18656         * doc/posix-functions/iswdigit_l.texi: Renamed from
18657         doc/glibc-functions/iswdigit_l.texi.
18658         * doc/posix-functions/iswgraph_l.texi: Renamed from
18659         doc/glibc-functions/iswgraph_l.texi.
18660         * doc/posix-functions/iswlower_l.texi: Renamed from
18661         doc/glibc-functions/iswlower_l.texi.
18662         * doc/posix-functions/iswprint_l.texi: Renamed from
18663         doc/glibc-functions/iswprint_l.texi.
18664         * doc/posix-functions/iswpunct_l.texi: Renamed from
18665         doc/glibc-functions/iswpunct_l.texi.
18666         * doc/posix-functions/iswspace_l.texi: Renamed from
18667         doc/glibc-functions/iswspace_l.texi.
18668         * doc/posix-functions/iswupper_l.texi: Renamed from
18669         doc/glibc-functions/iswupper_l.texi.
18670         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18671         doc/glibc-functions/iswxdigit_l.texi.
18672         * doc/posix-functions/isxdigit_l.texi: Renamed from
18673         doc/glibc-functions/isxdigit_l.texi.
18674         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18675         doc/glibc-functions/mbsnrtowcs.texi.
18676         * doc/posix-functions/mkdtemp.texi: Renamed from
18677         doc/glibc-functions/mkdtemp.texi.
18678         * doc/posix-functions/newlocale.texi: Renamed from
18679         doc/glibc-functions/newlocale.texi.
18680         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18681         doc/glibc-functions/nl_langinfo_l.texi.
18682         * doc/posix-functions/open_memstream.texi: Renamed from
18683         doc/glibc-functions/open_memstream.texi.
18684         * doc/posix-functions/opterr.texi: Renamed from
18685         doc/glibc-functions/opterr.texi.
18686         * doc/posix-functions/optind.texi: Renamed from
18687         doc/glibc-functions/optind.texi.
18688         * doc/posix-functions/optopt.texi: Renamed from
18689         doc/glibc-functions/optopt.texi.
18690         * doc/posix-functions/psignal.texi: Renamed from
18691         doc/glibc-functions/psignal.texi.
18692         * doc/posix-functions/scandir.texi: Renamed from
18693         doc/glibc-functions/scandir.texi.
18694         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
18695         doc/glibc-functions/sched_get_priority_min.texi.
18696         * doc/posix-functions/signgam.texi: Renamed from
18697         doc/glibc-functions/signgam.texi.
18698         * doc/posix-functions/stpcpy.texi: Renamed from
18699         doc/glibc-functions/stpcpy.texi.
18700         * doc/posix-functions/stpncpy.texi: Renamed from
18701         doc/glibc-functions/stpncpy.texi.
18702         * doc/posix-functions/strcasecmp_l.texi: Renamed from
18703         doc/glibc-functions/strcasecmp_l.texi.
18704         * doc/posix-functions/strcoll_l.texi: Renamed from
18705         doc/glibc-functions/strcoll_l.texi.
18706         * doc/posix-functions/strfmon_l.texi: Renamed from
18707         doc/glibc-functions/strfmon_l.texi.
18708         * doc/posix-functions/strftime_l.texi: Renamed from
18709         doc/glibc-functions/strftime_l.texi.
18710         * doc/posix-functions/strncasecmp_l.texi: Renamed from
18711         doc/glibc-functions/strncasecmp_l.texi.
18712         * doc/posix-functions/strndup.texi: Renamed from
18713         doc/glibc-functions/strndup.texi.
18714         * doc/posix-functions/strnlen.texi: Renamed from
18715         doc/glibc-functions/strnlen.texi.
18716         * doc/posix-functions/strsignal.texi: Renamed from
18717         doc/glibc-functions/strsignal.texi.
18718         * doc/posix-functions/strxfrm_l.texi: Renamed from
18719         doc/glibc-functions/strxfrm_l.texi.
18720         * doc/posix-functions/timer_gettime.texi: Renamed from
18721         doc/glibc-functions/timer_gettime.texi.
18722         * doc/posix-functions/tolower_l.texi: Renamed from
18723         doc/glibc-functions/tolower_l.texi.
18724         * doc/posix-functions/toupper_l.texi: Renamed from
18725         doc/glibc-functions/toupper_l.texi.
18726         * doc/posix-functions/towctrans_l.texi: Renamed from
18727         doc/glibc-functions/towctrans_l.texi.
18728         * doc/posix-functions/towlower_l.texi: Renamed from
18729         doc/glibc-functions/towlower_l.texi.
18730         * doc/posix-functions/towupper_l.texi: Renamed from
18731         doc/glibc-functions/towupper_l.texi.
18732         * doc/posix-functions/uselocale.texi: Renamed from
18733         doc/glibc-functions/uselocale.texi.
18734         * doc/posix-functions/vdprintf.texi: Renamed from
18735         doc/glibc-functions/vdprintf.texi.
18736         * doc/posix-functions/wcpcpy.texi:
18737         Renamed from doc/glibc-functions/wcpcpy.texi.
18738         * doc/posix-functions/wcpncpy.texi: Renamed from
18739         doc/glibc-functions/wcpncpy.texi.
18740         * doc/posix-functions/wcscasecmp.texi: Renamed from
18741         doc/glibc-functions/wcscasecmp.texi.
18742         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
18743         doc/glibc-functions/wcscasecmp_l.texi.
18744         * doc/posix-functions/wcscoll_l.texi: Renamed from
18745         doc/glibc-functions/wcscoll_l.texi.
18746         * doc/posix-functions/wcsdup.texi: Renamed from
18747         doc/glibc-functions/wcsdup.texi.
18748         * doc/posix-functions/wcsncasecmp.texi: Renamed from
18749         doc/glibc-functions/wcsncasecmp.texi.
18750         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
18751         doc/glibc-functions/wcsncasecmp_l.texi.
18752         * doc/posix-functions/wcsnlen.texi: Renamed from
18753         doc/glibc-functions/wcsnlen.texi.
18754         * doc/posix-functions/wcsnrtombs.texi: Renamed from
18755         doc/glibc-functions/wcsnrtombs.texi.
18756         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
18757         doc/glibc-functions/wcsxfrm_l.texi.
18758         * doc/posix-functions/wctrans_l.texi: Renamed from
18759         doc/glibc-functions/wctrans_l.texi.
18760         * doc/posix-functions/wctype_l.texi: Renamed from
18761         doc/glibc-functions/wctype_l.texi.
18762         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18763         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
18764         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
18765         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
18766         these subsections.
18767         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
18768         Remove sections.
18769
18770 2008-12-14  Bruno Haible  <bruno@clisp.org>
18771
18772         Update doc for POSIX:2008.
18773         * doc/posix-functions/*.texi: Update URL of POSIX specification.
18774
18775 2008-12-14  Bruno Haible  <bruno@clisp.org>
18776
18777         Update doc for POSIX:2008.
18778         * doc/pastposix-functions/bcmp.texi: Renamed from
18779         doc/posix-functions/bcmp.texi.
18780         * doc/pastposix-functions/bcopy.texi: Renamed from
18781         doc/posix-functions/bcopy.texi.
18782         * doc/pastposix-functions/bsd_signal.texi: Renamed from
18783         doc/posix-functions/bsd_signal.texi.
18784         * doc/pastposix-functions/bzero.texi: Renamed from
18785         doc/posix-functions/bzero.texi.
18786         * doc/pastposix-functions/ecvt.texi: Renamed from
18787         doc/posix-functions/ecvt.texi.
18788         * doc/pastposix-functions/fcvt.texi: Renamed from
18789         doc/posix-functions/fcvt.texi.
18790         * doc/pastposix-functions/ftime.texi: Renamed from
18791         doc/posix-functions/ftime.texi.
18792         * doc/pastposix-functions/gcvt.texi: Renamed from
18793         doc/posix-functions/gcvt.texi.
18794         * doc/pastposix-functions/getcontext.texi: Renamed from
18795         doc/posix-functions/getcontext.texi.
18796         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
18797         doc/posix-functions/gethostbyaddr.texi.
18798         * doc/pastposix-functions/gethostbyname.texi: Renamed from
18799         doc/posix-functions/gethostbyname.texi.
18800         * doc/pastposix-functions/getwd.texi: Renamed from
18801         doc/posix-functions/getwd.texi.
18802         * doc/pastposix-functions/h_errno.texi: Renamed from
18803         doc/posix-functions/h_errno.texi.
18804         * doc/pastposix-functions/index.texi: Renamed from
18805         doc/posix-functions/index.texi.
18806         * doc/pastposix-functions/makecontext.texi: Renamed from
18807         doc/posix-functions/makecontext.texi.
18808         * doc/pastposix-functions/mktemp.texi: Renamed from
18809         doc/posix-functions/mktemp.texi.
18810         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
18811         doc/posix-functions/pthread_attr_getstackaddr.texi.
18812         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
18813         doc/posix-functions/pthread_attr_setstackaddr.texi.
18814         * doc/pastposix-functions/rindex.texi: Renamed from
18815         doc/posix-functions/rindex.texi.
18816         * doc/pastposix-functions/scalb.texi: Renamed from
18817         doc/posix-functions/scalb.texi.
18818         * doc/pastposix-functions/setcontext.texi: Renamed from
18819         doc/posix-functions/setcontext.texi.
18820         * doc/pastposix-functions/swapcontext.texi: Renamed from
18821         doc/posix-functions/swapcontext.texi.
18822         * doc/pastposix-functions/ualarm.texi: Renamed from
18823         doc/posix-functions/ualarm.texi.
18824         * doc/pastposix-functions/usleep.texi: Renamed from
18825         doc/posix-functions/usleep.texi.
18826         * doc/pastposix-functions/vfork.texi: Renamed from
18827         doc/posix-functions/vfork.texi.
18828         * doc/pastposix-functions/wcswcs.texi: Renamed from
18829         doc/posix-functions/wcswcs.texi.
18830         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
18831         (Function Substitutes): Update.
18832
18833 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18834
18835         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
18836         m4/strerror.m4.
18837
18838 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18839             Bruno Haible  <bruno@clisp.org>
18840
18841         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
18842
18843 2008-12-13  Bruno Haible  <bruno@clisp.org>
18844
18845         * modules/strtoull (Depends-on): Remove unistd.
18846
18847 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18848
18849         * modules/strtoull (Depends-on): Add stdlib.
18850
18851 2008-12-11  Simon Josefsson  <simon@josefsson.org>
18852
18853         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
18854
18855 2008-12-10  Jim Meyering  <meyering@redhat.com>
18856
18857         gl_ASSERT: don't say assertions are disabled when they're not
18858         * m4/assert.m4 (gl_ASSERT): Do not make configure report
18859         "checking whether to enable assertions... no", when they are in
18860         fact enabled.  This is solely a bug in the output of configure.
18861         In spite of saying "no", NDEBUG was not defined in that case.
18862         Also, as noted by Eric Blake, leave assertions enabled upon
18863         --enable-assert=INVALID.
18864
18865 2008-12-10  Bruno Haible  <bruno@clisp.org>
18866
18867         Change MODULES.html to refer to POSIX:2008 where possible.
18868         * MODULES.html.sh (POSIX2008_URL): New variable.
18869         (posix_headers): Remove sys/timeb, ucontext.
18870         (posix2001_headers): New variable.
18871         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
18872         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
18873         index, makecontext, mktemp, pthread_attr_getstackaddr,
18874         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
18875         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
18876         (posix2001_functions): New variable.
18877         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
18878         otherwise.
18879
18880 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18881
18882         add missing include to parse-duration.c
18883         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
18884         * modules/parse-duration (Depends-on): Add xalloc.
18885
18886         fix sed script reading maint.mk
18887         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
18888         (syntax-check-rules): Use it.
18889
18890 2008-12-09  Bruno Haible  <bruno@clisp.org>
18891
18892         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
18893         MacOS X 10.4/PowerPC.
18894         Reported by Simon Josefsson.
18895
18896 2008-12-08  Jim Meyering  <meyering@redhat.com>
18897
18898         work around mingw's lack of some S_IF definitions
18899         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
18900         Reported by Simon Josefsson.
18901
18902 2008-12-08  Bruno Haible  <bruno@clisp.org>
18903
18904         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
18905         applied to variables. Needed on MacOS X 10.4/PowerPC.
18906         Reported by Simon Josefsson.
18907
18908 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
18909         and Eric Blake  <ebb9@byu.net>
18910
18911         assert: honor --enable-assert
18912         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
18913         order to honor --enable-assert, rather than treating it as a
18914         synonym for --disable-assert.
18915
18916 2008-12-08  Jim Meyering  <meyering@redhat.com>
18917
18918         * lib/posixtm.c: Remove now-useless declaration of mktime.
18919
18920         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
18921
18922 2008-12-07  Bruno Haible  <bruno@clisp.org>
18923
18924         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
18925         test_once): Mark functions as static.
18926         * tests/test-tls.c (test_tls): Likewise.
18927
18928 2008-12-07  Bruno Haible  <bruno@clisp.org>
18929
18930         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
18931         iconv_register_autodetect.
18932
18933 2008-12-07  Jim Meyering  <meyering@redhat.com>
18934
18935         posixtm.c: avoid a warning
18936         * lib/posixtm.c (posixtime): Don't initialize tm0.
18937         It's no longer needed to placate gcc4's -Wuninitialized,
18938         and the attempt to placate would elicit a new warning.
18939
18940         unicodeio.c: mark unused parameters
18941         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18942         (fallback_failure_callback): Likewise.
18943
18944 2008-12-07  Bruno Haible  <bruno@clisp.org>
18945
18946         * gnulib-tool (func_create_testdir): When building the tests
18947         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
18948         Reported by Simon Josefsson.
18949
18950 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18951
18952         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
18953
18954 2008-12-06  Bruno Haible  <bruno@clisp.org>
18955
18956         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
18957         Suggested by Eric Blake.
18958
18959 2008-12-06  Bruno Haible  <bruno@clisp.org>
18960
18961         Fix a c-stack test failure on MacOS X.
18962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
18963         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
18964         handler for SIGBUS as well.
18965         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
18966         install a signal handler for SIGBUS as well.
18967         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
18968
18969 2008-12-06  Bruno Haible  <bruno@clisp.org>
18970
18971         Advocacy documentation.
18972         * doc/gnulib-intro.texi (Benefits): New section.
18973         * doc/gnulib.texi: Update.
18974
18975 2008-12-06  Bruno Haible  <bruno@clisp.org>
18976
18977         Document the 'manywarnings' module.
18978         * doc/manywarnings.texi: New file.
18979         * doc/gnulib.texi: Include it.
18980
18981 2008-12-05  Eric Blake  <ebb9@byu.net>
18982
18983         tests: silence some gcc warnings
18984         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
18985         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
18986         type mismatches.
18987
18988 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18989             Bruno Haible  <bruno@clisp.org>
18990
18991         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
18992
18993 2008-11-29  Jim Meyering  <meyering@redhat.com>
18994
18995         unicodeio.c: mark unused parameters
18996         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
18997         (fallback_failure_callback): Likewise.
18998
18999         fts: fix a thinko
19000         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19001         (set_stat_type): Return S_IF*-valued "type" directly.
19002         Prompted by James Youngman's spotting a related bug.
19003         Confirmed by further testing through find.
19004
19005         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19006         * lib/fts.c (D_TYPE): Define.
19007         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19008         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19009         (s_ifmt_shift_bits): New function.
19010         (set_stat_type): New function.
19011         (fts_build): When not calling fts_stat, call set_stat_type
19012         to propagate dirent.d_type info to fts_read caller.
19013         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19014         fts_statp->st_mode type information may be valid.
19015
19016 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19017
19018         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19019         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19020         <sds@gnu.org>.
19021
19022 2008-11-20  Bruno Haible  <bruno@clisp.org>
19023
19024         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19025         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19026         INCLUDE_NEXT.
19027         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19028         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19029         * modules/math (Makefile.am): Substitute
19030         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19031         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19032
19033 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19034             Bruno Haible  <bruno@clisp.org>
19035
19036         * lib/stdint.in.h: Define all type macros so that their expansion is
19037         a single typedef'ed token. Fixes a compilation failure in Boost which
19038         does "using ::int8_t;".
19039
19040 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19041
19042         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19043         gl_MANYWARN_ALL_GCC.
19044         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19045         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19046         * modules/manywarnings: New file.
19047         * MODULES.html.sh: Mention manywarnings module.
19048
19049 2008-11-18  Bruno Haible  <bruno@clisp.org>
19050
19051         * doc/gnulib-tool.texi (Unit tests): New section.
19052
19053 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19054
19055         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19056         paths like 'lib/po/foo.po'.
19057
19058 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19059
19060         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19061         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19062
19063 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19064
19065         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19066         parameter works.
19067
19068 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19069
19070         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19071
19072 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19073
19074         * modules/parse-duration-tests: New file.
19075         * tests/test-parse-duration.sh: New file.
19076         * tests/test-parse-duration.c: New file.
19077
19078         New module 'parse-duration'.
19079         * lib/parse-duration.h: New file.
19080         * lib/parse-duration.c: New file.
19081         * modules/parse-duration: New file.
19082
19083 2008-11-17  Bruno Haible  <bruno@clisp.org>
19084
19085         * tests/test-select-out.sh: Comment out the first pipe test.
19086         Reported by Simon Josefsson.
19087
19088 2008-11-17  Bruno Haible  <bruno@clisp.org>
19089
19090         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19092         gl_HOSTENT.
19093
19094 2008-11-17  Bruno Haible  <bruno@clisp.org>
19095
19096         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19097         -lnetwork and -lnet. Needed for Haiku and BeOS.
19098
19099 2008-11-16  Bruno Haible  <bruno@clisp.org>
19100
19101         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19102
19103 2008-11-16  Bruno Haible  <bruno@clisp.org>
19104
19105         Avoid test failure on Haiku.
19106         * tests/test-fsync.c: Include <errno.h>.
19107         (main): Don't require that fsync (0) fails.
19108
19109 2008-11-15  Bruno Haible  <bruno@clisp.org>
19110
19111         New module 'hostent'.
19112         * modules/hostent: New file.
19113         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19114
19115 2008-11-15  Bruno Haible  <bruno@clisp.org>
19116
19117         New module 'servent'.
19118         * modules/servent: New file.
19119         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19120
19121 2008-11-15  Bruno Haible  <bruno@clisp.org>
19122
19123         Avoid generating same test program with two different rules.
19124         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19125         test-frexp to test-frexp-nolibm.
19126         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19127         test-frexpl to test-frexpl-nolibm.
19128
19129 2008-11-15  Bruno Haible  <bruno@clisp.org>
19130
19131         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19132         $(FREXPL_LIBM).
19133
19134 2008-11-15  Bruno Haible  <bruno@clisp.org>
19135
19136         * lib/netdb.in.h: Activate the definitions also when the system's
19137         <netdb.h> has 'struct addrinfo'.
19138         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19139         EAI_OVERFLOW or AI_NUMERICSERV.
19140         * doc/posix-headers/netdb.texi: Document the problem.
19141
19142 2008-11-15  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19145
19146         Make the 'sched' module work on platforms where <sched.h> exists but
19147         is incomplete (such as Haiku).
19148         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19149         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19150         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19151         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19152         HAVE_STRUCT_SCHED_PARAM.
19153         * modules/sched (Depends-on): Add include_next.
19154         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19155         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19156         * doc/posix-headers/sched.texi: Document the issue.
19157
19158 2008-11-13  Jim Meyering  <meyering@redhat.com>
19159
19160         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19161         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19162         test would fail due to the difference in the Report bugs to ...
19163         line.  The expected address is empty, "<>", while the actual
19164         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19165
19166 2008-11-12  Bruno Haible  <bruno@clisp.org>
19167
19168         lstat: don't compile lstat.c on systems lacking lstat
19169         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19170         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19171         Reported by Daniel P. Berrange via Jim Meyering.
19172
19173 2008-11-12  Jim Meyering  <meyering@redhat.com>
19174
19175         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19176
19177 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19178
19179         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19180         instead.
19181
19182 2008-11-12  Bruno Haible  <bruno@clisp.org>
19183
19184         * lib/unicodeio.c: Include unistr.h.
19185         (utf8_wctomb): Remove function.
19186         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19187
19188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19189
19190         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19191         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19192         <bruno@clisp.org>.
19193         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19194
19195 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19196
19197         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19198         * doc/gnulib.texi: Add section for warnings.
19199
19200 2008-11-11  Bruno Haible  <bruno@clisp.org>
19201
19202         * lib/sockets.h: Add a comment.
19203
19204 2008-11-11  Karl Berry  <karl@gnu.org>
19205
19206         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19207
19208 2008-11-11  Eric Blake  <ebb9@byu.net>
19209
19210         fdl.texi: avoid git symlinks
19211         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19212
19213 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19214
19215         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19216
19217 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19218
19219         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19220         (gl_WARN_ADD): Substitute $2 if literal.
19221
19222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19223
19224         * m4/warning.m4: Remove.
19225
19226 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19227
19228         * m4/warnings.m4: Almost complete rewrite. :-)
19229
19230 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19231
19232         * modules/warnings: New module.
19233         * m4/warnings.m4: New file.
19234         * MODULES.html.sh: Mention warnings module.
19235         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19236         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19237
19238 2008-11-10  Eric Blake  <ebb9@byu.net>
19239
19240         fdl.texi: make a symlink to the latest version
19241         * doc/standards.texi: Revert today's earlier change.
19242         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19243         * doc/fdl.texi: ...and replace this with a symlink to the newer
19244         fdl-1.3.texi.
19245
19246 2008-11-10  Bruno Haible  <bruno@clisp.org>
19247
19248         * tests/test-select-fd.c (main): Accept the result file name as fourth
19249         argument.
19250         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19251         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19252
19253 2008-11-10  Bruno Haible  <bruno@clisp.org>
19254
19255         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19256         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19257         as autoconf-substituted macros.
19258         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19259         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19260         gl_NETDB_H_DEFAULTS. Set these variables.
19261         * modules/netdb (Makefile.am): Substitute these variables.
19262
19263 2008-11-10  Eric Blake  <ebb9@byu.net>
19264
19265         standards.texi: include correct file for FDL 1.3
19266         * doc/standards.texi (GNU Free Documentation License): Change
19267         include file to pull in FDL 1.3, not 1.2.
19268
19269         fdl.texi: revert accidental change to license
19270         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19271
19272 2008-11-10  Bruno Haible  <bruno@clisp.org>
19273
19274         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19275         cross-compiling guesses also when the native compile gives no result.
19276
19277 2008-11-10  Bruno Haible  <bruno@clisp.org>
19278
19279         * lib/spawni.c (__spawni): Force variable into the stack.
19280
19281 2008-11-10  Bruno Haible  <bruno@clisp.org>
19282
19283         Add support for Haiku.
19284         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19285         glibc and BeOS, but also on Haiku.
19286         * lib/fpurge.c (fpurge): Likewise.
19287         * lib/freadable.c (freadable): Likewise.
19288         * lib/freadahead.c (freadahead): Likewise.
19289         * lib/freading.c (freading): Likewise.
19290         * lib/freadptr.c (freadptr): Likewise.
19291         * lib/freadseek.c (freadptrinc): Likewise.
19292         * lib/fseeko.c (rpl_fseeko): Likewise.
19293         * lib/fseterr.c (fseterr): Likewise.
19294         * lib/fwritable.c (fwritable): Likewise.
19295         * lib/fwriting.c (fwriting): Likewise.
19296         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19297
19298 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19299
19300         * lib/config.charset: Treat Haiku like BeOS.
19301
19302 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19303
19304         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19305         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19306
19307 2008-11-08  Bruno Haible  <bruno@clisp.org>
19308
19309         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19310         AC_CACHE_CHECK.
19311
19312 2008-11-08  Bruno Haible  <bruno@clisp.org>
19313
19314         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19315
19316 2008-11-08  Bruno Haible  <bruno@clisp.org>
19317
19318         * tests/test-select-fd.c: New file.
19319         * tests/test-select-in.sh: New file.
19320         * tests/test-select-out.sh: New file.
19321         * tests/test-select-stdin.c: New file.
19322         * modules/select-tests (Files): Add the new files.
19323         (Depends-on): Add gettimeofday.
19324         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19325         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19326         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19327
19328 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19329             Bruno Haible  <bruno@clisp.org>
19330
19331         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19332
19333 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19334
19335         * build-aux/pmccabe2html: Added support for C++ source files.
19336
19337 2008-11-05  Ben Pfaff  <blp@gnu.org>
19338
19339         Fix lib/close.c build on Windows.
19340         * modules/close (Files): Add lib/w32sock.h.
19341
19342 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19343
19344         Accept Bison's NEWS format.
19345         * build-aux/announce-gen (print_news_deltas): Tweak
19346         $re_prefix.
19347
19348 2008-11-04  Bruno Haible  <bruno@clisp.org>
19349
19350         * modules/random_r (Maintainer): Add glibc.
19351
19352 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19353
19354         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19355         by karl@freefriends.org (Karl Berry).
19356         * doc/alloca.texi: Likewise.
19357         * doc/c-ctype.texi: Likewise.
19358         * doc/c-strcase.texi: Likewise.
19359         * doc/c-strcaseeq.texi: Likewise.
19360         * doc/c-strcasestr.texi: Likewise.
19361         * doc/c-strstr.texi: Likewise.
19362         * doc/c-strtod.texi: Likewise.
19363         * doc/c-strtold.texi: Likewise.
19364         * doc/ctime.texi: Likewise.
19365         * doc/error.texi: Likewise.
19366         * doc/fdl.texi: Likewise.
19367         * doc/gcd.texi: Likewise.
19368         * doc/getdate.texi: Likewise.
19369         * doc/gnulib-intro.texi: Likewise.
19370         * doc/gnulib-tool.texi: Likewise.
19371         * doc/gnulib.texi: Likewise.
19372         * doc/inet_ntoa.texi: Likewise.
19373         * doc/maintain.texi: Likewise.
19374         * doc/make-stds.texi: Likewise.
19375         * doc/quote.texi: Likewise.
19376         * doc/regexprops-generic.texi: Likewise.
19377         * doc/standards.texi: Likewise.
19378         * doc/verify.texi: Likewise.
19379         * doc/visibility.texi: Likewise.
19380         * doc/gnulib.texi (GNU Free Documentation License): Include
19381         fdl-1.3.texi instead of fdl.texi.
19382
19383 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19384
19385         * doc/fdl-1.3.texi: New file, from
19386         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19387         * modules/fdl-1.3: Add.
19388         * MODULES.html.sh: Add fdl-1.3.
19389
19390 2008-11-03  Bruno Haible  <bruno@clisp.org>
19391
19392         Make determination of absolute name of header file work with AIX xlc.
19393         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19394         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19395         preprocessing.
19396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19397         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19398
19399 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19400
19401         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19402         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19403         <ludo@gnu.org>.
19404
19405 2008-11-02  Bruno Haible  <bruno@clisp.org>
19406
19407         Mark 'strpbrk' obsolete.
19408         * modules/strpbrk (Status, Notice): New sections.
19409         * modules/strtok_r (Depends-on): Add strpbrk.
19410
19411 2008-11-02  Bruno Haible  <bruno@clisp.org>
19412
19413         Mark 'strdup' obsolete.
19414         * modules/strdup (Status, Notice): New sections.
19415         * modules/findprog (Depends-on): Add strdup.
19416         * modules/getaddrinfo (Depends-on): Likewise.
19417         * modules/localename (Depends-on): Likewise.
19418         * modules/relocatable-lib (Depends-on): Likewise.
19419         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19420         * modules/relocatable-prog (Depends-on): Likewise.
19421         * modules/trim (Depends-on): Likewise.
19422         * modules/unictype/gen-ctype (Depends-on): Likewise.
19423         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19424
19425 2008-11-02  Bruno Haible  <bruno@clisp.org>
19426
19427         Mark 'strcspn' obsolete.
19428         * modules/strcspn (Status, Notice): New sections.
19429
19430 2008-11-02  Bruno Haible  <bruno@clisp.org>
19431
19432         Mark 'rmdir' obsolete.
19433         * modules/rmdir (Status, Notice): New sections.
19434         * modules/clean-temp (Depends-on): Add rmdir.
19435         * modules/openat (Depends-on): Likewise.
19436
19437 2008-11-02  Bruno Haible  <bruno@clisp.org>
19438
19439         Mark 'raise' obsolete.
19440         * modules/raise (Status, Notice): New sections.
19441         (Include): Specify <signal.h>.
19442         * modules/stdio (Depends-on): Add raise.
19443         * modules/write (Depends-on): Likewise.
19444
19445 2008-11-02  Bruno Haible  <bruno@clisp.org>
19446
19447         Mark 'memset' obsolete.
19448         * modules/memset (Status, Notice): New sections.
19449
19450 2008-11-02  Bruno Haible  <bruno@clisp.org>
19451
19452         Mark 'memmove' obsolete.
19453         * modules/memmove (Status, Notice): New sections.
19454         * modules/argp (Depends-on): Add memmove.
19455         * modules/argz (Depends-on): Likewise.
19456         * modules/canonicalize (Depends-on): Likewise.
19457         * modules/canonicalize-lgpl (Depends-on): Likewise.
19458         * modules/fts (Depends-on): Likewise.
19459         * modules/getcwd (Depends-on): Likewise.
19460         * modules/human (Depends-on): Likewise.
19461         * modules/regex (Depends-on): Likewise.
19462         * modules/striconveh (Depends-on): Likewise.
19463         * modules/trim (Depends-on): Likewise.
19464         * modules/unistr/u8-move (Depends-on): Likewise.
19465         * modules/unistr/u16-move (Depends-on): Likewise.
19466         * modules/unistr/u32-move (Depends-on): Likewise.
19467
19468 2008-11-02  Bruno Haible  <bruno@clisp.org>
19469
19470         Mark 'memcpy' obsolete.
19471         * modules/memcpy (Status, Notice): New sections.
19472
19473 2008-11-02  Bruno Haible  <bruno@clisp.org>
19474
19475         Mark 'memcmp' obsolete.
19476         * modules/memcmp (Status, Notice): New sections.
19477         * modules/argmatch (Depends-on): Add memchr.
19478         * modules/backupfile (Depends-on): Likewise.
19479         * modules/c-strcasestr (Depends-on): Likewise.
19480         * modules/crypto/des (Depends-on): Likewise.
19481         * modules/csharpcomp (Depends-on): Likewise.
19482         * modules/fnmatch (Depends-on): Likewise.
19483         * modules/git-merge-changelog (Depends-on): Likewise.
19484         * modules/isnand (Depends-on): Likewise.
19485         * modules/isnand-nolibm (Depends-on): Likewise.
19486         * modules/isnanf (Depends-on): Likewise.
19487         * modules/isnanf-nolibm (Depends-on): Likewise.
19488         * modules/isnanl (Depends-on): Likewise.
19489         * modules/isnanl-nolibm (Depends-on): Likewise.
19490         * modules/mbchar (Depends-on): Likewise.
19491         * modules/memcoll (Depends-on): Likewise.
19492         * modules/quotearg (Depends-on): Likewise.
19493         * modules/regex (Depends-on): Likewise.
19494         * modules/relocatable-prog (Depends-on): Likewise.
19495         * modules/same (Depends-on): Likewise.
19496         * modules/signbit (Depends-on): Likewise.
19497         * modules/strcasestr-simple (Depends-on): Likewise.
19498         * modules/unictype/gen-ctype (Depends-on): Likewise.
19499         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19500         * modules/uniname/uniname (Depends-on): Likewise.
19501         * modules/unistr/u8-cmp (Depends-on): Likewise.
19502
19503 2008-11-02  Bruno Haible  <bruno@clisp.org>
19504
19505         Mark 'memchr' obsolete.
19506         * modules/memchr (Status, Notice): New sections.
19507         * modules/argp (Depends-on): Add memchr.
19508         * modules/base64 (Depends-on): Likewise.
19509         * modules/c-strcasestr (Depends-on): Likewise.
19510         * modules/chdir-long (Depends-on): Likewise.
19511         * modules/fnmatch (Depends-on): Likewise.
19512         * modules/getsubopt (Depends-on): Likewise.
19513         * modules/git-merge-changelog (Depends-on): Likewise.
19514         * modules/glob (Depends-on): Likewise.
19515         * modules/strcasestr-simple (Depends-on): Likewise.
19516         * modules/strnlen (Depends-on): Likewise.
19517
19518 2008-11-02  Bruno Haible  <bruno@clisp.org>
19519
19520         Mark 'atexit' obsolete.
19521         * modules/atexit (Status, Notice): New sections.
19522         * modules/chdir-long (Depends-on): Add atexit.
19523         * modules/wait-process (Depends-on): Likewise.
19524
19525 2008-11-02  Bruno Haible  <bruno@clisp.org>
19526
19527         * gnulib-tool: New option --with-obsolete.
19528         (func_usage): Document it.
19529         (func_modules_transitive_closure): Drop obsolete dependencies if
19530         incobsolete is not true.
19531         (func_import): Read and save the incobsolete variable to the cache.
19532
19533 2008-11-02  Bruno Haible  <bruno@clisp.org>
19534
19535         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19536         * gnulib-tool: New option --extract-status.
19537         (func_usage): Document it.
19538         (sed_extract_prog): Recognize it.
19539         (func_get_status): New function.
19540
19541 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19542
19543         * modules/sockets (License): Change from LGPL to LGPLv2+.
19544
19545 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19546
19547         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19548
19549 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19550
19551         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19552         Mention times and sys_times.
19553         * modules/sys_times, modules/sys_times-tests: New modules.
19554         * modules/times, modules/times-tests: Likewise
19555         * m4/sys_times_h.m4: New file.
19556         * lib/sys_times.in.h: Likewise
19557         * lib/times.c: Likewise.
19558         * tests/test-sys_times.c: Likewise.
19559         * tests/test-times.c: Likewise.
19560         * doc/posix-headers/sys_times.texi: Update.
19561         * doc/posix-functions/times.texi: Update.
19562
19563 2008-10-28  Jim Meyering  <meyering@redhat.com>
19564
19565         * modules/tempname (Depends-on): Add lstat.
19566
19567         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19568
19569 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19570
19571         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19572         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19573         using idiom used elsewhere in gnulib.
19574
19575 2008-10-27  Jim Meyering  <meyering@redhat.com>
19576
19577         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19578
19579 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19580
19581         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19582         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19583         programs.
19584         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19585
19586 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19587
19588         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19589
19590 2008-10-27  Bruno Haible  <bruno@clisp.org>
19591
19592         * tests/test-lstat.c: Include <stdio.h>.
19593
19594 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19595
19596         * modules/lstat-tests: New module.
19597         * tests/test-lstat.c: New file.
19598
19599 2008-10-26  Jim Meyering  <meyering@redhat.com>
19600
19601         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19602
19603 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19604             Bruno Haible  <bruno@clisp.org>
19605
19606         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19607         * modules/configmake (Include): Add a note that the include must come
19608         after all system headers.
19609         * lib/javaversion.c: Include configmake.h after all other includes.
19610
19611 2008-10-26  Bruno Haible  <bruno@clisp.org>
19612
19613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19614         HAVE_STRUCT_RANDOM_DATA to 1.
19615         (gl_STDLIB_H): Simplify.
19616
19617 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19618
19619         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19620         substitute HAVE_STRUCT_RANDOM_DATA.
19621         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19622         random_data.
19623         * modules/stdlib (Makefile.am): Substitute
19624         HAVE_STRUCT_RANDOM_DATA.
19625
19626 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19627
19628         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19629         * doc/gnulib-intro.texi (Copyright): Likewise.
19630
19631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19632
19633         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19634         findings.
19635
19636 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19637             Bruno Haible  <bruno@clisp.org>
19638
19639         * lib/unistd.in.h: Include <winsock2.h>.
19640         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19641         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19642         Provide dummy declarations.
19643         (gethostname): Override.
19644         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19645         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19646         gl_PREREQ_SYS_H_WINSOCK2.
19647         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19648         * doc/posix-functions/gethostname.texi: More details.
19649
19650 2008-10-25  Bruno Haible  <bruno@clisp.org>
19651
19652         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19653         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19654         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19655
19656         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19657         here ...
19658         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19659         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19660         gl_UNISTD_H_DEFAULTS.
19661
19662 2008-10-25  Eric Blake  <ebb9@byu.net>
19663
19664         signbit: avoid spurious compiler failure
19665         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19666         declarations inside function.
19667
19668 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19669             Bruno Haible  <bruno@clisp.org>
19670
19671         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19672         * modules/random_r (Depends-on): Add stdint.
19673
19674 2008-10-24  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19677         Eggert.
19678         * modules/strerror (License): Likewise.
19679
19680 2008-10-24  Jim Meyering  <meyering@redhat.com>
19681
19682         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
19683         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
19684
19685 2008-10-24  Eric Blake  <ebb9@byu.net>
19686
19687         getgroups: fix compilation when getgroups is available
19688         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
19689         but with <config.h> override of getgroups disabled.
19690
19691 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19692
19693         * doc/gnulib.texi (Header files): Add note about C++ problems.
19694         Explained by Bruno Haible <bruno@clisp.org>.
19695
19696 2008-10-23  Bruno Haible  <bruno@clisp.org>
19697
19698         Define a dummy SA_NODEFER macro on Interix.
19699         * lib/signal.in.h (SA_NODEFER): Define fallback.
19700         Reported by Aleksey Cheusov <cheusov@tut.by> via
19701         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
19702
19703 2008-10-23  Bruno Haible  <bruno@clisp.org>
19704
19705         * modules/freadahead (License): Change to LGPLv2+.
19706         Suggested by Simon Josefsson.
19707
19708 2008-10-23  Jim Meyering  <meyering@redhat.com>
19709
19710         random_r: new module
19711         * modules/random_r: New file.
19712         * m4/random_r.m4: New file.
19713         * lib/random_r.c: New file, from glibc.
19714         * modules/random_r-tests: New file.
19715         * tests/test-random_r.c: New file.
19716         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
19717          Declare.
19718         (RAND_MAX): Define.
19719         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
19720         * modules/stdlib: Substitute them, too.
19721         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
19722         * doc/glibc-functions/initstate_r.texi: Mention the new module.
19723         * doc/glibc-functions/random_r.texi: Likewise.
19724         * doc/glibc-functions/setstate_r.texi: Likewise.
19725         * doc/glibc-functions/srandom_r.texi: Likewise.
19726         * config/srclist.txt: Mention it.
19727
19728 2008-10-23  David Lutterkort  <lutter@redhat.com>
19729
19730         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
19731         link requirement
19732
19733 2008-10-23  Jim Meyering  <meyering@redhat.com>
19734
19735         selinux-h: mark parameters of stub functions as intentionally unused
19736         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
19737         * lib/se-context.in.h: Likewise.
19738
19739 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19740
19741         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
19742
19743 2008-10-22  Simon Josefsson  <simon@josefsson.org>
19744
19745         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
19746
19747 2008-10-22  Eric Blake  <ebb9@byu.net>
19748
19749         glthread/thread: avoid compiler warning
19750         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
19751         Add unreachable abort to silence compiler.
19752
19753 2008-10-22  Eric Blake  <ebb9@byu.net>
19754
19755         netdb: also supply struct addrinfo for cygwin 1.5.x
19756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
19757         older cygwin.
19758         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
19759         cygwin.
19760         * doc/posix-headers/netdb.texi (netdb.h): Document this.
19761
19762 2008-10-22  Bruno Haible  <bruno@clisp.org>
19763
19764         * users.txt: Update entry about pspp.
19765
19766 2008-10-21  Bruno Haible  <bruno@clisp.org>
19767
19768         Simplification.
19769         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
19770         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
19771
19772         Simplification.
19773         * lib/ioctl.c (ioctl): Don't undefine.
19774         * lib/socket.c (socket): Don't undefine.
19775
19776         Remove unused module indicator macros.
19777         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
19778         GNULIB_$1 as a C macro.
19779
19780         * doc/posix-functions/close.texi: Undo last change.
19781         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
19782         Windows platforms.
19783
19784 2008-10-21  Bruno Haible  <bruno@clisp.org>
19785
19786         Add gethostname() declaration to <unistd.h>.
19787         * lib/unistd.in.h (gethostname): New declaration.
19788         * lib/gethostname.c: Include <unistd.h>.
19789         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
19790         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
19791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
19792         and HAVE_GETHOSTNAME.
19793         * modules/gethostname (Depends-on): Add unistd.
19794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19795         (Include): Specify <unistd.h>.
19796         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
19797         HAVE_GETHOSTNAME.
19798         * tests/test-gethostname.c: Include <unistd.h> first.
19799
19800 2008-10-21  Bruno Haible  <bruno@clisp.org>
19801
19802         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
19803         * modules/select-tests (Depends-on): Likewise.
19804         Reported by Simon Josefsson.
19805
19806 2008-10-21  Simon Josefsson  <simon@josefsson.org>
19807
19808         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
19809         * lib/accept.c: New file, based on winsock.c.
19810         * lib/bind.c: New file, based on winsock.c.
19811         * lib/connect.c: New file, based on winsock.c.
19812         * lib/getpeername.c: New file, based on winsock.c.
19813         * lib/getsockname.c: New file, based on winsock.c.
19814         * lib/getsockopt.c: New file, based on winsock.c.
19815         * lib/ioctl.c: New file, based on winsock.c.
19816         * lib/listen.c: New file, based on winsock.c.
19817         * lib/recv.c: New file, based on winsock.c.
19818         * lib/recvfrom.c: New file, based on winsock.c.
19819         * lib/send.c: New file, based on winsock.c.
19820         * lib/sendto.c: New file, based on winsock.c.
19821         * lib/setsockopt.c: New file, based on winsock.c.
19822         * lib/shutdown.c: New file, based on winsock.c.
19823         * lib/socket.c: New file, based on winsock.c.
19824         * lib/w32sock.h: New file, based on winsock.c.
19825         * lib/winsock.c: Remove file.
19826         * modules/accept: Likewise.
19827         * modules/bind: Likewise.
19828         * modules/connect: Likewise.
19829         * modules/getpeername: Likewise.
19830         * modules/getsockname: Likewise.
19831         * modules/getsockopt: Likewise.
19832         * modules/ioctl: Likewise.
19833         * modules/listen: Likewise.
19834         * modules/recv: Likewise.
19835         * modules/recvfrom: Likewise.
19836         * modules/send: Likewise.
19837         * modules/sendto: Likewise.
19838         * modules/setsockopt: Likewise.
19839         * modules/shutdown: Likewise.
19840         * modules/socket: Use socket.c instead of winsock.c.
19841         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
19842         * doc/posix-functions/accept.texi: Doc fix.
19843         * doc/posix-functions/bind.texi: Doc fix.
19844         * doc/posix-functions/close.texi: Doc fix.
19845         * doc/posix-functions/connect.texi: Doc fix.
19846         * doc/posix-functions/getpeername.texi: Doc fix.
19847         * doc/posix-functions/getsockname.texi: Doc fix.
19848         * doc/posix-functions/getsockopt.texi: Doc fix.
19849         * doc/posix-functions/ioctl.texi: Doc fix.
19850         * doc/posix-functions/listen.texi: Doc fix.
19851         * doc/posix-functions/recv.texi: Doc fix.
19852         * doc/posix-functions/recvfrom.texi: Doc fix.
19853         * doc/posix-functions/send.texi: Doc fix.
19854         * doc/posix-functions/sendto.texi: Doc fix.
19855         * doc/posix-functions/setsockopt.texi: Doc fix.
19856         * doc/posix-functions/shutdown.texi: Doc fix.
19857         * doc/posix-functions/socket.texi: Doc fix.
19858
19859 2008-10-20  Bruno Haible  <bruno@clisp.org>
19860
19861         Take into account the role of SIGABRT_COMPAT on Windows 2008.
19862         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
19863         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
19864         as an alias for SIGABRT.
19865         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
19866         (sigaction): Map it to SIGABRT.
19867         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
19868
19869 2008-10-20  Bruno Haible  <bruno@clisp.org>
19870
19871         * lib/fts.c: Don't include lstat.h.
19872         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
19873
19874         Move the lstat() declaration to <sys/stat.h>.
19875         * lib/lstat.h: Remove file.
19876         * lib/sys_stat.in.h: Add special invocation convention.
19877         (lstat): New declaration.
19878         * lib/lstat.c (orig_lstat): New function.
19879         (rpl_lstat): Use orig_lstat instead of lstat.
19880         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
19881         AC_C_INLINE. Set REPLACE_LSTAT.
19882         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
19883         and REPLACE_LSTAT.
19884         * modules/lstat (Files): Remove lib/lstat.h.
19885         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19886         (Include): Specify <sys/stat.h> instead of lstat.h.
19887         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
19888         REPLACE_LSTAT.
19889         * NEWS: Mention the change.
19890
19891 2008-10-20  Bruno Haible  <bruno@clisp.org>
19892
19893         * modules/posix_spawn-tests: New file.
19894         * tests/test-posix_spawn3.c: New file.
19895
19896 2008-10-20  Bruno Haible  <bruno@clisp.org>
19897
19898         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
19899         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19900         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
19901         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
19902         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
19903
19904 2008-10-20  Bruno Haible  <bruno@clisp.org>
19905
19906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
19907         of posix_spawn on AIX 5.3.
19908
19909 2008-10-20  Bruno Haible  <bruno@clisp.org>
19910
19911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
19912
19913 2008-10-20  Bruno Haible  <bruno@clisp.org>
19914
19915         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
19916         of AC_LANG_PROGRAM.
19917
19918 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19919
19920         * lib/netdb.in.h: Don't define GNU specific constants until they
19921         are supported or needed.  Reported by Bruno Haible
19922         <bruno@clisp.org>.
19923
19924 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19925
19926         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
19927
19928 2008-10-20  Simon Josefsson  <simon@josefsson.org>
19929
19930         * lib/getaddrinfo.h: Remove file.
19931         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
19932         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
19933         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
19934         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
19935         * modules/netdb: Substitute GNULIB_GETADDRINFO.
19936         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
19937         * tests/test-getaddrinfo.c: Likewise.
19938         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
19939         * NEWS: Mention change.
19940
19941 2008-10-19  Bruno Haible  <bruno@clisp.org>
19942
19943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
19944
19945 2008-10-19  Bruno Haible  <bruno@clisp.org>
19946
19947         * lib/wait-process.c: Include simply <sys/wait.h>.
19948         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
19949         WIFSTOPPED): Remove fallback definitions.
19950         * modules/wait-process (Depends-on): Add sys_wait.
19951
19952         New module 'sys_wait'.
19953         * modules/sys_wait: New file.
19954         * lib/sys_wait.in.h: New file, partially copied from
19955         lib/wait-process.c.
19956         * m4/sys_wait_h.m4: New file.
19957         * doc/posix-headers/sys_wait.texi: Mention the new module.
19958
19959 2008-10-19  Bruno Haible  <bruno@clisp.org>
19960
19961         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
19962
19963 2008-10-19  Bruno Haible  <bruno@clisp.org>
19964
19965         Assume that waitpid() fills an 'int' status, not a 'union wait'.
19966         * lib/wait-process.c (WAIT_T): Remove type.
19967         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
19968         (wait_subprocess): Update.
19969
19970 2008-10-19  Bruno Haible  <bruno@clisp.org>
19971
19972         New module 'atoll'.
19973         * modules/atoll: New file.
19974         * lib/stdlib.in.h (atoll): New declaration.
19975         * lib/atoll.c: New file, from glibc with modifications.
19976         * m4/atoll.m4: New file.
19977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
19978         HAVE_ATOLL.
19979         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
19980         * doc/posix-functions/atoll.texi: Mention the new module.
19981
19982 2008-10-19  Bruno Haible  <bruno@clisp.org>
19983
19984         Add strtoull() declaration to <stdlib.h>.
19985         * lib/stdlib.in.h (strtoull): New declaration.
19986         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
19987         Set HAVE_STRTOULL.
19988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
19989         HAVE_STRTOULL.
19990         * modules/strtoull (Depends-on): Add stdlib.
19991         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19992         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
19993         HAVE_STRTOULL.
19994
19995 2008-10-19  Bruno Haible  <bruno@clisp.org>
19996
19997         Add strtoll() declaration to <stdlib.h>.
19998         * lib/stdlib.in.h (strtoll): New declaration.
19999         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20000         Set HAVE_STRTOLL.
20001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20002         HAVE_STRTOLL.
20003         * modules/strtoll (Depends-on): Add stdlib.
20004         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20005         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20006
20007 2008-10-19  Bruno Haible  <bruno@clisp.org>
20008
20009         * modules/bcopy (Depends-on): Add strings.
20010         (Include): Specify <strings.h>.
20011
20012 2008-10-19  Bruno Haible  <bruno@clisp.org>
20013
20014         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20015
20016 2008-10-19  Bruno Haible  <bruno@clisp.org>
20017
20018         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20019         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20020         mingw.
20021
20022 2008-10-19  Bruno Haible  <bruno@clisp.org>
20023
20024         * lib/atanl.c: Don't include isnanl.h.
20025         * lib/cosl.c: Likewise.
20026         * lib/ldexpl.c: Likewise.
20027         * lib/logl.c: Likewise.
20028         * lib/sinl.c: Likewise.
20029         * lib/sqrtl.c: Likewise.
20030         * lib/tanl.c: Likewise.
20031
20032         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20033         * lib/isnanf.h: Remove file.
20034         * lib/isnand.h: Remove file.
20035         * lib/isnanl.h: Remove file.
20036         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20037         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20038         macros.
20039         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20040         HAVE_ISNANF, don't define it as a C macro.
20041         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20042         HAVE_ISNAND, don't define it as a C macro.
20043         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20044         HAVE_ISNANL, don't define it as a C macro.
20045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20046         HAVE_ISNAN[FDL].
20047         * modules/isnanf (Files): Remove lib/isnanf.h.
20048         (Depends-on): Add math.
20049         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20050         (Include): Specify <math.h> instead of isnanf.h.
20051         * modules/isnand (Files): Remove lib/isnand.h.
20052         (Depends-on): Add math.
20053         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20054         (Include): Specify <math.h> instead of isnand.h.
20055         * modules/isnanl (Files): Remove lib/isnanl.h.
20056         (Depends-on): Add math.
20057         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20058         (Include): Specify <math.h> instead of isnanl.h.
20059         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20060         HAVE_ISNAN[FDL].
20061         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20062         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20063         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20064         * NEWS: Mention the change.
20065
20066 2008-10-18  Bruno Haible  <bruno@clisp.org>
20067
20068         Add getusershell(), setusershell(), endusershell() declarations to
20069         <unistd.h>.
20070         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20071         declarations.
20072         * lib/getusershell.c: Include unistd.h.
20073         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20074         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20075         HAVE_GETUSERSHELL.
20076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20077         and HAVE_GETUSERSHELL.
20078         * modules/getusershell (Depends-on): Add unistd, extensions.
20079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20080         (Include): Specify <unistd.h>.
20081         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20082         HAVE_GETUSERSHELL.
20083
20084 2008-10-18  Bruno Haible  <bruno@clisp.org>
20085
20086         Add a getloadavg() declaration to <stdlib.h>.
20087         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20088         getloadavg declaration.
20089         (getloadavg): New declaration.
20090         * lib/getloadavg.c: Include <stdlib.h> first.
20091         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20092         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20093         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20095         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20096         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20098         (Include): Specify <stdlib.h>.
20099         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20100         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20101
20102 2008-10-18  Bruno Haible  <bruno@clisp.org>
20103
20104         * lib/dirchownmod.c: Don't include lchmod.h.
20105
20106         Move the lchmod() declaration to <sys/stat.h>.
20107         * lib/lchmod.h: Remove file.
20108         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20109         (lchmod): New declaration, moved here from lib/lchown.h.
20110         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20111         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20113         and HAVE_LCHMOD.
20114         * modules/lchmod (Files): Remove lib/lchmod.h.
20115         (Depends-on): Add sys_stat, extensions.
20116         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20117         (Include): Specify <sys/stat.h> instead of lchmod.h.
20118         * modules/sys_stat (Depends-on): Add link-warning.
20119         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20120         definition of GL_LINK_WARNING.
20121         * NEWS: Mention the change.
20122
20123 2008-10-18  Bruno Haible  <bruno@clisp.org>
20124
20125         * lib/fchdir.c: Don't include dirfd.h.
20126         * lib/fts.c: Likewise.
20127         * lib/getcwd.c: Likewise.
20128         * lib/glob.c: Likewise.
20129
20130         Move the dirfd() declaration to <dirent.h>.
20131         * lib/dirfd.h: Remove file.
20132         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20133         (dirfd): New declaration.
20134         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20135         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20136         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20137         HAVE_DECL_DIRFD.
20138         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20139         HAVE_DECL_DIRFD.
20140         * modules/dirfd (Files): Remove lib/dirfd.h.
20141         (Depends-on): Add dirent, extensions.
20142         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20143         (Include): Specify <dirent.h> instead of dirfd.h.
20144         * modules/dirent (Depends-on): Add link-warning.
20145         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20146         definition of GL_LINK_WARNING.
20147         * NEWS: Mention the change.
20148
20149 2008-10-18  Bruno Haible  <bruno@clisp.org>
20150
20151         Move the euidaccess() declaration to <unistd.h>.
20152         * lib/euidaccess.h: Remove file.
20153         * lib/unistd.in.h (euidaccess): New declaration.
20154         * lib/euidaccess.c: Don't include euidaccess.h.
20155         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20156         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20158         and HAVE_EUIDACCESS.
20159         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20160         (Depends-on): Add unistd.
20161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20162         (Include): Specify <unistd.h> instead of euidaccess.h.
20163         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20164         HAVE_EUIDACCESS.
20165         * NEWS: Mention the change.
20166
20167 2008-10-18  Bruno Haible  <bruno@clisp.org>
20168
20169         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20170
20171         Move the getdomainname() declaration to <unistd.h>.
20172         * lib/getdomainname.h: Remove file.
20173         * lib/unistd.in.h (getdomainname): New declaration.
20174         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20175         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20176         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20177         HAVE_GETDOMAINNAME.
20178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20179         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20180         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20181         (Depends-on): Add unistd, extensions.
20182         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20183         (Includes): Specify <unistd.h> instead of getdomainname.h.
20184         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20185         HAVE_GETDOMAINNAME.
20186         * NEWS: Mention the change.
20187
20188 2008-10-18  Bruno Haible  <bruno@clisp.org>
20189
20190         * modules/dirent: New file.
20191         * m4/dirent_h.m4: New file.
20192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20193         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20194         * modules/fchdir (Files): Remove lib/dirent.in.h.
20195         (Depends-on): Add dirent.
20196         (Makefile.am): Move rules to modules/dirent.
20197         * doc/posix-headers/dirent.texi: Mention the new module.
20198
20199 2008-10-18  Bruno Haible  <bruno@clisp.org>
20200
20201         Avoid -Wunused-parameter warnings in public gnulib header files.
20202         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20203         macro.
20204         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20205
20206 2008-10-18  Bruno Haible  <bruno@clisp.org>
20207
20208         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20209         * doc/glibc-functions/error.texi: Mention the module 'error'.
20210         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20211         * doc/glibc-functions/getdomainname.texi: Mention the module
20212         'getdomainname'.
20213         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20214         * doc/glibc-functions/getpagesize.texi: Mention the module
20215         'getpagesize'.
20216         * doc/glibc-functions/getusershell.texi: Mention the module
20217         'getusershell'.
20218         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20219         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20220         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20221         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20222         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20223         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20224         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20225         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20226         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20227         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20228         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20229         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20230         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20231         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20232
20233 2008-10-17  Bruno Haible  <bruno@clisp.org>
20234
20235         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20236         HP-UX and IRIX, use -0.0L.
20237         * tests/test-ceill.c (minus_zero): Likewise.
20238         * tests/test-floorl.c (minus_zero): Likewise.
20239         * tests/test-frexpl.c (minus_zero): Likewise.
20240         * tests/test-isnan.c (minus_zerol): Likewise.
20241         * tests/test-isnanl.h (minus_zero): Likewise.
20242         * tests/test-ldexpl.c (minus_zero): Likewise.
20243         * tests/test-roundl.c (minus_zero): Likewise.
20244         * tests/test-signbit.c (minus_zerol): Likewise.
20245         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20246         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20247         * tests/test-truncl.c (minus_zero): Likewise.
20248         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20249         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20250         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20251         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20252
20253 2008-10-17  Bruno Haible  <bruno@clisp.org>
20254
20255         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20256         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20257         that it gets activated only for gcc >= 3.0.
20258         * lib/dirent.in.h: Likewise.
20259         * lib/errno.in.h: Likewise.
20260         * lib/fcntl.in.h: Likewise.
20261         * lib/float.in.h: Likewise.
20262         * lib/iconv.in.h: Likewise.
20263         * lib/inttypes.in.h: Likewise.
20264         * lib/locale.in.h: Likewise.
20265         * lib/math.in.h: Likewise.
20266         * lib/netdb.in.h: Likewise.
20267         * lib/netinet_in.in.h: Likewise.
20268         * lib/search.in.h: Likewise.
20269         * lib/signal.in.h: Likewise.
20270         * lib/spawn.in.h: Likewise.
20271         * lib/stdarg.in.h: Likewise.
20272         * lib/stdint.in.h: Likewise.
20273         * lib/stdio.in.h: Likewise.
20274         * lib/stdlib.in.h: Likewise.
20275         * lib/string.in.h: Likewise.
20276         * lib/strings.in.h: Likewise.
20277         * lib/sys_file.in.h: Likewise.
20278         * lib/sys_ioctl.in.h: Likewise.
20279         * lib/sys_select.in.h: Likewise.
20280         * lib/sys_socket.in.h: Likewise.
20281         * lib/sys_stat.in.h: Likewise.
20282         * lib/sys_time.in.h: Likewise.
20283         * lib/sysexits.in.h: Likewise.
20284         * lib/time.in.h: Likewise.
20285         * lib/unistd.in.h: Likewise.
20286         * lib/wchar.in.h: Likewise.
20287         * lib/wctype.in.h: Likewise.
20288         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20289
20290 2008-10-17  Jim Meyering  <meyering@redhat.com>
20291
20292         ignore-value: don't depend on inline module
20293         * modules/ignore-value (Depends-on): Remove 'inline'.
20294         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20295         Suggestion from Bruno Haible.
20296
20297 2008-10-17  Bruno Haible  <bruno@clisp.org>
20298
20299         New implementation of condition variables for Win32.
20300         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20301         (gl_linked_waitqueue_t): New type.
20302         (gl_cond_t): Use it.
20303         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20304         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20305         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20306         (glthread_cond_init_func, glthread_cond_wait_func,
20307         glthread_cond_timedwait_func, glthread_cond_signal_func,
20308         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20309         Reimplemented on the basis of gl_linked_waitqueue_t.
20310         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20311         gl_waitqueue_t.
20312         (gl_rwlock_t): Update.
20313         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20314
20315 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20316
20317         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20318         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20319
20320 2008-10-17  Jim Meyering  <meyering@redhat.com>
20321
20322         ignore-value: new module
20323         * modules/ignore-value: New file.
20324         * lib/ignore-value.h: New file.
20325         * MODULES.html.sh (Compiler warning management): New section,
20326         just for this module.  More to come.
20327
20328 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20329
20330         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20331         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20332         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20333
20334 2008-10-16  Jim Meyering  <meyering@redhat.com>
20335
20336         openat-die.c: avoid 'no previous prototype' warning
20337         * lib/openat-die.c: Include "openat.h".
20338         Reported by Reuben Thomas <rrt@sc3d.org>.
20339
20340 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20341
20342         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20343         * lib/netdb.in.h: Fix typo.
20344         Reported by Bruno Haible  <bruno@clisp.org>
20345
20346         * lib/netdb.in.h: Include sys/socket.h for platforms without
20347         netdb.h, to get structures like hostent on MinGW.
20348         * modules/netdb (Depends-on): Add sys_socket.
20349
20350 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20351
20352         * modules/netdb, modules/netdb-tests: New file.
20353         * m4/netdb_h.m4: New file.
20354         * lib/netdb.in.h: Add, currently just an empty file pending
20355         definitions.
20356         * tests/test-netdb.c: New file.
20357         * doc/posix-headers/netdb.texi: Mention that we replace it if
20358         needed.
20359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20360         netdb.
20361
20362 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20363
20364         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20365         with code.
20366
20367 2008-10-13  Bruno Haible  <bruno@clisp.org>
20368
20369         * lib/glthread/cond.c (glthread_cond_wait_func,
20370         glthread_cond_timedwait_func): Add a comment.
20371
20372 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20373
20374         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20375         * tests/test-select.c: Likewise,
20376
20377 2008-10-13  Bruno Haible  <bruno@clisp.org>
20378
20379         * lib/glthread/cond.c (glthread_cond_wait_func,
20380         glthread_cond_timedwait_func): Fix variable name.
20381         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20382
20383 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20384
20385         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20387         struct sockaddr.sa_len.
20388         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20389
20390 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20391
20392         * build-aux/pmccabe2html: Add css and css_url parameters.
20393
20394 2008-10-12  Bruno Haible  <bruno@clisp.org>
20395
20396         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20397         calling aclx_get.
20398         Reported by Rainer Tammer <tammer@tammer.net>.
20399
20400 2008-10-12  Bruno Haible  <bruno@clisp.org>
20401
20402         Use msvcrt aware primitives for creation/termination of Win32 threads.
20403         * lib/glthread/thread.c: Include <process.h>.
20404         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20405         (wrapper_func): Update signature.
20406         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20407
20408 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20409             Bruno Haible  <bruno@clisp.org>
20410
20411         Provide a Win32 implementation of the 'cond' module.
20412         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20413         * lib/glthread/cond.c (glthread_cond_init_func,
20414         glthread_cond_wait_func, glthread_cond_timedwait_func,
20415         glthread_cond_signal_func, glthread_cond_broadcast_func,
20416         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20417         * modules/cond (Dependencies): Add gettimeofday.
20418
20419 2008-10-11  Bruno Haible  <bruno@clisp.org>
20420
20421         Make sleep work on older versions of mingw.
20422         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20423         only whether it exists.
20424         * doc/posix-functions/sleep.texi: Mention the problem with older
20425         versions of mingw.
20426
20427 2008-10-11  Bruno Haible  <bruno@clisp.org>
20428
20429         New module 'shutdown'.
20430         * modules/shutdown: New file.
20431         * lib/sys_socket.in.h (shutdown): New declaration.
20432         * lib/winsock.c (shutdown): New function.
20433         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20434         GNULIB_SHUTDOWN.
20435         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20436         * doc/posix-functions/shutdown.texi: Document the new module.
20437
20438 2008-10-11  Jim Meyering  <meyering@redhat.com>
20439
20440         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20441
20442 2008-10-11  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'fclose'.
20445         * modules/fclose: New file.
20446         * lib/stdio.in.h (fclose): New declaration.
20447         * lib/fclose.c: New file.
20448         * m4/fclose.m4: New file.
20449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20450         REPLACE_FCLOSE.
20451         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20452         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20453         REPLACE_FCLOSE.
20454         * modules/close (Depends-on): fclose.
20455         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20456
20457 2008-10-11  Bruno Haible  <bruno@clisp.org>
20458
20459         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20460         set errno and don't call _close.
20461
20462 2008-10-10  Bruno Haible  <bruno@clisp.org>
20463
20464         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20465         ACL, not afterwards. Fixes test failure on Cygwin.
20466
20467 2008-10-09  Ben Pfaff  <blp@gnu.org>
20468
20469         * build-aux/announce-gen: Fix gnulib version related part of usage
20470         message.  Die with a useful error message if no tarballs are
20471         found.
20472
20473 2008-10-10  Jim Meyering  <meyering@redhat.com>
20474
20475         bootstrap: use git's --depth=N option only if it's supported
20476         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20477         recognize the --depth option.  Reported by Pádraig Brady.
20478
20479 2008-10-09  Bruno Haible  <bruno@clisp.org>
20480
20481         New module 'ioctl'.
20482         * modules/ioctl: New file.
20483         * lib/sys_socket.in.h (ioctl): Remove declaration.
20484         * lib/winsock.c: Include <sys/ioctl.h>.
20485         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20486         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20487         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20488         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20489         * doc/posix-functions/ioctl.texi: Mention the new module.
20490
20491 2008-10-09  Bruno Haible  <bruno@clisp.org>
20492
20493         New module 'sys_ioctl'.
20494         * lib/sys_ioctl.in.h: New file.
20495         * m4/sys_ioctl_h.m4: New file.
20496         * modules/sys_ioctl: New file.
20497         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20498
20499 2008-10-09  Bruno Haible  <bruno@clisp.org>
20500
20501         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20502         * lib/winsock.c: Include <stdarg.h>.
20503         (rpl_ioctl): Change to second argument 'int' and then varargs.
20504
20505 2008-10-09  Bruno Haible  <bruno@clisp.org>
20506
20507         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20508         when the sys_socket module is present and the system has <winsock2.h>.
20509
20510 2008-10-09  Bruno Haible  <bruno@clisp.org>
20511
20512         * doc/posix-functions/close.texi: Mention module 'close' instead of
20513         module 'sys_socket'.
20514
20515 2008-10-09  Bruno Haible  <bruno@clisp.org>
20516
20517         * doc/glibc-headers/sys_ioctl.texi: New file.
20518         * doc/gnulib.texi: Include it.
20519
20520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20521             Bruno Haible  <bruno@clisp.org>
20522
20523         Combine the two replacements of 'close'.
20524         * lib/sys_socket.in.h (close): Define to a reminder to include
20525         <unistd.h>.
20526         (_gl_close_fd_maybe_socket): New declaration.
20527         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20528         * lib/winsock.c (close): Remove undefinition.
20529         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20530         needed for the gnulib module 'close'.
20531         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20532         define to an error symbol or to a warning, if suitable.
20533         * lib/close.c: Include <sys/socket.h>.
20534         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20535         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20536         UNISTD_H_HAVE_WINSOCK2_H.
20537         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20539         UNISTD_H_HAVE_WINSOCK2_H.
20540         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20541         (configure.ac): Set a module indicator.
20542         (Makefile.am): Substitute GNULIB_CLOSE.
20543         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20544         * modules/poll-tests (Depends-on): Add close.
20545         * modules/select-tests (Depends-on): Likewise.
20546
20547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20548             Bruno Haible  <bruno@clisp.org>
20549
20550         New module 'close'.
20551         * modules/close: New file.
20552         * lib/unistd.in.h (close): Move declaration out of the
20553         FCHDIR_REPLACEMENT scope.
20554         (_gl_unregister_fd): New declaration.
20555         * lib/close.c: New file.
20556         * lib/fchdir.c (rpl_close): Remove function.
20557         * m4/close.m4: New file.
20558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20559         close.
20560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20561         REPLACE_CLOSE.
20562         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20563         REPLACE_CLOSE.
20564         * modules/fchdir (Depends-on): Add close.
20565
20566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20567             Bruno Haible  <bruno@clisp.org>
20568
20569         * lib/fcntl.in.h (open): Simplify conditionals.
20570         (_gl_register_fd): New declaration.
20571         * lib/fchdir.c (rpl_open): Remove function.
20572         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20573         also.
20574         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20576         open.
20577
20578 2008-10-09  Jim Meyering  <meyering@redhat.com>
20579
20580         GNUmakefile: use the more name-space-friendly "_version"
20581         * top/GNUmakefile (_dummy): Update.
20582         (_version): Rename from "version".
20583
20584 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20585             Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20588         rpl_close.
20589         (_gl_register_fd): New function, extracted from rpl_open.
20590         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20591         (rpl_open, rpl_opendir): Use _gl_register_fd.
20592
20593 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20594
20595         Fix organization of 'open' replacement.
20596         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20597         (gl_FUNC_OPEN): Use it.
20598         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20599
20600 2008-10-08  Bruno Haible  <bruno@clisp.org>
20601
20602         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20603
20604 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20605
20606         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20607         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20608         listen).
20609
20610 2008-10-08  Eric Blake  <ebb9@byu.net>
20611
20612         GNUmakefile: add 'make version' target
20613         * top/GNUmakefile (_curr-ver): Split version update rules...
20614         (version): ...into a target.
20615
20616 2008-10-07  Bruno Haible  <bruno@clisp.org>
20617
20618         Use a more portable replacement expression for -0.0L.
20619         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20620         instead of -0.0L. Fix m4 quotation.
20621
20622         * tests/test-signbit.c: Include <float.h>.
20623         (minus_zero): New variable.
20624         (test_signbitl): Use minus_zero instead of -zero.
20625         * modules/signbit-tests (Depends-on): Add float.
20626
20627         * tests/test-ceill.c: Include <float.h>.
20628         (zero): Remove variable.
20629         (minus_zero): New variable.
20630         (main): Use minus_zero instead of -zero.
20631         * modules/ceill-tests (Depends-on): Add float.
20632
20633         * tests/test-floorl.c: Include <float.h>.
20634         (zero): Remove variable.
20635         (minus_zero): New variable.
20636         (main): Use minus_zero instead of -zero.
20637         * modules/floorl-tests (Depends-on): Add float.
20638
20639         * tests/test-roundl.c: Include <float.h>.
20640         (zero): Remove variable.
20641         (minus_zero): New variable.
20642         (main): Use minus_zero instead of -zero.
20643         * modules/roundl-tests (Depends-on): Add float.
20644
20645         * tests/test-truncl.c: Include <float.h>.
20646         (zero): Remove variable.
20647         (minus_zero): New variable.
20648         (main): Use minus_zero instead of -zero.
20649         * modules/truncl-tests (Depends-on): Add float.
20650
20651         * tests/test-frexpl.c (zero): Remove variable.
20652         (minus_zero): New variable.
20653         (main): Use minus_zero instead of -zero.
20654         * modules/frexpl-tests (Depends-on): Add float.
20655
20656         * tests/test-isnan.c (zerol): Remove variable.
20657         (minus_zerol): New variable.
20658         (test_long_double): Use minus_zerol instead of -zerol.
20659         * modules/isnan-tests (Depends-on): Add float.
20660
20661         * tests/test-isnanl.h (zero): Remove variable.
20662         (minus_zero): New variable.
20663         (main): Use minus_zero instead of -zero.
20664         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20665         * modules/isnanl-tests (Depends-on): Add float.
20666
20667         * tests/test-ldexpl.c (zero): Remove variable.
20668         (minus_zero): New variable.
20669         (main): Use minus_zero instead of -zero.
20670         * modules/ldexpl-tests (Depends-on): Add float.
20671
20672         * tests/test-snprintf-posix.h (zerol): Remove variable.
20673         (minus_zerol): New variable.
20674         (test_function): Use minus_zerol instead of -zerol.
20675         * modules/snprintf-posix-tests (Depends-on): Add float.
20676         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20677
20678         * tests/test-sprintf-posix.h (zerol): Remove variable.
20679         (minus_zerol): New variable.
20680         (test_function): Use minus_zerol instead of -zerol.
20681         * modules/sprintf-posix-tests (Depends-on): Add float.
20682         * modules/vsprintf-posix-tests (Depends-on): Add float.
20683
20684         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
20685         (minus_zerol): New variable.
20686         (test_function): Use minus_zerol instead of -zerol.
20687         * modules/vasnprintf-posix-tests (Depends-on): Add float.
20688
20689         * tests/test-vasprintf-posix.c (zerol): Remove variable.
20690         (minus_zerol): New variable.
20691         (test_function): Use minus_zerol instead of -zerol.
20692         * modules/vasprintf-posix-tests (Depends-on): Add float.
20693
20694 2008-10-07  Simon Josefsson  <simon@josefsson.org>
20695
20696         * MODULES.html.sh (Support for building documentation): Mention
20697         pmccabe2html.  Sort entries.
20698
20699         Add pmccabe2html module, from gnupdf.
20700         * build-aux/pmccabe.css: New file.
20701         * build-aux/pmccabe2html: New file.
20702         * m4/pmccabe2html.m4: New file.
20703         * modules/pmccabe2html: New file.
20704
20705 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
20706
20707         flock: new module
20708         * MODULES.html.sh: Add to list of modules.
20709         * lib/flock.c: flock implementation for Windows and Unix systems
20710         which have fcntl.
20711         * doc/glibc-functions/flock.texi: Update documentation.
20712         * lib/sys_file.in.h: <sys/file.h> header file.
20713         * m4/flock.m4: M4 macros.
20714         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
20715         * modules/flock: flock module.
20716         * modules/flock-tests: flock tests module.
20717         * modules/sys_file: sys/file.h module.
20718         * tests/test-flock.c: test suite for flock.
20719
20720 2008-10-06  Jim Meyering  <meyering@redhat.com>
20721
20722         bootstrap: check for LT_INIT more portably still ;-)
20723         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
20724         Spotted by Bruno Haible.
20725
20726 2008-10-06  Eric Blake  <ebb9@byu.net>
20727
20728         test-signbit: avoid tripping Irix cc bug on -0.0L
20729         * tests/test-signbit.c (minus_zerol): Delete, and replace with
20730         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
20731         entire testsuite consistent and avoids an Irix 6.2 bug.
20732
20733 2008-10-05  Bruno Haible  <bruno@clisp.org>
20734             Jim Meyering  <jim@meyering.net>
20735
20736         Add an option for ignoring EPIPE during close_stdout.
20737         * lib/closeout.h: Include <stdbool.h>.
20738         (close_stdout_set_ignore_EPIPE): New declaration.
20739         * lib/closeout.c: Include <stdbool.h>.
20740         (ignore_EPIPE): New variable.
20741         (close_stdout_set_ignore_EPIPE): New function.
20742         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
20743         * lib/close-stream.c (close_stream): Mention the possible EPIPE
20744         failure.
20745         * modules/closeout (Depends-on): Add stdbool.
20746
20747 2008-10-05  Bruno Haible  <bruno@clisp.org>
20748
20749         * modules/accept: New file.
20750         * modules/bind: New file.
20751         * modules/connect: New file.
20752         * modules/getpeername: New file.
20753         * modules/getsockname: New file.
20754         * modules/getsockopt: New file.
20755         * modules/listen: New file.
20756         * modules/recv: New file.
20757         * modules/recvfrom: New file.
20758         * modules/send: New file.
20759         * modules/sendto: New file.
20760         * modules/setsockopt: New file.
20761         * modules/socket: New file.
20762         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
20763         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20764         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
20765         the particular module is requested. Add a link warning when the
20766         particular module is not requested.
20767         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
20768         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
20769         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
20770         the particular module is requested.
20771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
20772         gl_SYS_SOCKET_H_DEFAULTS): New macros.
20773         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
20774         * modules/sys_socket (Depends-on): Add link-warning.
20775         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
20776         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
20777         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
20778         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
20779         GL_LINK_WARNING.
20780         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
20781         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
20782         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
20783         * doc/posix-functions/getpeername.texi: Mention the new module
20784         'getpeername'.
20785         * doc/posix-functions/getsockname.texi: Mention the new module
20786         'getsockname'.
20787         * doc/posix-functions/getsockopt.texi: Mention the new module
20788         'getsockopt'.
20789         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
20790         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
20791         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
20792         * doc/posix-functions/send.texi: Mention the new module 'send'.
20793         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
20794         * doc/posix-functions/setsockopt.texi: Mention the new module
20795         'setsockopt'.
20796         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
20797         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
20798         listen, connect, accept.
20799         * modules/select-tests (Depends-on): Likewise.
20800
20801 2008-10-05  Bruno Haible  <bruno@clisp.org>
20802
20803         * lib/winsock.c (strerror): Remove unused #undef.
20804         (rpl_close): Remove unused local variable.
20805
20806         * modules/sys_socket (Depends-on); Add errno.
20807
20808 2008-10-05  Bruno Haible  <bruno@clisp.org>
20809
20810         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
20811         (select): Add a link warning when the 'select' module is not used.
20812         * modules/sys_select (Depends-on): Add link-warning.
20813         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
20814         Suggested by Paolo Bonzini.
20815
20816 2008-10-05  Jim Meyering  <meyering@redhat.com>
20817
20818         bootstrap: check for LT_INIT more portably
20819         * build-aux/bootstrap: Avoid using grep -E, since it's not
20820         portable enough.  Suggestion from Bruno Haible.
20821
20822 2008-10-05  Bruno Haible  <bruno@clisp.org>
20823
20824         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
20825         as being fixed by gnulib.
20826
20827 2008-10-05  Bruno Haible  <bruno@clisp.org>
20828
20829         * modules/select-tests: New file, mostly copied from
20830         modules/sys_select-tests.
20831         * tests/test-select.c: New file, mostly copied from
20832         tests/test-sys_select.c.
20833         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
20834         * modules/sys_select-tests (Depends-on): Remove all dependencies.
20835         (Makefile.am): Remove test_sys_select_LDADD.
20836
20837         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
20838         to an undefined symbol, for an error message.
20839         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
20840         (gl_SYS_SELECT_H_DEFAULTS): New macro.
20841         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
20842         winsock-select.c here.
20843         * modules/sys_select (Files): Remove lib/winsock-select.c.
20844         (Depends-on): Remove alloca.
20845         (Makefile.am): Substitute GNULIB_SELECT.
20846         * modules/select: New file.
20847         * doc/posix-functions/select.texi: Update.
20848
20849 2008-10-05  Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
20852         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
20853         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
20854         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
20855         getdtablesize.
20856         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20857         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20858
20859 2008-10-05  Bruno Haible  <bruno@clisp.org>
20860
20861         * modules/getdtablesize-tests: New file.
20862         * tests/test-getdtablesize.c: New file.
20863
20864         New module 'getdtablesize'.
20865         * lib/unistd.in.h (getdtablesize): New declaration.
20866         * lib/getdtablesize.c: New file.
20867         * m4/getdtablesize.m4: New file.
20868         * modules/getdtablesize: New file.
20869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20870         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
20871         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
20872         HAVE_GETDTABLESIZE.
20873         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
20874
20875 2008-10-05  Bruno Haible  <bruno@clisp.org>
20876
20877         * modules/sched (Makefile.am): Fix typo.
20878         Reported by Simon Josefsson.
20879
20880 2008-10-05  Jim Meyering  <meyering@redhat.com>
20881
20882         bootstrap: check for LT_INIT, too
20883         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
20884         are deprecated.  Suggestion from Ralf Wildenhues.
20885
20886 2008-10-05  Bruno Haible  <bruno@clisp.org>
20887
20888         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
20889         overriding them by ours.
20890         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
20891
20892 2008-10-05  Jim Meyering  <meyering@redhat.com>
20893
20894         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
20895         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
20896         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
20897
20898 2008-10-04  Bruno Haible  <bruno@clisp.org>
20899
20900         * modules/dup2 (License): Change to LGPLv2+.
20901         * modules/sleep (License): Likewise.
20902         * modules/perror (License): Likewise.
20903         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
20904         Blake.
20905         * modules/signal (License): Likewise.
20906         * modules/sigprocmask (License): Likewise.
20907         * modules/raise (License): Change to LGPLv2+, with approval by Jim
20908         Meyering.
20909
20910 2008-10-04  Bruno Haible  <bruno@clisp.org>
20911
20912         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
20913         Reported by Rainer Tammer <tammer@tammer.net>.
20914
20915 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
20916             Bruno Haible  <bruno@clisp.org>
20917
20918         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
20919         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
20920         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
20921
20922 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
20923
20924         filevercmp: new module
20925         * lib/filevercmp.h: New function filevercmp comparing version strings.
20926         * lib/filevercmp.c: Implementation of filevercmp function.
20927         * modules/filevercmp: Module metadata.
20928         * tests/test-filevercmp.c: Unit test for new module.
20929         * modules/filevercmp-tests: Unit test metadata.
20930         * MODULES.html.sh: Add filevercmp module.
20931
20932 2008-10-03  Bruno Haible  <bruno@clisp.org>
20933
20934         * lib/c-ctype.h: Add comment.
20935         Reported by Jim Meyering.
20936
20937 2008-10-02  Bruno Haible  <bruno@clisp.org>
20938
20939         * modules/posix_spawn-internal (Depends-on): Add 'open'.
20940
20941 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20942
20943         * build-aux/bootstrap: Allow renaming bootstrap, and change the
20944         name of bootstrap.conf accordingly.
20945
20946 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20947
20948         * build-aux/bootstrap: Install git-merge-changelog configuration
20949         items into .gitconfig if needed.
20950
20951 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
20952
20953         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
20954         git repository, and initialize/update it accordingly.
20955
20956 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
20957
20958         * modules/fsync-tests: New file.
20959         * tests/test-fsync.c: New file.
20960
20961         New module 'fsync'.
20962         * lib/fsync.c: New file.
20963         * m4/fsync.m4: New file.
20964         * modules/fsync: New file.
20965         * lib/unistd.in.h (fsync): New declaration.
20966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
20967         GNULIB_FSYNC and HAVE_FSYNC.
20968         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
20969         * MODULES.html.sh (posix_functions): Add fsync.
20970         * doc/posix-functions/fsync.texi: Mention the new module.
20971
20972 2008-10-02  Jim Meyering  <meyering@redhat.com>
20973
20974         fts.c: sync with similar code from coreutils' remove.c
20975         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
20976         Guard also with "#if defined __linux__", since for now at least,
20977         this code is Linux-kernel-specific.
20978
20979 2008-10-02  Jim Meyering  <meyering@redhat.com>
20980
20981         fts: bug fixes
20982         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
20983         Include <sys/vfs.h>, not <sys/statfs.h>.
20984
20985         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
20986         Include <sys/vfs.h>, not <sys/statfs.h>.
20987
20988 2008-10-01  Bruno Haible  <bruno@clisp.org>
20989
20990         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
20991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
20992         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
20993         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
20994         * doc/posix-functions/posix_spawnp.texi: Likewise.
20995         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
20996         whether posix_spawn actually works.
20997         * m4/pipe.m4 (gl_PIPE): Likewise.
20998         * modules/execute (Files): Add m4/posix_spawn.m4.
20999         * modules/pipe (Files): Add m4/posix_spawn.m4.
21000         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21001
21002 2008-10-01  Jim Meyering  <meyering@redhat.com>
21003
21004         remove trailing spaces
21005         * NEWS: Likewise.
21006         * lib/poll.c (poll): Likewise.
21007         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21008         * lib/winsock.c (rpl_close): Likewise.
21009         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21010         * modules/yield: Likewise.
21011         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21012         * tests/test-sys_select.c (connect_to_socket): Likewise.
21013
21014         fts.c: adjust a new interface to be more generally useful
21015         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21016         (fts_build): Adjust caller.
21017
21018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21019
21020         * modules/cond-tests: New file.
21021         * tests/test-cond.c: New file.
21022
21023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21024             Bruno Haible  <bruno@clisp.org>
21025
21026         * modules/cond (Dependencies): Add errno, time.
21027         * lib/glthread/cond.h: Include <time.h>.
21028         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21029         across platforms.
21030
21031 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21032             Bruno Haible  <bruno@clisp.org>
21033
21034         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21035
21036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21037             Bruno Haible  <bruno@clisp.org>
21038
21039         * modules/tls-tests (Depends-on): Add thread, yield.
21040         (configure.ac): Remove all checks.
21041         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21042         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21043         gl_thread_self): Remove definitions. Include glthread/thread.h and
21044         glthread/yield.h instead.
21045         (test_tls): Pass an additional NULL argument to gl_thread_join.
21046
21047 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21048             Bruno Haible  <bruno@clisp.org>
21049
21050         * modules/lock-tests (Depends-on): Add thread, yield.
21051         (configure.ac): Remove all checks.
21052         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21053         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21054         gl_thread_self): Remove definitions. Include glthread/thread.h and
21055         glthread/yield.h instead.
21056         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21057         additional NULL argument to gl_thread_join.
21058
21059 2008-09-30  Bruno Haible  <bruno@clisp.org>
21060
21061         Fix the Win32 implementation of the 'thread' module.
21062         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21063         pointer type.
21064         (gl_thread_self): Invoke gl_thread_self_func.
21065         (gl_thread_self_func): New declaration.
21066         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21067         (do_init_self_key, init_self_key): New functions.
21068         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21069         Remove some fields.
21070         (running_threads, running_lock): Remove variables.
21071         (get_current_thread_handle): New function.
21072         (gl_thread_self_func, wrapper_func, glthread_create_func,
21073         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21074         simplified.
21075
21076 2008-09-30  Bruno Haible  <bruno@clisp.org>
21077
21078         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21079         files.
21080
21081 2008-09-30  Jim Meyering  <meyering@redhat.com>
21082
21083         fts.m4: correct the test for statfs.f_type
21084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21085         when checking for statfs.f_type.
21086
21087 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21088
21089         tests: avoid some compiler warnings
21090         * tests/test-memchr.c (main): Pass NULL indirectly.
21091         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21092
21093 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21094
21095         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21096         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21097         exactly specified dayshifts.
21098         (dayshift): New rule.
21099         (rel): Add dayshift.
21100         (relative_time_table) [tomorrow, yesterday, today, now]:
21101         Use tDAY_SHIFT in place of tDAY_UNIT.
21102         * tests/test-getdate.c: Add tests for now-disallowed countable
21103         dayshifts, e.g., "4 yesterday ago".
21104
21105 2008-09-29  Bruno Haible  <bruno@clisp.org>
21106
21107         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21108         * tests/test-posix_spawn1.in.sh: Renamed from
21109         tests/test-posix_spawn.in.sh.
21110         * tests/test-posix_spawn2.c: New file.
21111         * tests/test-posix_spawn2.in.sh: New file.
21112         * modules/posix_spawnp-tests (Files): Update.
21113         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21114
21115 2008-09-29  Bruno Haible  <bruno@clisp.org>
21116
21117         Propagate effects of putenv/setenv/unsetenv to child processes.
21118         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21119         * lib/pipe.c (create_pipe): Likewise.
21120
21121 2008-09-29  Bruno Haible  <bruno@clisp.org>
21122
21123         Enable use of shell scripts as executables in mingw.
21124         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21125         run the program as a shell script.
21126         * lib/pipe.c (create_pipe): Likewise.
21127         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21128         resulting array.
21129
21130 2008-09-29  Eric Blake  <ebb9@byu.net>
21131
21132         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21133
21134 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21135
21136         * doc/posix-functions/accept.texi: Update mingw problems.
21137         * doc/posix-functions/bind.texi: Update mingw problems.
21138         * doc/posix-functions/close.texi: Update mingw problems.
21139         * doc/posix-functions/connect.texi: Update mingw problems.
21140         * doc/posix-functions/getpeername.texi: Update mingw problems.
21141         * doc/posix-functions/getsockname.texi: Update mingw problems.
21142         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21143         * doc/posix-functions/ioctl.texi: Update mingw problems.
21144         * doc/posix-functions/listen.texi: Update mingw problems.
21145         * doc/posix-functions/recv.texi: Update mingw problems.
21146         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21147         * doc/posix-functions/select.texi: Update mingw problems.
21148         * doc/posix-functions/send.texi: Update mingw problems.
21149         * doc/posix-functions/sendto.texi: Update mingw problems.
21150         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21151         * doc/posix-functions/socket.texi: Update mingw problems.
21152
21153 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21154             Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/sys_select.in.h: Include sys/time.h.
21157         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21158         * modules/sys_select: Depend on sys_time.
21159         * tests/test-sys_select.c: Test that sys/select.h defines struct
21160         timeval fully.
21161
21162 2008-09-29  Bruno Haible  <bruno@clisp.org>
21163
21164         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21165         * lib/sys_select.in.h: Likewise.
21166
21167 2008-09-29  Bruno Haible  <bruno@clisp.org>
21168
21169         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21170
21171 2008-09-29  Bruno Haible  <bruno@clisp.org>
21172
21173         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21174         Set LIBSOCKET instead of augmenting LIBS.
21175         * modules/sockets (Link): New section.
21176         * modules/sockets-tests (test_sockets_LDADD): New variable.
21177         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21178         * modules/poll-tests (test_poll_LDADD): New variable.
21179         * NEWS: Document the change.
21180
21181 2008-09-29  Bruno Haible  <bruno@clisp.org>
21182
21183         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21184         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21185         ARPA_INET_H directly.
21186         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21187
21188 2008-09-28  Bruno Haible  <bruno@clisp.org>
21189
21190         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21191         from gl_HEADER_SYS_SOCKET.
21192         (gl_HEADER_SYS_SOCKET): Invoke it.
21193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21194
21195 2008-09-28  Bruno Haible  <bruno@clisp.org>
21196
21197         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21198         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21199         Needed on OSF/1 4.0.
21200
21201 2008-09-28  Bruno Haible  <bruno@clisp.org>
21202
21203         Override open more carefully.
21204         * lib/open.c (orig_open): New function.
21205         (rpl_open): Use orig_open instead of open.
21206         * lib/fcntl.in.h: Add special invocation convention.
21207         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21208         (gl_FUNC_OPEN): Invoke it.
21209
21210         Override freopen more carefully.
21211         * lib/freopen.c (orig_freopen): New function.
21212         (rpl_freopen): Use orig_freopen instead of freopen.
21213         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21214         (gl_FUNC_FREOPEN): Invoke it.
21215
21216         Override fopen more carefully.
21217         * lib/fopen.c (orig_fopen): New function.
21218         (rpl_fopen): Use orig_fopen instead of fopen.
21219         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21220         (gl_FUNC_FOPEN): Invoke it.
21221         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21222
21223 2008-09-28  Bruno Haible  <bruno@clisp.org>
21224
21225         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21226         SIGPIPE.
21227
21228 2008-09-28  Bruno Haible  <bruno@clisp.org>
21229
21230         * tests/test-sigaction.c (handler, main): Disable the check whether
21231         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21232         glibc systems with LinuxThreads.
21233
21234 2008-09-28  Bruno Haible  <bruno@clisp.org>
21235
21236         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21237
21238         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21239         with AIX xlc.
21240         * lib/fcntl.in.h (open): Likewise.
21241         Reported by Rainer Tammer <tammer@tammer.net>.
21242
21243 2008-09-28  Bruno Haible  <bruno@clisp.org>
21244
21245         * modules/posix_spawnp-tests: New file.
21246         * tests/test-posix_spawn.c: New file.
21247         * tests/test-posix_spawn.in.sh: New file.
21248
21249         New module 'posix_spawnp'.
21250         * modules/posix_spawnp: New file.
21251         * lib/spawnp.c: New file, from GNU libc with modifications.
21252         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21253
21254         New module 'posix_spawn'.
21255         * modules/posix_spawn: New file.
21256         * lib/spawn.c: New file, from GNU libc with modifications.
21257         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21258
21259         New module 'posix_spawnattr_destroy'.
21260         * modules/posix_spawnattr_destroy: New file.
21261         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21262         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21263         module.
21264
21265         New module 'posix_spawnattr_setsigmask'.
21266         * modules/posix_spawnattr_setsigmask: New file.
21267         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21268         modifications.
21269         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21270         new module.
21271
21272         New module 'posix_spawnattr_getsigmask'.
21273         * modules/posix_spawnattr_getsigmask: New file.
21274         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21275         modifications.
21276         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21277         new module.
21278
21279         New module 'posix_spawnattr_setsigdefault'.
21280         * modules/posix_spawnattr_setsigdefault: New file.
21281         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21282         modifications.
21283         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21284         new module.
21285
21286         New module 'posix_spawnattr_getsigdefault'.
21287         * modules/posix_spawnattr_getsigdefault: New file.
21288         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21289         modifications.
21290         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21291         new module.
21292
21293         New module 'posix_spawnattr_setschedpolicy'.
21294         * modules/posix_spawnattr_setschedpolicy: New file.
21295         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21296         modifications.
21297         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21298         new module.
21299
21300         New module 'posix_spawnattr_getschedpolicy'.
21301         * modules/posix_spawnattr_getschedpolicy: New file.
21302         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21303         modifications.
21304         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21305         new module.
21306
21307         New module 'posix_spawnattr_setschedparam'.
21308         * modules/posix_spawnattr_setschedparam: New file.
21309         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21310         modifications.
21311         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21312         new module.
21313
21314         New module 'posix_spawnattr_getschedparam'.
21315         * modules/posix_spawnattr_getschedparam: New file.
21316         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21317         modifications.
21318         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21319         new module.
21320
21321         New module 'posix_spawnattr_setpgroup'.
21322         * modules/posix_spawnattr_setpgroup: New file.
21323         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21324         modifications.
21325         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21326         module.
21327
21328         New module 'posix_spawnattr_getpgroup'.
21329         * modules/posix_spawnattr_getpgroup: New file.
21330         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21331         modifications.
21332         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21333         module.
21334
21335         New module 'posix_spawnattr_setflags'.
21336         * modules/posix_spawnattr_setflags: New file.
21337         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21338         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21339         module.
21340
21341         New module 'posix_spawnattr_getflags'.
21342         * modules/posix_spawnattr_getflags: New file.
21343         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21344         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21345         module.
21346
21347         New module 'posix_spawnattr_init'.
21348         * modules/posix_spawnattr_init: New file.
21349         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21350         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21351         module.
21352
21353         New module 'posix_spawn_file_actions_destroy'.
21354         * modules/posix_spawn_file_actions_destroy: New file.
21355         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21356         modifications.
21357         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21358         the new module.
21359
21360         New module 'posix_spawn_file_actions_addopen'.
21361         * modules/posix_spawn_file_actions_addopen: New file.
21362         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21363         modifications.
21364         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21365         the new module.
21366
21367         New module 'posix_spawn_file_actions_adddup2'.
21368         * modules/posix_spawn_file_actions_adddup2: New file.
21369         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21370         modifications.
21371         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21372         the new module.
21373
21374         New module 'posix_spawn_file_actions_addclose'.
21375         * modules/posix_spawn_file_actions_addclose: New file.
21376         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21377         modifications.
21378         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21379         the new module.
21380
21381         New module 'posix_spawn_file_actions_init'.
21382         * modules/posix_spawn_file_actions_init: New file.
21383         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21384         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21385         new module.
21386
21387         New module 'posix_spawn-internal'.
21388         * modules/posix_spawn-internal: New file.
21389         * lib/spawn_int.h: New file, from GNU libc with modifications.
21390         * lib/spawni.c: New file, from GNU libc with modifications.
21391         * m4/posix_spawn.m4: New file.
21392
21393         New module 'spawn'.
21394         * modules/spawn: New file.
21395         * lib/spawn.in.h: New file, from GNU libc with modifications.
21396         * m4/spawn_h.m4: New file.
21397         * doc/posix-headers/spawn.texi: Mention the new module.
21398
21399 2008-09-28  Bruno Haible  <bruno@clisp.org>
21400
21401         * modules/sched-tests: New file.
21402         * tests/test-sched.c: New file.
21403
21404         New module 'sched'.
21405         * modules/sched: New file.
21406         * lib/sched.in.h: New file.
21407         * m4/sched_h.m4: New file.
21408         * doc/posix-headers/sched.texi: Mention the new module.
21409
21410 2008-09-27  Eric Blake  <ebb9@byu.net>
21411
21412         Fix previous patch, and tweak references to $0.
21413         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21414         (func_version, func_gnulib_dir): Don't call this program
21415         gnulib-tool.
21416         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21417         with using $0 in function.
21418         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21419         (func_fatal_error): Reuse the name the user invoked us with.
21420
21421 2008-09-27  Bruno Haible  <bruno@clisp.org>
21422
21423         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21424         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21425         (gl_ICONV_H): Not here.
21426         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21427         instead of assigning ICONV_H directly.
21428
21429         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21431         WCHAR_H directly.
21432
21433 2008-09-27  Bruno Haible  <bruno@clisp.org>
21434
21435         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21436         * modules/arpa_inet (Depends-on): Add link-warning.
21437         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21438         * modules/unistd (Makefile.am): Likewise.
21439
21440 2008-09-26  Bruno Haible  <bruno@clisp.org>
21441
21442         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21443         variables.
21444         (func_version): Essentially copied from gnulib-tool.
21445         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21446         func_readlink): Copied from gnulib-tool.
21447
21448 2008-09-26  Bruno Haible  <bruno@clisp.org>
21449
21450         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21451         invoking git-version-gen.
21452
21453 2008-09-26  Bruno Haible  <bruno@clisp.org>
21454
21455         * posix-modules: Update to directory names changed on 2008-01-19.
21456         Remove commas in output before splitting into words. No more need to
21457         avoid 'ftruncate' since 2007-02-19.
21458
21459 2008-09-26  Bruno Haible  <bruno@clisp.org>
21460
21461         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21462
21463 2008-09-26  Bruno Haible  <bruno@clisp.org>
21464
21465         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21466         * modules/fwriteerror (Depends-on): Add errno.
21467
21468 2008-09-26  Bruno Haible  <bruno@clisp.org>
21469
21470         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21471         * tests/test-vc-list-files-cvs.sh: Likewise.
21472
21473 2008-09-26  Bruno Haible  <bruno@clisp.org>
21474
21475         * doc/posix-headers/sys_resource.texi: Reorder items.
21476
21477 2008-09-26  Jim Meyering  <meyering@redhat.com>
21478
21479         fts: tweak inode comparison function
21480         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21481         inode numbers, as documented.
21482
21483         fts: sort dirent entries on inode number before traversing
21484         This avoids a quadratic, seek-related performance penalty when
21485         operating on a directory containing many entries (measurable at 10k;
21486         3.5 hours at 2 million entries with a cold cache) on certain types
21487         of file systems, including ext3 and ext4, but not tmpfs.
21488         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21489         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21490         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21491         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21492         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21493         (fts_build): Set the stat.st_ino member from D_INO.
21494         If it is likely to be useful, sort dirent entries on inode number.
21495
21496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21497         and the struct statfs.f_type member.
21498         * modules/fts (Depends-on): Add d-ino.
21499
21500 2008-09-26  Bruno Haible  <bruno@clisp.org>
21501
21502         * modules/sigpipe-die (Depends-on): Add sigpipe.
21503
21504         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21505         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21506         and GNULIB_STDIO_H_SIGPIPE are set.
21507         * lib/stdio-write.c: New file.
21508         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21509         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21510         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21511         REPLACE_STDIO_WRITE_FUNCS.
21512         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21513         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21514         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21515         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21516         * modules/stdio (Files): Add lib/stdio-write.c.
21517         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21518         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21519         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21520         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21521         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21522         REPLACE_FPRINTF_POSIX.
21523         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21524         REPLACE_PRINTF_POSIX.
21525         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21526         REPLACE_VFPRINTF_POSIX.
21527         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21528         REPLACE_VPRINTF_POSIX.
21529         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21530         SIGPIPE issue.
21531         * doc/posix-functions/fputc.texi: Likewise.
21532         * doc/posix-functions/fputs.texi: Likewise.
21533         * doc/posix-functions/fwrite.texi: Likewise.
21534         * doc/posix-functions/printf.texi: Likewise.
21535         * doc/posix-functions/putc.texi: Likewise.
21536         * doc/posix-functions/putchar.texi: Likewise.
21537         * doc/posix-functions/puts.texi: Likewise.
21538         * doc/posix-functions/vfprintf.texi: Likewise.
21539         * doc/posix-functions/vprintf.texi: Likewise.
21540
21541         * modules/safe-write (Depends-on): Add write.
21542
21543         * modules/sigpipe-tests: New file.
21544         * tests/test-sigpipe.c: New file.
21545         * tests/test-sigpipe.sh: New file.
21546
21547         * modules/write: New file.
21548         * lib/unistd.in.h: Include <sys/types.h>.
21549         (write): New declaration.
21550         * lib/write.c: New file.
21551         * m4/write.m4: New file.
21552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21553         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21554         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21555         GNULIB_WRITE, REPLACE_WRITE.
21556         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21557         and the SIGPIPE issue.
21558
21559         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21560         (raise): New declaration.
21561         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21562         (ext_signal): New function.
21563         (rpl_raise): New function.
21564         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21565         GNULIB_SIGNAL_H_SIGPIPE.
21566         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21567         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21568
21569         * modules/sigpipe: New file.
21570         * m4/sigpipe.m4: New file.
21571
21572 2008-09-25  Derek Price  <derek@ximbiot.com>
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         * gnulib-tool (func_import): Report all license incompatibilities, not
21576         just the first one.
21577
21578 2008-09-25  Bruno Haible  <bruno@clisp.org>
21579
21580         * gnulib-tool (func_import): When computing the edits, consider not
21581         only the Makefile.ams that exist but also those that will be generated.
21582
21583 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21584
21585         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21586         fixes gnulib-tool --test warning about duplicate dependency.
21587
21588 2008-09-25  Bruno Haible  <bruno@clisp.org>
21589
21590         * gnulib-tool: Don't ask the user to perform edits in the generated
21591         Makefile.ams.
21592         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21593         apply to the Makefile.am being generated.
21594         (func_emit_tests_Makefile_am): Execute edits that apply to the
21595         Makefile.am being generated.
21596         (func_import): Setup list of Makefile.am edits before emitting the
21597         Makefile.ams, not at the end.
21598         (func_create_testdir): Update.
21599         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21600
21601 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21602
21603         * gnulib-tool (func_import): Store the --tests-base option in the
21604         comment in gnulib-cache.m4.
21605
21606 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21607
21608         * NEWS: Document increased portability that sys_select now provides.
21609
21610         * lib/sys_select.in.h: Install select wrapper.
21611         * lib/sys_socket.in.h: Use more descriptive name when there is no
21612         select wrapper.
21613         * lib/winsock-select.c: New.
21614         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21615         Require gl_HEADER_SYS_SOCKET.
21616         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21617         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21618         * tests/test-sys_select.c: Add functional tests.
21619
21620 2008-09-24  Eric Blake  <ebb9@byu.net>
21621
21622         open, fopen: close fd leak in last patch
21623         * lib/open.c (rpl_open): Close fd before returning error.
21624         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21625         * doc/posix-functions/open.texi (open): Document that Irix also
21626         has the bug.
21627         * doc/posix-functions/fopen.texi (fopen): Likewise.
21628         Reported by Paolo Bonzini.
21629
21630 2008-09-24  Bruno Haible  <bruno@clisp.org>
21631
21632         Ensure that a filename ending in a slash cannot be used to access a
21633         non-directory.
21634         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21635         to check whether it's really a directory.
21636         * lib/fopen.c: Include fcntl.h, unistd.h.
21637         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21638         and fdopen().
21639         * modules/fopen (Depends-on): Add unistd.
21640         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21641         * tests/test-fopen.c (main): Likewise.
21642         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21643         * doc/posix-functions/fopen.texi: Likewise.
21644         Reported by Eric Blake.
21645
21646 2008-09-23  Eric Blake  <ebb9@byu.net>
21647
21648         c-stack: avoid compiler optimizations when provoking overflow
21649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21650         recursion harder to optimize, to ensure a stack overflow occurs.
21651         * tests/test-c-stack.c (recurse): Likewise.
21652         Borrowed from libsigsegv.
21653
21654         c-stack: work around Irix sigaltstack bug
21655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21656         whether sigaltstack uses wrong end of stack_t (copied in part from
21657         libsigsegv).
21658         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21659         Irix bug, without requiring an over-allocation.
21660         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21661         bug.
21662
21663         fopen: document mingw bug on directories
21664         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21665         not allowing a stream visiting a directory, even though reading
21666         from such a stream is not portable.
21667
21668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21669
21670         * lib/poll.c: Rewrite.
21671         * modules/poll: Depend on alloca.
21672
21673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21674
21675         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21676         instead define prototypes for a full set of wrappers.  Ensure
21677         that Cygwin does not use the compatibility code, which is only
21678         for MinGW.
21679         * lib/winsock.c: New.
21680         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21681         * modules/sys_socket: Add lib/winsock.c.
21682
21683         * modules/poll-tests: Add errno and perror.
21684         * tests/test-poll.c: Use ioctl, not ioctlsocket.
21685
21686 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21687
21688         * tests/test-poll.c: Downgrade minimum needed Winsock version.
21689
21690 2008-09-23  Bruno Haible  <bruno@clisp.org>
21691
21692         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
21693         * doc/glibc-functions/*: Likewise.
21694
21695 2008-09-23  Simon Josefsson  <simon@josefsson.org>
21696
21697         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
21698         success.
21699
21700 2008-09-22  Eric Blake  <ebb9@byu.net>
21701             Bruno Haible  <bruno@clisp.org>
21702
21703         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
21704         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
21705         supply %A but mishandle pseudo-NaN.
21706         Reported by Simon Josefsson.
21707
21708 2008-09-21  Bruno Haible  <bruno@clisp.org>
21709
21710         * tests/test-lock.c (main): Tweak skip message.
21711         * tests/test-tls.c (main): Likewise.
21712
21713 2008-09-21  Bruno Haible  <bruno@clisp.org>
21714
21715         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
21716         whether 'struct sigaction' has sa_sigaction here...
21717         (gl_PREREQ_SIG_HANDLER_H): ... not here.
21718         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
21719
21720 2008-09-21  Bruno Haible  <bruno@clisp.org>
21721
21722         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
21723         section.
21724         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
21725         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
21726         the new section.
21727         (Support for obsolete systems lacking POSIX:2001): New section.
21728         (String handling <string.h>): Move strdup to the new section.
21729         Suggested by Simon Josefsson and Paolo Bonzini.
21730
21731 2008-09-21  Bruno Haible  <bruno@clisp.org>
21732
21733         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
21734         exponents in %e and %g results on 'long double'. Needed for mingw's
21735         improved *printf functions.
21736         * tests/test-vasprintf-posix.c (test_function): Likewise.
21737         * tests/test-snprintf-posix.h (test_function): Likewise.
21738         * tests/test-sprintf-posix.h (test_function): Likewise.
21739         Reported by Eric Blake.
21740
21741 2008-09-21  Bruno Haible  <bruno@clisp.org>
21742
21743         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
21744         * tests/test-sprintf-posix.h (test_function): Likewise.
21745
21746 2008-09-21  Bruno Haible  <bruno@clisp.org>
21747
21748         * modules/getpass (Depends-on): Add strdup-posix.
21749
21750         New module 'strdup-posix'.
21751         * modules/strdup-posix: New file.
21752         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
21753         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
21754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21755         REPLACE_STRDUP.
21756         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
21757         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
21758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21759         strdup-posix.
21760
21761         * modules/strdup (Depends-on): Remove malloc-posix.
21762
21763 2008-09-20  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
21766         Wildenhues.
21767
21768 2008-09-20  Bruno Haible  <bruno@clisp.org>
21769
21770         Ensure that wint_t gets defined on IRIX 5.3.
21771         * lib/wchar.in.h (wint_t): Define if not defined by the system.
21772         * lib/wctype.in.h (wint_t): Likewise.
21773         (__wctype_wint_t): Remove type.
21774         (isw*): Use wint_t instead of __wctype_wint_t.
21775         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
21776         * modules/wchar (Files): Add m4/wint_t.m4.
21777         (Makefile.am): Substitute HAVE_WINT_T.
21778         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
21779         * tests/test-wctype.c: Check that wint_t is defined.
21780         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
21781         * doc/posix-headers/wctype.texi: Likewise.
21782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21783
21784 2008-09-18  Bruno Haible  <bruno@clisp.org>
21785
21786         * gnulib-tool (func_exit): Update comment.
21787
21788 2008-09-18  Simon Josefsson  <simon@josefsson.org>
21789
21790         * modules/getaddrinfo (Depends-on): Remove strdup, this module
21791         assumes strdup exists and does not depend on strdup to return
21792         ENOMEM on out of memory conditions.
21793
21794 2008-09-18  Bruno Haible  <bruno@clisp.org>
21795
21796         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
21797         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
21798         digits for the exponent.
21799
21800 2008-09-18  Jim Meyering  <meyering@redhat.com>
21801             Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/vasnprintf.c (decimal_point_char): Define also if
21804         NEED_PRINTF_INFINITE_LONG_DOUBLE.
21805
21806 2008-09-16  Bruno Haible  <bruno@clisp.org>
21807         and Eric Blake  <ebb9@byu.net>
21808
21809         vasnprintf: support Irix 5.3
21810         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
21811         that mishandle long double infinity.
21812         Reported by Tom G. Christensen.
21813
21814 2008-09-16  Bruno Haible  <bruno@clisp.org>
21815
21816         * doc/glibc-functions/scandir.texi: Mention the function is missing on
21817         Solaris 9.
21818         * doc/glibc-functions/alphasort.texi: Likewise.
21819         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
21820
21821 2008-09-16  Jim Meyering  <meyering@redhat.com>
21822
21823         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
21824         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
21825         a umask modification leak out of a subshell.  Otherwise, the
21826         opensolaris /bin/sh would be accepted and thus cause unwarranted
21827         failures in the coreutils test suite.
21828
21829 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
21830
21831         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
21832         to succeed.
21833
21834 2008-09-16  Jim Meyering  <meyering@redhat.com>
21835
21836         avoid spurious test failure when library is built without ACL support
21837         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
21838         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
21839         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
21840         * tests/test-copy-acl.sh: Likewise.
21841
21842 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21843
21844         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
21845         based on character occurrence counts.
21846
21847 2008-09-15  Eric Blake  <ebb9@byu.net>
21848
21849         tests: avoid some compiler warnings
21850         * tests/test-memchr.c (main): Pass NULL indirectly.
21851         * tests/test-closein.c (main): Avoid unused variable.
21852
21853 2008-09-15  Bruno Haible  <bruno@clisp.org>
21854
21855         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
21856         are missing on OpenBSD 4.0 individually.
21857         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21858
21859 2008-09-15  Bruno Haible  <bruno@clisp.org>
21860
21861         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
21862         * doc/posix-functions/strerror.texi: Mention also Cygwin.
21863         * doc/posix-functions/perror.texi: Likewise.
21864         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
21865         is missing.
21866         Reported by Eric Blake.
21867
21868         * lib/errno.in.h: Use replacement values >= 2000.
21869         Reported by Eric Blake.
21870
21871 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21872
21873         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
21874         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
21875         limit.
21876         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
21877         compareseq was aborted.
21878
21879 2008-09-14  Bruno Haible  <bruno@clisp.org>
21880
21881         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
21882         yvec_edit_count.
21883         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
21884         (fstrcmp_bounded): Simplify result computation accordingly.
21885
21886 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21887
21888         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
21889         (fstrcmp): Define in terms of fstrcmp_bounded.
21890         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
21891         lower_bound argument.
21892         Return quickly if the result is certainly < lower_bound.
21893         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
21894
21895 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21896
21897         * lib/diffseq.h (EARLY_ABORT): New macro.
21898         (compareseq): Change return type to bool. Return true when EARLY_ABORT
21899         evaluates to true.
21900
21901 2008-09-14  Bruno Haible  <bruno@clisp.org>
21902
21903         * modules/perror-tests: New file.
21904         * tests/test-perror.sh: New file.
21905         * tests/test-perror.c: New file.
21906
21907         New module 'perror'.
21908         * lib/stdio.in.h (perror): New declaration.
21909         * lib/perror.c: New file.
21910         * m4/perror.m4: New file.
21911         * modules/perror: New file.
21912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
21913         * doc/posix-functions/perror.texi: Mention the perror module.
21914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
21915         REPLACE_PERROR.
21916         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
21917         REPLACE_PERROR.
21918
21919 2008-09-14  Bruno Haible  <bruno@clisp.org>
21920
21921         * modules/stdio (Makefile.am): Reorder to match the order in
21922         lib/stdio.in.h.
21923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21924
21925 2008-09-13  Bruno Haible  <bruno@clisp.org>
21926
21927         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
21928
21929 2008-09-13  Bruno Haible  <bruno@clisp.org>
21930
21931         Extend strerror to cover the added errno values.
21932         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
21933         (rpl_strerror): Provide error messages for the added errno values and
21934         for the WSA* values.
21935         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
21936         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
21937         strerror.
21938         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
21939         * modules/strerror (Depends-on): Add errno.
21940         * doc/posix-functions/strerror.texi: Document the change.
21941         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
21942         and EOVERFLOW.
21943
21944 2008-09-13  Bruno Haible  <bruno@clisp.org>
21945
21946         * modules/EOVERFLOW: Remove file.
21947         * m4/eoverflow.m4: Remove file.
21948         * modules/EOVERFLOW-tests: Remove file.
21949         * tests/test-EOVERFLOW.c: Remove file.
21950         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
21951         * modules/ftell (Depends-on): Likewise.
21952         * modules/getdelim (Depends-on): Likewise.
21953         * modules/getugroups (Depends-on): Likewise.
21954         * modules/poll (Depends-on): Likewise.
21955         * modules/snprintf (Depends-on): Likewise.
21956         * modules/sprintf-posix (Depends-on): Likewise.
21957         * modules/vasnprintf (Depends-on): Likewise.
21958         * modules/vasprintf (Depends-on): Likewise.
21959         * modules/vfprintf-posix (Depends-on): Likewise.
21960         * modules/vsnprintf (Depends-on): Likewise.
21961         * modules/vsprintf-posix (Depends-on): Likewise.
21962         * modules/xvasprintf (Depends-on): Likewise.
21963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21964         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
21965         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
21966         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
21967         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21968         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
21969         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
21970         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
21971         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21972         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
21973         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
21974         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
21975         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21976         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
21977         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
21978         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
21979         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21980         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
21981         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
21982         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
21983         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21984         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
21985         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
21986         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
21987         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
21988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21989         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
21990         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
21991         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
21992         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
21993         * MODULES.html.sh: Remove EOVERFLOW.
21994         * NEWS: Mention the change.
21995
21996 2008-09-13  Bruno Haible  <bruno@clisp.org>
21997
21998         * modules/errno-tests: New file.
21999         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22000
22001         * lib/errno.in.h: New file.
22002         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22003         * modules/errno: New file.
22004         * doc/posix-headers/errno.texi: Update documentation.
22005         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22006
22007 2008-09-13  Bruno Haible  <bruno@clisp.org>
22008
22009         * tests/test-poll.c: Use #if for native Windows, rather than testing
22010         __MSVCRT__.
22011
22012 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22013             Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/glob.c: Don't include <pwd.h> on native Windows.
22016         (WINDOWS32): New macro.
22017         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22018
22019 2008-09-13  Bruno Haible  <bruno@clisp.org>
22020
22021         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22022         (ETIMEDOUT): Remove macro.
22023         (glthread_cond_timedwait_multithreaded): New declaration.
22024         (glthread_cond_timedwait): Use it.
22025         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22026         (glthread_cond_timedwait_multithreaded): New function.
22027
22028 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22029
22030         * modules/poll-tests: Do not check for io.h.
22031         * tests/test-poll.c: Check for __MSVCRT__ instead.
22032
22033 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22034
22035         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22036         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22037         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22038
22039 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22040
22041         * modules/poll-tests: New.
22042         * tests/test-poll.c: New.
22043
22044 2008-09-12  Eric Blake  <ebb9@byu.net>
22045
22046         frexp: test for NetBSD failure on -0.0
22047         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22048         not all, bugs from NetBSD 3.0 have been fixed.
22049         * doc/posix-functions/frexp.texi (frexp): Document bug.
22050         Reported by Thomas Klausner.
22051
22052         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22053         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22054         literal -0.0.
22055         Reported by Jonathan C. Patschke <jp@centtech.com>.
22056
22057 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22058
22059         * lib/glthread/cond.h: Use dummy implementation also if
22060         USE_WIN32_THREADS.
22061
22062 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22063
22064         * modules/fnmatch-posix (License): Change to LGPLv2+.
22065         * modules/fnmatch-gnu (License): Likewise.
22066
22067 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22068
22069         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22070
22071 2008-09-11  Jim Meyering  <meyering@redhat.com>
22072
22073         * users.txt: Add gtk-vnc.
22074
22075 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22076
22077         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22078         rotate amounts.
22079
22080         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22081         required for 16-bit and 8-bit rotates.
22082         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22083         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22084         UINT8_MAX instead of hard-coded constants.
22085         Suggested by Paul Eggert.
22086
22087 2008-09-07  Bruno Haible  <bruno@clisp.org>
22088
22089         * tests/test-striconveh.c (main): Check behaviour when converting from
22090         UTF-7.
22091
22092         Make striconveh work better with stateful encodings.
22093         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22094         that iconv does not increment the inptr when returning -1/EINVAL.
22095
22096 2008-09-07  Bruno Haible  <bruno@clisp.org>
22097
22098         * build-aux/config.rpath: Update according to libtool-2.2.6.
22099         * build-aux/config.libpath: Likewise.
22100
22101 2008-09-06  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22104         * lib/freadptr.c (freadptr): Likewise.
22105         * lib/freadseek.c (freadptrinc): Likewise.
22106         Reported by Simon Josefsson.
22107
22108 2008-09-06  Bruno Haible  <bruno@clisp.org>
22109
22110         * modules/freadptr (License): Change to LGPLv2+.
22111         * modules/freadseek (License): Likewise.
22112         Suggested by Eric Blake.
22113
22114         * modules/memchr2 (License): Change to LGPLv2+.
22115         Approved by Eric Blake.
22116
22117 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22118             Bruno Haible  <bruno@clisp.org>
22119
22120         Make gnulib-tool work with native 'sed' on AIX.
22121         * gnulib-tool (sed_noop): New variable.
22122         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22123         func_add_or_update, func_create_testdir): Use it to initialize sed
22124         script variables.
22125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22126
22127 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22128             Bruno Haible  <bruno@clisp.org>
22129
22130         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22131         also works after #include directives.
22132
22133 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22134
22135         getdate.y: reject an out-of-range timezone value
22136         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22137         the range [-24...+24].  When specified with only one or two digits,
22138         * tests/test-getdate.c: Tests for the fix.
22139         * doc/getdate.texi: Document this change.
22140
22141 2008-09-03  Bruno Haible  <bruno@clisp.org>
22142
22143         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22144
22145 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22146
22147         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22148         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22149         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22150         Blake <ebb9@byu.net>.
22151
22152         * tests/test-bitrotate.c: Add more test vectors.
22153
22154 2008-09-02  Eric Blake  <ebb9@byu.net>
22155
22156         vasnprintf-posix: handle large precision via %.*d
22157         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22158         when handling it ourselves.
22159         * tests/test-vasnprintf-posix.c (test_function): Add test.
22160         * tests/test-snprintf-posix.h (test_function): Likewise.
22161         * tests/test-sprintf-posix.h (test_function): Likewise.
22162         * tests/test-vasprintf-posix.c (test_function): Likewise.
22163         Reported by Alain Guibert.
22164
22165 2008-09-01  Eric Blake  <ebb9@byu.net>
22166
22167         c-stack: make configure-time check more robust
22168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22169         successful sigaction call.
22170         Reported by Tom G. Christensen.
22171
22172 2008-09-01  Bruno Haible  <bruno@clisp.org>
22173
22174         New module 'findprog-lgpl'.
22175         * modules/findprog-lgpl: New file.
22176         * lib/findprog-lgpl.c: New file.
22177         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22178         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22179         to decide whether to use strdup or xstrdup, concatenated_filename or
22180         xconcatenated_filename.
22181
22182 2008-09-01  Bruno Haible  <bruno@clisp.org>
22183
22184         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22185         'xconcat-filename' (GPL).
22186         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22187         (License): Change to LGPLv2+.
22188         * modules/xconcat-filename: New file.
22189         * lib/concat-filename.h (concatenated_filename): Change specification.
22190         (xconcatenated_filename): New declaration.
22191         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22192         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22193         memory situations.
22194         * lib/xconcat-filename.c: New file.
22195         * NEWS: Mention the change.
22196         * lib/findprog.c: Include concat-filename.h, not filename.h.
22197         (find_in_path): Use xconcatenated_filename instead of
22198         concatenated_filename.
22199         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22200         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22201         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22202         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22203         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22204         instead of concatenated_filename.
22205         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22206         (execute_java_class): Use xconcatenated_filename instead of
22207         concatenated_filename.
22208         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22209         * modules/javacomp (Depends-on): Likewise.
22210         * modules/javaexec (Depends-on): Likewise.
22211
22212 2008-09-01  Bruno Haible  <bruno@clisp.org>
22213
22214         Split module 'filename' into 'filename' and 'concat-filename'.
22215         * modules/filename: Keep only lib/filename.h.
22216         (License): Change to LGPLv2+.
22217         * modules/concat-filename: New file, extracted from modules/filename.
22218         * lib/filename.h (concatenated_filename): Remove declaration.
22219         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22220         * lib/concat-filename.c: Include concat-filename.h.
22221         * NEWS: Mention the change.
22222
22223 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22224
22225         * lib/bitrotate.h (rotl8, rotr8): Add.
22226
22227         * modules/bitrotate (configure.ac): Need
22228         AC_REQUIRE([AC_C_INLINE]).
22229         (Description): Mention stdint.h.  Reported by Bruno Haible
22230         <bruno@clisp.org>.
22231
22232         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22233         Paolo Bonzini <bonzini@gnu.org>.
22234
22235 2008-08-31  Bruno Haible  <bruno@clisp.org>
22236
22237         Assume Solaris specific bi-arch conventions on Solaris systems.
22238         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22239         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22241         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22242         like acl_libdirstem.
22243         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22244         acl_libdirstem.
22245         * NEWS: Mention the change.
22246         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22247
22248 2008-08-31  Jim Meyering  <meyering@redhat.com>
22249
22250         * lib/strftime.h: Add comments describing the two added arguments.
22251
22252         remove duplicate #include directives
22253         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22254         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22255
22256 2008-08-31  Bruno Haible  <bruno@clisp.org>
22257
22258         New module 'sigpipe-die'.
22259         * modules/sigpipe-die: New file.
22260         * lib/sigpipe-die.h: New file.
22261         * lib/sigpipe-die.c: New file.
22262         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22263
22264 2008-08-31  Bruno Haible  <bruno@clisp.org>
22265
22266         Don't override previously installed signal handlers.
22267         * lib/fatal-signal.c (saved_sigactions): New variable.
22268         (uninstall_handlers): Reset the signal to the saved handler, not
22269         to SIG_DFL (except when ignored).
22270         (install_handlers): Save the previous handlers.
22271
22272 2008-08-30  Bruno Haible  <bruno@clisp.org>
22273
22274         * gnulib-tool (func_reset_sigpipe): New function.
22275         (func_get_automake_snippet, func_modules_transitive_closure,
22276         func_import): Invoke it before a join command that reads from stdin,
22277         to avoid "echo: write error: Broken pipe" error messages on stderr.
22278         Reported by Sam Steingold <sds@gnu.org>.
22279
22280 2008-08-30  Bruno Haible  <bruno@clisp.org>
22281
22282         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22283         Code copied from m4/open.m4.
22284         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22285         access and the filename ends in a slash. Code copied from lib/open.c.
22286         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22287         * tests/test-fopen.c (main): Check against bug with trailing slash.
22288
22289 2008-08-29  Bruno Haible  <bruno@clisp.org>
22290
22291         Avoid some "gcc -pedantic" warnings.
22292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22293         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22294         * lib/dirent.in.h: Likewise.
22295         * lib/fcntl.in.h: Likewise.
22296         * lib/float.in.h: Likewise.
22297         * lib/iconv.in.h: Likewise.
22298         * lib/inttypes.in.h: Likewise.
22299         * lib/locale.in.h: Likewise.
22300         * lib/math.in.h: Likewise.
22301         * lib/netinet_in.in.h: Likewise.
22302         * lib/search.in.h: Likewise.
22303         * lib/signal.in.h: Likewise.
22304         * lib/stdarg.in.h: Likewise.
22305         * lib/stdint.in.h: Likewise.
22306         * lib/stdio.in.h: Likewise.
22307         * lib/stdlib.in.h: Likewise.
22308         * lib/string.in.h: Likewise.
22309         * lib/strings.in.h: Likewise.
22310         * lib/sys_select.in.h: Likewise.
22311         * lib/sys_socket.in.h: Likewise.
22312         * lib/sys_stat.in.h: Likewise.
22313         * lib/sys_time.in.h: Likewise.
22314         * lib/sysexits.in.h: Likewise.
22315         * lib/time.in.h: Likewise.
22316         * lib/unistd.in.h: Likewise.
22317         * lib/wchar.in.h: Likewise.
22318         * lib/wctype.in.h: Likewise.
22319         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22320         * modules/fchdir (Makefile.am): Likewise.
22321         * modules/fcntl (Makefile.am): Likewise.
22322         * modules/float (Makefile.am): Likewise.
22323         * modules/iconv_open (Makefile.am): Likewise.
22324         * modules/inttypes (Makefile.am): Likewise.
22325         * modules/locale (Makefile.am): Likewise.
22326         * modules/math (Makefile.am): Likewise.
22327         * modules/netinet_in (Makefile.am): Likewise.
22328         * modules/search (Makefile.am): Likewise.
22329         * modules/signal (Makefile.am): Likewise.
22330         * modules/stdarg (Makefile.am): Likewise.
22331         * modules/stdint (Makefile.am): Likewise.
22332         * modules/stdio (Makefile.am): Likewise.
22333         * modules/stdlib (Makefile.am): Likewise.
22334         * modules/string (Makefile.am): Likewise.
22335         * modules/strings (Makefile.am): Likewise.
22336         * modules/sys_select (Makefile.am): Likewise.
22337         * modules/sys_socket (Makefile.am): Likewise.
22338         * modules/sys_stat (Makefile.am): Likewise.
22339         * modules/sys_time (Makefile.am): Likewise.
22340         * modules/sysexits (Makefile.am): Likewise.
22341         * modules/time (Makefile.am): Likewise.
22342         * modules/unistd (Makefile.am): Likewise.
22343         * modules/wchar (Makefile.am): Likewise.
22344         * modules/wctype (Makefile.am): Likewise.
22345         Reported by Reuben Thomas <rrt@sc3d.org>.
22346
22347 2008-08-29  Bruno Haible  <bruno@clisp.org>
22348
22349         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22350         any more.
22351
22352 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22353
22354         * MODULES.html.sh (Misc): Add bitrotate.
22355
22356         * modules/bitrotate: New file.
22357
22358         * lib/bitrotate.h: New file.
22359
22360         * modules/bitrotate-tests: New file.
22361
22362         * tests/test-bitrotate.c: New file.
22363
22364         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22365         on the bitrotate module.
22366
22367         * lib/arctwo.c: Use new bitrotate module.
22368
22369 2008-08-29  Jim Meyering  <meyering@redhat.com>
22370
22371         bootstrap: merge changes from coreutils
22372         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22373         of copied files.  Remove a kludge, now that this is fixed.
22374         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22375         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22376         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22377
22378 2008-08-29  Bruno Haible  <bruno@clisp.org>
22379
22380         * MODULES.html.sh: Remove --cvs-urls option.
22381
22382 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22383
22384         maint.mk: adjust to file name change
22385         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22386
22387 2008-08-28  Jim Meyering  <meyering@redhat.com>
22388
22389         * modules/getndelim2 (License): Relicense to LGPLv2+.
22390         Approved by Richard Stallman for the version of 1995, and by
22391         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22392
22393 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22394
22395         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22396         dummy if one is not available.  Do not touch them if
22397         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22398         (getc_maybe_unlocked): New.
22399         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22400
22401 2008-08-26  Eric Blake  <ebb9@byu.net>
22402
22403         doc/INSTALL: resync from autoconf
22404         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22405         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22406         moving...
22407         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22408         * INSTALL: Regenerate.
22409         * INSTALL.ISO: New file.
22410         * INSTALL.UTF-8: Likewise.
22411
22412 2008-08-26  Jim Meyering  <meyering@redhat.com>
22413
22414         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22415         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22416         these definitions conditional, so that they may be overridden, too.
22417
22418 2008-08-26  Bruno Haible  <bruno@clisp.org>
22419
22420         Generate INSTALL file variants with prettier quotes.
22421         * doc/Makefile (INSTALL_PRELUDE): New macro.
22422         (INSTALL): Use it.
22423         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22424
22425 2008-08-26  Bruno Haible  <bruno@clisp.org>
22426
22427         Run makeinfo in an English locale.
22428         * doc/Makefile (MAKEINFO): New variable.
22429
22430 2008-08-26  Bruno Haible  <bruno@clisp.org>
22431
22432         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22433         Suggested by Eric Blake.
22434
22435 2008-08-25  Bruno Haible  <bruno@clisp.org>
22436
22437         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22438
22439 2008-08-25  Eric Blake  <ebb9@byu.net>
22440
22441         c-stack: test that stack overflow can be caught
22442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22443         that platform allows handling stack overflow; at least OS/2 EMX
22444         has sigaltstack, but crashes before transferring control to
22445         handler on stack overflow.
22446         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22447         check for HAVE_STACK_OVERFLOW_HANDLING.
22448         Reported by Elbert Pol.
22449
22450 2008-08-25  Bruno Haible  <bruno@clisp.org>
22451
22452         * doc/posix-functions/strftime.texi: Fix description of strftime
22453         module.
22454
22455 2008-08-24  Bruno Haible  <bruno@clisp.org>
22456
22457         * tests/uniwidth/test-uc_width2.c: New file.
22458         * tests/uniwidth/test-uc_width2.sh: New file.
22459         * modules/uniwidth/width-tests (Files): Add the new files.
22460         (TESTS): Add uniwidth/test-uc_width2.sh.
22461         (TESTS_ENVIRONMENT): New variable.
22462         (check_PROGRAMS): Add test-uc_width2.
22463         (test_uc_width2_SOURCES): New variable.
22464
22465         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22466         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22467         not 0x00AB.
22468         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22469
22470 2008-08-22  Eric Blake  <ebb9@byu.net>
22471
22472         test-lock, test-tls: mention why a test is skipped
22473         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22474         skipped.
22475         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22476
22477         count-one-bits: relax license
22478         * modules/count-one-bits (License): Relicense to LGPLv2+.
22479         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22480
22481 2008-08-22  Andreas Schwab  <schwab@suse.de>
22482
22483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22484         Remove spurious space in assignment.
22485
22486 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22487
22488         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22489         Paul Eggert <eggert@CS.UCLA.EDU>.
22490
22491 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22492
22493         * modules/gettext: Add m4/threadlib.m4.
22494
22495 2008-08-19  Eric Blake  <ebb9@byu.net>
22496
22497         test-c-stack: fix compilation failure on FreeBSD 5.0
22498         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22499         headers before <sys/resource.h>.
22500         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22501         the bug.
22502         Reported by Nelson H. F. Beebe.
22503
22504         strverscmp: migrate from "strverscmp.h" to <string.h>
22505         * modules/string (Makefile.am): Add new hooks.
22506         * modules/strverscmp (Files): Remove strverscmp.h.
22507         (Depends-on): Add string.
22508         (configure.ac): Add indicator.
22509         (Include): Mention new header.
22510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22511         defaults.
22512         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22513         results.
22514         * lib/strverscmp.h: Delete.
22515         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22516         * tests/test-strverscmp.c (includes): Adjust client.
22517         * lib/check-version.c (includes): Likewise.
22518         * NEWS: Document the change.
22519
22520         strverscmp: add unit test
22521         * modules/strverscmp-tests: New file.
22522         * tests/test-strverscmp.c: Likewise.
22523
22524 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22525
22526         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22527         regarding Windows crypto stuff, from Mono.
22528
22529 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22530
22531         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22532         if present, for intel RND.  Return error on failures.
22533
22534 2008-08-18  Ben Pfaff  <blp@gnu.org>
22535
22536         gitlog-to-changelog: give better diagnostic for failed pipe-open
22537         * build-aux/gitlog-to-changelog: Improve error message: suggest
22538         that the version of Git may be too old.
22539
22540 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22541
22542         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22543         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22544
22545 2008-08-18  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22548         pthread_in_use().
22549
22550 2008-08-18  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/glthread/threadlib.c: Include <pthread.h>.
22553
22554 2008-08-18  Bruno Haible  <bruno@clisp.org>
22555
22556         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22557         glthread_recursive_lock_* macros.
22558         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22559         Fix syntax error.
22560
22561 2008-08-18  Bruno Haible  <bruno@clisp.org>
22562
22563         * lib/glthread/thread.c: Avoid forcing a context switch right after
22564         thread creation.
22565
22566 2008-08-17  Bruno Haible  <bruno@clisp.org>
22567
22568         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22569         * lib/glthread/thread.h: Provide Win32 specific implementation.
22570         * modules/thread (Files): Add lib/glthread/thread.c.
22571         (Depends-on): Add lock.
22572         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22573
22574 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22575
22576         New module 'yield'.
22577         * modules/yield: New file.
22578         * lib/glthread/yield.h: New file.
22579         * m4/yield.m4: New file.
22580         * MODULES.html.sh (Multithreading): Add yield.
22581
22582 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22583
22584         New module 'thread'.
22585         * modules/thread: New file.
22586         * lib/glthread/thread.h: New file.
22587         * m4/thread.m4: New file.
22588         * MODULES.html.sh (Multithreading): Add thread.
22589
22590 2008-08-17  Bruno Haible  <bruno@clisp.org>
22591
22592         * lib/glthread/lock.h: Include <stdlib.h> always.
22593         * lib/glthread/tls.h: Likewise.
22594         * lib/glthread/cond.h: Likewise.
22595
22596 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22597
22598         New module 'cond'.
22599         * modules/cond: New file.
22600         * lib/glthread/cond.h: New file.
22601         * lib/glthread/cond.c: New file.
22602         * m4/cond.m4: New file.
22603         * MODULES.html.sh (Multithreading): Add cond.
22604
22605 2008-08-16  Eric Blake  <ebb9@byu.net>
22606
22607         c-stack: fix regression on Irix 5.3 from 2008-06-21
22608         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22609         sa_sigaction...
22610         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22611         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22612         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22613         * modules/signal (Makefile.am): Use the value.
22614         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22615         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22616         * doc/posix-headers/signal.texi (signal.h): Document this
22617         portability issue.
22618         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22619         Reported by Tom G. Christensen.
22620
22621 2008-08-17  Bruno Haible  <bruno@clisp.org>
22622
22623         New module 'threadlib'.
22624         * modules/threadlib: New file.
22625         * lib/glthread/threadlib.c: New file, extracted from
22626         lib/glthread/lock.c.
22627         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22628         functions.
22629         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22630         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22631         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22632         macros.
22633         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22634         (gl_DISABLE_THREADS): Remove macro.
22635         * modules/lock (Files): Remove build-aux/config.rpath.
22636         (Depends-on): Remove havelib. Add threadlib.
22637         (configure.ac-early): Remove section.
22638         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22639         * modules/tls (Depends-on): Remove lock. Add threadlib.
22640         (Link): New section, copied from threadlib.
22641         * MODULES.html.sh (Multithreading): Add threadlib.
22642
22643 2008-08-14  Bruno Haible  <bruno@clisp.org>
22644
22645         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22646         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22647         glthread_rwlock_unlock, glthread_rwlock_destroy,
22648         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22649         glthread_recursive_lock_destroy): Define as macros always.
22650         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22651         glthread_lock_lock.
22652         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22653         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22654         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22655         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22656         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22657         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22658         (glthread_recursive_lock_lock_func): Renamed from
22659         glthread_recursive_lock_lock.
22660         (glthread_recursive_lock_unlock_func): Renamed from
22661         glthread_recursive_lock_unlock.
22662         (glthread_recursive_lock_destroy_func): Renamed from
22663         glthread_recursive_lock_destroy.
22664
22665 2008-08-14  Bruno Haible  <bruno@clisp.org>
22666
22667         * lib/glthread/lock.h: Renamed from lib/lock.h.
22668         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22669         * lib/glthread/tls.h: Renamed from lib/tls.h.
22670         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22671         * lib/fstrcmp.c: Update includes.
22672         * lib/strsignal.c: Update includes.
22673         * modules/lock (Files, Makefile.am): Update.
22674         (Include): Change to "glthread/lock.h".
22675         * modules/tls (Files, Makefile.am): Update.
22676         (Include): Change to "glthread/tls.h".
22677         * tests/test-lock.c: Update includes.
22678         * tests/test-tls.c: Update includes.
22679         * NEWS: Mention the renamed header files.
22680
22681 2008-08-11  Jim Meyering  <meyering@redhat.com>
22682
22683         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
22684
22685 2008-08-11  Eric Blake  <ebb9@byu.net>
22686
22687         test-c-stack: avoid C99-ism
22688         * tests/test-c-stack.c (main): Fix whitespace, move declaration
22689         before statement.
22690         Reported by Alain Guibert.
22691
22692 2008-08-10  Jim Meyering  <meyering@redhat.com>
22693
22694         ensure that return value of uinttostr et al are not ignored
22695         * lib/inttostr.h (__GNUC_PREREQ): Define.
22696         (__attribute_warn_unused_result__): Define.
22697         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
22698
22699 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
22700
22701         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
22702         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
22703
22704 2008-08-07  Jim Meyering  <meyering@redhat.com>
22705
22706         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
22707
22708         * modules/mkstemp (License): Relicense under LGPLv2+.
22709         * modules/tempname (License): Likewise.
22710
22711 2008-08-06  Bruno Haible  <bruno@clisp.org>
22712
22713         * lib/poll.c (poll): Further micro-optimization.
22714
22715 2008-08-06  Jim Meyering  <meyering@redhat.com>
22716
22717         inet_pton.c: use locale-independent tolower
22718         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
22719         (inet_pton6): Use c_tolower rather than tolower.
22720         * modules/inet_pton (Depends-on): Add c-ctype.
22721
22722 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
22723
22724         * lib/poll.c (poll): Avoid division when timeout is 0, cache
22725         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
22726
22727 2008-08-06  Jim Meyering  <meyering@redhat.com>
22728
22729         * modules/inet_pton (License): Relicense under LGPLv2+.
22730
22731 2008-08-03  Bruno Haible  <bruno@clisp.org>
22732
22733         Additional non-aborting API for lock and tls.
22734         * lib/lock.h: Include <errno.h>.
22735         (glthread_lock_init): New macro/function.
22736         (gl_lock_init): Define as wrapper around glthread_lock_init.
22737         (glthread_lock_lock): New macro/function.
22738         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
22739         (glthread_lock_unlock): New macro/function.
22740         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
22741         (glthread_lock_destroy): New macro/function.
22742         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
22743         (glthread_rwlock_init): New macro/function.
22744         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
22745         (glthread_rwlock_rdlock): New macro/function.
22746         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
22747         (glthread_rwlock_wrlock): New macro/function.
22748         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
22749         (glthread_rwlock_unlock): New macro/function.
22750         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
22751         (glthread_rwlock_destroy): New macro/function.
22752         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
22753         (glthread_recursive_lock_init): New macro/function.
22754         (gl_recursive_lock_init): Define as wrapper around
22755         glthread_recursive_lock_init.
22756         (glthread_recursive_lock_lock): New macro/function.
22757         (gl_recursive_lock_lock): Define as wrapper around
22758         glthread_recursive_lock_lock.
22759         (glthread_recursive_lock_unlock): New macro/function.
22760         (gl_recursive_lock_unlock): Define as wrapper around
22761         glthread_recursive_lock_unlock.
22762         (glthread_recursive_lock_destroy): New macro/function.
22763         (gl_recursive_lock_destroy): Define as wrapper around
22764         glthread_recursive_lock_destroy.
22765         (glthread_once): New macro/function.
22766         (gl_once): Define as wrapper around glthread_once.
22767         Update function declarations.
22768         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
22769         glthread_rwlock_init. Return error code.
22770         (glthread_rwlock_rdlock_multithreaded): Renamed from
22771         glthread_rwlock_rdlock. Return error code.
22772         (glthread_rwlock_wrlock_multithreaded): Renamed from
22773         glthread_rwlock_wrlock. Return error code.
22774         (glthread_rwlock_unlock_multithreaded): Renamed from
22775         glthread_rwlock_unlock. Return error code.
22776         (glthread_rwlock_destroy_multithreaded): Renamed from
22777         glthread_rwlock_destroy. Return error code.
22778         (glthread_recursive_lock_init_multithreaded): Renamed from
22779         glthread_recursive_lock_init. Return error code.
22780         (glthread_recursive_lock_lock_multithreaded): Renamed from
22781         glthread_recursive_lock_lock. Return error code.
22782         (glthread_recursive_lock_unlock_multithreaded): Renamed from
22783         glthread_recursive_lock_unlock. Return error code.
22784         (glthread_recursive_lock_destroy_multithreaded): Renamed from
22785         glthread_recursive_lock_destroy. Return error code.
22786         (glthread_once_call): Make static.
22787         (glthread_once_multithreaded): Renamed from glthread_once.
22788         * lib/tls.h: Include <errno.h>.
22789         (glthread_tls_key_init): New macro/function.
22790         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
22791         (glthread_tls_set): New macro/function.
22792         (gl_tls_set): Define as wrapper around glthread_tls_set.
22793         (glthread_tls_key_destroy): New macro/function.
22794         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
22795         Update function declarations.
22796         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
22797         glthread_tls_get.
22798         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
22799
22800 2008-08-04  Eric Blake  <ebb9@byu.net>
22801
22802         gnumakefile: use space, not TAB, outside of targets
22803         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
22804
22805 2008-08-02  Jim Meyering  <meyering@redhat.com>
22806
22807         getdate.y: avoid locale-dependent date parsing failure
22808         In Turkish locales, getdate would fail to recognize keywords
22809         containing a lowercase "i".  The solution is not to rely on
22810         locale-sensitive case-conversion.
22811         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
22812         (lookup_word): Use c_toupper in place of toupper.
22813         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
22814         Reported by Vefa Bicakci <bicave@superonline.com> in
22815         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
22816         * modules/getdate (Depends-on): Add c-ctype.
22817
22818 2008-08-02  Bruno Haible  <bruno@clisp.org>
22819
22820         * gnulib-tool (func_import): When updating or creating a .gitignore
22821         file, prepend each added line with a slash, and ignore leading slashes
22822         from the existing lines.
22823         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22824
22825 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22826
22827         Portability fix for GNU make 3.79.1.
22828         * top/GNUmakefile: Avoid 'else COND', which older GNU make
22829         versions do not understand.
22830
22831 2008-08-01  Bruno Haible  <bruno@clisp.org>
22832
22833         Work around bug of HP-UX 10.20 cc with -0.0 literal.
22834         * tests/test-isnanf.h (zero): New variable.
22835         (main): Avoid literal -0.0f.
22836         * tests/test-isnand.h (zero): New variable.
22837         (main): Avoid literal -0.0.
22838         * tests/test-isnanl.h (zero): New variable.
22839         (main): Avoid literal -0.0L.
22840         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
22841         (test_float, test_double, test_long_double): Avoid literals -0.0f,
22842         -0.0, -0.0L.
22843         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
22844         (test_signbitd): Avoid literal -0.0.
22845         (test_signbitl): Avoid literal -0.0L.
22846         * tests/test-ceilf1.c (zero): New variable.
22847         (main): Avoid literal -0.0f.
22848         * tests/test-ceill.c (zero): New variable.
22849         (main): Avoid literal -0.0L.
22850         * tests/test-floorf1.c (zero): New variable.
22851         (main): Avoid literal -0.0f.
22852         * tests/test-floorl.c (zero): New variable.
22853         (main): Avoid literal -0.0L.
22854         * tests/test-roundf1.c (zero): New variable.
22855         (main): Avoid literal -0.0f.
22856         * tests/test-round1.c (zero): New variable.
22857         (main): Avoid literal -0.0.
22858         * tests/test-roundl.c (zero): New variable.
22859         (main): Avoid literal -0.0L.
22860         * tests/test-truncf1.c (zero): New variable.
22861         (main): Avoid literal -0.0f.
22862         * tests/test-trunc1.c (zero): New variable.
22863         (main): Avoid literal -0.0.
22864         * tests/test-truncl.c (zero): New variable.
22865         (main): Avoid literal -0.0L.
22866         * tests/test-frexp.c (zero): New variable.
22867         (main): Avoid literal -0.0.
22868         * tests/test-frexpl.c (zero): New variable.
22869         (main): Avoid literal -0.0L.
22870         * tests/test-ldexpl.c (zero): New variable.
22871         (main): Avoid literal -0.0L.
22872         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22873         (zerod, zerol): New variables.
22874         (test_function): Avoid literals -0.0, -0.0L.
22875         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
22876         (zerod, zerol): New variables.
22877         (test_function): Avoid literals -0.0, -0.0L.
22878         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22879         (zerod, zerol): New variables.
22880         (test_function): Avoid literals -0.0, -0.0L.
22881         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
22882         (zerod, zerol): New variables.
22883         (test_function): Avoid literals -0.0, -0.0L.
22884         * tests/test-strtod.c (zero): New variable.
22885         (main): Avoid literal -0.0.
22886         Reported by Jonathan C. Patschke <jp@centtech.com>.
22887
22888 2008-07-31  Jim Meyering  <meyering@redhat.com>
22889
22890         sha256.h: correct definition of SHA224_DIGEST_SIZE
22891         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
22892         Reported by Paulie Pena IV <paulie4@gmail.com>.
22893         Define as 224 / 8, rather than as a literal.
22894         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
22895         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
22896         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
22897
22898 2008-07-31  Bruno Haible  <bruno@clisp.org>
22899
22900         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
22901         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
22902         Reported by Jonathan Patschke <jp@centtech.com>.
22903
22904 2008-07-31  Bruno Haible  <bruno@clisp.org>
22905
22906         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
22907         Reported by Paolo Bonzini <bonzini@gnu.org>.
22908
22909 2008-07-30  Eric Blake  <ebb9@byu.net>
22910
22911         test-strtod: allow compilation without -lm
22912         * tests/test-strtod.c (main): Avoid link dependence on fabs.
22913         Reported by Dennis Clarke <blastwave@gmail.com>.
22914
22915 2008-07-28  Jim Meyering  <meyering@redhat.com>
22916
22917         bootstrap: work also when there are no .po files in po/
22918         * build-aux/bootstrap (update_po_files): Complete the change
22919         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
22920
22921 2008-07-27  Jim Meyering  <meyering@redhat.com>
22922
22923         * users.txt: Add zile.
22924
22925 2008-07-26  Ben Pfaff  <blp@gnu.org>
22926
22927         Add missing dependencies on new m4/exponent[fdl].m4 files.
22928         * modules/isnanf-nolibm: Add m4/exponentf.m4.
22929         * modules/isnand-nolibm: Add m4/exponentd.m4.
22930         * modules/isnanl-nolibm: Add m4/exponentl.m4.
22931         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
22932         m4/isnan[fdl].m4, because the macros actually used moved.
22933         Reported by Jim Meyering.
22934
22935 2008-07-14  Ben Pfaff  <blp@gnu.org>
22936
22937         Add isinf module.
22938         * lib/isinf.c: New file.
22939         * lib/math.in.h: Define isinf macro if we have decided to replace
22940         it.
22941         * m4/isinf.m4: New file.
22942         * m4/math_h.m4: Initialize and substitute variables for isinf
22943         module.
22944         * modules/isinf: New file.
22945         * modules/isinf-tests: New file.
22946         * modules/math: Add substitutions for new module.
22947         * tests/test-isinf.c: New file.
22948         * doc/posix-functions/isinf.texi: Mention new module.
22949         * MODULES.html.sh: Mention new module.
22950
22951 2008-07-14  Ben Pfaff  <blp@gnu.org>
22952
22953         Factor out some macros for use by additional modules.
22954         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
22955         exponentf.m4.
22956         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
22957         exponentd.m4.
22958         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
22959         file exponentl.m4.
22960         * m4/exponentf.m4: New file.
22961         * m4/exponentd.m4: New file.
22962         * m4/exponentl.m4: New file.
22963         * modules/isnanf: Use new file m4/exponentf.m4.
22964         * modules/isnand: Use new file m4/exponentd.m4.
22965         * modules/isnanl: Use new file m4/exponentl.m4.
22966
22967 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
22968
22969         mktime.c: normalize tp->tm_isdst value to -1/0/1.
22970         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
22971         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
22972         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
22973
22974         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
22975         readlink on platforms without PATH_MAX.
22976
22977 2008-07-21  Eric Blake  <ebb9@byu.net>
22978
22979         Warn, not fail, on stale version.
22980         * top/GNUmakefile (_curr-ver): Tone down previous patch.
22981
22982         Don't allow installation with stale devel version number.
22983         * top/GNUmakefile (_is-install-target): New macro.
22984         (_curr-ver): Forbid installation with stale version number.
22985
22986 2008-07-20  Bruno Haible  <bruno@clisp.org>
22987
22988         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
22989         TESTS_ENVIRONMENT.
22990         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
22991
22992 2008-07-20  Bruno Haible  <bruno@clisp.org>
22993
22994         * lib/c-stack.h (c_stack_action): Add documentation.
22995         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
22996
22997 2008-07-20  Bruno Haible  <bruno@clisp.org>
22998
22999         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23000         * modules/readlink (License): Likewise.
23001
23002 2008-07-17  Eric Blake  <ebb9@byu.net>
23003
23004         * modules/c-stack (Link): Fix typo.
23005
23006         Make c-stack use libsigsegv, when available.
23007         * modules/c-stack (Depends-on): Add libsigsegv.
23008         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23009         needed.
23010         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23011         (segv_handler, overflow_handler, c_stack_action)
23012         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23013         implementation when libsigsegv is available, but only when using
23014         the library is necessary.
23015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23016         comment, explaining why XSI check fails on Linux.
23017         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23018         * tests/test-c-stack2.sh: Tweak skip message.
23019         * NEWS: Document new link-time requirements.
23020
23021 2008-07-16  Eric Blake  <ebb9@byu.net>
23022
23023         c-stack: Expose false positives when not using libsigsegv.
23024         * modules/c-stack-tests (Files): Expand test.
23025         * tests/test-c-stack.c (main): Add means to conditionally trigger
23026         non-overflow SIGSEGV.
23027         * tests/test-c-stack2.sh: New file.
23028
23029 2008-07-14  Bruno Haible  <bruno@clisp.org>
23030
23031         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23032         Reported by Eric Blake.
23033
23034 2008-07-14  Sam Steingold  <sds@gnu.org>
23035             Bruno Haible  <bruno@clisp.org>
23036
23037         New module libsigsegv.
23038         * modules/libsigsegv: New file.
23039         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23040         modifications.
23041         * MODULES.html.sh (Signal handling): New section.
23042
23043 2008-07-14  Bruno Haible  <bruno@clisp.org>
23044
23045         * modules/unictype/ctype-* (Description): Add the word "function".
23046         Improves the resulting doc in MODULES.html.
23047
23048 2008-07-12  Ben Pfaff  <blp@gnu.org>
23049
23050         Add longlong module.
23051         * modules/longlong: New file.
23052
23053 2008-07-12  Bruno Haible  <bruno@clisp.org>
23054
23055         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23056         to empty.
23057
23058 2008-07-10  Ben Pfaff  <blp@gnu.org>
23059
23060         Add isnan module.
23061         * doc/posix-functions/isnan.texi: Mention new module.
23062         * lib/math.in.h: Define isnan macro if we have decided to replace
23063         it.
23064         * m4/isnan.m4: New file.
23065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23066         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23067         also.
23068         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23069         redundancy.
23070         * m4/math_h.m4: Initialize and substitute variables for isnan
23071         module.
23072         * modules/isnan: New file.
23073         * modules/isnan-tests: New file.
23074         * modules/math: Add substitutions for new module.
23075         * tests/test-isnan.c: New file.
23076         * MODULES.html.sh: Mention new module.
23077
23078 2008-07-10  Ben Pfaff  <blp@gnu.org>
23079
23080         Add isnanf module.
23081         * lib/isnanf.m4: New file.
23082         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23083         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23084         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23085         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23086         * modules/isnanf: New file.
23087         * modules/isnanf-tests: New file.
23088         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23089         files.
23090         * tests/test-isnanf-nolibm.c: factored most of its contents into
23091         new file tests/test-isnanf.h.
23092         * tests/test-isnanf.h: New file.
23093         * tests/test-isnanf.c: New file.
23094         * MODULES.html.sh: Mention new module.
23095         * doc/glibc-functions/isnanf.texi: Mention new module.
23096
23097 2008-07-10  Ben Pfaff  <blp@gnu.org>
23098
23099         Add isnand module.
23100         * lib/isnand.h: New file.
23101         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23102         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23103         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23104         functionality also.
23105         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23106         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23107         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23108         * modules/isnand: New file.
23109         * modules/isnand-tests: New file.
23110         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23111         files.
23112         * tests/test-isnand-nolibm.c: factored most of its contents into
23113         new file tests/test-isnand.h.
23114         * tests/test-isnand.h: New file.
23115         * tests/test-isnand.c: New file.
23116         * MODULES.html.sh: Mention new module.
23117
23118 2008-07-10  Ben Pfaff  <blp@gnu.org>
23119
23120         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23121         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23122         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23123         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23124         * modules/isnanf-nolibm: Update references to renamed files.
23125         * modules/isnand-nolibm: Likewise.
23126         * modules/isnanf-nolibm-tests: Likewise.
23127         * modules/isnand-nolibm-tests: Likewise.
23128         * lib/frexp.c: Likewise.
23129         * lib/isfinite.c: Likewise.
23130         * lib/signbitd.c: Likewise.
23131         * lib/signbitf.c: Likewise.
23132         * lib/vasnprintf.c: Likewise.
23133         * tests/test-ceilf1.c: Likewise.
23134         * tests/test-ceilf2.c: Likewise.
23135         * tests/test-floorf1.c: Likewise.
23136         * tests/test-floorf2.c: Likewise.
23137         * tests/test-frexp.c: Likewise.
23138         * tests/test-round1.c: Likewise.
23139         * tests/test-round2.c: Likewise.
23140         * tests/test-roundf1.c: Likewise.
23141         * tests/test-strtod.c: Likewise.
23142         * tests/test-trunc1.c: Likewise.
23143         * tests/test-trunc2.c: Likewise.
23144         * tests/test-truncf1.c: Likewise.
23145         * tests/test-truncf2.c: Likewise.
23146         * NEWS: Mention the renamed header files.
23147
23148 2008-07-11  Jim Meyering  <meyering@redhat.com>
23149
23150         vc-list-files: make the last-resort awk code more portable
23151         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23152         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23153         does not support it.
23154
23155 2008-07-10  Eric Blake  <ebb9@byu.net>
23156
23157         Work with tar's bootstrap.
23158         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23159         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23160         an m4 comment.
23161
23162 2008-07-09  Jim Meyering  <meyering@redhat.com>
23163
23164         posix-shell.m4: fix typo that made this test malfunction
23165         * m4/posix-shell.m4: Remove capitalization in variable name.
23166
23167 2008-07-08  Bruno Haible  <bruno@clisp.org>
23168
23169         * m4/onceonly.m4: Update comments.
23170         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23171
23172 2008-07-04  Jim Meyering  <meyering@redhat.com>
23173
23174         * users.txt: Add vc-dwim.
23175         (bison, coreutils): Use the gitweb URL.
23176
23177 2008-07-03  Jim Meyering  <meyering@redhat.com>
23178
23179         * users.txt: Add libffcall.  From Sam Steingold.
23180
23181 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23182
23183         getdate.y: do not ignore TZ with relative day, month or year offset
23184         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23185         relative-date-handling, since otherwise, the latter would clobber the
23186         sole output (an updated Start value) of the tz-handling block.
23187         * tests/test-getdate.c: Tests for the fix
23188
23189 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23190
23191         Recognize 'foo_LIBRARIES += libgnu.a'.
23192         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23193         makefile snippet has already specified an installation location,
23194         also using '+='.
23195
23196 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23197
23198         getdate.y: factor out common actions
23199         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23200         Use them in place of open-coded actions.
23201
23202 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23203
23204         Add self-test for getdate module.
23205         * modules/getdate-tests: New file.
23206         * tests/test-getdate.c: New file.
23207
23208 2008-06-29  Bruno Haible  <bruno@clisp.org>
23209
23210         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23211         .gitignore.
23212         Reported by Sylvain Beucler <beuc@beuc.net>.
23213
23214 2008-06-29  Bruno Haible  <bruno@clisp.org>
23215
23216         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23217         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23218
23219 2008-06-29  Bruno Haible  <bruno@clisp.org>
23220
23221         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23222         EXTRA_DIST.
23223         Reported by Sylvain Beucler <beuc@beuc.net>.
23224
23225 2008-06-26  Jim Meyering  <meyering@redhat.com>
23226
23227         make several modules depend on the "open" module
23228         This provides slightly increased consistency when opening-for-write
23229         the name of a non-directory spelled with a trailing slash.
23230         * modules/chdir-safer: Likewise.
23231         * modules/chown: Likewise.
23232         * modules/clean-temp: Likewise.
23233         * modules/copy-file: Likewise.
23234         * modules/fchdir: Likewise.
23235         * modules/fcntl-safer: Likewise.
23236         * modules/pipe: Likewise.
23237         * modules/utime: Likewise.
23238         Prompted by Eric Blake and Bruno Haible.
23239
23240 2008-06-24  Andreas Schwab  <schwab@suse.de>
23241
23242         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23243         literals can be used as initializers for global variables.
23244
23245 2008-06-23  Eric Blake  <ebb9@byu.net>
23246
23247         Make gnulib-cache.m4 easier to diff.
23248         * gnulib-tool (func_import): Allow newlines when reading cached
23249         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23250
23251 2008-06-23  Bruno Haible  <bruno@clisp.org>
23252
23253         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23254         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23255         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23256         m4/signalblocking.m4.
23257         (gl_PREREQ_SIGACTION): Don't invoke it.
23258         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23259         gl_PREREQ_SIG_HANDLER_H.
23260         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23261         Don't check for sigaction here.
23262
23263 2008-06-23  Bruno Haible  <bruno@clisp.org>
23264
23265         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23266         (install_handlers): Don't set the SA_RESETHAND flag.
23267
23268 2008-06-23  Bruno Haible  <bruno@clisp.org>
23269
23270         * m4/sigaction.m4: Comment fixes.
23271         * lib/signal.in.h: Likewise.
23272
23273 2008-06-23  Eric Blake  <ebb9@byu.net>
23274
23275         Fix typo.
23276         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23277
23278         Avoid SA_ namespace.
23279         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23280         Reported by Ralf Wildenhues.
23281
23282         Avoid test failure due to SA_RESTORER.
23283         * tests/test-sigaction.c (SA_MASK): New macro.
23284         (main): Avoid failing due to extension flags being set.
23285         Reported by Jim Meyering.
23286
23287         Revert use of sig-handler.h in sigprocmask.c.
23288         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23289         it requires the existence of struct sigaction.
23290         * lib/sigprocmask.c (handler_t): Restore typedef.
23291         (rpl_signal, old_handlers): Use local type.
23292
23293 2008-06-22  Bruno Haible  <bruno@clisp.org>
23294
23295         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23296         conditionally.
23297         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23298
23299 2008-06-22  Bruno Haible  <bruno@clisp.org>
23300
23301         * doc/posix-functions/siginterrupt.texi: Move note.
23302
23303         * lib/signal.in.h (SA_RESTART): New macro.
23304         * lib/sigaction.c: Update comment.
23305
23306         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23307
23308         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23309         (gl_PREREQ_SIGPROCMASK): Invoke it.
23310         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23311
23312         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23313
23314         * lib/sigprocmask.c: Update a comment.
23315
23316 2008-06-21  Eric Blake  <ebb9@byu.net>
23317
23318         Use sigaction module rather than signal().
23319         * modules/c-stack (Depends-on): Add sigaction.
23320         * modules/fatal-signal (Depends-on): Likewise.
23321         * modules/nanosleep (Depends-on): Likewise.
23322         * modules/sigprocmask (Files): Add sig-handler.h.
23323         * modules/sigaction (Files): Likewise.
23324         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23325         Eggert.
23326         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23327         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23328         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23329         (init_fatal_signals): Likewise.
23330         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23331         (siginterrupt): Delete fallback.
23332         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23333         instead.
23334         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23335         siginterrupt.
23336
23337         New module sigaction, for mingw.
23338         * modules/sigaction: New module...
23339         * modules/sigaction-tests: ...and its test.
23340         * m4/sigaction.m4: New file.
23341         * lib/sigaction.c: Likewise.
23342         * tests/test-sigaction.c: Likewise.
23343         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23344         * modules/signal (Makefile.am): Likewise.
23345         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23346         needed.
23347         * doc/posix-headers/signal.texi (signal.h): Mention provided
23348         types.
23349         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23350         that sigaction is preferable.
23351         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23352         module.
23353         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23354         sigaction.
23355
23356         Improve robustness of sigprocmask by overriding signal.
23357         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23358         is in use.
23359         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23360         (SIGKILL, SIGSTOP): Provide fallbacks.
23361         (rpl_signal): Implement.
23362         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23363         signal can be called inside handlers.
23364
23365         Fix nanosleep module on mingw.
23366         * modules/nanosleep (Depends-on): Add sys_select.
23367         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23368
23369         Fix licensing of sigprocmask.
23370         * modules/raise (License): Relicense as LGPL.
23371
23372 2008-06-21  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23375         result if it contains question marks.
23376         Reported by Michael Geng <linux@michaelgeng.de>.
23377
23378 2008-06-19  Bruno Haible  <bruno@clisp.org>
23379
23380         Fix CVS-ism.
23381         * doc/gnulib.texi: Include updated-stamp.texi.
23382         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23383         (updated-stamp.texi): New rule.
23384         (gnulib.info): Depend on it.
23385         * doc/.gitignore: Add updated-stamp.texi.
23386         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23387
23388 2008-06-19  Bruno Haible  <bruno@clisp.org>
23389
23390         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23391         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23392
23393 2008-06-19  Eric Blake  <ebb9@byu.net>
23394
23395         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23396         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23397         Reported by Stepan Kasal.
23398
23399 2008-06-18  Bruno Haible  <bruno@clisp.org>
23400
23401         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23402         Reported by Eric Blake.
23403
23404 2008-06-18  Eric Blake  <ebb9@byu.net>
23405
23406         Work around cygwin 1.5.25 strsignal bug.
23407         * tests/test-strsignal.c: Allow for const char *.
23408         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23409
23410 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23411
23412         * users.txt: Update URL to article and add author/date
23413         information.
23414
23415 2008-06-17  Bruno Haible  <bruno@clisp.org>
23416
23417         New macro gl_DISABLE_THREADS.
23418         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23419         if the user did not pass --enable-threads or --disable-threads option.
23420         (gl_DISABLE_THREADS): New macro.
23421         Reported by Eric Blake <ebb9@byu.net>.
23422
23423 2008-06-17  Bruno Haible  <bruno@clisp.org>
23424
23425         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23426         when the macro ignores it.
23427         Based on a patch by Eric Blake <ebb9@byu.net>.
23428
23429 2008-06-17  Bruno Haible  <bruno@clisp.org>
23430
23431         * modules/tls (License): Change to LGPLv2+.
23432         Reported by Eric Blake.
23433
23434 2008-06-17  Eric Blake  <ebb9@byu.net>
23435
23436         Simplify c-stack prerequisites.
23437         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23439         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23440         check.
23441         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23442         <sys/resource.h>.
23443
23444         Move c-stack test into testsuite.
23445         * modules/c-stack-tests: New file.
23446         * lib/c-stack.c [DEBUG]: Move test program...
23447         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23448         fail test if sigaltstack is lacking.
23449         * tests/test-c-stack.sh: New driver file.
23450
23451 2008-06-16  Eric Blake  <ebb9@byu.net>
23452
23453         Use raise module consistently.
23454         * modules/fatal-signal (Depends-on): Add raise.
23455         * modules/sigprocmask (Depends-on): Likewise.
23456         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23457         * lib/sigprocmask.c (sigprocmask): Likewise.
23458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23459         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23460
23461         Fix compliance bug in sigpending.
23462         * lib/sigprocmask.c (sigpending): Return pending array via
23463         parameter, not return value.
23464
23465 2008-06-14  Eric Blake  <ebb9@byu.net>
23466
23467         Improve obstack-printf test code.
23468         * tests/test-obstack-printf.c (test_function): Fix comment, and
23469         simplify usage of obstack_* in macros.  Add a test for coverage.
23470         Reported by Bruno Haible.
23471
23472 2008-06-14  Bruno Haible  <bruno@clisp.org>
23473
23474         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23475         array size as a constant, not as a const variable.
23476         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23477         AC_USE_SYSTEM_EXTENSIONS.
23478         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23479         Test whether the obstack_printf function actually exists.
23480         * modules/obstack-printf (Depends-on): Add extensions.
23481         (Include): Remove obstack.h.
23482         * modules/obstack-printf-posix (Depends-on): Add extensions.
23483         (Include): Remove obstack.h.
23484
23485 2008-06-13  Eric Blake  <ebb9@byu.net>
23486
23487         Add obstack-printf and obstack-printf-posix modules.
23488         * modules/obstack-printf: New file.
23489         * modules/obstack-printf-posix: Likewise.
23490         * MODULES.html.sh (Misc): Mention them.
23491         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23492         Likewise.
23493         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23494         Likewise.
23495         * modules/stdio (Makefile.am): Accomodate new modules.
23496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23497         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23498         Declare.
23499         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23500         functions.
23501         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23502         (gl_REPLACE_OBSTACK_PRINTF): New macros
23503         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23504         * tests/test-obstack-printf.c: New file.
23505         * modules/obstack-printf-tests: Likewise.
23506         * modules/obstack-printf-posix-tests: Likewise.
23507
23508 2008-06-11  Bruno Haible  <bruno@clisp.org>
23509
23510         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23511         * lib/open.c: Include errno.h.
23512         (open): Fail when attempting to write to a file that has a trailing
23513         slash.
23514         * tests/test-open.c (main): Test against trailing slash bug.
23515         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23516
23517 2008-06-10  Bruno Haible  <bruno@clisp.org>
23518
23519         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23520         for $? to work inside the trap command, with various /bin/sh-s.
23521         * tests/test-vc-list-files-cvs.sh: Likewise.
23522
23523 2008-06-10  Bruno Haible  <bruno@clisp.org>
23524
23525         * lib/acl-internal.h: Don't include gettext.h here.
23526         * lib/set-mode-acl.c: Include gettext.h here.
23527         * lib/copy-acl.c: Likewise.
23528
23529 2008-06-10  Bruno Haible  <bruno@clisp.org>
23530
23531         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23532         * lib/wait-process.c (wait_subprocess): Likewise.
23533         * lib/execute.h (execute): Add termsigp argument.
23534         * lib/execute.c (execute): Likewise.
23535         * lib/csharpcomp.c (compile_csharp_using_pnet,
23536         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23537         * lib/csharpexec.c (execute_csharp_using_pnet,
23538         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23539         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23540         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23541         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23542         is_jikes_present): Update.
23543         * lib/javaexec.c (execute_java_class): Update.
23544         * lib/javaversion.c (execute_and_read_line): Update.
23545         * NEWS: Document the changes.
23546         Reported by Eric Blake.
23547
23548 2008-06-10  Eric Blake  <ebb9@byu.net>
23549
23550         Add missing include.
23551         * tests/test-strstr.c (includes): Add <signal.h>.
23552         * tests/test-strcasestr.c (includes): Likewise.
23553         * tests/test-memmem.c (includes): Likewise.
23554
23555 2008-06-10  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/wait-process.c (wait_subprocess): Add an assertion.
23558
23559 2008-06-10  Bruno Haible  <bruno@clisp.org>
23560
23561         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23562
23563 2008-06-10  Bruno Haible  <bruno@clisp.org>
23564
23565         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23566         using alarm().
23567         * tests/test-strcasestr.c (main): Likewise.
23568         * tests/test-strstr.c (main): Likewise.
23569
23570 2008-06-09  Bruno Haible  <bruno@clisp.org>
23571
23572         Work around the Solaris 10 ACE ACLs ABI change.
23573         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23574         declare if ACL_NO_TRIVIAL is present.
23575         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23576         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23577         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23578         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23579         define if ACL_NO_TRIVIAL is present.
23580         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23581         and use the current ABI.
23582         (file_has_acl): Use same #if condition as elsewhere.
23583         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23584         in use, and use the current ABI.
23585         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23586         Reported by Jim Meyering.
23587
23588 2008-06-09  Eric Blake  <ebb9@byu.net>
23589
23590         Work around environments that (stupidly) ignore SIGALRM.
23591         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23592         before using alarm().
23593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23595         Reported by Ian Beckwith <ianb@erislabs.net>.
23596
23597         Produce autobuild blurb earlier in log.
23598         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23599
23600 2008-06-09  Jim Meyering  <meyering@redhat.com>
23601         and Ondřej Vašík  <ovasik@redhat.com>
23602
23603         utimens.c: correct kernel bug work-around
23604         Ondřej Vašík found that the invalid return value of 280 indicates
23605         failure, not success, and the kernel bug we're trying to work
23606         around affects not just the utimensat call, but also the fallback
23607         futimens call.
23608         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23609         not success.
23610         [HAVE_FUTIMENS]: Use the same work-around, here.
23611
23612 2008-06-09  Jim Meyering  <meyering@redhat.com>
23613
23614         add more guards around definition of ACE_-related code
23615         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23616         ALLOW and ACE_OWNER are also defined.
23617
23618 2008-06-08  Bruno Haible  <bruno@clisp.org>
23619
23620         * lib/acl-internal.h: Add me as co-author.
23621         * lib/file-has-acl.c: Likewise.
23622         * lib/set-mode-acl.c: Likewise.
23623         * lib/copy-acl.c: Likewise.
23624
23625 2008-06-08  Bruno Haible  <bruno@clisp.org>
23626
23627         Add support for AIX ACLs.
23628         * lib/acl-internal.h (acl_nontrivial): New declaration.
23629         * lib/file-has-acl.c (acl_nontrivial): New function.
23630         (file_has_acl): Add implementation using AIX 4 ACL API.
23631         * lib/set-mode-acl.c (qset_acl): Likewise.
23632         * lib/copy-acl.c (qcopy_acl): Likewise.
23633
23634 2008-06-08  Bruno Haible  <bruno@clisp.org>
23635
23636         Add support for HP-UX ACLs.
23637         * lib/acl-internal.h (acl_nontrivial): New declaration.
23638         * lib/file-has-acl.c (acl_nontrivial): New function.
23639         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23640         * lib/set-mode-acl.c (qset_acl): Likewise.
23641         * lib/copy-acl.c (qcopy_acl): Likewise.
23642
23643 2008-06-08  Bruno Haible  <bruno@clisp.org>
23644
23645         Add support for Cygwin ACLs.
23646         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23647         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23648         the chmod_or_fchmod call.
23649         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23650
23651 2008-06-08  Bruno Haible  <bruno@clisp.org>
23652
23653         Fix bug with setuid modes in Solaris 10+ code.
23654         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23655         succeeded, when the mode contains some special bits.
23656
23657 2008-06-08  Bruno Haible  <bruno@clisp.org>
23658
23659         Add support for Solaris 7..10 ACLs.
23660         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23661         declarations.
23662         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23663         functions.
23664         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23665         * lib/set-mode-acl.c (qset_acl): Likewise.
23666         * lib/copy-acl.c (qcopy_acl): Likewise.
23667
23668 2008-06-08  Bruno Haible  <bruno@clisp.org>
23669
23670         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23671         declaration.
23672         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23673         (acl_access_nontrivial): Remove MacOS X case.
23674         (file_has_acl): Use acl_extended_nontrivial.
23675         * lib/copy-acl.c (qcopy_acl): Likewise.
23676
23677 2008-06-08  Bruno Haible  <bruno@clisp.org>
23678
23679         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23680
23681 2008-06-08  Jim Meyering  <meyering@redhat.com>
23682
23683         * modules/acl (Maintainer): Add Bruno Haible.
23684
23685 2008-06-07  Bruno Haible  <bruno@clisp.org>
23686
23687         Improve support for Tru64 ACLs.
23688         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
23689         ACL on OSF/1.
23690
23691 2008-06-07  Bruno Haible  <bruno@clisp.org>
23692
23693         Add support for MacOS X ACLs.
23694         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
23695         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
23696         * lib/set-mode-acl.c (qset_acl): Likewise.
23697         * lib/copy-acl.c (qcopy_acl): Likewise.
23698
23699 2008-06-07  Bruno Haible  <bruno@clisp.org>
23700
23701         Fix memory leak introduced on 2008-05-22.
23702         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
23703         use.
23704
23705 2008-06-07  Bruno Haible  <bruno@clisp.org>
23706
23707         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
23708         to construct an empty ACL.
23709
23710 2008-06-07  Bruno Haible  <bruno@clisp.org>
23711
23712         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
23713         precisely.
23714         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
23715
23716 2008-06-07  Bruno Haible  <bruno@clisp.org>
23717
23718         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
23719         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
23720
23721 2008-06-07  Bruno Haible  <bruno@clisp.org>
23722
23723         * doc/posix-functions/_setjmp.texi: Explain the use of this function
23724         regardless of POSIX.
23725         * doc/posix-functions/_longjmp.texi: Likewise.
23726         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
23727         SystemV platform in this case.
23728
23729 2008-06-06  Eric Blake  <ebb9@byu.net>
23730
23731         Document abort() bugs.
23732         * doc/posix-functions/abort.texi (abort): Mention anomalies.
23733
23734         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
23735         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
23736         sigsetjmp.
23737         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
23738         siglongjmp, but only as a macro.
23739         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
23740         is obsolete.
23741         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23742
23743         Tweak documentation to cover cygwin argz bugs.
23744         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
23745         argz bug fix; no code change needed since no cygwin releases
23746         occurred between the last fix and the bug being tested.
23747         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
23748         module and recently fixed cygwin bugs.
23749         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
23750         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
23751         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
23752         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
23753         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
23754         Likewise.
23755         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
23756         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
23757         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
23758         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
23759         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
23760         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
23761         Likewise.
23762
23763         Avoid gcc warning on cygwin.
23764         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
23765         !ACL_NO_TRIVIAL]: Avoid unused variable.
23766
23767 2008-06-05  Eric Blake  <ebb9@byu.net>
23768
23769         Be tolerant of UNKNOWN version in gnulib-tool test dir.
23770         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
23771         git-version-gen fails to come up with a version.
23772         Reported by Simon Josefsson.
23773
23774 2008-06-05  Jim Meyering  <meyering@redhat.com>
23775             Paul Eggert  <eggert@cs.ucla.edu>
23776
23777         utimens.c: work around a probable Linux kernel bug
23778         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
23779         appears to be a kernel bug that causes utimensat to return 280
23780         instead of 0, indicating success.
23781
23782 2008-06-04  Bruno Haible  <bruno@clisp.org>
23783
23784         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
23785         2008-06-01 commit.
23786
23787 2008-06-04  Bruno Haible  <bruno@clisp.org>
23788
23789         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
23790         * lib/file-has-acl.c (acl_access_nontrivial): New function.
23791         (file_has_acl): Use it. Save errno afterwards.
23792         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
23793
23794 2008-06-03  Bruno Haible  <bruno@clisp.org>
23795
23796         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
23797         draft code. Simplify #ifs.
23798         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
23799         Put Solaris code after POSIX-draft code. Fix comments regarding
23800         Solaris 10, HP-UX. Mention Cygwin.
23801         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
23802
23803 2008-06-03  Eric Blake  <ebb9@byu.net>
23804
23805         Provide fallback for older kernels.
23806         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
23807         Provide runtime fallback if kernel lacks support.
23808         Reported by Mike Frysinger.
23809
23810 2008-06-02  Bruno Haible  <bruno@clisp.org>
23811
23812         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
23813         it exists.
23814
23815 2008-06-02  Bruno Haible  <bruno@clisp.org>
23816
23817         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
23818         * lib/copy-acl.c (qcopy_acl): Update comment.
23819
23820 2008-06-02  Bruno Haible  <bruno@clisp.org>
23821
23822         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
23823         like ACL APIs.
23824
23825 2008-06-02  Bruno Haible  <bruno@clisp.org>
23826
23827         * tests/test-file-has-acl.sh: Use different code for Cygwin.
23828         * tests/test-set-mode-acl.sh: Likewise.
23829         * tests/test-copy-acl.sh: Likewise.
23830         * tests/test-copy-file.sh: Likewise.
23831
23832 2008-06-02  Bruno Haible  <bruno@clisp.org>
23833
23834         * tests/test-file-has-acl.sh: Remove unused code.
23835
23836 2008-06-01  Bruno Haible  <bruno@clisp.org>
23837
23838         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
23839         (copy_acl): Just a wrapper around qcopy_acl that emits the error
23840         messages.
23841         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
23842
23843 2008-06-01  Bruno Haible  <bruno@clisp.org>
23844
23845         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
23846         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
23847         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
23848         APIs.
23849         * modules/acl-tests (configure.ac): Remove tests now contained in
23850         m4/acl.m4.
23851
23852 2008-06-02  Jim Meyering  <meyering@redhat.com>
23853
23854         announce-gen: use a better key-server host name
23855         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
23856         it may be more consistently reliable.  Suggested by Werner Koch
23857         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
23858
23859 2008-06-01  Bruno Haible  <bruno@clisp.org>
23860
23861         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
23862         Reported by Voroskoi Andras <voroskoi@gmail.com>.
23863
23864 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
23865
23866         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
23867
23868 2008-06-01  Bruno Haible  <bruno@clisp.org>
23869
23870         New ACL tests.
23871         * tests/test-file-has-acl.sh: New file.
23872         * tests/test-file-has-acl.c: New file.
23873         * tests/test-set-mode-acl.sh: New file.
23874         * tests/test-set-mode-acl.c: New file.
23875         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
23876         * tests/test-copy-acl.c: New file.
23877         * modules/acl-tests: New file, based on modules/copy-file-tests.
23878         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
23879         (Depends-on): Add acl-tests.
23880         (configure.ac): Remove checks.
23881         (Makefile.am): Don't create test-sameacls program here any more.
23882
23883 2008-06-01  Bruno Haible  <bruno@clisp.org>
23884
23885         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
23886         * tests/test-sameacls.c: Include progname.h.
23887         (main): Invoke set_program_name. Portability fixes for MacOS X,
23888         Solaris, HP-UX.
23889
23890 2008-06-01  Bruno Haible  <bruno@clisp.org>
23891
23892         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
23893         function.
23894         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
23895
23896 2008-06-01  Bruno Haible  <bruno@clisp.org>
23897
23898         * modules/rpmatch (Depends-on): Add strdup.
23899
23900 2008-06-01  Bruno Haible  <bruno@clisp.org>
23901
23902         * lib/pipe.c: Include unistd-safer.h.
23903         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
23904         * modules/pipe (Depends-on): Add unistd-safer.
23905
23906 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23907
23908         * modules/autobuild (configure.ac): Call AB_INIT.
23909
23910 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23911
23912         * tests/test-getaddrinfo.c: Don't print debug messages by default.
23913         Suggested by Bruno Haible <bruno@clisp.org>.
23914
23915 2008-05-30  Simon Josefsson  <simon@josefsson.org>
23916
23917         * tests/test-base64.c: Cast size_t to unsigned long when invoking
23918         printf.  Use %lu instead of %d.  Reported by Bruno Haible
23919         <bruno@clisp.org>.
23920
23921 2008-05-29  Eric Blake  <ebb9@byu.net>
23922
23923         Prefer new POSIX 200x interfaces over futimesat.
23924         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
23925         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
23926         when available.
23927         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
23928
23929 2008-05-28  Bruno Haible  <bruno@clisp.org>
23930
23931         * modules/stpcpy (License): Change to LGPLv2+.
23932         Requested by David Lutterkort <dlutter@redhat.com>.
23933
23934 2008-05-27  Bruno Haible  <bruno@clisp.org>
23935
23936         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
23937         current mingw.
23938         Reported by Jose E. Marchesi <jemarch@gnu.org>.
23939
23940 2008-05-27  Bruno Haible  <bruno@clisp.org>
23941
23942         * modules/iconv_open (Link): New section, from module 'iconv'.
23943         * modules/striconv (Link): Likewise.
23944         * modules/striconveh (Link): Likewise.
23945         * modules/xstriconv (Link): Likewise.
23946         * modules/unicodeio (Link): Likewise.
23947         * modules/propername (Link): Likewise.
23948         Reported by Jim Meyering.
23949
23950 2008-05-26  Jim Meyering  <meyering@redhat.com>
23951
23952         sha256: do not artificially restrict buffer length to be < 2^32
23953         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
23954         uint32_t to size_t.
23955         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
23956         to match.
23957
23958         avoid unaligned access errors, e.g., on sparc
23959         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
23960         direct access through a possibly-unaligned uint64* pointer.
23961         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
23962         direct access through a possibly-unaligned uint32* pointer.
23963         Prompted by this patch from Tom "spot" Callaway:
23964         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
23965
23966         sha512.c: fix typo in comment
23967         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
23968
23969 2008-05-25  Bruno Haible  <bruno@clisp.org>
23970
23971         * lib/set-mode-acl.c: Renamed from lib/acl.c.
23972         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
23973         (Makefile.am): Update lib_SOURCES.
23974
23975 2008-05-25  Bruno Haible  <bruno@clisp.org>
23976
23977         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
23978
23979 2008-05-25  Jim Meyering  <meyering@redhat.com>
23980
23981         useless-if-before-free: freed expr may have white-space differences
23982         * build-aux/useless-if-before-free: Recognize cases in which the
23983         freed expression differs from the tested one in embedded white
23984         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
23985         $1 was used, so we can't make any regexp shy.  Improved tests now
23986         detect this.
23987
23988         useless-if-before-free: accept white space in the expression.
23989         * build-aux/useless-if-before-free: For now, any white space
23990         in the expression must be identical in the free argument.
23991
23992         useless-if-before-free: efficiency tweak
23993         * build-aux/useless-if-before-free: Make the expression-matching
23994         regexp "shy".
23995         Make the *outer* regexp shy, not the expr-matching one.
23996
23997         update code-in-comment to accept cast of free arg
23998         * build-aux/useless-if-before-free: Update regexp.
23999
24000 2008-05-25  Bruno Haible  <bruno@clisp.org>
24001
24002         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24003         * modules/copy-file-tests (Files, Makefile.am): Update.
24004         * tests/test-copy-file.c (func_test_copy): Update.
24005
24006 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24007
24008         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24009
24010 2008-05-23  Bruno Haible  <bruno@clisp.org>
24011
24012         Improve support for ACLs on OSF/1.
24013         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24014         Remove fallback for unknown flavors of ACLs.
24015
24016 2008-05-22  Bruno Haible  <bruno@clisp.org>
24017
24018         Add support for ACLs on OSF/1.
24019         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24020         replacements.
24021         (acl_free_text): New macro fallback.
24022         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24023         acl_free.
24024         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24025         acl_free_text function. Require AC_C_INLINE.
24026
24027 2008-05-22  Bruno Haible  <bruno@clisp.org>
24028
24029         Make copy_acl work on MacOS X 10.5.
24030         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24031         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24032         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24033         If MODE_INSIDE_ACL, don't assume that every system has the same text
24034         representation for ACLs as FreeBSD.
24035         * lib/copy-acl.c (copy_acl): Add support for platforms with
24036         !MODE_INSIDE_ACL.
24037         * lib/file-has-acl.c (file_has_acl): Likewise.
24038         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24039         FreeBSD, MacOS X, or IRIX, respectively.
24040
24041 2008-05-22  Bruno Haible  <bruno@clisp.org>
24042
24043         * lib/acl.h: Don't include <sys/acl.h>.
24044         (GETACLCNT): Move fallback to lib/acl-internal.h.
24045         * lib/acl-internal.h: Include <sys/acl.h> here.
24046         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24047
24048 2008-05-22  Bruno Haible  <bruno@clisp.org>
24049
24050         Split off copy_acl function to separate file.
24051         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24052         * lib/acl.c (copy_acl): Moved function to separate file.
24053         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24054         * modules/acl (Files): Add lib/copy-acl.c.
24055         (Makefiles.am): Augment lib_SOURCES.
24056
24057 2008-05-22  Bruno Haible  <bruno@clisp.org>
24058
24059         * modules/copy-file-tests: New file.
24060         * tests/test-copy-file.sh: New file.
24061         * tests/test-copy-file.c: New file.
24062         * tests/test-copy-file-sameacls.c: New file.
24063
24064 2008-05-22  Eric Blake  <ebb9@byu.net>
24065
24066         Avoid gcc warning.
24067         * tests/test-memcmp.c (main): Pass NULL indirectly.
24068
24069 2008-05-21  Bruno Haible  <bruno@clisp.org>
24070
24071         Add reference doc about ACLs.
24072         * doc/acl-resources.txt: New file.
24073         * doc/acl-cygwin.txt: New file.
24074
24075 2008-05-21  Bruno Haible  <bruno@clisp.org>
24076
24077         Avoid one more warning from gcc.
24078         * lib/vasnprintf.c (IF_LINT): Update comments.
24079         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24080
24081 2008-05-21  Jim Meyering  <meyering@redhat.com>
24082
24083         avoid a warning from gcc
24084         * lib/vasnprintf.c (IF_LINT): Define.
24085         (scale10_round_decimal_long_double):
24086         Use it to avoid a "may be used uninitialized" warning.
24087         (scale10_round_decimal_double): Likewise.
24088
24089 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24090
24091         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24092         declared.
24093
24094 2008-05-20  Bruno Haible  <bruno@clisp.org>
24095
24096         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24097         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24098
24099 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24100
24101         * modules/memcmp-tests: New file.
24102         * tests/test-memcmp.c: New file.
24103
24104 2008-05-19  Bruno Haible  <bruno@clisp.org>
24105
24106         * modules/propername (Notice, configure.ac): Put quoted "..." into
24107         --keyword option.
24108         * lib/propername.h: Update comments accordingly.
24109         Reported by Eric Blake.
24110
24111 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24112
24113         * modules/getpass-gnu (Depends-on): Add fseeko.
24114
24115 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24116
24117         * modules/base64-tests: New file.
24118
24119 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24120
24121         * lib/base64.c (base64_decode_ctx): If a decode context structure
24122         was passed in use it to ignore newlines.  If a context structure
24123         was _not_ passed in, continue to treat newlines as garbage (this
24124         is the historical behavior).  Formerly base64_decode.
24125         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24126         takes a decode context structure.
24127         * lib/base64.h (base64_decode): Macro for four-argument calls.
24128         (base64_decode_alloc): Likewise.
24129         * lib/base64.c (base64_decode_ctx): If a decode context structure
24130         was passed in use it to ignore newlines.  If a context structure
24131         was _not_ passed in, continue to treat newlines as garbage (this
24132         is the historical behavior).  Formerly base64_decode.
24133         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24134         takes a decode context structure.
24135         * lib/base64.h (base64_decode): Macro for four-argument calls.
24136         (base64_decode_alloc): Likewise.
24137
24138 2008-05-19  Jim Meyering  <meyering@redhat.com>
24139
24140         avoid a warning from gcc
24141         * lib/trim.c (IF_LINT): Define.
24142         (trim2): Use it to avoid a "may be used uninitialized" warning.
24143
24144         Fix doc typo.
24145         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24146
24147 2008-05-19  Bruno Haible  <bruno@clisp.org>
24148
24149         * doc/glibc-functions/getpass.texi: Document limits of other
24150         implementations.
24151
24152 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24153             Bruno Haible <bruno@clisp.org>
24154
24155         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24156
24157 2008-05-18  Bruno Haible  <bruno@clisp.org>
24158
24159         * modules/propername: New file, from GNU gettext.
24160         * lib/propername.h: New file, from GNU gettext.
24161         * lib/propername.c: New file, from GNU gettext.
24162         * MODULES.html.sh (Internationalization functions): Add propername.
24163
24164 2008-05-16  Jim Meyering  <meyering@redhat.com>
24165             Bruno Haible  <bruno@clisp.org>
24166
24167         Avoid some warnings from "gcc -Wshadow".
24168         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24169
24170 2008-05-15  Eric Blake  <ebb9@byu.net>
24171
24172         Extend previous patch to cygwin 1.7.0.
24173         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24174         fast implementation in cygwin >= 1.7.0.
24175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24177
24178 2008-05-15  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24181         implementation in glibc >= 2.9.
24182         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24184
24185 2008-05-15  Bruno Haible  <bruno@clisp.org>
24186
24187         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24188         (Unicode string functions): Add unilbrk/*.
24189         Reported by Karl Berry.
24190
24191 2008-05-15  Eric Blake  <ebb9@byu.net>
24192
24193         Fix violation of <stdbool.h> replacement in regex.
24194         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24195         * lib/regexec.c (re_search_internal): Likewise.
24196         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24197
24198 2008-05-15  Jim Meyering  <meyering@redhat.com>
24199
24200         avoid distracting test output when git or cvs is not found
24201         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24202         * tests/test-vc-list-files-git.sh: Likewise.
24203
24204 2008-05-15  Eric Blake  <ebb9@byu.net>
24205
24206         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24207         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24208         glibc version.
24209         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24210         * doc/posix-functions/strstr.texi (strstr): Likewise.
24211         * lib/str-two-way.h (MAX): Sychronize with glibc.
24212
24213 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24214
24215         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24216         opr.ctx_type.
24217         (calc_first): Initialize constraint field.
24218         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24219         Fix grammar.
24220         (duplicate_node): Merge constraint field for all node types.
24221         (calc_eclosure_iter): Look at constraint field for all node types.
24222         * lib/regex_internal.c (create_cd_newstate): Don't look at
24223         opr.ctx_type.
24224
24225 2008-05-14  Bruno Haible  <bruno@clisp.org>
24226
24227         Help GCC to do better code generation.
24228         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24229         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24230         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24231         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24232         Declare with attribute 'malloc' if supported.
24233
24234 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24235
24236         use "echo STR|wc -c" rather than unportable "expr length STR"
24237         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24238         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24239
24240 2008-05-14  Jim Meyering  <meyering@redhat.com>
24241
24242         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24243         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24244         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24245         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24246         via Collin Lasse.
24247
24248 2008-05-14  Eric Blake  <ebb9@byu.net>
24249
24250         Avoid quadratic growth in gl_LIBSOURCES.
24251         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24252         Suggested by Bruno Haible.
24253
24254         Test xmemdup0.
24255         * modules/xmemdup0-tests: New file.
24256         * tests/test-xmemdup0.c: Likewise.
24257
24258 2008-05-13  Eric Blake  <ebb9@byu.net>
24259
24260         Split xmemdup0 into its own module.
24261         * modules/xmemdup0: New file.
24262         * lib/xmemdup0.h: Likewise.
24263         * lib/xmemdup0.c: Likewise.
24264         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24265         * lib/xalloc.h (xmemdup0): Remove.
24266         * lib/xmalloc.c (xmemdup0): Likewise.
24267
24268 2008-05-13  Eric Blake  <ebb9@byu.net>
24269             Bruno Haible  <bruno@clisp.org>
24270
24271         Reduce number of forks required during autoconf.
24272         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24273         and gl_LIBSOURCES_DIR.
24274         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24275         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24276         m4_syscmd per file.
24277         <m4_foreach_w>: Move...
24278         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24279
24280 2008-05-13  Eric Blake  <ebb9@byu.net>
24281
24282         * gnulib-tool: Fix various comment typos.
24283
24284 2008-05-12  Bruno Haible  <bruno@clisp.org>
24285
24286         Tailor the linebreaking algorithm.
24287         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24288
24289 2008-05-12  Bruno Haible  <bruno@clisp.org>
24290
24291         Update to Unicode 5.0.0.
24292         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24293         LBP_JV, LBP_JT. Redistribute values.
24294         (unilbrk_table): Change size.
24295         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24296         Unicode TR#14 rev. 22.
24297         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24298         LBP_JV, LBP_JT. Redistribute values.
24299         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24300         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24301         Update.
24302         * lib/unilbrk/lbrkprop1.h: Regenerated.
24303         * lib/unilbrk/lbrkprop2.h: Regenerated.
24304         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24305         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24306         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24307         Likewise.
24308         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24309         Likewise.
24310         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24311         result.
24312         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24313         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24314         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24315         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24316         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24317         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24318
24319 2008-05-11  Bruno Haible  <bruno@clisp.org>
24320
24321         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24322
24323 2008-05-11  Bruno Haible  <bruno@clisp.org>
24324
24325         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24326         * modules/unilbrk/gen-lbrk: New file.
24327
24328 2008-05-11  Bruno Haible  <bruno@clisp.org>
24329
24330         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24331         * m4/sha512.m4 (gl_SHA512): Likewise.
24332
24333 2008-05-11  Jim Meyering  <meyering@redhat.com>
24334
24335         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24336         * modules/crypto/sha256: New file.
24337         * modules/crypto/sha512: Likewise.
24338         * lib/sha256.c: Likewise.
24339         * lib/sha256.h: Likewise.
24340         * lib/sha512.c: Likewise.
24341         * lib/sha512.h: Likewise.
24342         * lib/u64.h: Likewise.
24343         * m4/sha256.m4: Likewise.
24344         * m4/sha512.m4: Likewise.
24345         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24346
24347 2008-05-10  Bruno Haible  <bruno@clisp.org>
24348
24349         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24350         (Input/Output <stdio.h>): Add xprintf.
24351         (Signal handling <signal.h>): Add strsignal.
24352         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24353         (Core language properties): Add func.
24354         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24355         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24356         strings.
24357         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24358         (Input/output): New section.
24359         (File system functions): Add openat-die, stat-macros.
24360         (Networking functions): Add sockets.
24361         (Unicode string functions): Add unictype/*.
24362         (Support for building libraries and executables): Add gperf.
24363         (Support for building documentation): Add agpl-3.0.
24364         (Misc): Add nocrash.
24365
24366 2008-05-10  Bruno Haible  <bruno@clisp.org>
24367
24368         * modules/unictype/gen-ctype: New file.
24369
24370 2008-05-10  Jim Meyering  <meyering@redhat.com>
24371
24372         Make chdir-safer.c more efficient on a system with no symlinks.
24373         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24374         also if ELOOP is zero.  Suggested by Bruno Haible.
24375
24376         Make chdir-safer.c slightly safer.
24377         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24378         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24379
24380         Avoid compile failure on systems without ELOOP (like mingw).
24381         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24382         Reported by Bruno Haible.
24383
24384 2008-05-10  Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24387         (is_utf8_encoding): Use a case-insensitive comparison.
24388         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24389         streq.
24390
24391 2008-05-10  Bruno Haible  <bruno@clisp.org>
24392
24393         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24394         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24395         * lib/unilbrk/ulc-common.h (iconv_string_length,
24396         iconv_string_keeping_offsets): Remove declarations.
24397         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24398         Don't include <iconv.h>, streq.h, xsize.h.
24399         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24400         conversion.
24401         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24402         <iconv.h>, streq.h, xsize.h.
24403         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24404         conversion.
24405         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24406         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24407         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24408         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24409
24410 2008-05-10  Bruno Haible  <bruno@clisp.org>
24411
24412         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24413         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24414
24415         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24416         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24417
24418         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24419         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24420
24421         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24422         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24423
24424         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24425         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24426
24427         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24428         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24429
24430         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24431         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24432
24433         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24434         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24435
24436 2008-05-10  Bruno Haible  <bruno@clisp.org>
24437
24438         Split up 'linebreak' module.
24439         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24440         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24441         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24442         modifications.
24443         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24444         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24445         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24446         lib/linebreak.c.
24447         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24448         lib/linebreak.c.
24449         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24450         lib/linebreak.c.
24451         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24452         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24453         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24454         lib/linebreak.c.
24455         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24456         lib/linebreak.c.
24457         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24458         lib/linebreak.c.
24459         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24460         lib/linebreak.c.
24461         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24462         lib/linebreak.c.
24463         * modules/unilbrk/base: New file.
24464         * modules/unilbrk/tables: New file.
24465         * modules/unilbrk/u8-possible-linebreaks: New file.
24466         * modules/unilbrk/u16-possible-linebreaks: New file.
24467         * modules/unilbrk/u32-possible-linebreaks: New file.
24468         * modules/unilbrk/ulc-common: New file.
24469         * modules/unilbrk/ulc-possible-linebreaks: New file.
24470         * modules/unilbrk/u8-width-linebreaks: New file.
24471         * modules/unilbrk/u16-width-linebreaks: New file.
24472         * modules/unilbrk/u32-width-linebreaks: New file.
24473         * modules/unilbrk/ulc-width-linebreaks: New file.
24474         * lib/linebreak.h: Remove file.
24475         * lib/linebreak.c: Remove file.
24476         * m4/linebreak.m4: Remove file.
24477         * modules/linebreak: Remove file.
24478         * NEWS: Mention the changes.
24479
24480 2008-05-09  Eric Blake  <ebb9@byu.net>
24481
24482         Add xmemdup0.
24483         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24484         implementation.
24485         * lib/xmalloc.c (xmemdup0): New C implementation.
24486
24487 2008-05-08  Bruno Haible  <bruno@clisp.org>
24488
24489         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24490
24491 2008-05-07  Eric Blake  <ebb9@byu.net>
24492
24493         Support cross-compilation of <wctype.h>.
24494         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24495         AC_CACHE_CHECK.
24496
24497 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24498
24499         * build-aux/vc-list-files: Add support for bzr.
24500
24501 2008-05-03  Jim Meyering  <meyering@redhat.com>
24502
24503         avoid failed assertion with tight malloc
24504         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24505
24506 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24507
24508         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24509         are needed from arpa/inet.h.
24510         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24511         Reported by Bruno Haible.
24512
24513 2008-05-02  Jim Meyering  <meyering@redhat.com>
24514
24515         avoid compilation error on FreeBSD 6
24516         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24517
24518 2008-05-01  Jim Meyering  <meyering@redhat.com>
24519
24520         useless-if-before-free: correct --help's exit status description
24521         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24522         for one or more matches, etc.  Reported by Bruno Haible.
24523
24524         vc-list-files: make the stand-alone gnulib test work
24525         * modules/vc-list-files-tests (configure.ac):
24526         Define and AC_SUBST abs_aux_dir.
24527         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24528         $(abs_top_srcdir) to each script and having each of them
24529         duplicate the work of setting PATH, set PATH here, using
24530         the new variable, abs_aux_dir instead.
24531         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24532         * tests/test-vc-list-files-git.sh: Likewise.
24533         Reported by Bruno Haible.
24534
24535 2008-05-01  Bruno Haible  <bruno@clisp.org>
24536
24537         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24538         reallocation. Rename 'done' to 'found_delimiter'.
24539
24540 2008-05-01  Jim Meyering  <meyering@redhat.com>
24541
24542         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24543         * build-aux/vc-list-files: Use `...`, not $(...).
24544
24545 2008-04-30  Jim Meyering  <meyering@redhat.com>
24546
24547         add tests for vc-list-files
24548         * modules/vc-list-files-tests: New module.
24549         * tests/test-vc-list-files-cvs.sh: New file.
24550         * tests/test-vc-list-files-git.sh: New file.
24551
24552         avoid a warning from gcc
24553         * lib/getndelim2.c (IF_LINT): Define.
24554         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24555
24556         vc-list-files: work properly with build-aux/cvsu, too
24557         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24558         to all cvs-based clauses.
24559
24560         vc-list-files: work properly in the CVS+awk case, too
24561         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24562
24563         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24564         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24565         take more than one file argument, so .  Add quotes, just in case $dir
24566         ever contains a shell meta-character.  Prompted by Soren Hansen in
24567         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24568
24569 2008-04-29  Eric Blake  <ebb9@byu.net>
24570
24571         Optimize getndelim2 to use block operations when possible.
24572         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24573         freadseek, and memchr2.
24574         * lib/getndelim2.c (getndelim2): Use them for block reads.
24575
24576 2008-04-29  Bruno Haible  <bruno@clisp.org>
24577
24578         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24579         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24580         * modules/inet_ntop (Depends-on): Add extensions.
24581         * modules/inet_pton (Depends-on): Likewise.
24582         Reported by Simon Josefsson.
24583
24584 2008-04-29  Jim Meyering  <meyering@redhat.com>
24585
24586         When the is more than one match in a block, match all of them.
24587         * build-aux/useless-if-before-free: Iterate through each block
24588         until there are no more matches.
24589
24590         Fix broken useless-if-before-free script.
24591         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24592         the expression to match cast of argument to free-like function.
24593
24594 2008-04-29  Eric Blake  <ebb9@byu.net>
24595
24596         Use new header.
24597         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24598
24599 2008-04-29  Jim Meyering  <meyering@redhat.com>
24600
24601         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24602         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24603         by gnulib to exist and to declare e.g., inet_ntop.
24604         Don't include "inet_ntop.h", now removed.
24605
24606         * m4/arpa_inet_h.m4: Remove trailing blanks.
24607
24608 2008-04-29  Eric Blake  <ebb9@byu.net>
24609
24610         Silence valgrind on safe reads beyond potential array bounds.
24611         * lib/rawmemchr.valgrind: New file.
24612         * lib/strchrnul.valgrind: Likewise.
24613         * modules/rawmemchr (Files): Distribute new file.
24614         * modules/strchrnul (Files): Likewise.
24615         Suggested by Bruno Haible.
24616
24617 2008-04-29  Bruno Haible  <bruno@clisp.org>
24618
24619         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24620         (inet_ntop, inet_pton): Change portability warning's wording.
24621         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24622         Invoke gl_CHECK_NEXT_HEADERS.
24623         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24624         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24625         set ARPA_INET_H.
24626         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24627         * modules/arpa_inet (Description): No longer only for systems that
24628         lack it.
24629         (Depends-on): Add include_next.
24630         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24631         HAVE_ARPA_INET_H.
24632
24633 2008-04-29  Jim Meyering  <meyering@redhat.com>
24634
24635         * modules/mkdir (License): Re-license as LGPLv2+.
24636
24637 2008-04-29  Bruno Haible  <bruno@clisp.org>
24638
24639         * modules/rawmemchr (Maintainer): Set to Eric.
24640         * modules/strchrnul (Maintainer): Likewise.
24641
24642 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24643
24644         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24645         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24646
24647         * modules/arpa_inet (arpa/inet.h): Use them.
24648
24649 2008-04-28  Eric Blake  <ebb9@byu.net>
24650
24651         Test getndelim2.
24652         * modules/getndelim2-tests: New file.
24653         * tests/test-getndelim2.c: Likewise.
24654         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24655         stream.
24656         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24657
24658         * MODULES.html.sh: Document new module.
24659
24660 2008-04-20  Bruno Haible  <bruno@clisp.org>
24661
24662         * lib/c-stack.c (die): Use raise.
24663         * modules/c-stack (Depends-on): Add raise.
24664
24665 2008-04-28  Bruno Haible  <bruno@clisp.org>
24666
24667         Expect rpmatch to be declared.
24668         * lib/yesno.c (rpmatch): Remove declaration.
24669
24670         Declare rpmatch.
24671         * lib/stdlib.in.h (rpmatch): New declaration.
24672         * lib/rpmatch.c: Include <stdlib.h> first.
24673         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24674         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24676         HAVE_RPMATCH.
24677         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24679         (Include): Set to <stdlib.h>.
24680         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24681         HAVE_RPMATCH.
24682         * NEWS: Document the change.
24683
24684 2008-04-28  Bruno Haible  <bruno@clisp.org>
24685
24686         Change rpmatch to use nl_langinfo when appropriate.
24687         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
24688         (N_): New macro.
24689         (localized_pattern): New function/macro.
24690         (try): Remove match, nomatch arguments. Copy the pattern into safe
24691         memory before caching it.
24692         (rpmatch): Use localized_pattern. Add translator comments.
24693         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
24694         Suggested by Eric Blake.
24695         * modules/rpmatch (Depends-on): Add stdbool.
24696
24697 2008-04-28  Eric Blake  <ebb9@byu.net>
24698
24699         Add rawmemchr module, matching glibc.
24700         * modules/string (Makefile.am): New indicator.
24701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
24702         * lib/string.in.h (rawmemchr): Declare when appropriate.
24703         * modules/rawmemchr: New file.
24704         * m4/rawmemchr.m4: Likewise.
24705         * lib/rawmemchr.c: Likewise.
24706         * modules/rawmemchr-tests: Likewise.
24707         * tests/test-rawmemchr.c: Likewise.
24708         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
24709         module.
24710         * modules/strchrnul (Depends-on): Add rawmemchr.
24711         * lib/strchrnul.c (strchrnul): Optimize a corner case.
24712
24713         Whitespace cleanup.
24714         * tests/test-strchrnul.c: Reindent.
24715         * lib/strchrnul.c: Likewise.
24716
24717         Optimize and test strchrnul.
24718         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
24719         * modules/strchrnul-tests: New file.
24720         * tests/test-strchrnul.c: Likewise.
24721
24722         Remove intprops dependency.
24723         * modules/memchr (Depends-on): Remove intprops.
24724         * modules/memrchr (Depends-on): Likewise.
24725         * modules/memchr2 (Depends-on): Likewise.
24726         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
24727         * lib/memrchr.c (__memrchr): Likewise.
24728         * lib/memrchr2.c (memchr2): Likewise.
24729         Reported by Simon Josefsson.
24730
24731 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24732
24733         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
24734         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24735
24736 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24737
24738         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
24739
24740         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
24741
24742         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
24743
24744         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
24745         declarations.
24746         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
24747
24748         * m4/inet_pton.m4: Don't check for header files.
24749
24750         * m4/inet_ntop.m4: Don't check for header files.
24751
24752 2008-04-28  Simon Josefsson  <simon@josefsson.org>
24753
24754         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
24755         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
24756         trigger for cygwin).
24757         Reported by Bruno Haible  <bruno@clisp.org>.
24758
24759 2008-04-28  Bruno Haible  <bruno@clisp.org>
24760
24761         * doc/posix-functions/strdup.texi: Mention mingw problem.
24762
24763 2008-04-27  Bruno Haible  <bruno@clisp.org>
24764
24765         * modules/stat-time-tests (Depends-on): Add sleep.
24766         * tests/test-stat-time.c (force_unlink): New function.
24767         (cleanup): Use it.
24768         (test_mtime): Remove the ctime related tests.
24769         (test_ctime): New function, containing the ctime related tests.
24770         (main): Call test_ctime, except on native Windows platforms.
24771
24772 2008-04-27  Bruno Haible  <bruno@clisp.org>
24773
24774         * lib/rpmatch.c (rpmatch): Add some comments.
24775         Reported by James Youngman <jay@gnu.org>.
24776
24777 2008-04-27  Bruno Haible  <bruno@clisp.org>
24778
24779         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
24780         quiet NaNs.
24781
24782 2008-04-27  Bruno Haible  <bruno@clisp.org>
24783
24784         Make test-yesno.sh work on mingw.
24785         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
24786         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
24787         (main): Set stdin to binary mode.
24788         * modules/yesno-tests (Depends-on): Add binary-io.
24789
24790 2008-04-27  Bruno Haible  <bruno@clisp.org>
24791
24792         Fix 'isfinite' on x86, x86_64, ia64 platforms.
24793         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
24794         argument that lie outside the IEEE 854 domain.
24795         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
24796         (gl_ISFINITE): Use it.
24797         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
24798
24799 2008-04-27  Bruno Haible  <bruno@clisp.org>
24800
24801         Allow local renaming in config.h.
24802         * lib/memrchr.c (memrchr): Don't undefine outside libc.
24803
24804 2008-04-27  Bruno Haible  <bruno@clisp.org>
24805
24806         * lib/memchr.c (__memchr): Change type of 'i'.
24807         * lib/memchr2.c (memchr2): Likewise.
24808
24809 2008-04-26  Eric Blake  <ebb9@byu.net>
24810         and Bruno Haible  <bruno@clisp.org>
24811
24812         Optimize and test memrchr.
24813         * modules/memrchr (Depends-on): Add intprops.
24814         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
24815         * modules/memrchr-tests: New file.
24816         * tests/test-memrchr.c: New file.
24817
24818 2008-04-26  Bruno Haible  <bruno@clisp.org>
24819
24820         Add tentative support for DragonFly BSD.
24821         * lib/stdio-impl.h: Add macros for DragonFly BSD.
24822         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
24823         fp.
24824         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24825         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
24826         * lib/fpurge.c (fpurge): Likewise.
24827         * lib/freadable.c (freaadable): Likewise.
24828         * lib/freadahead.c (freadahead): Likewise.
24829         * lib/freading.c (freading): Likewise.
24830         * lib/freadptr.c (freadptr): Likewise.
24831         * lib/freadseek.c (freadptrinc): Likewise.
24832         * lib/fseeko.c (fseeko): Likewise.
24833         * lib/fseterr.c (fseterr): Likewise.
24834         * lib/fwritable.c (fwritable): Likewise.
24835         * lib/fwriting.c (fwriting): Likewise.
24836
24837 2008-04-26  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/stdio-impl.h: New file.
24840         * lib/fbufmode.c: Include stdio-impl.h.
24841         (fbufmode): Use fp_, remove redundant #defines.
24842         * lib/fflush.c: Include stdio-impl.h.
24843         (clear_ungetc_buffer): Remove redundant #defines.
24844         * lib/fpurge.c: Include stdio-impl.h.
24845         (fpurge): Remove redundant #defines.
24846         * lib/freadable.c: Include stdio-impl.h.
24847         (freadable): Remove redundant #defines.
24848         * lib/freadahead.c: Include stdio-impl.h.
24849         (freadahead): Remove redundant #defines.
24850         * lib/freading.c: Include stdio-impl.h.
24851         (freading): Remove redundant #defines.
24852         * lib/freadptr.c: Include stdio-impl.h.
24853         (freadptr): Remove redundant #defines.
24854         * lib/freadseek.c: Include stdio-impl.h.
24855         (freadptrinc): Remove redundant #defines.
24856         * lib/fseeko.c: Include stdio-impl.h.
24857         (rpl_fseeko): Remove redundant #defines.
24858         * lib/fseterr.c: Include stdio-impl.h.
24859         (fseterr): Remove redundant #defines.
24860         * lib/fwritable.c: Include stdio-impl.h.
24861         (fwritable: Remove redundant #defines.
24862         * lib/fwriting.c: Include stdio-impl.h.
24863         (fwriting): Remove redundant #defines.
24864         * modules/fbufmode (Files): Add lib/stdio-impl.h.
24865         * modules/fflush (Files): Likewise.
24866         * modules/fpurge (Files): Likewise.
24867         * modules/freadable (Files): Likewise.
24868         * modules/freadahead (Files): Likewise.
24869         * modules/freading (Files): Likewise.
24870         * modules/freadptr (Files): Likewise.
24871         * modules/freadseek (Files): Likewise.
24872         * modules/fseeko (Files): Likewise.
24873         * modules/fseterr (Files): Likewise.
24874         * modules/fwritable (Files): Likewise.
24875         * modules/fwriting (Files): Likewise.
24876
24877 2008-04-26  Bruno Haible  <bruno@clisp.org>
24878
24879         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
24880         restore_seek_optimization, update_fpos_cache): New functions, extracted
24881         from rpl_fflush.
24882         (rpl_fflush): Use them.
24883         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
24884         (gl_REPLACE_FFLUSH): Use it.
24885
24886 2008-04-26  Bruno Haible  <bruno@clisp.org>
24887
24888         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
24889         on Solaris.
24890         * tests/test-xstrtoimax.sh: Likewise.
24891         * tests/test-xstrtoumax.sh: Likewise.
24892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24893
24894 2008-04-26  Bruno Haible  <bruno@clisp.org>
24895
24896         * modules/memchr-tests: New file.
24897         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
24898
24899 2008-04-26  Eric Blake  <ebb9@byu.net>
24900             Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/memchr.c: Include intprops.h.
24903         (__memchr): Optimize parallel detection of matching bytes. Rename local
24904         variables. Add explanatory comments.
24905
24906 2008-04-26  Bruno Haible  <bruno@clisp.org>
24907
24908         Fix module 'memchr', broken since 2000-10-28.
24909         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
24910
24911 2008-04-26  Bruno Haible  <bruno@clisp.org>
24912
24913         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
24914         comments.
24915
24916 2008-04-25  Eric Blake  <ebb9@byu.net>
24917
24918         Use native fstatat on cygwin 1.7.0.
24919         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
24920         first.
24921
24922 2008-04-23  Eric Blake  <ebb9@byu.net>
24923
24924         Improve memchr2 performance.
24925         * lib/memchr2.c (memchr2): Further optimize parallel detection of
24926         NUL bytes.
24927         * modules/memchr2 (Depends-on): Use intprops.h.
24928
24929 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24930
24931         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
24932         an inline function instead of a CPP macro.  Patch by Ben Pfaff
24933         <blp@cs.stanford.edu>.
24934
24935 2008-04-23  Simon Josefsson  <simon@josefsson.org>
24936
24937         * lib/arpa_inet.in.h: New file.
24938
24939         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
24940         (Makefile.am): Sed in substitute header file.
24941
24942         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
24943         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
24944
24945         * modules/inet_ntop (configure.ac): Use
24946         gl_ARPA_INET_MODULE_INDICATOR.
24947
24948         * modules/inet_pton (configure.ac): Use
24949         gl_ARPA_INET_MODULE_INDICATOR.
24950
24951 2008-04-22  Jim Meyering  <meyering@redhat.com>
24952
24953         * modules/verify (License): Re-license as LGPLv2+.
24954
24955 2008-04-22  Simon Josefsson  <simon@josefsson.org>
24956
24957         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
24958         parameter to void* as per POSIX standard (MinGW uses char*).
24959
24960 2008-04-21  Bruno Haible  <bruno@clisp.org>
24961
24962         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24963         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
24964         Define to replacements if REPLACE_ISWCNTRL is 1.
24965         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
24966         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
24967         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
24968         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
24969         what it fixes.
24970         * doc/posix-functions/iswalpha.texi: Likewise.
24971         * doc/posix-functions/iswblank.texi: Likewise.
24972         * doc/posix-functions/iswcntrl.texi: Likewise.
24973         * doc/posix-functions/iswdigit.texi: Likewise.
24974         * doc/posix-functions/iswgraph.texi: Likewise.
24975         * doc/posix-functions/iswlower.texi: Likewise.
24976         * doc/posix-functions/iswprint.texi: Likewise.
24977         * doc/posix-functions/iswpunct.texi: Likewise.
24978         * doc/posix-functions/iswspace.texi: Likewise.
24979         * doc/posix-functions/iswupper.texi: Likewise.
24980         * doc/posix-functions/iswxdigit.texi: Likewise.
24981         Reported by Alain Guibert.
24982
24983 2008-04-21  Bruno Haible  <bruno@clisp.org>
24984
24985         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
24986         Patch by Alain Guibert.
24987
24988 2008-04-21  Bruno Haible  <bruno@clisp.org>
24989
24990         Fix test failures on mingw.
24991         * tests/test-xstrtol.c (print_no_progname): New function.
24992         (main): Install it in error_print_progname hook.
24993         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
24994         * tests/test-xstrtoimax.sh: Likewise.
24995         * tests/test-xstrtoumax.sh: Likewise.
24996
24997 2008-04-21  Bruno Haible  <bruno@clisp.org>
24998
24999         Fix test failure on mingw.
25000         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25001
25002 2008-04-21  Bruno Haible  <bruno@clisp.org>
25003
25004         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25005         Actually assign a value.
25006
25007 2008-04-20  Bruno Haible  <bruno@clisp.org>
25008
25009         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25010         take 2.
25011         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25012         'canonicalize-lgpl' module is also used.
25013         * lib/canonicalize-lgpl.c: Undo last change.
25014         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25015
25016 2008-04-20  Bruno Haible  <bruno@clisp.org>
25017
25018         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25019         config.h. Provide _mkdir based fallback for mingw.
25020         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25021         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25023         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25024         rather than defining mkdir in config.h.
25025         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25026         (gl_SYS_STAT_H_DEFAULTS): New macro.
25027         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25028         HAVE_IO_H any more.
25029         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25030         HAVE_DECL_MKDIR and HAVE_IO_H.
25031
25032 2008-04-20  Bruno Haible  <bruno@clisp.org>
25033
25034         * lib/isapipe.c: Port to native Windows platforms.
25035
25036 2008-04-20  Bruno Haible  <bruno@clisp.org>
25037
25038         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25039
25040 2008-04-21  Eric Blake  <ebb9@byu.net>
25041
25042         Work around preprocessors that don't handle UINTMAX_MAX.
25043         * lib/memchr2.c (memchr2): Avoid embedded #if.
25044         Reported by Alain Guibert, fix suggested by Bruno Haible.
25045
25046 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25047
25048         * doc/posix-functions/strftime.texi (strftime): Explain better
25049         Windows incompatibility.  Suggested by Micah Cowan
25050         <micah@cowan.name>.
25051
25052 2008-04-20  Bruno Haible  <bruno@clisp.org>
25053
25054         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25055         unistr/u8-mblen.
25056
25057 2008-04-20  Bruno Haible  <bruno@clisp.org>
25058
25059         Fix test failure on platforms with non-GNU iconv.
25060         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25061         (U_TO_U8): Use it, rather than u16_to_u8.
25062         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25063         units at the end of the input string.
25064         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25065
25066 2008-04-20  Bruno Haible  <bruno@clisp.org>
25067
25068         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25069         when the resulting length is 0.
25070         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25071
25072 2008-04-20  Bruno Haible  <bruno@clisp.org>
25073
25074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25075         works.
25076         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25077
25078 2008-04-20  Bruno Haible  <bruno@clisp.org>
25079
25080         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25081         * modules/tsearch-tests (configure.ac): Test for initstate function.
25082
25083 2008-04-20  Bruno Haible  <bruno@clisp.org>
25084
25085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25086         for nlink_t if missing.
25087         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25088
25089 2008-04-19  Bruno Haible  <bruno@clisp.org>
25090
25091         Work around snprintf bug on Linux libc5.
25092         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25093         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25094         gl_SNPRINTF_SIZE1.
25095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25096         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25097         that test failed.
25098         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25099         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25100         * modules/snprintf (Files): Add m4/printf.m4.
25101         * modules/vsnprintf (Files): Likewise.
25102         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25103         * doc/posix-functions/vsnprintf.texi: Likewise.
25104
25105 2008-04-19  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25108         from 0.0058 to less than 10^-7.
25109
25110 2008-04-19  Bruno Haible  <bruno@clisp.org>
25111
25112         Fix rounding when a precision is given.
25113         * lib/vasnprintf.c (is_borderline): New function.
25114         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25115         9...9x.
25116         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25117         %e, %g.
25118         * tests/test-vasprintf-posix.c (test_function): Likewise.
25119         * tests/test-snprintf-posix.h (test_function): Likewise.
25120         * tests/test-sprintf-posix.h (test_function): Likewise.
25121         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25122         * tests/test-printf-posix.h (test_function): Likewise.
25123         * tests/test-printf-posix.output: Update.
25124         Reported by John Darrington <john@darrington.wattle.id.au> via
25125         Ben Pfaff <blp@cs.stanford.edu>.
25126
25127 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25128
25129         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25130         Suggested by Bruno Haible <bruno@clisp.org>.
25131
25132 2008-04-17  Bruno Haible  <bruno@clisp.org>
25133
25134         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25135         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25136         implementation.
25137         Patch by Bruce Merry <bmerry@gmail.com>.
25138
25139 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25140
25141         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25142         doesn't work under Windows.
25143
25144 2008-04-16  Bruno Haible  <bruno@clisp.org>
25145
25146         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25147         New macros.
25148         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25149         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25150         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25151         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25152         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25153         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25154         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25155         macros.
25156         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25157         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25158         Northern Sotho, Uighur.
25159
25160 2008-04-16  Bruno Haible  <bruno@clisp.org>
25161
25162         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25163         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25164         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25165         Reported by Daniel Bergström <daniel@octocode.com>.
25166
25167 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25168             Bruno Haible  <bruno@clisp.org>
25169
25170         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25171         function.
25172         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25173         New functions, mostly extracted from gl_locale_name_default.
25174         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25175
25176 2008-04-16  Eric Blake  <ebb9@byu.net>
25177
25178         Adjust strtod detection to catch glibc 2.7 bug.
25179         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25180         Reported by John Gatewood Ham.
25181
25182 2008-04-16  Bruno Haible  <bruno@clisp.org>
25183
25184         Add tentative support for Linux libc5.
25185         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25186         * lib/fpurge.c (fpurge): Likewise.
25187         * lib/freadable.c (freadable): Likewise.
25188         * lib/freadahead.c (freadahead): Likewise.
25189         * lib/freading.c (freading): Likewise.
25190         * lib/freadptr.c (freadptr): Likewise.
25191         * lib/freadseek.c (freadptrinc): Likewise.
25192         * lib/fseeko.c (rpl_fseeko): Likewise.
25193         * lib/fseterr.c (fseterr): Likewise.
25194         * lib/fwritable.c (fwritable): Likewise.
25195         * lib/fwriting.c (fwriting): Likewise.
25196         Reported by Alain Guibert <alguibert+bts@free.fr>.
25197
25198 2008-04-15  Bruno Haible  <bruno@clisp.org>
25199
25200         * modules/mathl (configure.ac): Define module indicator.
25201
25202 2008-04-15  Bruno Haible  <bruno@clisp.org>
25203
25204         * lib/logl.c (logl): Remove unused variables.
25205
25206 2008-04-15  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25209         fails.
25210
25211 2008-04-15  Bruno Haible  <bruno@clisp.org>
25212
25213         * lib/trim.c (trim2): Fix argument of isspace() macro.
25214
25215 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25216
25217         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25218         to 0.
25219         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25220
25221 2008-04-14  Bruno Haible  <bruno@clisp.org>
25222
25223         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25224         AC_LANG_PROGRAM argument.
25225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25226         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25228         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25229         * m4/math_h.m4 (gl_MATH_H): Likewise.
25230         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25231         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25232         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25233         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25234         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25235         * m4/regex.m4 (gl_REGEX): Likewise.
25236         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25237         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25239         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25242         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25243         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25244
25245 2008-04-14  Jim Meyering  <meyering@redhat.com>
25246
25247         test-strtod: fix typos: s/abs/fabs/
25248         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25249
25250 2008-04-13  Bruno Haible  <bruno@clisp.org>
25251
25252         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25253         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25254         module is also used and while not building the reloc-wrapper.
25255
25256 2008-04-13  Bruno Haible  <bruno@clisp.org>
25257
25258         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25259
25260 2008-04-13  Bruno Haible  <bruno@clisp.org>
25261
25262         Fix AIX compilation failure introduced on 2008-04-02.
25263         * tests/test-frexp.c (exp): Undefine before redefining.
25264         * tests/test-frexpl.c (exp): Likewise.
25265
25266 2008-04-13  Bruno Haible  <bruno@clisp.org>
25267
25268         Work around a HP-UX stdio bug.
25269         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25270         * tests/test-ftello.c (main): Likewise.
25271         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25272         * doc/posix-functions/ftello.texi: Likewise.
25273
25274 2008-04-13  Bruno Haible  <bruno@clisp.org>
25275
25276         Make test-signbit pass on HP-UX/hppa.
25277         * tests/test-signbit.c (minus_zerol): New variable.
25278         (test_signbitl): Use it.
25279
25280 2008-04-13  Bruno Haible  <bruno@clisp.org>
25281
25282         Make truncl work on OSF/1 4.0.
25283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25284         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25285         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25287         HAVE_DECL_TRUNCL.
25288         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25289         HAVE_DECL_TRUNCL.
25290         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25291
25292 2008-04-13  Bruno Haible  <bruno@clisp.org>
25293
25294         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25295
25296 2008-04-13  Bruno Haible  <bruno@clisp.org>
25297
25298         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25299         expression, so as to avoid HP-UX 11 cc compiler bug.
25300
25301 2008-04-13  Bruno Haible  <bruno@clisp.org>
25302
25303         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25304
25305 2008-04-13  Bruno Haible  <bruno@clisp.org>
25306
25307         * lib/git-merge-changelog.c: Remove empty declaration outside of
25308         functions.
25309
25310 2008-04-13  Bruno Haible  <bruno@clisp.org>
25311
25312         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25313
25314 2008-04-13  Bruno Haible  <bruno@clisp.org>
25315
25316         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25317         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25319         also if it exists but lacks definitions of the SHUT_* macros.
25320         * modules/sys_socket (Description): Update.
25321         Reported by Elbert Pol <e.pol@chello.nl>.
25322
25323 2008-04-13  Bruno Haible  <bruno@clisp.org>
25324
25325         * lib/localcharset.c (OS2): Don't redefine if already defined.
25326         Reported by Elbert Pol <e.pol@chello.nl>.
25327
25328 2008-04-13  Bruno Haible  <bruno@clisp.org>
25329
25330         * lib/binary-io.h [__EMX__]: Include <io.h>.
25331         Reported by Elbert Pol <e.pol@chello.nl>.
25332
25333 2008-04-12  Bruno Haible  <bruno@clisp.org>
25334
25335         * lib/fpucw.h: Enable the definitions also for x86_64.
25336         Needed for NetBSD/x86_64.
25337         Reported by Thomas Klausner <tk@giga.or.at>.
25338
25339 2008-04-12  Bruno Haible  <bruno@clisp.org>
25340
25341         * tests/test-strtod.c: Include isnand.h.
25342         (main): Use isnand instead of isnan.
25343         Reported by Jim Meyering.
25344
25345 2008-04-12  Bruno Haible  <bruno@clisp.org>
25346
25347         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25348         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25349
25350 2008-04-12  Jim Meyering  <meyering@redhat.com>
25351
25352         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25353
25354 2008-04-12  Bruno Haible  <bruno@clisp.org>
25355
25356         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25357         Reported by Elbert Pol <e.pol@chello.nl>.
25358
25359 2008-04-12  Eric Blake  <ebb9@byu.net>
25360
25361         Work around Solaris 10 math.h bug.
25362         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25363         (gl_MATH_H_DEFAULTS): Set up default.
25364         * modules/math (Makefile.am): Replace new indicators.
25365         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25366         * tests/test-math.c (main): Test this.
25367         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25368         * doc/posix-headers/math.texi (math.h): Mention bug.
25369         Reported by Nelson H. F. Beebe and Jim Meyering.
25370
25371 2008-04-11  Bruno Haible  <bruno@clisp.org>
25372
25373         Adapt to future versions of Apple GCC.
25374         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25375         Reported by Peter O'Gorman <peter@pogma.com>.
25376
25377 2008-04-11  Bruno Haible  <bruno@clisp.org>
25378
25379         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25380
25381 2008-04-11  Bruno Haible  <bruno@clisp.org>
25382
25383         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25384
25385         * modules/getaddrinfo-tests (Makefile.am): Define
25386         test_getaddrinfo_LDADD.
25387
25388 2008-04-11  Bruno Haible  <bruno@clisp.org>
25389
25390         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25391         (init): Fix syntax error.
25392         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25393         is declared.
25394
25395 2008-04-11  Bruno Haible  <bruno@clisp.org>
25396
25397         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25398         * modules/glob (Depends-on): Add stdbool.
25399
25400 2008-04-11  Bruno Haible  <bruno@clisp.org>
25401
25402         * lib/trim.c: Include <string.h>.
25403
25404 2008-04-11  Eric Blake  <ebb9@byu.net>
25405
25406         Avoid compile failure on OS/2.
25407         * lib/regex_internal.h (internal_function): Disable optimization
25408         on OS/2 (__EMX__), where it caused compiler error.
25409         Reported by Elbert Pol.
25410
25411 2008-04-11  Bruno Haible  <bruno@clisp.org>
25412
25413         Flush the standard error stream before aborting. Needed on mingw.
25414         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25415         * tests/test-array_list.c (ASSERT): Likewise.
25416         * tests/test-array_oset.c (ASSERT): Likewise.
25417         * tests/test-avltree_list.c (ASSERT): Likewise.
25418         * tests/test-avltree_oset.c (ASSERT): Likewise.
25419         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25420         * tests/test-binary-io.c (ASSERT): Likewise.
25421         * tests/test-byteswap.c (ASSERT): Likewise.
25422         * tests/test-c-ctype.c (ASSERT): Likewise.
25423         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25424         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25425         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25426         * tests/test-c-strstr.c (ASSERT): Likewise.
25427         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25428         * tests/test-canonicalize.c (ASSERT): Likewise.
25429         * tests/test-carray_list.c (ASSERT): Likewise.
25430         * tests/test-ceilf1.c (ASSERT): Likewise.
25431         * tests/test-ceilf2.c (ASSERT): Likewise.
25432         * tests/test-ceill.c (ASSERT): Likewise.
25433         * tests/test-count-one-bits.c (ASSERT): Likewise.
25434         * tests/test-fbufmode.c (ASSERT): Likewise.
25435         * tests/test-fflush2.c (ASSERT): Likewise.
25436         * tests/test-floorf1.c (ASSERT): Likewise.
25437         * tests/test-floorf2.c (ASSERT): Likewise.
25438         * tests/test-floorl.c (ASSERT): Likewise.
25439         * tests/test-fopen.c (ASSERT): Likewise.
25440         * tests/test-fpending.c (ASSERT): Likewise.
25441         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25442         * tests/test-fpurge.c (ASSERT): Likewise.
25443         * tests/test-freadable.c (ASSERT): Likewise.
25444         * tests/test-freadahead.c (ASSERT): Likewise.
25445         * tests/test-freading.c (ASSERT): Likewise.
25446         * tests/test-freadptr.c (ASSERT): Likewise.
25447         * tests/test-freadptr2.c (ASSERT): Likewise.
25448         * tests/test-freadseek.c (ASSERT): Likewise.
25449         * tests/test-freopen.c (ASSERT): Likewise.
25450         * tests/test-frexp.c (ASSERT): Likewise.
25451         * tests/test-frexpl.c (ASSERT): Likewise.
25452         * tests/test-fseek.c (ASSERT): Likewise.
25453         * tests/test-fseeko.c (ASSERT): Likewise.
25454         * tests/test-fstrcmp.c (ASSERT): Likewise.
25455         * tests/test-ftell.c (ASSERT): Likewise.
25456         * tests/test-ftello.c (ASSERT): Likewise.
25457         * tests/test-func.c (ASSERT): Likewise.
25458         * tests/test-fwritable.c (ASSERT): Likewise.
25459         * tests/test-fwriting.c (ASSERT): Likewise.
25460         * tests/test-getdelim.c (ASSERT): Likewise.
25461         * tests/test-getline.c (ASSERT): Likewise.
25462         * tests/test-i-ring.c (ASSERT): Likewise.
25463         * tests/test-iconv-utf.c (ASSERT): Likewise.
25464         * tests/test-iconv.c (ASSERT): Likewise.
25465         * tests/test-isfinite.c (ASSERT): Likewise.
25466         * tests/test-isnand.c (ASSERT): Likewise.
25467         * tests/test-isnanf.c (ASSERT): Likewise.
25468         * tests/test-isnanl.h (ASSERT): Likewise.
25469         * tests/test-ldexpl.c (ASSERT): Likewise.
25470         * tests/test-linked_list.c (ASSERT): Likewise.
25471         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25472         * tests/test-localename.c (ASSERT): Likewise.
25473         * tests/test-lseek.c (ASSERT): Likewise.
25474         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25475         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25476         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25477         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25478         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25479         * tests/test-mbschr.c (ASSERT): Likewise.
25480         * tests/test-mbscspn.c (ASSERT): Likewise.
25481         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25482         * tests/test-mbspbrk.c (ASSERT): Likewise.
25483         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25484         * tests/test-mbsrchr.c (ASSERT): Likewise.
25485         * tests/test-mbsspn.c (ASSERT): Likewise.
25486         * tests/test-mbsstr1.c (ASSERT): Likewise.
25487         * tests/test-mbsstr2.c (ASSERT): Likewise.
25488         * tests/test-mbsstr3.c (ASSERT): Likewise.
25489         * tests/test-memchr2.c (ASSERT): Likewise.
25490         * tests/test-memmem.c (ASSERT): Likewise.
25491         * tests/test-open.c (ASSERT): Likewise.
25492         * tests/test-printf-frexp.c (ASSERT): Likewise.
25493         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25494         * tests/test-printf-posix.c (ASSERT): Likewise.
25495         * tests/test-quotearg.c (ASSERT): Likewise.
25496         * tests/test-rbtree_list.c (ASSERT): Likewise.
25497         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25498         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25499         * tests/test-round1.c (ASSERT): Likewise.
25500         * tests/test-roundf1.c (ASSERT): Likewise.
25501         * tests/test-roundl.c (ASSERT): Likewise.
25502         * tests/test-signbit.c (ASSERT): Likewise.
25503         * tests/test-sleep.c (ASSERT): Likewise.
25504         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25505         * tests/test-snprintf.c (ASSERT): Likewise.
25506         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25507         * tests/test-stat-time.c (ASSERT): Likewise.
25508         * tests/test-strcasestr.c (ASSERT): Likewise.
25509         * tests/test-strerror.c (ASSERT): Likewise.
25510         * tests/test-striconv.c (ASSERT): Likewise.
25511         * tests/test-striconveh.c (ASSERT): Likewise.
25512         * tests/test-striconveha.c (ASSERT): Likewise.
25513         * tests/test-strsignal.c (ASSERT): Likewise.
25514         * tests/test-strstr.c (ASSERT): Likewise.
25515         * tests/test-strtod.c (ASSERT): Likewise.
25516         * tests/test-trunc1.c (ASSERT): Likewise.
25517         * tests/test-trunc2.c (ASSERT): Likewise.
25518         * tests/test-truncf1.c (ASSERT): Likewise.
25519         * tests/test-truncf2.c (ASSERT): Likewise.
25520         * tests/test-truncl.c (ASSERT): Likewise.
25521         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25522         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25523         * tests/test-vasnprintf.c (ASSERT): Likewise.
25524         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25525         * tests/test-vasprintf.c (ASSERT): Likewise.
25526         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25527         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25528         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25529         * tests/test-vsnprintf.c (ASSERT): Likewise.
25530         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25531         * tests/test-wcwidth.c (ASSERT): Likewise.
25532         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25533         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25534         * tests/test-xvasprintf.c (ASSERT): Likewise.
25535         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25536         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25537         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25538         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25539         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25540         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25541         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25542         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25543         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25544         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25545         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25546         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25547         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25548         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25549         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25550         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25551         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25552         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25553         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25554         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25555         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25556         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25557         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25558         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25559         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25560         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25561         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25562         * tests/unictype/test-combining.c (ASSERT): Likewise.
25563         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25564         * tests/unictype/test-digit.c (ASSERT): Likewise.
25565         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25566         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25567         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25568         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25569         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25570         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25571         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25572         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25573         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25574         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25575         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25576         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25577         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25578         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25579         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25580         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25581         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25582         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25583         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25584         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25585         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25586         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25587         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25588         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25589         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25590         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25591         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25592         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25593         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25594         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25595         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25596         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25597         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25598         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25599         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25600         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25601         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25602         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25603         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25604         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25605         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25606         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25607         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25608         Reported by Eric Blake.
25609
25610 2008-04-11  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/wchar.in.h: Tweak comment.
25613
25614 2008-04-11  Bruno Haible  <bruno@clisp.org>
25615
25616         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25617         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25618         gl_COMMON.
25619         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25620
25621 2008-04-11  Bruno Haible  <bruno@clisp.org>
25622
25623         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25624
25625 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25626
25627         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25628         of attempting to use non-existing /dev/*random.  Based on patch
25629         from Adam Strzelecki <ono@java.pl> in
25630         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25631
25632 2008-04-08  Bruno Haible  <bruno@clisp.org>
25633
25634         Add tentative support for emx+gcc.
25635         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25636         * lib/fpurge.c (fpurge): Likewise.
25637         * lib/freadable.c (freadable): Likewise.
25638         * lib/freadahead.c (freadahead): Likewise.
25639         * lib/freading.c (freading): Likewise.
25640         * lib/freadptr.c (freadptr): Likewise.
25641         * lib/freadseek.c (freadptrinc): Likewise.
25642         * lib/fseeko.c (rpl_fseeko): Likewise.
25643         * lib/fseterr.c (fseterr): Likewise.
25644         * lib/fwritable.c (fwritable): Likewise.
25645         * lib/fwriting.c (fwriting): Likewise.
25646         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25647
25648 2008-04-09  Eric Blake  <ebb9@byu.net>
25649
25650         Avoid some autoconf warnings.
25651         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25652         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25653         * m4/afs.m4 (gl_AFS): Likewise.
25654         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25655         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25657         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25658         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25659         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25660         (AC_CHECK_DECLS_ONCE): Likewise.
25661         Rename file...
25662         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25663         gnulib-tool requires autoconf 2.59 or better.
25664         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25665
25666 2008-04-08  Eric Blake  <ebb9@byu.net>
25667
25668         Use 'git describe --match' if present (added in git 1.5.5).
25669         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25670         if possible.
25671
25672 2008-04-08  Bruno Haible  <bruno@clisp.org>
25673
25674         Add tentative support for OpenServer.
25675         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25676         _ptr, _cnt.
25677         * lib/fpurge.c (fpurge): Likewise.
25678         * lib/freadable.c (freadable): Likewise.
25679         * lib/freadahead.c (freadahead): Likewise.
25680         * lib/freading.c (freading): Likewise.
25681         * lib/freadptr.c (freadptr): Likewise.
25682         * lib/freadseek.c (freadptrinc): Likewise.
25683         * lib/fseeko.c (rpl_fseeko): Likewise.
25684         * lib/fseterr.c (fseterr): Likewise.
25685         * lib/fwritable.c (fwritable): Likewise.
25686         * lib/fwriting.c (fwriting): Likewise.
25687         Reported by Roger Cornelius <rac@tenzing.org> and
25688         Brian K. White <brian@aljex.com>.
25689
25690 2008-04-06  Jim Meyering  <meyering@redhat.com>
25691
25692         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
25693
25694 2008-04-06  Bruno Haible  <bruno@clisp.org>
25695
25696         Avoid possible error with non-ASCII bytes in UTF-8 locales.
25697         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
25698         * tests/test-printf-posix.sh: Likewise.
25699         * tests/test-vfprintf-posix.sh: Likewise.
25700         * tests/test-vprintf-posix.sh: Likewise.
25701         * tests/test-xprintf-posix.sh: Likewise.
25702
25703 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25704
25705         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
25706         hide error from 'ls', needed on OS/2.
25707         Report by Elbert Pol <elbert.pol@gmail.com>.
25708
25709 2008-04-04  Eric Blake  <ebb9@byu.net>
25710
25711         Make test-fseeko.c failures meaningful.
25712         * tests/test-fseeko.c: Print line number on failure.
25713         * tests/test-fseek.c: Likewise.
25714         Reported by Nelson H. F. Beebe.
25715
25716         Improve strtod bug detection check.
25717         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
25718         required for Solaris 10.
25719         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
25720
25721 2008-04-04  Bruno Haible  <bruno@clisp.org>
25722
25723         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
25724         by m4/setenv.m4.
25725
25726 2008-04-03  Eric Blake  <ebb9@byu.net>
25727
25728         Ensure sane .version contents.
25729         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
25730         version string.
25731         * build-aux/git-version-gen: Improve documentation.
25732
25733         Make GNU make output nicer.
25734         * top/GNUmakefile [!_have-Makefile]: Add dependency on
25735         MAKECMDGOALS to enforce message for all command line targets.  Set
25736         srcdir for use in maint.mk.
25737
25738         Another maintainer tweak.
25739         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
25740         a target that regenerates version.
25741
25742 2008-04-03  Jim Meyering  <meyering@redhat.com>
25743
25744         vc-list-files: don't cause coreutils "make po-check" failure
25745         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
25746
25747 2008-04-03  Eric Blake  <ebb9@byu.net>
25748
25749         Allow VPATH usage of vc-list-files.
25750         * build-aux/vc-list-files (scriptversion): Add timestamp.
25751         (options): Add --help, --version, -C.
25752         (CVS): Support installed cvsu.
25753
25754 2008-04-02  Bruno Haible  <bruno@clisp.org>
25755
25756         Avoid some "statement with no effect" warnings from gcc.
25757         * tests/test-wctype.c (main): Explicitly ignore unused values.
25758         Reported by Jim Meyering.
25759
25760 2008-04-02  Jim Meyering  <meyering@redhat.com>
25761
25762         Avoid some warnings from "gcc -Wshadow".
25763         * tests/test-frexp.c (exp): Define to a different identifier.
25764         * tests/test-frexpl.c (exp): Likewise.
25765
25766 2008-04-03  Jim Meyering  <meyering@redhat.com>
25767
25768         bootstrap: remove dangling *.[ch] symlinks from lib
25769         * build-aux/bootstrap [dangling symlink removal]: Move find's
25770         -depth option to precede all others, to avoid a warning.
25771         Remove *.[ch] files too, and from "$source_base" (usually lib/).
25772
25773 2008-04-02  Bruno Haible  <bruno@clisp.org>
25774
25775         Avoid some warnings from "gcc -Wshadow".
25776         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
25777         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
25778         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
25779         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
25780         Reported by Jim Meyering.
25781
25782 2008-04-01  Bruno Haible  <bruno@clisp.org>
25783
25784         Fix test to work on IRIX 6.5 with cc.
25785         * tests/test-math.c (numeric_equal): New function.
25786         (main): Use it.
25787
25788 2008-04-01  Bruno Haible  <bruno@clisp.org>
25789
25790         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
25791
25792 2008-04-01  Bruno Haible  <bruno@clisp.org>
25793
25794         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
25795         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25796         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
25797         (Depends-on): Remove math.
25798
25799         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
25800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25801         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
25802         (Depends-on): Remove math.
25803
25804         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
25805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25806         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
25807         (Depends-on): Remove math.
25808         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
25809         (Depends-on): Remove math.
25810
25811         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
25812         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
25813         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
25814         (Depends-on): Remove math.
25815         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
25816         (Depends-on): Remove math.
25817
25818         * tests/test-round1.c: Include nan.h.
25819         (main): Use NaNd instead of NAN.
25820         * modules/round-tests (Files): Add tests/nan.h.
25821
25822         * tests/test-trunc1.c: Include nan.h.
25823         (main): Use NaNd instead of NAN.
25824         * modules/trunc-tests (Files): Add tests/nan.h.
25825
25826         * tests/test-roundf1.c: Include nan.h.
25827         (main): Use NaNf instead of NAN.
25828         * modules/roundf-tests (Files): Add tests/nan.h.
25829
25830         * tests/test-truncf1.c: Include nan.h.
25831         (main): Use NaNf instead of NAN.
25832         * modules/truncf-tests (Files): Add tests/nan.h.
25833
25834         * tests/test-ceilf1.c: Include nan.h.
25835         (main): Use NaNf instead of NAN.
25836         * modules/ceilf-tests (Files): Add tests/nan.h.
25837
25838         * tests/test-floorf1.c: Include nan.h.
25839         (main): Use NaNf instead of NAN.
25840         * modules/floorf-tests (Files): Add tests/nan.h.
25841
25842         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
25843         (main): Use NaNf instead of NAN.
25844         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
25845
25846         * tests/test-isnand.c: Include nan.h instead of <math.h>.
25847         (main): Use NaNd instead of NAN.
25848         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
25849
25850         * tests/test-frexp.c: Include nan.h.
25851         (main): Use NaNd instead of NAN.
25852         * modules/frexp-tests (Files): Add tests/nan.h.
25853
25854         * lib/isnan.c: Don't include <math.h>.
25855         (FUNC): Don't use NAN macro.
25856         * modules/isnand-nolibm (Depends-on): Remove math.
25857         * modules/isnanf-nolibm (Depends-on): Remove math.
25858         * modules/isnanl (Depends-on): Remove math.
25859         * modules/isnanl-nolibm (Depends-on): Remove math.
25860
25861         * tests/nan.h: New file.
25862
25863 2008-04-01  Eric Blake  <ebb9@byu.net>
25864
25865         Fix typos.
25866         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
25867         values to be the right type.
25868
25869         For now, cater to gnulib strtod inaccuracies.
25870         * tests/test-strtod.c (main): Allow 1-ulp error on expected
25871         fractional results.  While not as nice from a QoI perspective, it
25872         is a quicker patch than correctly implementing decimal to binary
25873         rounding.
25874
25875 2008-03-31  Eric Blake  <ebb9@byu.net>
25876
25877         Guarantee a definition of NAN.
25878         * lib/math.in.h (NAN): Define if missing.
25879         * tests/test-math.c (main): Test it.
25880         * doc/posix-headers/math.texi (math.h): Document this.
25881         * lib/isnan.c (rpl_isnand): Use it.
25882         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
25883         * tests/test-floorf1.c (NaN): Likewise.
25884         * tests/test-frexp.c (NaN): Likewise.
25885         * tests/test-isnand.c (NaN): Likewise.
25886         * tests/test-isnanf.c (NaN): Likewise.
25887         * tests/test-round1.c (NaN): Likewise.
25888         * tests/test-roundf1.c (NaN): Likewise.
25889         * tests/test-snprintf-posix.h (NaN): Likewise.
25890         * tests/test-sprintf-posix.h (NaN): Likewise.
25891         * tests/test-trunc1.c (NaN): Likewise.
25892         * tests/test-truncf1.c (NaN): Likewise.
25893         * tests/test-vasnprintf-posix.c (NaN): Likewise.
25894         * tests/test-vasprintf-posix.c (NaN): Likewise.
25895         * modules/isnand-nolibm (Depends-on): Add math.
25896         * modules/isnanf-nolibm (Depends-on): Likewise.
25897         * modules/isnanl (Depends-on): Likewise.
25898         * modules/isnanl-nolibm (Depends-on): Likewise.
25899         * modules/snprintf-posix-tests (Depends-on): Likewise.
25900         * modules/sprintf-posix-tests (Depends-on): Likewise.
25901         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
25902         * modules/vsprintf-posix-tests (Depends-on): Likewise.
25903         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
25904         * modules/vasprintf-posix-tests (Depends-on): Likewise.
25905
25906 2008-03-31  Bruno Haible  <bruno@clisp.org>
25907
25908         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
25909         * doc/posix-functions/strtod.texi: Likewise.
25910
25911 2008-03-31  Bruno Haible  <bruno@clisp.org>
25912
25913         * tests/test-strtod.c (main): Don't use C99 syntax.
25914
25915 2008-03-31  Bruno Haible  <bruno@clisp.org>
25916
25917         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
25918         Reported by Eric Blake.
25919
25920 2008-03-31  Jim Meyering  <meyering@redhat.com>
25921
25922         Don't compare actual signbit return values.
25923         * tests/test-strtod.c (main): Rather, compare only their
25924         zero/non-zero nature.
25925
25926 2008-03-31  Eric Blake  <ebb9@byu.net>
25927
25928         More strtod documentation.
25929         * doc/posix-functions/strtod.texi (strtod): Interpret more test
25930         failures as distinct bugs.
25931
25932 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25933
25934         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
25935         Problem reported by Erik Benada in
25936         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
25937
25938 2008-03-30  Bruno Haible  <bruno@clisp.org>
25939
25940         * tests/test-strtod.c: Add comments about which assertion fails on which
25941         platform.
25942         * doc/posix-functions/strtod.texi: Add info about many more platforms.
25943
25944 2008-03-30  Eric Blake  <ebb9@byu.net>
25945
25946         Test signbit behavior on zeros.
25947         * tests/test-signbit.c (test_signbitf): Add tests for zero.
25948         (test_signbitd, test_signbitl): Likewise.
25949
25950         More strtod touchups.
25951         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
25952         sign of negative underflow, for now.  Use .5, not .1.
25953         * doc/posix-functions/strtod.texi (strtod): Mention these
25954         limitations.
25955         Reported by Jim Meyering.
25956
25957 2008-03-30  Bruno Haible  <bruno@clisp.org>
25958
25959         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
25960         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
25961
25962 2008-03-30  Bruno Haible  <bruno@clisp.org>
25963
25964         Avoid failure when attempting to return empty iconv results on some
25965         platforms.
25966         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
25967         allocation, don't report ENOMEM when the resulting string is empty.
25968
25969 2008-03-30  Bruno Haible  <bruno@clisp.org>
25970
25971         Fix buffer overrun.
25972         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
25973         Don't consider the width for tmp_length. Check count against tmp_length
25974         before doing the padding. Ensure enough allocation during padding.
25975
25976 2008-03-30  Eric Blake  <ebb9@byu.net>
25977
25978         strtod touchups.
25979         * lib/strtod.c (strtod): Avoid compiler warnings.
25980         Reported by Jim Meyering.
25981
25982 2008-03-30  Bruno Haible  <bruno@clisp.org>
25983
25984         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
25985         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
25986         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
25987         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
25988         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
25989         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
25990         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
25991         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
25992
25993         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
25994         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
25995         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
25996         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
25997         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
25998         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
25999         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26000         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26001
26002         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26003         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26004         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26005         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26006         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26007         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26008         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26009         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26010
26011         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26012         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26013
26014         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26015         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26016
26017         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26018         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26019
26020         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26021         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26022         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26023
26024         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26026         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26027
26028         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26030         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26031
26032         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26034         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26035
26036         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26037         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26039         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26040         (Depends-on): Add EOVERFLOW.
26041         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26042         (Depends-on): Add EOVERFLOW.
26043         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26044         (Depends-on): Add EOVERFLOW.
26045         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26046         (Depends-on): Add EOVERFLOW.
26047         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26048         (Depends-on): Add EOVERFLOW.
26049         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26050         (Depends-on): Add EOVERFLOW.
26051         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26052         (Depends-on): Add EOVERFLOW.
26053         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26054         (Depends-on): Add EOVERFLOW.
26055
26056         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26058         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26059
26060         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26061         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26062         * modules/snprintf (Depends-on): Add EOVERFLOW.
26063
26064         * lib/poll.c (EOVERFLOW): Remove fallback.
26065         * modules/poll (Depends-on): Add EOVERFLOW.
26066
26067         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26068         * modules/getugroups (Depends-on): Add EOVERFLOW.
26069
26070         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26071         * modules/getdelim (Depends-on): Add EOVERFLOW.
26072
26073         * lib/ftell.c (EOVERFLOW): Remove fallback.
26074         * modules/ftell (Depends-on): Add EOVERFLOW.
26075
26076         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26077         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26078         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26079
26080         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26081
26082         * modules/EOVERFLOW-tests: New file.
26083         * tests/test-EOVERFLOW.c: New file.
26084
26085         * modules/EOVERFLOW: New file.
26086         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26087
26088 2008-03-30  Bruno Haible  <bruno@clisp.org>
26089
26090         Fix bug introduced on 2007-06-10.
26091         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26092         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26093
26094 2008-03-30  Bruno Haible  <bruno@clisp.org>
26095
26096         Improve freadseek's efficiency after ungetc.
26097         * lib/freadseek.c: Include freadahead.h.
26098         (freadptrinc): New function, extracted from freadseek.
26099         (freadseek): Use it in a loop. Use freadahead to determine the number
26100         of loop iterations.
26101         * modules/freadseek (Depends-on): Add freadahead.
26102         (configure.ac): Require AC_C_INLINE.
26103
26104 2008-03-30  Bruno Haible  <bruno@clisp.org>
26105
26106         * lib/freadseek.c (freadseek): Don't ignore the return value of
26107         freadptr.
26108
26109 2008-03-29  Eric Blake  <ebb9@byu.net>
26110
26111         Add hex float support.
26112         * modules/strtod (Depends-on): Add c-ctype.
26113         (Link): Mention POW_LIB.
26114         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26115         whitespace between 'e' and exponent.
26116         * tests/test-strtod.c (main): Enable hex float tests.
26117         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26118         now provides.
26119
26120         Document various strtod bugs, with some fixes.
26121         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26122         "-0x", "inf", "nan", and hex constants.
26123         * doc/posix-functions/atof.texi (atof): Likewise.
26124         * modules/stdlib (Makefile.am): Support strtod.
26125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26126         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26127         detect additional strtod bugs.
26128         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26129         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26130         bool where appropriate.  Parse 'inf' and 'nan'.
26131         * tests/test-strtod.c: New file.
26132         * modules/strtod (Depends-on): Add stdbool, stdlib.
26133         (configure.ac): Turn on module indicator.
26134         * modules/strtod-tests: New module.
26135
26136 2008-03-29  Eric Blake  <ebb9@byu.net>
26137
26138         Fix ftell on mingw.
26139         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26140         * modules/ftell-tests (Depends-on): Add binary-io.
26141         * modules/ftello-tests (Depends-on): Likewise.
26142         * tests/test-ftell.c (main): Enhance test to cover behavior after
26143         ungetc.  Enforce binary mode.
26144         * tests/test-ftello.c (main): Likewise.
26145
26146         Pass test-freadseek on cygwin.
26147         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26148         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26149         ungetc buffer.
26150
26151         * tests/test-fflush2.c (main): Fix typo.
26152
26153 2008-03-29  Bruno Haible  <bruno@clisp.org>
26154
26155         * tests/test-fflush2.c (main): Temporarily disable the contents of
26156         this test.
26157         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26158         Reported by Eric Blake.
26159
26160 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26161
26162         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26163         (GC_SHA224_DIGEST_SIZE): Add.
26164
26165         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26166         (gc_hash_digest_length): Likewise.
26167         (gc_hash_buffer): Likewise.
26168
26169 2008-03-25  Bruno Haible  <bruno@clisp.org>
26170
26171         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26172         detail which gettext release to use.
26173         Reported by Simon Josefsson.
26174
26175 2008-03-26  Jim Meyering  <meyering@redhat.com>
26176
26177         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26178         * modules/gnumakefile (clean-GNUmakefile): Also, use
26179         test ... && ... || : syntax rather than if-then ... fi.
26180
26181         gnumakefile: Don't double-quote-expand $(VPATH) value.
26182         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26183
26184 2008-03-24  Eric Blake  <ebb9@byu.net>
26185
26186         Alter GNUmakefile to install into top directory.
26187         * modules/maintainer-makefile: Split, and add dependency...
26188         * modules/gnumakefile: to this new module.
26189         * build-aux/GNUmakefile: Move...
26190         * top/GNUmakefile: ...here.
26191         * build-aux/maint.mk: Move...
26192         * top/maint.mk: ...here.
26193         * MODULES.html.sh (Support for maintaining...): Document new
26194         module.
26195
26196 2008-03-23  Bruno Haible  <bruno@clisp.org>
26197
26198         * gnulib-tool: New options --vc-files, --no-vc-files.
26199         (func_usage): Document them.
26200         (vc_files): New variable.
26201         (func_import): Consider vc_files.
26202         (func_create_testdir): Set vc_files to empty.
26203         Suggested by Jim Meyering and Karl Berry.
26204
26205 2008-03-23  Bruno Haible  <bruno@clisp.org>
26206
26207         Fix regex compilation error on HP-UX 11.
26208         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26209         * modules/regex (Files): Add m4/mbstate_t.m4.
26210         Reported by Ton Voon <ton.voon@altinity.com>.
26211
26212 2008-03-23  Bruno Haible  <bruno@clisp.org>
26213
26214         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26215
26216 2008-03-23  Eric Blake  <ebb9@byu.net>
26217             Bruno Haible  <bruno@clisp.org>
26218
26219         Install files from top/ in the destination directory.
26220         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26221         augmentation also for the files from top/.
26222         (func_import, func_create_testdir): Rewrite file names:
26223         top/filename -> filename.
26224
26225 2008-03-23  Bruno Haible  <bruno@clisp.org>
26226
26227         Tweak "gnulib --version" output.
26228         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26229
26230 2008-03-23  Bruno Haible  <bruno@clisp.org>
26231
26232         Tweak "gnulib --version" output.
26233         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26234         rather than contents of ChangeLog, when possible.
26235
26236 2008-03-21  Eric Blake  <ebb9@byu.net>
26237
26238         More --version tweaks.
26239         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26240         date of last ChangeLog entry.
26241
26242 2008-03-21  Jim Meyering  <meyering@redhat.com>
26243
26244         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26245
26246 2008-03-20  Eric Blake  <ebb9@byu.net>
26247
26248         VPATH fix.
26249         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26250
26251 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26252
26253         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26254         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26255
26256 2008-03-20  Eric Blake  <ebb9@byu.net>
26257
26258         Sync GNUmakefile with coreutils.
26259         * build-aux/GNUmakefile (have-Makefile): Rename...
26260         (_have-Makefile): ...to this, for namespace consideration.
26261         (GNUmakefile.cfg): Include, if present.
26262         (_autoreconf): Define a default.
26263         (_is-dist-target): New rule for rebuilds to pick up intra-release
26264         version.
26265         (maint-cfg.mk): Rename...
26266         (cfg.mk): ...to this.
26267
26268 2008-03-18  Jim Meyering  <meyering@redhat.com>
26269
26270         New script and module: mktempd
26271         * MODULES.html.sh (maint+release support): Add mktempd.
26272         * build-aux/mktempd: New file.
26273         * modules/mktempd: New file.
26274
26275 2008-03-15  Jim Meyering  <meyering@redhat.com>
26276
26277         Undo last change.
26278         * lib/sha1.c, lib/md5.c: 63 != ~63.
26279         Reported by Andreas Schwab.
26280
26281         sha1.c, md5.c: Hoist a redundant expression.
26282         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26283         "ctx->buflen" only once, before calling *_process_block.
26284         * lib/md5.c (md5_process_bytes): Likewise.
26285
26286 2008-03-14  Eric Blake  <ebb9@byu.net>
26287
26288         Bump copyright year in files generated by gnulib-tool.
26289         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26290         gnulib-tool, rather than hard-coding it.
26291
26292         Fix 'gnulib-tool --version' output to work with git.
26293         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26294         (startup): ...here.
26295         (func_version): Use it to invoke git-version-gen, rather than
26296         relying on CVS keyword expansion.  Modernize wording.
26297         (cvsdatestamp, last_checkin_date, version): Kill unused
26298         variables.
26299
26300 2008-03-12  Jim Meyering  <meyering@redhat.com>
26301
26302         Recognize optional cast of the argument to free.
26303         * build-aux/useless-if-before-free: Update regexps.
26304
26305         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26306
26307 2008-03-11  Bruno Haible  <bruno@clisp.org>
26308
26309         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26310         by a single package.
26311         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26312         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26313         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26314         Reported by Sam Steingold <sds@gnu.org>.
26315
26316 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26317
26318         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26319         repositories.
26320
26321 2008-03-11  Bruno Haible  <bruno@clisp.org>
26322
26323         Avoid conflicts between local macro definitions.
26324         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26325         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26326
26327 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26328             Bruno Haible  <bruno@clisp.org>
26329
26330         Make va_copy work with some version of xlc on AIX 5.1.
26331         * lib/stdarg.in.h: New file.
26332         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26333         On AIX, use a <stdarg.h> file substitute.
26334         * modules/stdarg (Files): Add lib/stdarg.in.h.
26335         (Depends-on): Add include_next.
26336         (Makefile.am): Build a stdarg.h substitute if requested.
26337         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26338
26339 2008-03-10  Bruno Haible  <bruno@clisp.org>
26340
26341         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26342         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26343         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26344
26345 2008-03-10  Bruno Haible  <bruno@clisp.org>
26346
26347         * modules/stdlib (Depends-on): Add include_next, remove
26348         absolute-header.
26349
26350 2008-03-09  Bruno Haible  <bruno@clisp.org>
26351
26352         * lib/freadahead.h (freadahead): Document more precisely.
26353         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26354         the sum of both buffer sizes.
26355         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26356         * NEWS: Document the change.
26357
26358 2008-03-09  Bruno Haible  <bruno@clisp.org>
26359
26360         Extend freadptr to return also the buffer size.
26361         * lib/freadptr.h (freadptr): Add sizep argument.
26362         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26363         (freadptr): Add sizep argument. Determine buffer size like freadahead
26364         does.
26365         * tests/test-freadptr.c: Don't include freadahead.h.
26366         (main): Adapt for new calling convention of freadptr.
26367         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26368         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26369         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26370         tests/test-freadptr2.sh.
26371         (Depends): Remove freadahead.
26372         (TESTS): Add test-freadptr2.sh.
26373         (check_PROGRAMS): Add test-freadptr2.
26374
26375 2008-03-09  Bruno Haible  <bruno@clisp.org>
26376
26377         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26378         Report and solution by Simon Josefsson.
26379
26380 2008-03-06  Bruno Haible  <bruno@clisp.org>
26381
26382         Make fflush after ungetc work on BSD platforms.
26383         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26384         * tests/test-fflush2.c: New file.
26385         * tests/test-fflush2.sh: New file.
26386         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26387         tests/test-fflush2.c.
26388         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26389         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26390
26391 2008-03-06  Eric Blake  <ebb9@byu.net>
26392
26393         Likewise for ftello.
26394         * modules/ftello (Dependencies): Add extensions.
26395         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26396
26397 2008-03-06  Bruno Haible  <bruno@clisp.org>
26398
26399         * modules/fseeko (Dependencies): Add extensions.
26400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26401         Needed on glibc systems.
26402
26403 2008-03-06  Bruno Haible  <bruno@clisp.org>
26404
26405         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26406         email address.
26407         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26408
26409 2008-03-06  Bruno Haible  <bruno@clisp.org>
26410
26411         * users.txt: Add libgnupdf.
26412
26413 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26414
26415         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26416         (Header File Substitutes, Function Substitutes,
26417         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26418         (Build robot for gnulib): Fix typo.
26419
26420 2008-03-06  Bruno Haible  <bruno@clisp.org>
26421
26422         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26423         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26424
26425 2008-03-06  Bruno Haible  <bruno@clisp.org>
26426
26427         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26428         * doc/gnulib.texi: Include it.
26429
26430 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26431
26432         * modules/func (License): Change license to unlimited; there was
26433         no LGPL parts in the module anyway.
26434
26435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26436
26437         * modules/__func__: Renamed to modules/func.
26438         * modules/__func__-tests: Renamed to modules/func-tests.
26439         * tests/test-__func__.c: Renamed to tests/test-func.c.
26440         * m4/__func__.m4: Renamed to m4/func.m4.
26441         * doc/gnulib.texi (__func__): Section renamed to func.
26442         Suggested by Eric Blake <ebb9@byu.net>.
26443
26444 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26445
26446         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26447         about __func__.  Make example self-contained.  Suggested by Eric
26448         Blake <ebb9@byu.net>.
26449
26450         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26451         Suggested by Eric Blake <ebb9@byu.net>.
26452
26453 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26454
26455         * modules/__func__: New file.
26456         * modules/__func__-tests: New file.
26457         * tests/test-__func__.c: New file.
26458         * m4/__func__.m4: New file.
26459         * doc/gnulib.texi (__func__): Document __func__ module.
26460
26461 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26462
26463         * modules/byteswap (License): Re-license as LGPLv2+.
26464
26465 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26466
26467         * doc/Makefile: Add pdf target.
26468
26469 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26470
26471         * modules/inline (License): Use 'unlimited', since there are only
26472         *.m4 files in this module.
26473
26474 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26475             Bruno Haible  <bruno@clisp.org>
26476
26477         Add support for HP C 7.1 on OpenVMS 8.3.
26478         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26479
26480 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26481
26482         Update VMS specifics.
26483         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26484
26485 2008-03-02  Jim Meyering  <meyering@redhat.com>
26486
26487         Remove the last dependency on the "free" module.
26488         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26489         Reported by Bob Proulx.
26490
26491         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26492
26493         Remove useless "if" tests before free.  Deprecate "free" module.
26494         * doc/posix-functions/free.texi: Mention that this
26495         module is no longer useful.
26496         * modules/free (Notice): Say this module is obsolete.
26497         * modules/readutmp (Depends-on): Remove free.
26498         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26499         * lib/putenv.c (putenv): Likewise.
26500         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26501         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26502         * tests/test-c-strcasestr.c (main): Likewise.
26503         * tests/test-c-strstr.c (main): Likewise.
26504         * tests/test-mbscasestr1.c (main): Likewise.
26505         * tests/test-mbscasestr2.c (main): Likewise.
26506         * tests/test-mbsstr1.c (main): Likewise.
26507         * tests/test-mbsstr2.c (main): Likewise.
26508         * tests/test-memmem.c (main): Likewise.
26509         * tests/test-strcasestr.c (main): Likewise.
26510         * tests/test-striconv.c (main): Likewise.
26511         * tests/test-striconveh.c (main): Likewise.
26512         * tests/test-striconveha.c (main): Likewise.
26513         * tests/test-strstr.c (main): Likewise.
26514
26515         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26516
26517         bootstrap: sync from coreutils again
26518         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26519
26520 2008-03-01  Jim Meyering  <meyering@redhat.com>
26521
26522         bootstrap: sync from coreutils
26523         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26524         also when the target doesn't exist.
26525
26526 2008-03-01  Eric Blake  <ebb9@byu.net>
26527
26528         Fix bugs in last patch.
26529         * lib/memchr2.c (memchr2): Fix typo.
26530         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26531         extension.
26532         Reported by Bruce Korb.
26533
26534         New module 'memchr2'.
26535         * modules/memchr2: New file.
26536         * modules/memchr2-tests: Likewise.
26537         * lib/memchr2.h: Likewise.
26538         * lib/memchr2.c: Likewise, based on memchr.c.
26539         * tests/test-memchr2.c: New test.
26540         * MODULES.html.sh (String handling): Add memchr2.
26541
26542 2008-02-29  Bruno Haible  <bruno@clisp.org>
26543
26544         * modules/freadseek-tests: New file.
26545         * tests/test-freadseek.sh: New file.
26546         * tests/test-freadseek.c: New file.
26547
26548         New module 'freadseek'.
26549         * modules/freadseek: New file.
26550         * lib/freadseek.h: New file.
26551         * lib/freadseek.c: New file.
26552         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26553
26554 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26555
26556         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26557         wydawca.
26558
26559         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26560         program_invocation_name and program_invocation_short_name are
26561         present.
26562
26563 2008-02-28  Bruno Haible  <bruno@clisp.org>
26564
26565         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26566         * tests/test-freadptr.sh: Also test non-seekable stdin.
26567
26568 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26569
26570         * build-aux/bootstrap (source_base, m4_base)
26571         (doc_base, tests_base): New variables.
26572         (gnulib_tool_options): Do not hardcode base directories, use
26573         the above variables instead.
26574
26575 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26576
26577         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26578
26579 2008-02-28  Bruno Haible  <bruno@clisp.org>
26580
26581         * modules/freadptr-tests: New file.
26582         * tests/test-freadptr.sh: New file.
26583         * tests/test-freadptr.c: New file.
26584
26585         New module 'freadptr'.
26586         * modules/freadptr: New file.
26587         * lib/freadptr.h: New file.
26588         * lib/freadptr.c: New file.
26589         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26590
26591 2008-02-26  Karl Berry  <karl@freefriends.org>
26592
26593         Sync from Libtool:
26594         * libltdl/argz.c (argz_add, argz_count): New functions.
26595         * libltdl/argz.in.h: Declare them.
26596         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26597
26598 2008-02-22  Bruno Haible  <bruno@clisp.org>
26599
26600         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26601         is a pointer type.  Needed for HP-UX 10.
26602         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26603         * doc/posix-functions/gmtime_r.texi: Likewise.
26604         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26605
26606 2008-02-24  Bruno Haible  <bruno@clisp.org>
26607
26608         * modules/environ-tests: New file.
26609         * tests/test-environ.c: New file.
26610
26611         New module 'environ'.
26612         * modules/environ: New file.
26613         * lib/unistd.in.h (environ): New declaration.
26614         * m4/environ.m4: New file.
26615         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26616         after use.
26617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26618         HAVE_DECL_ENVIRON.
26619         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26620         HAVE_DECL_ENVIRON.
26621         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26622         wrong claim that 'environ' is missing on some systems.
26623         * modules/execute (Depends-on): Add environ.
26624         * lib/execute.c (environ): Remove fallback declaration.
26625         * modules/pipe (Depends-on): Add environ.
26626         * lib/pipe.c (environ): Remove fallback declaration.
26627         * modules/setenv (Depends-on): Add environ.
26628         * lib/setenv.c (environ): Remove fallback declaration.
26629         * modules/unsetenv (Depends-on): Add environ.
26630         * lib/unsetenv.c (environ): Remove fallback declaration.
26631         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26632         m4/environ.m4.
26633         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26634         (gl_PREREQ_UNSETENV): Likewise.
26635
26636 2008-02-24  Bruno Haible  <bruno@clisp.org>
26637
26638         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26639
26640 2008-02-20  Bob Proulx  <bob@proulx.com>
26641
26642         Enable use of older two part flavor 'git describe'.
26643         * build-aux/git-version-gen: If using the older two part flavor of
26644         git version then recreate the third part now present in the
26645         newer three part flavor of git describe.
26646
26647 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26648
26649         * lib/fts.c (fts_build): Typo correction to comment.
26650
26651 2008-02-17  Bruno Haible  <bruno@clisp.org>
26652
26653         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26654         generating no-op conflicts.
26655
26656 2008-02-17  Bruno Haible  <bruno@clisp.org>
26657
26658         Speed up by 10%.
26659         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26660         result_entries, rather than an index-based loop.
26661
26662 2008-02-17  Bruno Haible  <bruno@clisp.org>
26663
26664         Speed up by 25%.
26665         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26666         'hashcode_cached'.
26667         (entry_create): New function.
26668         (entry_hashcode): Use the cached hashcode if possible.
26669         (read_changelog_file, try_split_merged_entry): Use entry_create.
26670
26671 2008-02-17  Bruno Haible  <bruno@clisp.org>
26672
26673         Speed up from O(n^2) to O(n) for long ChangeLog files.
26674         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26675         (read_changelog_file): Change implementation of entries_reversed list
26676         to rbtreehash.
26677         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26678
26679 2008-02-17  Bruno Haible  <bruno@clisp.org>
26680
26681         New option --split-merged-entry.
26682         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
26683         (find_paragraph_end, try_split_merged_entry): New functions.
26684         (long_options): Add option --split-merged-entry.
26685         (usage): Document option --split-merged-entry.
26686         (main): Implement option --split-merged-entry.
26687         Reported by Eric Blake.
26688
26689 2008-02-17  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/git-merge-changelog.c: Include c-strstr.h.
26692         (main): Support the "git pull --rebase" situation.
26693         * modules/git-merge-changelog (Depends-on): Add c-strstr.
26694         Reported by Eric Blake.
26695
26696 2008-02-16  Eric Blake  <ebb9@byu.net>
26697
26698         Avoid doubling \ in common case of "c-maybe" quoting style.
26699         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
26700         eliding outer quotes.
26701         * lib/quotearg.h: Document this.
26702         * tests/test-quotearg.c (result_strings, inputs, results_g)
26703         (flag_results, locale_results): Test it by adding a new string to
26704         each test group.
26705         (compare_strings): Test new string.
26706
26707 2008-02-13  Eric Blake  <ebb9@byu.net>
26708
26709         Avoid trigraph quoting in default output.
26710         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
26711         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
26712         unless explicitly requested.
26713         * tests/test-quotearg.c (flag_results, main): Add additional tests.
26714
26715 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
26716
26717         Don't rely on signed integer overflowing to negative value.
26718         * lib/getugroups.c (getugroups): Include <limits.h>.
26719         Instead, compare against INT_MAX, and increment only if the test passes.
26720
26721 2008-02-13  Jim Meyering  <meyering@redhat.com>
26722         and Eric Blake  <ebb9@byu.net>
26723
26724         Avoid shadowing warning and compile errors on Linux.
26725         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
26726         forwarding macros on Linux.
26727         (dcgettext): Define a stub, for Linux.
26728         (results_g, main): Avoid warnings.
26729
26730 2008-02-12  Eric Blake  <ebb9@byu.net>
26731
26732         Silence warning in last patch.
26733         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
26734
26735         Quotearg part 4: add tests, fix c-maybe colon quoting.
26736         * lib/quotearg.h: Improve documentation.
26737         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
26738         escapes when adding outer quotes.  When quoting trigraphs, use
26739         valid C notation.  When quoting NUL, omit extra characters if next
26740         character is not digit.  Alter prototype.
26741         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
26742         callers.
26743         * modules/quotearg-tests: New module.
26744         * tests/test-quotearg.c: New test.
26745
26746 2008-02-07  Eric Blake  <ebb9@byu.net>
26747
26748         Quotearg part 3: add flag to control outer quote elision.
26749         * lib/quotearg.h (c_maybe_quoting_style): New style.
26750         (enum quoting_flags): Better documentation of flags.
26751         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
26752         c-maybe style.
26753         (quotearg_buffer_restyled): Handle new flag to elide outer
26754         quotes.
26755
26756         Quotearg part 2: add flag that can control NUL elision.
26757         * lib/quotearg.h (set_quoting_flags): New prototype.
26758         * lib/quotearg.c (struct quoting_options): Add flag field.
26759         (set_quoting_flags): New function.
26760         (quotearg_buffer_restyled): Add flags parameter.
26761         (quotearg_alloc_mem): Set the flag if length cannot be returned.
26762         (quotearg_n_options): Set the flag, since length cannot be
26763         returned.
26764         (quoting_options_from_style): Default flags correctly.
26765
26766         Quotearg part 1: more wrappers, restore quotearg_char state.
26767         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
26768         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
26769         (quotearg_colon_mem): New wrappers.
26770         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
26771         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
26772         functions.
26773         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
26774         (quotearg_colon_mem): New functions.
26775
26776 2008-02-11  Bruno Haible  <bruno@clisp.org>
26777
26778         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
26779         library in the current directory: it does not work with parallel make.
26780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26781
26782 2008-02-11  Bruno Haible  <bruno@clisp.org>
26783
26784         * .gitattributes: New file.
26785
26786 2008-02-11  Jim Meyering  <meyering@redhat.com>
26787
26788         useless-if-before-free: Fix reversed exit values.
26789         * build-aux/useless-if-before-free: Use correct values
26790         for EXIT_MATCH and EXIT_NO_MATCH.
26791
26792         * build-aux/useless-if-before-free: Close stdout carefully.
26793
26794 2008-02-10  Bruno Haible  <bruno@clisp.org>
26795
26796         New module 'git-merge-changelog'.
26797         * modules/git-merge-changelog: New file.
26798         * lib/git-merge-changelog.c: New file.
26799
26800 2008-02-10  Jim Meyering  <meyering@redhat.com>
26801
26802         useless-if-before-free: New option: --list (-l).
26803
26804         useless-if-before-free: Don't exit immediately upon open failure.
26805         * build-aux/useless-if-before-free: Exit 2 for errors.
26806         Upon failure to open a file, don't exit immediately.
26807         Rather, just warn and continue with any remaining files.
26808
26809 2008-02-10  Bruno Haible  <bruno@clisp.org>
26810
26811         New abstract list operation 'node_set_value'.
26812         * lib/gl_list.h (gl_list_node_set_value): New function.
26813         (struct gl_list_implementation): New field node_set_value.
26814         * lib/gl_list.c (gl_list_node_set_value): New function.
26815         * lib/gl_array_list.c (gl_array_node_set_value): New function.
26816         (gl_array_list_implementation): Update.
26817         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
26818         (gl_carray_list_implementation): Update.
26819         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
26820         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
26821         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
26822         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
26823         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
26824         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
26825         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
26826         Update.
26827         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
26828         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
26829         (gl_sublist_list_implementation): Update.
26830
26831 2008-02-10  Bruno Haible  <bruno@clisp.org>
26832
26833         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
26834         Needed when ELEMENT is #defined to 'some_type *'.
26835
26836 2008-02-10  Jim Meyering  <meyering@redhat.com>
26837
26838         New script and module: useless-if-before-free
26839         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
26840         * build-aux/useless-if-before-free: New file.
26841         * modules/useless-if-before-free: New file.
26842
26843         * build-aux/gitlog-to-changelog: Use committer date, not author date.
26844
26845         xstrtol_error: Fix typo.
26846         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
26847         s/exit_failure/exit_status/.
26848
26849 2008-02-09  Jim Meyering  <meyering@redhat.com>
26850
26851         New script and module: gitlog-to-changelog
26852         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
26853         * modules/gitlog-to-changelog: New file.
26854         * build-aux/gitlog-to-changelog: New file.
26855
26856 2008-02-08  Jim Meyering  <meyering@redhat.com>
26857
26858         Avoid two "parameter unused" warnings.
26859         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
26860         Mark "st" as used.
26861
26862         Use "git COMMAND", not "git-COMMAND".
26863         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
26864         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
26865         * build-aux/git-version-gen: Use "git status", not "git-status".
26866
26867 2008-02-07  Bruno Haible  <bruno@clisp.org>
26868
26869         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
26870         Avoids a crash on Windows Vista.
26871         Reported by Adam Strzelecki <ono@java.pl> via
26872         Simon Josefsson <simon@josefsson.org>.
26873
26874 2008-02-06  Bruno Haible  <bruno@clisp.org>
26875
26876         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
26877         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
26878         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
26879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
26880         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
26881         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26882         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
26883         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
26884         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26888         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26891         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
26892         left-adjust flag.
26893         * tests/test-snprintf-posix.h (test_function): Likewise.
26894         * tests/test-sprintf-posix.h (test_function): Likewise.
26895         * tests/test-vasprintf-posix.c (test_function): Likewise.
26896         * doc/posix-functions/fprintf.texi: Update.
26897         * doc/posix-functions/printf.texi: Update.
26898         * doc/posix-functions/snprintf.texi: Update.
26899         * doc/posix-functions/sprintf.texi: Update.
26900         * doc/posix-functions/vfprintf.texi: Update.
26901         * doc/posix-functions/vprintf.texi: Update.
26902         * doc/posix-functions/vsnprintf.texi: Update.
26903         * doc/posix-functions/vsprintf.texi: Update.
26904         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26905
26906 2008-02-06  Bruno Haible  <bruno@clisp.org>
26907
26908         Fix bug introduced on 2008-01-26.
26909         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
26910
26911 2008-02-06  Bruno Haible  <bruno@clisp.org>
26912
26913         Fix bug introduced on 2007-06-10.
26914         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
26915         !NEED_PRINTF_FLAG_ZERO.
26916
26917 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
26918
26919         getloadavg: use libperfstat on AIX5
26920         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
26921
26922 2008-02-03  Bruno Haible  <bruno@clisp.org>
26923
26924         * lib/diffseq.h: Add comments about required #includes.
26925         Reported by Michael Biggs <gnulib@doubleplum.net>.
26926
26927 2008-02-01  Bruno Haible  <bruno@clisp.org>
26928
26929         * users.txt: Add gnuit.
26930
26931 2008-01-31  Bruno Haible  <bruno@clisp.org>
26932
26933         * lib/md4.c (set_uint32): Mark as inline.
26934         * lib/md5.c (set_uint32): Likewise.
26935         * lib/sha1.c (set_uint32): Likewise.
26936         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
26937         * m4/md5.m4 (gl_MD5): Likewise.
26938         * m4/sha1.m4 (gl_SHA1): Likewise.
26939
26940 2008-01-31  Jim Meyering  <meyering@redhat.com>
26941
26942         Use "sizeof VAR", rather than a literal "4".
26943         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
26944         * lib/md4.c (md4_read_ctx): Likewise.
26945         * lib/sha1.c (sha1_read_ctx): Likewise.
26946
26947 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26948
26949         * tests/test-sha1.c: New file, based on test-md5.c.
26950
26951         * modules/crypto/sha1-tests: New file.
26952
26953 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26954
26955         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
26956
26957 2008-01-31  Jim Meyering  <meyering@redhat.com>
26958
26959         Prefer "sizeof v" over the equivalent "4".
26960         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
26961         * lib/md5.c (set_uint32): Likewise.
26962         * lib/sha1.c (set_uint32): Likewise.
26963
26964 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26965
26966         * lib/sha1.c (set_uint32): Mark function as static.
26967
26968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26969
26970         md2: clarify comments to say that alignment is not required.
26971         * lib/md2.h: Remove warning about alignment in comment.
26972         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
26973         never been required.
26974
26975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26976
26977         md4: adapt alignment constraint fix from sha1.
26978         * lib/md4.c (set_uint32): New function, from sha1.c
26979         (md4_read_ctx): Use it.
26980         (md4_finish_ctx): Doc fix.
26981         * lib/md4.h: Doc fix.
26982
26983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
26984
26985         md5: adapt alignment constraint fix from sha1.
26986         * lib/md5.c (set_uint32): New function, from sha1.c
26987         (md5_read_ctx): Use it.
26988         (md5_finish_ctx): Doc fix.
26989         * lib/md5.h: Doc fix.
26990
26991 2008-01-30  Peter Palfrader  <weasel@debian.org>
26992
26993         sha1: remove the result buffer alignment constraint
26994         * lib/sha1.c (set_uint32): New function.
26995         (sha1_read_ctx): Rewrite to remove the result buffer alignment
26996         constraint.
26997         (sha1_finish_ctx): Remove comment warning about alignment constraint.
26998         * lib/sha1.h: Likewise.
26999
27000 2008-01-30  Andreas Schwab  <schwab@suse.de>
27001             Bruno Haible  <bruno@clisp.org>
27002
27003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27004         correct definition of LDBL_MIN_EXP.
27005
27006 2008-01-30  Karl Berry  <karl@gnu.org>
27007
27008         * config/srclist-update: try to preserve x bit on updates.
27009         * config/srclistvars.sh: update for karl.
27010
27011 2008-01-29  Jim Meyering  <meyering@redhat.com>
27012
27013         vasnprintf.c: Avoid warning about unused label
27014         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27015         "overflow" label definition and associated code with the
27016         same cpp condition that guards the sole use of that label.
27017
27018 2008-01-26  Bruno Haible  <bruno@clisp.org>
27019
27020         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27021         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27022         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27023         * lib/isnanl-nolibm.h (isnanl): Likewise.
27024         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27025
27026 2008-01-26  Bruno Haible  <bruno@clisp.org>
27027
27028         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27029         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27030
27031 2008-01-26  Bruno Haible  <bruno@clisp.org>
27032
27033         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27034         GCC >= 4.0 built-in.
27035         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27036
27037 2008-01-26  Bruno Haible  <bruno@clisp.org>
27038
27039         Rename isnan, applicable to 'double' only, to isnand.
27040         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27041         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27042         (configure.ac): Update.
27043         (Include): Replace "isnan.h" with "isnand.h".
27044         * m4/isnand.m4: Renamed from m4/isnan.m4.
27045         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27046         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27047         instead of isnan.c.
27048         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27049         instead of HAVE_ISNAN_IN_LIBC.
27050         (isnand): Renamed from isnan.
27051         * lib/isnand.c: New file.
27052         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27053         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27054         (Makefile.am): Update.
27055         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27056         Include isnand.h instead of isnan.h.
27057         (main): Test isnand instead of isnan.
27058         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27059         isnan-nolibm.
27060         * modules/frexp (Depends-on): Likewise.
27061         * modules/frexp-tests (Depends-on): Likewise.
27062         * modules/frexp-nolibm (Depends-on): Likewise.
27063         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27064         * modules/isfinite (Depends-on): Likewise.
27065         * modules/round-tests (Depends-on): Likewise.
27066         * modules/signbit (Depends-on): Likewise.
27067         * modules/signbit-tests (Depends-on): Likewise.
27068         * modules/snprintf-posix (Depends-on): Likewise.
27069         * modules/sprintf-posix (Depends-on): Likewise.
27070         * modules/trunc-tests (Depends-on): Likewise.
27071         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27072         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27073         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27074         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27075         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27076         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27077         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27078         * modules/vasnprintf-posix (Depends-on): Likewise.
27079         * modules/vasprintf-posix (Depends-on): Likewise.
27080         * modules/vfprintf-posix (Depends-on): Likewise.
27081         * modules/vsnprintf-posix (Depends-on): Likewise.
27082         * modules/vsprintf-posix (Depends-on): Likewise.
27083         * lib/frexp.c: Include isnand.h instead of isnan.h.
27084         (ISNAN): Set to isnand instead of isnan.
27085         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27086         (gl_isfinited): Use isnand instead of isnan.
27087         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27088         (gl_signbitd): Use isnand instead of isnan.
27089         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27090         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27091         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27092         (main): Use isnand instead of isnan.
27093         * tests/test-round1.c: Include isnand.h.
27094         (main): Use isnand instead of isnan.
27095         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27096         (ISNAN): Set to isnand instead of isnan.
27097         * tests/test-trunc1.c: Include isnand.h.
27098         (main): Use isnand instead of isnan.
27099         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27100         (equal): Use isnand instead of isnan.
27101         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27102         isnand-nolibm.
27103         * NEWS: Mention the change.
27104
27105 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27106             Bruno Haible  <bruno@clisp.org>
27107
27108         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27109         the GCC builtins for signbits are present and set
27110         REPLACE_SIGNBIT_USING_GCC if so.
27111         * lib/math.in.h (signbit): Define using GCC builtins if
27112         REPLACE_SIGNBIT_USING_GCC is set.
27113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27114         REPLACE_SIGNBIT_USING_GCC.
27115         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27116
27117 2008-01-25  Jim Meyering  <meyering@redhat.com>
27118
27119         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27120         * lib/poll.c: Include <config.h>, not "config.h".
27121         * tests/test-getaddrinfo.c: Likewise.
27122
27123 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27124
27125         * modules/sockets-tests: New file.
27126
27127 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27128
27129         * modules/sockets: New module, can be used to call WSA_Startup and
27130         WSA_Cleanup when needed.
27131
27132         * lib/sockets.h, lib/sockets.c: New files.
27133
27134         * m4/sockets.m4: New file.
27135
27136         * tests/test-sockets.c: New file.
27137
27138 2008-01-19  Bruno Haible  <bruno@clisp.org>
27139
27140         * doc/posix-headers: Renamed from doc/headers.
27141         * doc/posix-functions: Renamed from doc/functions.
27142         * doc/gnulib.texi: Update.
27143
27144 2008-01-19  Bruno Haible  <bruno@clisp.org>
27145
27146         * doc/glibc-functions/strcasestr.texi: Include contents of
27147         doc/functions/strcasestr.texi, fixing the list of platforms.
27148         * doc/functions/strcasestr.texi: Remove file.
27149
27150 2008-01-19  Bruno Haible  <bruno@clisp.org>
27151
27152         * doc/glibc-functions/memmem.texi: Include contents of
27153         doc/functions/memmem.texi.
27154         * doc/functions/memmem.texi: Remove file.
27155
27156 2008-01-18  Bruno Haible  <bruno@clisp.org>
27157
27158         * doc/glibc-functions/*.texi: New files.
27159         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27160         to use the new files.
27161
27162 2008-01-17  Bruno Haible  <bruno@clisp.org>
27163
27164         * tests/test-gethostname.c (main): Fix printf statement.
27165
27166 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27167
27168         * modules/gethostname-tests: New file.
27169
27170         * tests/test-gethostname.c: New file.
27171
27172 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27173
27174         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27175         used by the UNAME case.  Reported by Bruno Haible
27176         <bruno@clisp.org>.
27177
27178 2008-01-17  Eric Blake  <ebb9@byu.net>
27179
27180         Convert c-strcasestr to be more efficient.
27181         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27182         (Depends-on): Add c-strcase, remove malloca, strnlen.
27183         * tests/test-c-strcasestr.c (main): Enhance test.
27184         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27185
27186 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27187
27188         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27189         Use it in creating po/Makevars.
27190
27191 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27192
27193         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27194         Applications that requires it should initialize libgcrypt
27195         manually.
27196
27197 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27198
27199         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27200
27201 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27202
27203         Fix problem with getdate on mingw32 reported by Simon Josefsson
27204         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27205         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27206         tzname", when deciding whether to declare tzname.
27207         * lib/strftime.c (tzname): Likewise.
27208
27209 2008-01-15  Bruno Haible  <bruno@clisp.org>
27210
27211         Work around a MacOS X 10.5 bug in frexpl().
27212         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27213         * doc/functions/frexpl.texi: Document the bug.
27214         Reported by Elias Pipping <pipping@gentoo.org>.
27215
27216 2008-01-14  Eric Blake  <ebb9@byu.net>
27217
27218         Touch up previous patch.
27219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27220         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27221
27222         Convert strcasestr module to use Two-Way algorithm.
27223         * modules/strcasestr-simple: New module, based on the old
27224         strcasestr, but with Two-Way rather than KMP.
27225         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27226         * lib/string.in.h (rpl_strcasestr): Declare.
27227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27228         performance.
27229         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27230         * modules/string (Makefile.am): Support strcasestr.
27231         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27232         * modules/strcasestr-tests (Depends-on): Check for alarm.
27233         * tests/test-strcasestr.c: Augment test.
27234         * lib/str-two-way.h: Clean up stray macro.
27235         * NEWS: Document new module.
27236         * MODULES.html.sh (string handling): Likewise.
27237         * doc/functions/strcasestr.texi: New file.
27238         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27239         here, since it is not a POSIX function.
27240
27241 2008-01-14  Colin Watson  <cjwatson@debian.org>
27242             Bruno Haible  <bruno@clisp.org>
27243
27244         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27245         works fine; if not, set REPLACE_STRSIGNAL.
27246         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27248         REPLACE_STRSIGNAL.
27249         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27250         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27251         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27252
27253 2008-01-14  Bruno Haible  <bruno@clisp.org>
27254
27255         * modules/strsignal (Include): Change to <string.h>.
27256
27257 2008-01-14  Colin Watson  <cjwatson@debian.org>
27258
27259         * modules/argp (Notice): Add a notice recommending to change
27260         XGETTEXT_OPTIONS.
27261         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27262
27263 2008-01-13  Colin Watson  <cjwatson@debian.org>
27264
27265         * modules/strsignal-tests: New file.
27266         * tests/test-strsignal.c: New file.
27267
27268         * lib/strsignal.c: New file, from glibc with modifications.
27269         * lib/siglist.h: New file, from glibc with modifications.
27270         * lib/string.in.h (strsignal): New declaration.
27271         * m4/strsignal.m4: New file.
27272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27273         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27274         * modules/strsignal: New file.
27275         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27276         HAVE_DECL_STRSIGNAL.
27277
27278 2008-01-13  Bruno Haible  <bruno@clisp.org>
27279
27280         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27281         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27282         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27283         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27284
27285 2008-01-13  Bruno Haible  <bruno@clisp.org>
27286
27287         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27288         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27289         * lib/argp.h (__attribute__): Likewise.
27290         * lib/c-stack.c (__attribute__): Likewise.
27291         * lib/error.h (__attribute__): Likewise.
27292         * lib/fts.c (__attribute__): Likewise.
27293         * lib/openat.h (__attribute__): Likewise.
27294         * lib/stdio.in.h (__attribute__): Likewise.
27295         * lib/string.in.h (__attribute__): Likewise.
27296         * lib/utimens.c (__attribute__): Likewise.
27297         * lib/vasnprintf.h (__attribute__): Likewise.
27298         * lib/xalloc.h (__attribute__): Likewise.
27299         * lib/xprintf.h (__attribute__): Likewise.
27300         * lib/xstrtol.h (__attribute__): Likewise.
27301         * lib/xvasprintf.h (__attribute__): Likewise.
27302
27303 2008-01-12  Bruno Haible  <bruno@clisp.org>
27304
27305         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27306         * doc/glibc-headers/a.out.texi: New file.
27307         * doc/glibc-headers/aliases.texi: New file.
27308         * doc/glibc-headers/alloca.texi: New file.
27309         * doc/glibc-headers/ar.texi: New file.
27310         * doc/glibc-headers/argp.texi: New file.
27311         * doc/glibc-headers/argz.texi: New file.
27312         * doc/glibc-headers/byteswap.texi: New file.
27313         * doc/glibc-headers/crypt.texi: New file.
27314         * doc/glibc-headers/endian.texi: New file.
27315         * doc/glibc-headers/envz.texi: New file.
27316         * doc/glibc-headers/err.texi: New file.
27317         * doc/glibc-headers/error.texi: New file.
27318         * doc/glibc-headers/execinfo.texi: New file.
27319         * doc/glibc-headers/fpu_control.texi: New file.
27320         * doc/glibc-headers/fstab.texi: New file.
27321         * doc/glibc-headers/fts.texi: New file.
27322         * doc/glibc-headers/getopt.texi: New file.
27323         * doc/glibc-headers/ieee754.texi: New file.
27324         * doc/glibc-headers/ifaddrs.texi: New file.
27325         * doc/glibc-headers/libintl.texi: New file.
27326         * doc/glibc-headers/mcheck.texi: New file.
27327         * doc/glibc-headers/mntent.texi: New file.
27328         * doc/glibc-headers/obstack.texi: New file.
27329         * doc/glibc-headers/paths.texi: New file.
27330         * doc/glibc-headers/printf.texi: New file.
27331         * doc/glibc-headers/pty.texi: New file.
27332         * doc/glibc-headers/resolv.texi: New file.
27333         * doc/glibc-headers/shadow.texi: New file.
27334         * doc/glibc-headers/sysexits.texi: New file.
27335         * doc/glibc-headers/ttyent.texi: New file.
27336
27337 2008-01-12  Jim Meyering  <meyering@redhat.com>
27338
27339         announce-gen: emit Gnulib's git-based version string.
27340         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27341         New option --gnulib-version=V, where V is expected to be
27342         the output of running git describe in the gnulib directory.
27343         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27344         not useful, and plan to stop publishing an xdelta file with each
27345         coreutils release.
27346
27347         * build-aux/announce-gen: Also check for lzma-compressed files.
27348
27349 2008-01-11  Bruno Haible  <bruno@clisp.org>
27350
27351         * tests/test-memmem.c (main): Increase maximum allowed time.
27352         * tests/test-strstr.c (main): Likewise.
27353
27354 2008-01-11  Bruno Haible  <bruno@clisp.org>
27355
27356         * doc/functions/memmem.texi: Add more precisions about platforms.
27357         * doc/functions/strstr.texi: Likewise.
27358
27359 2008-01-10  Eric Blake  <ebb9@byu.net>
27360
27361         * m4/strstr.m4: Delete cruft from copy-n-paste.
27362         Reported by Bruno Haible.
27363
27364 2008-01-10  Bruno Haible  <bruno@clisp.org>
27365
27366         Make c-strstr rely on strstr.
27367         * lib/c-strstr.c: Don't include str-kmp.h.
27368         (c_strstr): Define in terms of strstr.
27369         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27370         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27371
27372 2008-01-10  Bruno Haible  <bruno@clisp.org>
27373
27374         * doc/gnulib.texi (String Functions in C Locale): New section.
27375         * doc/c-ctype.texi: New file.
27376         * doc/c-strcase.texi: New file.
27377         * doc/c-strcaseeq.texi: New file.
27378         * doc/c-strcasestr.texi: New file.
27379         * doc/c-strstr.texi: New file.
27380         * doc/c-strtod.texi: New file.
27381         * doc/c-strtold.texi: New file.
27382
27383 2008-01-10  Eric Blake  <ebb9@byu.net>
27384
27385         * lib/relocatable.h: Fix a comment.
27386
27387 2008-01-10  Eric Blake  <ebb9@byu.net>
27388
27389         Share two-way algorithm.
27390         * lib/str-two-way.h: New file, merged from...
27391         * lib/memmem.c: ...here...
27392         * lib/strstr.c: ...and here.
27393         * modules/memmem (Files): Use it.
27394         * modules/strstr (Files): Likewise.
27395
27396         Avoid quadratic strstr implementations.
27397         * lib/strstr.c: New file.
27398         * m4/strstr.m4: Likewise.
27399         * modules/strstr: Likewise.
27400         * modules/strstr-tests: Likewise.
27401         * tests/test-strstr.c: Likewise.
27402         * lib/string.in.h (rpl_strstr): Declare.
27403         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27405         * modules/string (Makefile.am): Likewise.
27406         * MODULES.html.sh (string handling): Mention new module.
27407         * doc/functions/strstr.texi (strstr): Document the bug.
27408
27409 2008-01-10  Bruno Haible  <bruno@clisp.org>
27410
27411         * lib/relocatable.h (relocate): State whether result is freshly
27412         allocated or not.
27413         * lib/relocatable.c (relocate): Return a freshly allocated string
27414         instead of a pointer to a privately held string.
27415         Reported by Sylvain Beucler <beuc@gnu.org>.
27416
27417 2008-01-10  Colin Watson  <cjwatson@debian.org>
27418
27419         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27420         s/S_ISNLK/S_ISLNK/.
27421
27422 2008-01-09  Bruno Haible  <bruno@clisp.org>
27423
27424         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27425         and other files.
27426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27427         if it's only a guess.
27428         * modules/memmem: Simplify by depending on memmem-simple.
27429
27430 2008-01-09  Bruno Haible  <bruno@clisp.org>
27431
27432         Work around OpenBSD 4.0 tdelete() bug.
27433         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27434         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27435         macros and don't redefine the enum values.
27436         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27437         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27438         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27439
27440 2008-01-09  Bruno Haible  <bruno@clisp.org>
27441
27442         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27443         (main): Don't perform the tests if setlocale did not install a UTF-8
27444         locale. Needed on OpenBSD 4.0.
27445         * modules/wcwidth-tests (Depends-on): Add localcharset.
27446
27447 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27448
27449         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27450         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27451         * NEWS: announce this.
27452         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27453
27454 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27455         and Eric Blake  <ebb9@byu.net>
27456
27457         Add memmem-simple module.
27458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27459         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27460         * modules/memmem-simple: New file.
27461         * modules/memmem (Description): Tweak.
27462         * MODULES.html.sh (string handling): Mention new module.
27463         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27464         addressed by memmem-simple.
27465         * NEWS: Document the difference.
27466
27467 2008-01-09  Eric Blake  <ebb9@byu.net>
27468
27469         Give gcc some memmem optimization hints.
27470         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27471         (strcasestr): Declare as pure.
27472         * modules/memmem (Maintainer): Claim my implementation.
27473
27474 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27475
27476         Support AIX 6.1 and higher.
27477         * build-aux/config.libpath: Likewise.
27478         * build-aux/config.rpath: Likewise.
27479
27480 2008-01-08  Jim Meyering  <meyering@redhat.com>
27481             Bruno Haible  <bruno@clisp.org>
27482
27483         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27484         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27485         Reported by Peter Fales in
27486         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27487
27488 2008-01-08  Bruno Haible  <bruno@clisp.org>
27489
27490         * modules/unictype/category-of (Depends-on): Add
27491         unictype/category-none.
27492         * modules/unictype/category-and-tests (Depends-on): Add
27493         unictype/category-{L,N,Lu,Nd}.
27494         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27495         * modules/unictype/category-or-tests (Depends-on): Add
27496         unictype/category-{L,N}.
27497         * modules/unictype/category-name-tests (Depends-on): Add
27498         unictype/category-{Z,Nl}.
27499         Reported by Simon Josefsson.
27500
27501 2008-01-08  Bruno Haible  <bruno@clisp.org>
27502
27503         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27504         convention better.
27505         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27506         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27507         Reported by Peter Miller <millerp@canb.auug.org.au>.
27508
27509 2008-01-08  Eric Blake  <ebb9@byu.net>
27510
27511         Rewrite memmem to guarantee linear complexity without malloc.
27512         * lib/memmem.c (memmem): Use Two-Way rather than
27513         Knuth-Morris-Pratt, to allow O(1) space usage.
27514         (critical_factorization, two_way_short_needle)
27515         (two_way_long_needle): New functions.
27516         (knuth_morris_pratt): Delete.
27517         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27518         Add stdint.
27519         * tests/test-memmem.c (main): Add tests for periodic needle and
27520         sublinear performance.
27521         * doc/functions/memmem.texi (memmem): Document other deficiencies
27522         in cygwin and older glibc.
27523
27524 2008-01-08  Bruno Haible  <bruno@clisp.org>
27525
27526         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27527         augmentation.
27528
27529 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27530
27531         Add a configure time option: --disable-acl.
27532         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27533         AC_ARG_ENABLE(acl).
27534
27535 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27536
27537         * tests/test-localename.c: Don't include obsolete "setenv.h".
27538
27539         * modules/localename-tests (Depends-on): Need unsetenv.
27540
27541 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27542
27543         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27544
27545 2008-01-06  Colin Watson  <cjwatson@debian.org>
27546
27547         * users.txt: Add man-db.
27548
27549 2008-01-07  Bruno Haible  <bruno@clisp.org>
27550
27551         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27552         previous section name.
27553
27554 2008-01-07  Bruno Haible  <bruno@clisp.org>
27555
27556         * lib/progname.c (set_program_name): Don't strip off a leading
27557         "lt-" prefix outside a .libs directory.
27558         Suggested by Paul Eggert.
27559
27560 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27561             Bruno Haible  <bruno@clisp.org>
27562
27563         Improve memory cleanup in 'relocatable' module.
27564         * lib/relocatable.h (compute_curr_prefix): Change return type to
27565         'char *'.
27566         * lib/relocatable.c (compute_curr_prefix): Change return type to
27567         'char *'. Free curr_installdir after use.
27568         (relocate): Free curr_prefix_better after use.
27569         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27570
27571 2008-01-01  Bruno Haible  <bruno@clisp.org>
27572
27573         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27574         failure on older glibc systems.
27575         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27576
27577 2008-01-05  Eric Blake  <ebb9@byu.net>
27578
27579         Avoid quadratic system memmem.
27580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27581         Reported by Ralf Wildenhues.
27582
27583         Fix memmem test for mingw.
27584         * modules/memmem-tests (configure.ac): Check for alarm.
27585         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27586         it.
27587         * doc/functions/memmem.texi: New file.
27588         * doc/gnulib.texi (Function Substitutes): Add memmem.
27589         Reported by Bruno Haible.
27590
27591 2008-01-04  Bruno Haible  <bruno@clisp.org>
27592
27593         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27594         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27595         gl_HEADER_STRING_H_DEFAULTS.
27596
27597 2008-01-04  Eric Blake  <ebb9@byu.net>
27598
27599         Shorten duration of memmem test.
27600         * tests/test-memmem.c (main): Use alarm to declare failure if test
27601         is taking too long.
27602         Reported by Ralf Wildenhues.
27603
27604 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27605
27606         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27607         string, needed by strerror.
27608
27609 2008-01-03  Colin Watson  <cjwatson@debian.org>
27610             Bruno Haible  <bruno@clisp.org>
27611
27612         * doc/gnulib-tool.texi (Localization): New section.
27613
27614 2008-01-02  Bruno Haible  <bruno@clisp.org>
27615
27616         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27617         variables to 'unsigned char *' type.
27618         Reported by Paul Eggert.
27619
27620 2008-01-02  Jim Meyering  <jim@meyering.net>
27621
27622         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27623
27624 2007-12-31  Jim Meyering  <jim@meyering.net>
27625
27626         Avoid use of private FTS type name.
27627         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27628
27629 2007-12-30  Karl Berry  <karl@gnu.org>
27630
27631         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27632         work around defect in Texinfo and/or the standalone Info browser.
27633
27634 2007-12-30  Bruno Haible  <bruno@clisp.org>
27635
27636         Unify 5 copies of the KMP code.
27637         * lib/str-kmp.h: New file.
27638         * lib/c-strcasestr.c: Include str-kmp.h.
27639         (knuth_morris_pratt): Remove function.
27640         (c_strcasestr): Update.
27641         * lib/c-strstr.c: Include str-kmp.h.
27642         (knuth_morris_pratt): Remove function.
27643         (c_strcasestr): Update.
27644         * lib/mbscasestr.c: Include str-kmp.h.
27645         (knuth_morris_pratt_unibyte): Remove function.
27646         * lib/mbsstr.c: Include str-kmp.h.
27647         (knuth_morris_pratt_unibyte): Remove function.
27648         * lib/strcasestr.c: Include str-kmp.h.
27649         (knuth_morris_pratt): Remove function.
27650         (strcasestr): Update.
27651         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27652         * modules/c-strstr (Files): Likewise.
27653         * modules/mbscasestr (Files): Likewise.
27654         * modules/mbsstr (Files): Likewise.
27655         * modules/strcasestr (Files): Likewise.
27656         Suggested by Paul Eggert.
27657
27658 2007-12-30  Bruno Haible  <bruno@clisp.org>
27659
27660         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27661         defined.
27662
27663 2007-12-30  Bruno Haible  <bruno@clisp.org>
27664
27665         * lib/xmalloca.h: Include xalloc.h.
27666         (xnmalloca): New macro.
27667
27668 2007-12-30  Bruno Haible  <bruno@clisp.org>
27669
27670         * lib/malloca.h (nmalloca): New macro.
27671         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27672         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27673         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27674         knuth_morris_pratt_multibyte): Likewise.
27675         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27676         knuth_morris_pratt_multibyte): Likewise.
27677         * lib/memmem.c (knuth_morris_pratt): Likewise.
27678         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27679
27680 2007-12-25  Bruno Haible  <bruno@clisp.org>
27681
27682         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
27683         * lib/glob.c: Don't include openat.h.
27684         (link_exists2_p): Add back the code that deals with the
27685         !GLOB_ALTDIRFUNC case.
27686         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
27687         let it do the filename concatenation.
27688         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
27689         * modules/glob (Depends-on): Remove openat.
27690
27691 2007-12-31  Bruno Haible  <bruno@clisp.org>
27692
27693         * modules/dirfd (License): Change to LGPLv2+.
27694         Approved by Jim Meyering.
27695
27696 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27697
27698         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
27699         when multiplying M by sizeof (size_t).
27700
27701 2007-12-10  Martin Lambers  <marlam@marlam.de>
27702
27703         Override getpagesize on mingw.
27704         * lib/getpagesize.c: New file.
27705         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
27706         * modules/getpagesize (Files): Add lib/getpagesize.c.
27707         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
27708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27709         REPLACE_GETPAGESIZE.
27710         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
27711
27712 2007-12-25  Bruno Haible  <bruno@clisp.org>
27713
27714         * modules/localcharset (Notice): New field.
27715         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
27716         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
27717
27718 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27719             Bruno Haible  <bruno@clisp.org>
27720
27721         Avoid using the syntax symbol() in formatted documentation.
27722         * MODULES.html.sh (func_module): When replacing symbol() with a
27723         hyperlink, remove the parentheses. Show an error if some remain.
27724         Recognize and render the '...' syntax.
27725         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
27726         Rework. Add paragraph about GCC's inlining.
27727         * doc/alloca.texi: Likewise.
27728         * doc/error.texi: Remove parentheses from symbol reference.
27729         * doc/gnulib-intro.texi: Likewise.
27730         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
27731         * modules/fnmatch (Description): Reword to say "the ... function".
27732         * modules/full-read (Description): Likewise.
27733         * modules/full-write (Description): Likewise.
27734         * modules/safe-read (Description): Likewise.
27735         * modules/safe-write (Description): Likewise.
27736         * modules/strchrnul (Description): Likewise.
27737         * modules/trim (Description): Likewise.
27738         * modules/error (Description): Remove parentheses from symbol
27739         references.
27740         * modules/verror (Description): Likewise.
27741         Reported by Karl Berry.
27742
27743 2007-12-25  Bruno Haible  <bruno@clisp.org>
27744
27745         Fixup after 2007-10-16 commit.
27746         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
27747
27748 2007-12-24  Bruno Haible  <bruno@clisp.org>
27749
27750         Make --enable-relocatable work with DESTDIR.
27751         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
27752         to compute installdir from destprog.
27753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
27754         also set the RELOC_DESTDIR variable.
27755         Reported by Левашев Иван <octagram@bluebottle.com>.
27756
27757 2007-12-24  Bruno Haible  <bruno@clisp.org>
27758
27759         Fix link error due to xalloc_die().
27760         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
27761         of xreadlink.
27762         * lib/relocwrapper.c: Update comments.
27763         * build-aux/install-reloc: Remove xreadlink.c from file list.
27764         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
27765         xreadlink.c.
27766         Reported by Левашев Иван <octagram@bluebottle.com>.
27767
27768 2007-12-24  Bruno Haible  <bruno@clisp.org>
27769
27770         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
27771         * lib/setenv.h: Remove file.
27772         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
27773         lib/setenv.h.
27774         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
27775         (Depends-on): Add stdlib.
27776         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
27777         gl_FUNC_UNSETENV.
27778         (Include): Replace setenv.h with <stdlib.h>.
27779         * modules/unsetenv: New file.
27780         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
27781         * lib/unsetenv.c: Include <stdlib.h> first.
27782         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
27783         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
27784         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
27785         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
27786         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
27787         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
27789         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
27790         * doc/functions/unsetenv.texi: Update.
27791         * modules/xsetenv (Depends-on): Add unsetenv.
27792         * modules/getdate (Depends-on): Likewise.
27793         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
27794         * lib/xsetenv.c: Don't include setenv.h.
27795         * lib/getdate.y: Likewise.
27796         * lib/relocwrapper.c: Likewise.
27797         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
27798         (Depends-on): Add stdlib.
27799         * NEWS: Mention the changes.
27800         Reported by Левашев Иван <octagram@bluebottle.com>.
27801
27802 2007-12-23  Bruno Haible  <bruno@clisp.org>
27803
27804         * lib/memmem.c (memmem): Use lowercase variable names. Tab
27805         indentation.
27806
27807 2007-12-23  Bruno Haible  <bruno@clisp.org>
27808
27809         * lib/c-strcasestr.c: Add more comments.
27810         * lib/c-strstr.c: Likewise.
27811         * lib/mbscasestr.c: Likewise.
27812         * lib/mbsstr.c: Likewise.
27813         * lib/strcasestr.c: Likewise.
27814         * lib/memmem.c: Likewise.
27815
27816 2007-12-23  Bruno Haible  <bruno@clisp.org>
27817
27818         * tests/test-memmem.c: Include <string.h> first.
27819
27820 2007-12-22  Bruno Haible  <bruno@clisp.org>
27821
27822         * gnulib-tool (func_create_testdir): Change $auxdir while generating
27823         the contents of $testsbase.
27824         Reported by Ralf Wildenhues.
27825
27826 2007-12-22  Bruno Haible  <bruno@clisp.org>
27827
27828         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
27829         two variables local_ldadd_before, local_ldadd_last.
27830
27831 2007-12-20  Eric Blake  <ebb9@byu.net>
27832
27833         Work around circular library issue when cross-compiling.
27834         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
27835         that progname.o does not need to pull in rpl_memcmp.
27836
27837 2007-12-19  Eric Blake  <ebb9@byu.net>
27838
27839         Fix memmem to avoid O(n^2) worst-case complexity.
27840         * lib/memmem.c (knuth_morris_pratt): New function.
27841         (memmem): Use it if first few naive iterations fail.
27842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
27843         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
27844         * modules/memchr (License): Likewise.
27845         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
27846         malloca.
27847         * tests/test-memmem.c: Rewrite, borrowing ideas from
27848         test-mbsstr1.c; the old version wouldn't even compile!
27849         * modules/memmem-tests: New file.
27850         * lib/string.in.h (rpl_memmem): Add declaration.
27851         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
27852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
27853         REPLACE_MEMMEM.
27854
27855 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27856
27857         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
27858         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
27859         before any system include files, and undef after them all.  This
27860         should fix a problem on VMS reported by John E. Malmberg in
27861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
27862
27863 2007-12-17  Eric Blake  <ebb9@byu.net>
27864
27865         Revert addition of verify, for BSD/OS.
27866         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
27867         can't handle large files, for the sake of obsolete platforms.
27868         * modules/fseeko (Depends-on): Remove verify.
27869         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
27870         * doc/functions/ftello.texi (ftello): Likewise.
27871         * doc/functions/fgetpos.texi (fgetpos): Likewise.
27872         Reported by Larry Jones.
27873
27874 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
27875
27876         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
27877         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
27878
27879 2007-12-17  Jim Meyering  <meyering@redhat.com>
27880
27881         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
27882         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
27883         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
27884         * modules/getcwd (Depends-on): Add openat.
27885         Reported by Petr Salinger.
27886
27887 2007-12-17  Bruno Haible  <bruno@clisp.org>
27888
27889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
27890         avoid a segmentation fault of the configure test on x86_64 systems.
27891
27892 2007-12-15  Jim Meyering  <meyering@redhat.com>
27893
27894         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
27895
27896 2007-12-13  Eric Blake  <ebb9@byu.net>
27897
27898         Another fseek test.
27899         * tests/test-fseek.c (main): Also test ungetc handling.
27900         * tests/test-fseeko.c (main): Likewise.
27901         * modules/fseeko (Depends-on): Add verify.
27902         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
27903         large.
27904         Reported by Larry Jones.
27905
27906         Fix fseeko on mingw.
27907         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
27908         seek.
27909
27910         Beef up fseek tests.
27911         * tests/test-fseek.c (main): Also test eof handling.
27912         * tests/test-fseeko.c (main): Likewise.
27913         Reported by Larry Jones.
27914
27915 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
27916
27917         Fix fseeko on BSD-based platforms.
27918         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
27919         successful seek.
27920
27921 2007-12-12  Eric Blake  <ebb9@byu.net>
27922
27923         Allow circular dependency of separate libtests.a
27924         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
27925         when use_libtests.
27926
27927 2007-12-11  Eric Blake  <ebb9@byu.net>
27928
27929         Fix bug with -0.0L in previous patch.
27930         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
27931         * tests/test-isnan.c (main): Also test on zeroes.
27932         * tests/test-isnanf.c (main): Likewise.
27933         * tests/test-isnanl.h (main): Likewise.
27934
27935         Detect pseudo-denormals on x86 even when cross-compiling.
27936         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
27937         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
27938         invalid bit patterns that happen to satisfy ==.
27939
27940         Avoid link failures with separate libtests.a.
27941         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
27942         last, to satisfy circular dependencies.
27943
27944 2007-12-11  Eric Blake  <ebb9@byu.net>
27945         and Bruno Haible  <bruno@clisp.org>
27946
27947         Fix OpenBSD 4.0 <float.h> handling of long double.
27948         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
27949         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
27950         * doc/headers/float.texi (float.h): Document OpenBSD bug.
27951
27952 2007-12-11  Jim Meyering  <meyering@redhat.com>
27953
27954         * users.txt: Add libvirt.
27955
27956         Support versions of autoconf prior to 2.59c.
27957         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
27958         if it is not already defined.
27959
27960 2007-12-09  Bruno Haible  <bruno@clisp.org>
27961
27962         Let 'gnulib-tool --import' collect sources needed for the tests in
27963         tests/ rather than in lib/.
27964         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
27965         argument. If true, add rules to generate libtests.a, and put libtests.a
27966         into $(LDADD). Consider source files in subdirectories and set
27967         uses_subdirs.
27968         (func_emit_initmacro_start, func_emit_initmacro_end,
27969         func_emit_initmacro_done): Pass all arguments explicitly.
27970         (func_import): Determine two module lists main_modules,
27971         testsrelated_modules. Determine use_libtests. Determine two variables
27972         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
27973         instead of just sed_transform_lib_file. Determine two variables
27974         main_files and testsrelated_files. Compute 'files' as the union of
27975         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
27976         func_add_or_update. In the generated gnulib-comp.m4, collect the
27977         object files for tests/ in different variables than those for lib/.
27978         Substitute LIBTESTS_LIBDEPS.
27979         (func_create_testdir): Combine the uses_subdirs results from
27980         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
27981
27982 2007-12-09  Bruno Haible  <bruno@clisp.org>
27983
27984         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
27985         the build-aux directory.
27986
27987 2007-12-09  Bruno Haible  <bruno@clisp.org>
27988
27989         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
27990         introduced on 2006-09-09.
27991
27992 2007-12-07  Jim Meyering  <meyering@redhat.com>
27993
27994         Let these macros work also with autoconf-2.59.
27995         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
27996         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
27997         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27998
27999 2007-12-06  Jim Meyering  <meyering@redhat.com>
28000
28001         Avoid a configure-time syntax error in gl_FUNC_ACL.
28002         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28003         function in each branch, before testing the cache variable.
28004
28005 2007-12-04  Eric Blake  <ebb9@byu.net>
28006
28007         Make scripts executable.
28008         * build-aux/config.guess: Add execute permissions.
28009         * build-aux/config.sub: Likewise.
28010         * build-aux/gendocs.sh: Likewise.
28011
28012         Fix frexp on mingw.
28013         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28014         cross-compiling.
28015         * doc/functions/frexp.texi (frexp): Document the bug.
28016
28017         Make cygwin fseeko check more reliable.
28018         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28019         version numbers, rather than unrelated feature check.
28020         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28021         * doc/functions/ftello.texi (ftello): Likewise.
28022         Reported by Bruno Haible.
28023
28024         * m4/strerror.m4: Bump version number.
28025
28026 2007-12-03  Bruno Haible  <bruno@clisp.org>
28027
28028         * doc/functions/mprotect.texi: Mention the mingw problem.
28029
28030 2007-12-03  Eric Blake  <ebb9@byu.net>
28031
28032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28033         REPLACE_STRERROR is initialized before this macro.
28034
28035 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28036
28037         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28038         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28039         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28040         put -lsec in even for programs other than 'ls'.  This fixes a problem
28041         for gettext reported by Bruno Haible in
28042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28043         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28044         Add support for Solaris 10.  This isn't efficient, but should get the
28045         job done for now.
28046
28047 2007-12-03  James Youngman  <jay@gnu.org>
28048
28049         * doc/regexprops-generic.texi: change "an close-group" to "a
28050         close-group" and "illegal" to "not allowed".
28051
28052 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28053
28054         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28055         pr_byname.h. Needed for the rare case when the maintainer has done
28056         "make maintainer-clean" in the source directory and then attempts a
28057         build outside the source directory.
28058         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28059         scripts_byname.h.
28060
28061 2007-12-02  Martin Lambers <marlam@marlam.de>
28062             Bruno Haible  <bruno@clisp.org>
28063
28064         * lib/getpagesize.h: Remove file.
28065         * lib/unistd.in.h: Include declaration of getpagesize here.
28066         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28067         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28068         HAVE_SYS_PARAM_H.
28069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28070         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28071         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28072         (Depends-on): Add unistd.
28073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28074         (Include): Use <unistd.h> instead of getpagesize.h.
28075         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28076         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28077         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28078         gl_GETPAGESIZE invocation, already handled by module dependency.
28079         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28080
28081 2007-12-02  Bruno Haible  <bruno@clisp.org>
28082
28083         * modules/strings-tests: New file.
28084         * tests/test-strings.c: New file.
28085
28086         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28087         * lib/strings.in.h: New file.
28088         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28089         * m4/strings_h.m4: New file.
28090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28091         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28092         * modules/strings: New file.
28093         * modules/string (Makefile.am): Update.
28094         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28095         Reported by Karl Berry.
28096
28097 2007-12-01  Eric Blake  <ebb9@byu.net>
28098
28099         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28100         accomodate fix in cygwin 1.5.25.
28101
28102 2007-12-01  Jim Meyering  <meyering@redhat.com>
28103
28104         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28105         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28106         that would inhibit utf8-optimization of a regexp containing line-
28107         or buffer-anchors, e.g., `^', `$'.
28108
28109 2007-11-30  Bruno Haible  <bruno@clisp.org>
28110
28111         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28112         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28113         glthread_recursive_lock_init.
28114         * lib/lock.c (glthread_recursive_lock_init)
28115         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28116         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28117
28118 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28119
28120         New function qset_acl, like set_acl but with syscall semantics.
28121         * lib/acl.h (qset_acl): New decl.
28122         * lib/acl.c (qset_acl): New function.
28123         (set_acl): Use new function.  Use more-consistent diagnostics.
28124
28125 2007-11-28  Jim Meyering  <meyering@redhat.com>
28126
28127         * modules/physmem (License): Change from GPL to LGPLv2+.
28128
28129 2007-11-26  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28132         'long double' type has excess precision.
28133         Reported by Jim Meyering in
28134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28135
28136 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28137
28138         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28139         Sync from <http://gnu.org/licenses>.
28140         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28141         with license text from same location.
28142         * doc/maintain.texi, doc/standards.texi:  Sync from
28143         <http://savannah.gnu.org/projects/gnustandards>.
28144
28145 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28146         and Jim Meyering  <meyering@redhat.com>
28147
28148         Adjust getdate' grammar to accept a slightly more regular language.
28149         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28150         Before, the former was rejected.
28151         * lib/getdate.y (digits_to_date_time): New function, factored
28152         out of ...
28153         (number): ...here.  Just call digits_to_date_time.
28154         (hybrid): New non-terminal to handle an <unsigned number,
28155         signed relative offset> sequence consistently.
28156
28157 2007-11-18  Jim Meyering  <meyering@redhat.com>
28158
28159         Pull my changes from coreutils:
28160         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28161         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28162         use of $gnulib_tool_option_extras, so that it's separated from the
28163         preceding argument.
28164
28165         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28166         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28167         parent destination directories before copying a file into place.
28168
28169 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28170
28171         bootstrap: work also with 4-argument variant of AC_INIT
28172         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28173
28174 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28175
28176         Port test-getaddrinfo to Solaris.
28177         Problem reported by Bruno Haible in
28178         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28179         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28180         explanation of setting 'hints'.
28181         Don't reject an implementation merely because it returns EAI_SERVICE.
28182         (EAI_SERVICE): Define to 0 if not defined.
28183
28184 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28185
28186         The license of gnu-make and posix-shell is now "GPLed build tool".
28187         * modules/gnu-make (License): Likewise.
28188         * modules/posix-shell (License): Likewise.
28189
28190         New module posix-shell, for determining a POSIX shell
28191         or perhaps something that is close enough to a POSIX shell.
28192         * m4/posix-shell.m4: New file.
28193         * modules/posix-shell: New file.
28194
28195         * MODULES.html.sh: Mention new module.
28196
28197         New module gnu-make, for determining whether we're using GNU Make.
28198         * m4/gnu-make.m4: New file.
28199         * modules/gnu-make: New file.
28200         * MODULES.html.sh: Mention new module.
28201
28202 2007-11-14  Jim Meyering  <meyering@redhat.com>
28203
28204         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28205         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28206         use this macro to create a function _definition_.
28207         Remove useless "#undef ARGMATCH_DIE".
28208
28209 2007-11-14  Bruno Haible  <bruno@clisp.org>
28210
28211         * lib/config.charset: Update for OpenBSD 4.1.
28212         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28213
28214 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         Document 64-bit #if problems in stdint.texi.
28217         * doc/headers/stdint.texi (stdint.h): Mention problems with
28218         64-bit-#if, and how to work around them.
28219
28220         Don't insist on 'long long int' support in the preprocessor.  It
28221         breaks too many things.  For example, PRIdMAX still uses a 'long
28222         long int' format with the latest Sun compiler, even though
28223         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28224         preprocessor problem.  This causes the latest coreutils to dump
28225         core on Solaris 10 sparc with the Sun C compiler.
28226         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28227         the troublesome expressions at configure-time, not at #if-time.
28228         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28229         preprocessor.
28230         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28231         compile-time C checks, done at 'configure'-time.
28232         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28233         * modules/inttypes (Makefile): Substitute the new symbols that
28234         gl_INTTYPES_H now generates.
28235         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28236
28237 2007-11-12  Bruno Haible  <bruno@clisp.org>
28238
28239         Tests for Unicode character classification functions.
28240
28241         * modules/unictype/bidicategory-byname-tests: New file.
28242         * modules/unictype/bidicategory-name-tests: New file.
28243         * modules/unictype/bidicategory-of-tests: New file.
28244         * modules/unictype/bidicategory-test-tests: New file.
28245         * modules/unictype/block-list-tests: New file.
28246         * modules/unictype/block-of-tests: New file.
28247         * modules/unictype/block-test-tests: New file.
28248         * modules/unictype/category-C-tests: New file.
28249         * modules/unictype/category-Cc-tests: New file.
28250         * modules/unictype/category-Cf-tests: New file.
28251         * modules/unictype/category-Cn-tests: New file.
28252         * modules/unictype/category-Co-tests: New file.
28253         * modules/unictype/category-Cs-tests: New file.
28254         * modules/unictype/category-L-tests: New file.
28255         * modules/unictype/category-Ll-tests: New file.
28256         * modules/unictype/category-Lm-tests: New file.
28257         * modules/unictype/category-Lo-tests: New file.
28258         * modules/unictype/category-Lt-tests: New file.
28259         * modules/unictype/category-Lu-tests: New file.
28260         * modules/unictype/category-M-tests: New file.
28261         * modules/unictype/category-Mc-tests: New file.
28262         * modules/unictype/category-Me-tests: New file.
28263         * modules/unictype/category-Mn-tests: New file.
28264         * modules/unictype/category-N-tests: New file.
28265         * modules/unictype/category-Nd-tests: New file.
28266         * modules/unictype/category-Nl-tests: New file.
28267         * modules/unictype/category-No-tests: New file.
28268         * modules/unictype/category-P-tests: New file.
28269         * modules/unictype/category-Pc-tests: New file.
28270         * modules/unictype/category-Pd-tests: New file.
28271         * modules/unictype/category-Pe-tests: New file.
28272         * modules/unictype/category-Pf-tests: New file.
28273         * modules/unictype/category-Pi-tests: New file.
28274         * modules/unictype/category-Po-tests: New file.
28275         * modules/unictype/category-Ps-tests: New file.
28276         * modules/unictype/category-S-tests: New file.
28277         * modules/unictype/category-Sc-tests: New file.
28278         * modules/unictype/category-Sk-tests: New file.
28279         * modules/unictype/category-Sm-tests: New file.
28280         * modules/unictype/category-So-tests: New file.
28281         * modules/unictype/category-Z-tests: New file.
28282         * modules/unictype/category-Zl-tests: New file.
28283         * modules/unictype/category-Zp-tests: New file.
28284         * modules/unictype/category-Zs-tests: New file.
28285         * modules/unictype/category-and-not-tests: New file.
28286         * modules/unictype/category-and-tests: New file.
28287         * modules/unictype/category-byname-tests: New file.
28288         * modules/unictype/category-name-tests: New file.
28289         * modules/unictype/category-none-tests: New file.
28290         * modules/unictype/category-of-tests: New file.
28291         * modules/unictype/category-or-tests: New file.
28292         * modules/unictype/category-test-withtable-tests: New file.
28293         * modules/unictype/combining-class-tests: New file.
28294         * modules/unictype/ctype-alnum-tests: New file.
28295         * modules/unictype/ctype-alpha-tests: New file.
28296         * modules/unictype/ctype-blank-tests: New file.
28297         * modules/unictype/ctype-cntrl-tests: New file.
28298         * modules/unictype/ctype-digit-tests: New file.
28299         * modules/unictype/ctype-graph-tests: New file.
28300         * modules/unictype/ctype-lower-tests: New file.
28301         * modules/unictype/ctype-print-tests: New file.
28302         * modules/unictype/ctype-punct-tests: New file.
28303         * modules/unictype/ctype-space-tests: New file.
28304         * modules/unictype/ctype-upper-tests: New file.
28305         * modules/unictype/ctype-xdigit-tests: New file.
28306         * modules/unictype/decimal-digit-tests: New file.
28307         * modules/unictype/digit-tests: New file.
28308         * modules/unictype/mirror-tests: New file.
28309         * modules/unictype/numeric-tests: New file.
28310         * modules/unictype/property-alphabetic-tests: New file.
28311         * modules/unictype/property-ascii-hex-digit-tests: New file.
28312         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28313         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28314         * modules/unictype/property-bidi-block-separator-tests: New file.
28315         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28316         * modules/unictype/property-bidi-common-separator-tests: New file.
28317         * modules/unictype/property-bidi-control-tests: New file.
28318         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28319         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28320         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28321         * modules/unictype/property-bidi-european-digit-tests: New file.
28322         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28323         * modules/unictype/property-bidi-left-to-right-tests: New file.
28324         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28325         * modules/unictype/property-bidi-other-neutral-tests: New file.
28326         * modules/unictype/property-bidi-pdf-tests: New file.
28327         * modules/unictype/property-bidi-segment-separator-tests: New file.
28328         * modules/unictype/property-bidi-whitespace-tests: New file.
28329         * modules/unictype/property-byname-tests: New file.
28330         * modules/unictype/property-combining-tests: New file.
28331         * modules/unictype/property-composite-tests: New file.
28332         * modules/unictype/property-currency-symbol-tests: New file.
28333         * modules/unictype/property-dash-tests: New file.
28334         * modules/unictype/property-decimal-digit-tests: New file.
28335         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28336         * modules/unictype/property-deprecated-tests: New file.
28337         * modules/unictype/property-diacritic-tests: New file.
28338         * modules/unictype/property-extender-tests: New file.
28339         * modules/unictype/property-format-control-tests: New file.
28340         * modules/unictype/property-grapheme-base-tests: New file.
28341         * modules/unictype/property-grapheme-extend-tests: New file.
28342         * modules/unictype/property-grapheme-link-tests: New file.
28343         * modules/unictype/property-hex-digit-tests: New file.
28344         * modules/unictype/property-hyphen-tests: New file.
28345         * modules/unictype/property-id-continue-tests: New file.
28346         * modules/unictype/property-id-start-tests: New file.
28347         * modules/unictype/property-ideographic-tests: New file.
28348         * modules/unictype/property-ids-binary-operator-tests: New file.
28349         * modules/unictype/property-ids-trinary-operator-tests: New file.
28350         * modules/unictype/property-ignorable-control-tests: New file.
28351         * modules/unictype/property-iso-control-tests: New file.
28352         * modules/unictype/property-join-control-tests: New file.
28353         * modules/unictype/property-left-of-pair-tests: New file.
28354         * modules/unictype/property-line-separator-tests: New file.
28355         * modules/unictype/property-logical-order-exception-tests: New file.
28356         * modules/unictype/property-lowercase-tests: New file.
28357         * modules/unictype/property-math-tests: New file.
28358         * modules/unictype/property-non-break-tests: New file.
28359         * modules/unictype/property-not-a-character-tests: New file.
28360         * modules/unictype/property-numeric-tests: New file.
28361         * modules/unictype/property-other-alphabetic-tests: New file.
28362         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28363         * modules/unictype/property-other-grapheme-extend-tests: New file.
28364         * modules/unictype/property-other-id-continue-tests: New file.
28365         * modules/unictype/property-other-id-start-tests: New file.
28366         * modules/unictype/property-other-lowercase-tests: New file.
28367         * modules/unictype/property-other-math-tests: New file.
28368         * modules/unictype/property-other-uppercase-tests: New file.
28369         * modules/unictype/property-paired-punctuation-tests: New file.
28370         * modules/unictype/property-paragraph-separator-tests: New file.
28371         * modules/unictype/property-pattern-syntax-tests: New file.
28372         * modules/unictype/property-pattern-white-space-tests: New file.
28373         * modules/unictype/property-private-use-tests: New file.
28374         * modules/unictype/property-punctuation-tests: New file.
28375         * modules/unictype/property-quotation-mark-tests: New file.
28376         * modules/unictype/property-radical-tests: New file.
28377         * modules/unictype/property-sentence-terminal-tests: New file.
28378         * modules/unictype/property-soft-dotted-tests: New file.
28379         * modules/unictype/property-space-tests: New file.
28380         * modules/unictype/property-terminal-punctuation-tests: New file.
28381         * modules/unictype/property-test-tests: New file.
28382         * modules/unictype/property-titlecase-tests: New file.
28383         * modules/unictype/property-unassigned-code-value-tests: New file.
28384         * modules/unictype/property-unified-ideograph-tests: New file.
28385         * modules/unictype/property-uppercase-tests: New file.
28386         * modules/unictype/property-variation-selector-tests: New file.
28387         * modules/unictype/property-white-space-tests: New file.
28388         * modules/unictype/property-xid-continue-tests: New file.
28389         * modules/unictype/property-xid-start-tests: New file.
28390         * modules/unictype/property-zero-width-tests: New file.
28391         * modules/unictype/scripts-tests: New file.
28392         * modules/unictype/syntax-c-ident-tests: New file.
28393         * modules/unictype/syntax-c-whitespace-tests: New file.
28394         * modules/unictype/syntax-java-ident-tests: New file.
28395         * modules/unictype/syntax-java-whitespace-tests: New file.
28396         * tests/unictype/test-bidi_byname.c: New file.
28397         * tests/unictype/test-bidi_name.c: New file.
28398         * tests/unictype/test-bidi_of.c: New file.
28399         * tests/unictype/test-bidi_test.c: New file.
28400         * tests/unictype/test-block_list.c: New file.
28401         * tests/unictype/test-block_of.c: New file.
28402         * tests/unictype/test-block_test.c: New file.
28403         * tests/unictype/test-categ_and.c: New file.
28404         * tests/unictype/test-categ_and_not.c: New file.
28405         * tests/unictype/test-categ_byname.c: New file.
28406         * tests/unictype/test-categ_name.c: New file.
28407         * tests/unictype/test-categ_none.c: New file.
28408         * tests/unictype/test-categ_of.c: New file.
28409         * tests/unictype/test-categ_or.c: New file.
28410         * tests/unictype/test-categ_test_withtable.c: New file.
28411         * tests/unictype/test-combining.c: New file.
28412         * tests/unictype/test-decdigit.c: New file.
28413         * tests/unictype/test-digit.c: New file.
28414         * tests/unictype/test-mirror.c: New file.
28415         * tests/unictype/test-numeric.c: New file.
28416         * tests/unictype/test-pr_byname.c: New file.
28417         * tests/unictype/test-pr_test.c: New file.
28418         * tests/unictype/test-predicate-part1.h: New file.
28419         * tests/unictype/test-predicate-part2.h: New file.
28420         * tests/unictype/test-scripts.c: New file.
28421         * tests/unictype/test-sy_c_ident.c: New file.
28422         * tests/unictype/test-sy_java_ident.c: New file.
28423
28424         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28425         for Unicode 5.0.0.
28426         * tests/unictype/test-categ_Cc.c: Likewise.
28427         * tests/unictype/test-categ_Cf.c: Likewise.
28428         * tests/unictype/test-categ_Cn.c: Likewise.
28429         * tests/unictype/test-categ_Co.c: Likewise.
28430         * tests/unictype/test-categ_Cs.c: Likewise.
28431         * tests/unictype/test-categ_L.c: Likewise.
28432         * tests/unictype/test-categ_Ll.c: Likewise.
28433         * tests/unictype/test-categ_Lm.c: Likewise.
28434         * tests/unictype/test-categ_Lo.c: Likewise.
28435         * tests/unictype/test-categ_Lt.c: Likewise.
28436         * tests/unictype/test-categ_Lu.c: Likewise.
28437         * tests/unictype/test-categ_M.c: Likewise.
28438         * tests/unictype/test-categ_Mc.c: Likewise.
28439         * tests/unictype/test-categ_Me.c: Likewise.
28440         * tests/unictype/test-categ_Mn.c: Likewise.
28441         * tests/unictype/test-categ_N.c: Likewise.
28442         * tests/unictype/test-categ_Nd.c: Likewise.
28443         * tests/unictype/test-categ_Nl.c: Likewise.
28444         * tests/unictype/test-categ_No.c: Likewise.
28445         * tests/unictype/test-categ_P.c: Likewise.
28446         * tests/unictype/test-categ_Pc.c: Likewise.
28447         * tests/unictype/test-categ_Pd.c: Likewise.
28448         * tests/unictype/test-categ_Pe.c: Likewise.
28449         * tests/unictype/test-categ_Pf.c: Likewise.
28450         * tests/unictype/test-categ_Pi.c: Likewise.
28451         * tests/unictype/test-categ_Po.c: Likewise.
28452         * tests/unictype/test-categ_Ps.c: Likewise.
28453         * tests/unictype/test-categ_S.c: Likewise.
28454         * tests/unictype/test-categ_Sc.c: Likewise.
28455         * tests/unictype/test-categ_Sk.c: Likewise.
28456         * tests/unictype/test-categ_Sm.c: Likewise.
28457         * tests/unictype/test-categ_So.c: Likewise.
28458         * tests/unictype/test-categ_Z.c: Likewise.
28459         * tests/unictype/test-categ_Zl.c: Likewise.
28460         * tests/unictype/test-categ_Zp.c: Likewise.
28461         * tests/unictype/test-categ_Zs.c: Likewise.
28462         * tests/unictype/test-ctype_alnum.c: Likewise.
28463         * tests/unictype/test-ctype_alpha.c: Likewise.
28464         * tests/unictype/test-ctype_blank.c: Likewise.
28465         * tests/unictype/test-ctype_cntrl.c: Likewise.
28466         * tests/unictype/test-ctype_digit.c: Likewise.
28467         * tests/unictype/test-ctype_graph.c: Likewise.
28468         * tests/unictype/test-ctype_lower.c: Likewise.
28469         * tests/unictype/test-ctype_print.c: Likewise.
28470         * tests/unictype/test-ctype_punct.c: Likewise.
28471         * tests/unictype/test-ctype_space.c: Likewise.
28472         * tests/unictype/test-ctype_upper.c: Likewise.
28473         * tests/unictype/test-ctype_xdigit.c: Likewise.
28474         * tests/unictype/test-decdigit.h: Likewise.
28475         * tests/unictype/test-digit.h: Likewise.
28476         * tests/unictype/test-numeric.h: Likewise.
28477         * tests/unictype/test-pr_alphabetic.c: Likewise.
28478         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28479         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28480         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28481         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28482         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28483         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28484         * tests/unictype/test-pr_bidi_control.c: Likewise.
28485         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28486         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28487         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28488         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28489         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28490         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28491         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28492         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28493         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28494         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28495         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28496         * tests/unictype/test-pr_combining.c: Likewise.
28497         * tests/unictype/test-pr_composite.c: Likewise.
28498         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28499         * tests/unictype/test-pr_dash.c: Likewise.
28500         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28501         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28502         * tests/unictype/test-pr_deprecated.c: Likewise.
28503         * tests/unictype/test-pr_diacritic.c: Likewise.
28504         * tests/unictype/test-pr_extender.c: Likewise.
28505         * tests/unictype/test-pr_format_control.c: Likewise.
28506         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28507         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28508         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28509         * tests/unictype/test-pr_hex_digit.c: Likewise.
28510         * tests/unictype/test-pr_hyphen.c: Likewise.
28511         * tests/unictype/test-pr_id_continue.c: Likewise.
28512         * tests/unictype/test-pr_id_start.c: Likewise.
28513         * tests/unictype/test-pr_ideographic.c: Likewise.
28514         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28515         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28516         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28517         * tests/unictype/test-pr_iso_control.c: Likewise.
28518         * tests/unictype/test-pr_join_control.c: Likewise.
28519         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28520         * tests/unictype/test-pr_line_separator.c: Likewise.
28521         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28522         * tests/unictype/test-pr_lowercase.c: Likewise.
28523         * tests/unictype/test-pr_math.c: Likewise.
28524         * tests/unictype/test-pr_non_break.c: Likewise.
28525         * tests/unictype/test-pr_not_a_character.c: Likewise.
28526         * tests/unictype/test-pr_numeric.c: Likewise.
28527         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28528         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28529         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28530         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28531         * tests/unictype/test-pr_other_id_start.c: Likewise.
28532         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28533         * tests/unictype/test-pr_other_math.c: Likewise.
28534         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28535         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28536         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28537         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28538         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28539         * tests/unictype/test-pr_private_use.c: Likewise.
28540         * tests/unictype/test-pr_punctuation.c: Likewise.
28541         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28542         * tests/unictype/test-pr_radical.c: Likewise.
28543         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28544         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28545         * tests/unictype/test-pr_space.c: Likewise.
28546         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28547         * tests/unictype/test-pr_titlecase.c: Likewise.
28548         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28549         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28550         * tests/unictype/test-pr_uppercase.c: Likewise.
28551         * tests/unictype/test-pr_variation_selector.c: Likewise.
28552         * tests/unictype/test-pr_white_space.c: Likewise.
28553         * tests/unictype/test-pr_xid_continue.c: Likewise.
28554         * tests/unictype/test-pr_xid_start.c: Likewise.
28555         * tests/unictype/test-pr_zero_width.c: Likewise.
28556         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28557         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28558
28559 2007-11-12  Bruno Haible  <bruno@clisp.org>
28560
28561         Unicode character classification functions.
28562         * lib/unictype.h: New file.
28563         * modules/unictype/base: New file.
28564         * modules/unictype/category-L: New file.
28565         * modules/unictype/category-Lu: New file.
28566         * modules/unictype/category-Ll: New file.
28567         * modules/unictype/category-Lt: New file.
28568         * modules/unictype/category-Lm: New file.
28569         * modules/unictype/category-Lo: New file.
28570         * modules/unictype/category-M: New file.
28571         * modules/unictype/category-Mn: New file.
28572         * modules/unictype/category-Mc: New file.
28573         * modules/unictype/category-Me: New file.
28574         * modules/unictype/category-N: New file.
28575         * modules/unictype/category-Nd: New file.
28576         * modules/unictype/category-Nl: New file.
28577         * modules/unictype/category-No: New file.
28578         * modules/unictype/category-P: New file.
28579         * modules/unictype/category-Pc: New file.
28580         * modules/unictype/category-Pd: New file.
28581         * modules/unictype/category-Ps: New file.
28582         * modules/unictype/category-Pe: New file.
28583         * modules/unictype/category-Pi: New file.
28584         * modules/unictype/category-Pf: New file.
28585         * modules/unictype/category-Po: New file.
28586         * modules/unictype/category-S: New file.
28587         * modules/unictype/category-Sm: New file.
28588         * modules/unictype/category-Sc: New file.
28589         * modules/unictype/category-Sk: New file.
28590         * modules/unictype/category-So: New file.
28591         * modules/unictype/category-Z: New file.
28592         * modules/unictype/category-Zs: New file.
28593         * modules/unictype/category-Zl: New file.
28594         * modules/unictype/category-Zp: New file.
28595         * modules/unictype/category-C: New file.
28596         * modules/unictype/category-Cc: New file.
28597         * modules/unictype/category-Cf: New file.
28598         * modules/unictype/category-Cs: New file.
28599         * modules/unictype/category-Co: New file.
28600         * modules/unictype/category-Cn: New file.
28601         * modules/unictype/category-or: New file.
28602         * modules/unictype/category-of: New file.
28603         * modules/unictype/category-test: New file.
28604         * modules/unictype/category-test-withtable: New file.
28605         * modules/unictype/category-byname: New file.
28606         * modules/unictype/category-none: New file.
28607         * modules/unictype/category-and: New file.
28608         * modules/unictype/category-and-not: New file.
28609         * modules/unictype/category-name: New file.
28610         * modules/unictype/combining-class: New file.
28611         * modules/unictype/category-all: New file.
28612         * modules/unictype/bidicategory-all: New file.
28613         * modules/unictype/bidicategory-byname: New file.
28614         * modules/unictype/bidicategory-name: New file.
28615         * modules/unictype/bidicategory-of: New file.
28616         * modules/unictype/bidicategory-test: New file.
28617         * modules/unictype/decimal-digit: New file.
28618         * modules/unictype/digit: New file.
28619         * modules/unictype/numeric: New file.
28620         * modules/unictype/mirror: New file.
28621         * modules/unictype/property-white-space: New file.
28622         * modules/unictype/property-alphabetic: New file.
28623         * modules/unictype/property-other-alphabetic: New file.
28624         * modules/unictype/property-not-a-character: New file.
28625         * modules/unictype/property-default-ignorable-code-point: New file.
28626         * modules/unictype/property-other-default-ignorable-code-point: New
28627         file.
28628         * modules/unictype/property-deprecated: New file.
28629         * modules/unictype/property-logical-order-exception: New file.
28630         * modules/unictype/property-variation-selector: New file.
28631         * modules/unictype/property-private-use: New file.
28632         * modules/unictype/property-unassigned-code-value: New file.
28633         * modules/unictype/property-uppercase: New file.
28634         * modules/unictype/property-other-uppercase: New file.
28635         * modules/unictype/property-lowercase: New file.
28636         * modules/unictype/property-other-lowercase: New file.
28637         * modules/unictype/property-titlecase: New file.
28638         * modules/unictype/property-soft-dotted: New file.
28639         * modules/unictype/property-id-start: New file.
28640         * modules/unictype/property-other-id-start: New file.
28641         * modules/unictype/property-id-continue: New file.
28642         * modules/unictype/property-other-id-continue: New file.
28643         * modules/unictype/property-xid-start: New file.
28644         * modules/unictype/property-xid-continue: New file.
28645         * modules/unictype/property-pattern-white-space: New file.
28646         * modules/unictype/property-pattern-syntax: New file.
28647         * modules/unictype/property-join-control: New file.
28648         * modules/unictype/property-grapheme-base: New file.
28649         * modules/unictype/property-grapheme-extend: New file.
28650         * modules/unictype/property-other-grapheme-extend: New file.
28651         * modules/unictype/property-grapheme-link: New file.
28652         * modules/unictype/property-bidi-control: New file.
28653         * modules/unictype/property-bidi-left-to-right: New file.
28654         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28655         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28656         * modules/unictype/property-bidi-european-digit: New file.
28657         * modules/unictype/property-bidi-eur-num-separator: New file.
28658         * modules/unictype/property-bidi-eur-num-terminator: New file.
28659         * modules/unictype/property-bidi-arabic-digit: New file.
28660         * modules/unictype/property-bidi-common-separator: New file.
28661         * modules/unictype/property-bidi-block-separator: New file.
28662         * modules/unictype/property-bidi-segment-separator: New file.
28663         * modules/unictype/property-bidi-whitespace: New file.
28664         * modules/unictype/property-bidi-non-spacing-mark: New file.
28665         * modules/unictype/property-bidi-boundary-neutral: New file.
28666         * modules/unictype/property-bidi-pdf: New file.
28667         * modules/unictype/property-bidi-embedding-or-override: New file.
28668         * modules/unictype/property-bidi-other-neutral: New file.
28669         * modules/unictype/property-hex-digit: New file.
28670         * modules/unictype/property-ascii-hex-digit: New file.
28671         * modules/unictype/property-ideographic: New file.
28672         * modules/unictype/property-unified-ideograph: New file.
28673         * modules/unictype/property-radical: New file.
28674         * modules/unictype/property-ids-binary-operator: New file.
28675         * modules/unictype/property-ids-trinary-operator: New file.
28676         * modules/unictype/property-zero-width: New file.
28677         * modules/unictype/property-space: New file.
28678         * modules/unictype/property-non-break: New file.
28679         * modules/unictype/property-iso-control: New file.
28680         * modules/unictype/property-format-control: New file.
28681         * modules/unictype/property-dash: New file.
28682         * modules/unictype/property-hyphen: New file.
28683         * modules/unictype/property-punctuation: New file.
28684         * modules/unictype/property-line-separator: New file.
28685         * modules/unictype/property-paragraph-separator: New file.
28686         * modules/unictype/property-quotation-mark: New file.
28687         * modules/unictype/property-sentence-terminal: New file.
28688         * modules/unictype/property-terminal-punctuation: New file.
28689         * modules/unictype/property-currency-symbol: New file.
28690         * modules/unictype/property-math: New file.
28691         * modules/unictype/property-other-math: New file.
28692         * modules/unictype/property-paired-punctuation: New file.
28693         * modules/unictype/property-left-of-pair: New file.
28694         * modules/unictype/property-combining: New file.
28695         * modules/unictype/property-composite: New file.
28696         * modules/unictype/property-decimal-digit: New file.
28697         * modules/unictype/property-numeric: New file.
28698         * modules/unictype/property-diacritic: New file.
28699         * modules/unictype/property-extender: New file.
28700         * modules/unictype/property-ignorable-control: New file.
28701         * modules/unictype/property-test: New file.
28702         * modules/unictype/property-byname: New file.
28703         * modules/unictype/property-all: New file.
28704         * modules/unictype/scripts: New file.
28705         * modules/unictype/scripts-all: New file.
28706         * modules/unictype/block-of: New file.
28707         * modules/unictype/block-test: New file.
28708         * modules/unictype/block-list: New file.
28709         * modules/unictype/block-all: New file.
28710         * modules/unictype/syntax-c-whitespace: New file.
28711         * modules/unictype/syntax-java-whitespace: New file.
28712         * modules/unictype/syntax-c-ident: New file.
28713         * modules/unictype/syntax-java-ident: New file.
28714         * modules/unictype/ctype-alnum: New file.
28715         * modules/unictype/ctype-alpha: New file.
28716         * modules/unictype/ctype-cntrl: New file.
28717         * modules/unictype/ctype-digit: New file.
28718         * modules/unictype/ctype-graph: New file.
28719         * modules/unictype/ctype-lower: New file.
28720         * modules/unictype/ctype-print: New file.
28721         * modules/unictype/ctype-punct: New file.
28722         * modules/unictype/ctype-space: New file.
28723         * modules/unictype/ctype-upper: New file.
28724         * modules/unictype/ctype-xdigit: New file.
28725         * modules/unictype/ctype-blank: New file.
28726         * lib/unictype/bidi_byname.c: New file.
28727         * lib/unictype/bidi_name.c: New file.
28728         * lib/unictype/bidi_of.c: New file.
28729         * lib/unictype/bidi_test.c: New file.
28730         * lib/unictype/bitmap.h: New file.
28731         * lib/unictype/block_test.c: New file.
28732         * lib/unictype/blocks.c: New file.
28733         * lib/unictype/categ_C.c: New file.
28734         * lib/unictype/categ_Cc.c: New file.
28735         * lib/unictype/categ_Cf.c: New file.
28736         * lib/unictype/categ_Cn.c: New file.
28737         * lib/unictype/categ_Co.c: New file.
28738         * lib/unictype/categ_Cs.c: New file.
28739         * lib/unictype/categ_L.c: New file.
28740         * lib/unictype/categ_Ll.c: New file.
28741         * lib/unictype/categ_Lm.c: New file.
28742         * lib/unictype/categ_Lo.c: New file.
28743         * lib/unictype/categ_Lt.c: New file.
28744         * lib/unictype/categ_Lu.c: New file.
28745         * lib/unictype/categ_M.c: New file.
28746         * lib/unictype/categ_Mc.c: New file.
28747         * lib/unictype/categ_Me.c: New file.
28748         * lib/unictype/categ_Mn.c: New file.
28749         * lib/unictype/categ_N.c: New file.
28750         * lib/unictype/categ_Nd.c: New file.
28751         * lib/unictype/categ_Nl.c: New file.
28752         * lib/unictype/categ_No.c: New file.
28753         * lib/unictype/categ_P.c: New file.
28754         * lib/unictype/categ_Pc.c: New file.
28755         * lib/unictype/categ_Pd.c: New file.
28756         * lib/unictype/categ_Pe.c: New file.
28757         * lib/unictype/categ_Pf.c: New file.
28758         * lib/unictype/categ_Pi.c: New file.
28759         * lib/unictype/categ_Po.c: New file.
28760         * lib/unictype/categ_Ps.c: New file.
28761         * lib/unictype/categ_S.c: New file.
28762         * lib/unictype/categ_Sc.c: New file.
28763         * lib/unictype/categ_Sk.c: New file.
28764         * lib/unictype/categ_Sm.c: New file.
28765         * lib/unictype/categ_So.c: New file.
28766         * lib/unictype/categ_Z.c: New file.
28767         * lib/unictype/categ_Zl.c: New file.
28768         * lib/unictype/categ_Zp.c: New file.
28769         * lib/unictype/categ_Zs.c: New file.
28770         * lib/unictype/categ_and.c: New file.
28771         * lib/unictype/categ_and_not.c: New file.
28772         * lib/unictype/categ_byname.c: New file.
28773         * lib/unictype/categ_name.c: New file.
28774         * lib/unictype/categ_none.c: New file.
28775         * lib/unictype/categ_of.c: New file.
28776         * lib/unictype/categ_or.c: New file.
28777         * lib/unictype/categ_test.c: New file.
28778         * lib/unictype/combining.c: New file.
28779         * lib/unictype/ctype_alnum.c: New file.
28780         * lib/unictype/ctype_alpha.c: New file.
28781         * lib/unictype/ctype_blank.c: New file.
28782         * lib/unictype/ctype_cntrl.c: New file.
28783         * lib/unictype/ctype_digit.c: New file.
28784         * lib/unictype/ctype_graph.c: New file.
28785         * lib/unictype/ctype_lower.c: New file.
28786         * lib/unictype/ctype_print.c: New file.
28787         * lib/unictype/ctype_punct.c: New file.
28788         * lib/unictype/ctype_space.c: New file.
28789         * lib/unictype/ctype_upper.c: New file.
28790         * lib/unictype/ctype_xdigit.c: New file.
28791         * lib/unictype/decdigit.c: New file.
28792         * lib/unictype/digit.c: New file.
28793         * lib/unictype/identsyntaxmap.h: New file.
28794         * lib/unictype/mirror.c: New file.
28795         * lib/unictype/numeric.c: New file.
28796         * lib/unictype/pr_alphabetic.c: New file.
28797         * lib/unictype/pr_ascii_hex_digit.c: New file.
28798         * lib/unictype/pr_bidi_arabic_digit.c: New file.
28799         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
28800         * lib/unictype/pr_bidi_block_separator.c: New file.
28801         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
28802         * lib/unictype/pr_bidi_common_separator.c: New file.
28803         * lib/unictype/pr_bidi_control.c: New file.
28804         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
28805         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
28806         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
28807         * lib/unictype/pr_bidi_european_digit.c: New file.
28808         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
28809         * lib/unictype/pr_bidi_left_to_right.c: New file.
28810         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
28811         * lib/unictype/pr_bidi_other_neutral.c: New file.
28812         * lib/unictype/pr_bidi_pdf.c: New file.
28813         * lib/unictype/pr_bidi_segment_separator.c: New file.
28814         * lib/unictype/pr_bidi_whitespace.c: New file.
28815         * lib/unictype/pr_byname.c: New file.
28816         * lib/unictype/pr_byname.gperf: New file.
28817         * lib/unictype/pr_combining.c: New file.
28818         * lib/unictype/pr_composite.c: New file.
28819         * lib/unictype/pr_currency_symbol.c: New file.
28820         * lib/unictype/pr_dash.c: New file.
28821         * lib/unictype/pr_decimal_digit.c: New file.
28822         * lib/unictype/pr_default_ignorable_code_point.c: New file.
28823         * lib/unictype/pr_deprecated.c: New file.
28824         * lib/unictype/pr_diacritic.c: New file.
28825         * lib/unictype/pr_extender.c: New file.
28826         * lib/unictype/pr_format_control.c: New file.
28827         * lib/unictype/pr_grapheme_base.c: New file.
28828         * lib/unictype/pr_grapheme_extend.c: New file.
28829         * lib/unictype/pr_grapheme_link.c: New file.
28830         * lib/unictype/pr_hex_digit.c: New file.
28831         * lib/unictype/pr_hyphen.c: New file.
28832         * lib/unictype/pr_id_continue.c: New file.
28833         * lib/unictype/pr_id_start.c: New file.
28834         * lib/unictype/pr_ideographic.c: New file.
28835         * lib/unictype/pr_ids_binary_operator.c: New file.
28836         * lib/unictype/pr_ids_trinary_operator.c: New file.
28837         * lib/unictype/pr_ignorable_control.c: New file.
28838         * lib/unictype/pr_iso_control.c: New file.
28839         * lib/unictype/pr_join_control.c: New file.
28840         * lib/unictype/pr_left_of_pair.c: New file.
28841         * lib/unictype/pr_line_separator.c: New file.
28842         * lib/unictype/pr_logical_order_exception.c: New file.
28843         * lib/unictype/pr_lowercase.c: New file.
28844         * lib/unictype/pr_math.c: New file.
28845         * lib/unictype/pr_non_break.c: New file.
28846         * lib/unictype/pr_not_a_character.c: New file.
28847         * lib/unictype/pr_numeric.c: New file.
28848         * lib/unictype/pr_other_alphabetic.c: New file.
28849         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
28850         * lib/unictype/pr_other_grapheme_extend.c: New file.
28851         * lib/unictype/pr_other_id_continue.c: New file.
28852         * lib/unictype/pr_other_id_start.c: New file.
28853         * lib/unictype/pr_other_lowercase.c: New file.
28854         * lib/unictype/pr_other_math.c: New file.
28855         * lib/unictype/pr_other_uppercase.c: New file.
28856         * lib/unictype/pr_paired_punctuation.c: New file.
28857         * lib/unictype/pr_paragraph_separator.c: New file.
28858         * lib/unictype/pr_pattern_syntax.c: New file.
28859         * lib/unictype/pr_pattern_white_space.c: New file.
28860         * lib/unictype/pr_private_use.c: New file.
28861         * lib/unictype/pr_punctuation.c: New file.
28862         * lib/unictype/pr_quotation_mark.c: New file.
28863         * lib/unictype/pr_radical.c: New file.
28864         * lib/unictype/pr_sentence_terminal.c: New file.
28865         * lib/unictype/pr_soft_dotted.c: New file.
28866         * lib/unictype/pr_space.c: New file.
28867         * lib/unictype/pr_terminal_punctuation.c: New file.
28868         * lib/unictype/pr_test.c: New file.
28869         * lib/unictype/pr_titlecase.c: New file.
28870         * lib/unictype/pr_unassigned_code_value.c: New file.
28871         * lib/unictype/pr_unified_ideograph.c: New file.
28872         * lib/unictype/pr_uppercase.c: New file.
28873         * lib/unictype/pr_variation_selector.c: New file.
28874         * lib/unictype/pr_white_space.c: New file.
28875         * lib/unictype/pr_xid_continue.c: New file.
28876         * lib/unictype/pr_xid_start.c: New file.
28877         * lib/unictype/pr_zero_width.c: New file.
28878         * lib/unictype/scripts.c: New file.
28879         * lib/unictype/sy_c_ident.c: New file.
28880         * lib/unictype/sy_c_whitespace.c: New file.
28881         * lib/unictype/sy_java_ident.c: New file.
28882         * lib/unictype/sy_java_whitespace.c: New file.
28883
28884         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
28885         Unicode 5.0.0.
28886         * lib/unictype/blocks.h: Likewise.
28887         * lib/unictype/categ_C.h: Likewise.
28888         * lib/unictype/categ_Cc.h: Likewise.
28889         * lib/unictype/categ_Cf.h: Likewise.
28890         * lib/unictype/categ_Cn.h: Likewise.
28891         * lib/unictype/categ_Co.h: Likewise.
28892         * lib/unictype/categ_Cs.h: Likewise.
28893         * lib/unictype/categ_L.h: Likewise.
28894         * lib/unictype/categ_Ll.h: Likewise.
28895         * lib/unictype/categ_Lm.h: Likewise.
28896         * lib/unictype/categ_Lo.h: Likewise.
28897         * lib/unictype/categ_Lt.h: Likewise.
28898         * lib/unictype/categ_Lu.h: Likewise.
28899         * lib/unictype/categ_M.h: Likewise.
28900         * lib/unictype/categ_Mc.h: Likewise.
28901         * lib/unictype/categ_Me.h: Likewise.
28902         * lib/unictype/categ_Mn.h: Likewise.
28903         * lib/unictype/categ_N.h: Likewise.
28904         * lib/unictype/categ_Nd.h: Likewise.
28905         * lib/unictype/categ_Nl.h: Likewise.
28906         * lib/unictype/categ_No.h: Likewise.
28907         * lib/unictype/categ_P.h: Likewise.
28908         * lib/unictype/categ_Pc.h: Likewise.
28909         * lib/unictype/categ_Pd.h: Likewise.
28910         * lib/unictype/categ_Pe.h: Likewise.
28911         * lib/unictype/categ_Pf.h: Likewise.
28912         * lib/unictype/categ_Pi.h: Likewise.
28913         * lib/unictype/categ_Po.h: Likewise.
28914         * lib/unictype/categ_Ps.h: Likewise.
28915         * lib/unictype/categ_S.h: Likewise.
28916         * lib/unictype/categ_Sc.h: Likewise.
28917         * lib/unictype/categ_Sk.h: Likewise.
28918         * lib/unictype/categ_Sm.h: Likewise.
28919         * lib/unictype/categ_So.h: Likewise.
28920         * lib/unictype/categ_Z.h: Likewise.
28921         * lib/unictype/categ_Zl.h: Likewise.
28922         * lib/unictype/categ_Zp.h: Likewise.
28923         * lib/unictype/categ_Zs.h: Likewise.
28924         * lib/unictype/categ_of.h: Likewise.
28925         * lib/unictype/combining.h: Likewise.
28926         * lib/unictype/ctype_alnum.h: Likewise.
28927         * lib/unictype/ctype_alpha.h: Likewise.
28928         * lib/unictype/ctype_blank.h: Likewise.
28929         * lib/unictype/ctype_cntrl.h: Likewise.
28930         * lib/unictype/ctype_digit.h: Likewise.
28931         * lib/unictype/ctype_graph.h: Likewise.
28932         * lib/unictype/ctype_lower.h: Likewise.
28933         * lib/unictype/ctype_print.h: Likewise.
28934         * lib/unictype/ctype_punct.h: Likewise.
28935         * lib/unictype/ctype_space.h: Likewise.
28936         * lib/unictype/ctype_upper.h: Likewise.
28937         * lib/unictype/ctype_xdigit.h: Likewise.
28938         * lib/unictype/decdigit.h: Likewise.
28939         * lib/unictype/digit.h: Likewise.
28940         * lib/unictype/mirror.h: Likewise.
28941         * lib/unictype/numeric.h: Likewise.
28942         * lib/unictype/pr_alphabetic.h: Likewise.
28943         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
28944         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
28945         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
28946         * lib/unictype/pr_bidi_block_separator.h: Likewise.
28947         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
28948         * lib/unictype/pr_bidi_common_separator.h: Likewise.
28949         * lib/unictype/pr_bidi_control.h: Likewise.
28950         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
28951         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
28952         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
28953         * lib/unictype/pr_bidi_european_digit.h: Likewise.
28954         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
28955         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
28956         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
28957         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
28958         * lib/unictype/pr_bidi_pdf.h: Likewise.
28959         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
28960         * lib/unictype/pr_bidi_whitespace.h: Likewise.
28961         * lib/unictype/pr_combining.h: Likewise.
28962         * lib/unictype/pr_composite.h: Likewise.
28963         * lib/unictype/pr_currency_symbol.h: Likewise.
28964         * lib/unictype/pr_dash.h: Likewise.
28965         * lib/unictype/pr_decimal_digit.h: Likewise.
28966         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
28967         * lib/unictype/pr_deprecated.h: Likewise.
28968         * lib/unictype/pr_diacritic.h: Likewise.
28969         * lib/unictype/pr_extender.h: Likewise.
28970         * lib/unictype/pr_format_control.h: Likewise.
28971         * lib/unictype/pr_grapheme_base.h: Likewise.
28972         * lib/unictype/pr_grapheme_extend.h: Likewise.
28973         * lib/unictype/pr_grapheme_link.h: Likewise.
28974         * lib/unictype/pr_hex_digit.h: Likewise.
28975         * lib/unictype/pr_hyphen.h: Likewise.
28976         * lib/unictype/pr_id_continue.h: Likewise.
28977         * lib/unictype/pr_id_start.h: Likewise.
28978         * lib/unictype/pr_ideographic.h: Likewise.
28979         * lib/unictype/pr_ids_binary_operator.h: Likewise.
28980         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
28981         * lib/unictype/pr_ignorable_control.h: Likewise.
28982         * lib/unictype/pr_iso_control.h: Likewise.
28983         * lib/unictype/pr_join_control.h: Likewise.
28984         * lib/unictype/pr_left_of_pair.h: Likewise.
28985         * lib/unictype/pr_line_separator.h: Likewise.
28986         * lib/unictype/pr_logical_order_exception.h: Likewise.
28987         * lib/unictype/pr_lowercase.h: Likewise.
28988         * lib/unictype/pr_math.h: Likewise.
28989         * lib/unictype/pr_non_break.h: Likewise.
28990         * lib/unictype/pr_not_a_character.h: Likewise.
28991         * lib/unictype/pr_numeric.h: Likewise.
28992         * lib/unictype/pr_other_alphabetic.h: Likewise.
28993         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
28994         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
28995         * lib/unictype/pr_other_id_continue.h: Likewise.
28996         * lib/unictype/pr_other_id_start.h: Likewise.
28997         * lib/unictype/pr_other_lowercase.h: Likewise.
28998         * lib/unictype/pr_other_math.h: Likewise.
28999         * lib/unictype/pr_other_uppercase.h: Likewise.
29000         * lib/unictype/pr_paired_punctuation.h: Likewise.
29001         * lib/unictype/pr_paragraph_separator.h: Likewise.
29002         * lib/unictype/pr_pattern_syntax.h: Likewise.
29003         * lib/unictype/pr_pattern_white_space.h: Likewise.
29004         * lib/unictype/pr_private_use.h: Likewise.
29005         * lib/unictype/pr_punctuation.h: Likewise.
29006         * lib/unictype/pr_quotation_mark.h: Likewise.
29007         * lib/unictype/pr_radical.h: Likewise.
29008         * lib/unictype/pr_sentence_terminal.h: Likewise.
29009         * lib/unictype/pr_soft_dotted.h: Likewise.
29010         * lib/unictype/pr_space.h: Likewise.
29011         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29012         * lib/unictype/pr_titlecase.h: Likewise.
29013         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29014         * lib/unictype/pr_unified_ideograph.h: Likewise.
29015         * lib/unictype/pr_uppercase.h: Likewise.
29016         * lib/unictype/pr_variation_selector.h: Likewise.
29017         * lib/unictype/pr_white_space.h: Likewise.
29018         * lib/unictype/pr_xid_continue.h: Likewise.
29019         * lib/unictype/pr_xid_start.h: Likewise.
29020         * lib/unictype/pr_zero_width.h: Likewise.
29021         * lib/unictype/scripts.h: Likewise.
29022         * lib/unictype/scripts_byname.gperf: Likewise.
29023         * lib/unictype/sy_c_ident.h: Likewise.
29024         * lib/unictype/sy_c_whitespace.h: Likewise.
29025         * lib/unictype/sy_java_ident.h: Likewise.
29026         * lib/unictype/sy_java_whitespace.h: Likewise.
29027
29028         * lib/unictype/Makefile: New file.
29029         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29030         glibc.
29031         * lib/unictype/3level.h: New file, copied from glibc.
29032         * lib/unictype/3levelbit.h: New file.
29033
29034 2007-11-11  Bruno Haible  <bruno@clisp.org>
29035
29036         * modules/gperf: New file.
29037         * modules/iconv_open (Depends-on): Add it.
29038         (Makefile.am): Remove the GPERF definition.
29039
29040 2007-11-11  Bruno Haible  <bruno@clisp.org>
29041
29042         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29043         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29044
29045 2007-11-11  Bruno Haible  <bruno@clisp.org>
29046
29047         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29048         (usage): Remove function.
29049
29050 2007-11-11  Bruno Haible  <bruno@clisp.org>
29051
29052         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29053         gl_FUNC_CEILF_LIBS.
29054         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29055         gl_FUNC_CEIL_LIBS.
29056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29057         gl_FUNC_CEILL_LIBS.
29058         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29059         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29060         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29061
29062 2007-11-11  Bruno Haible  <bruno@clisp.org>
29063
29064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29065         roundf were declared but do not exist on functions.
29066         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29067         roundl were declared but do not exist on functions.
29068         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29069         HAVE_FLOORL_AND_CEILL, respectively.
29070         Needed for Sun C on Solaris 10.
29071
29072 2007-11-11  Bruno Haible  <bruno@clisp.org>
29073
29074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29075         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29076         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29077         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29078         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29079         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29080         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29081         HAVE_DECL_ROUNDF.
29082         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29083         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29085         of HAVE_DECL_ROUND*.
29086         * modules/math (Makefile.am): Update.
29087
29088 2007-11-10  Bruno Haible  <bruno@clisp.org>
29089
29090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29091         ptrdiff_t as m4/intl.m4.
29092
29093 2007-11-10  Jim Meyering  <meyering@redhat.com>
29094
29095         Avoid link failure for the argmatch test.
29096         * tests/test-argmatch.c (usage): Define function to avoid a link
29097         failure: argmatch_die requires a usage function.
29098
29099 2007-11-09  Bruno Haible  <bruno@clisp.org>
29100
29101         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29102         * doc/functions/vsnprintf.texi: Likewise.
29103         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29104         with a size argument < 2.
29105
29106 2007-11-09  Bruno Haible  <bruno@clisp.org>
29107
29108         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29109         buffer. Fixes an inefficiency introduced on 2007-11-03.
29110
29111 2007-11-09  Bruno Haible  <bruno@clisp.org>
29112
29113         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29114         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29115
29116 2007-11-08  Jim Meyering  <meyering@redhat.com>
29117
29118         Change cache variable name prefix "jm_" to "gl_" everywhere.
29119         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29120         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29121         * m4/uptime.m4: s/gl_/jm_/
29122
29123 2007-11-07  Bruno Haible  <bruno@clisp.org>
29124
29125         Update to GNU gettext 0.17.
29126         * m4/intl.m4: Update to GNU gettext 0.17.
29127         * m4/po.m4: Likewise.
29128         * modules/gettext (Files): Remove m4/ulonglong.m4.
29129         (configure.ac): Require gettext infrastructure from version 0.17.
29130
29131 2007-11-06  Bruno Haible  <bruno@clisp.org>
29132
29133         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29134         symbolic values are not defined in a public header.
29135         * lib/freadable.c (freadable) [QNX]: Likewise.
29136         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29137         * lib/freading.c (freading) [QNX]: Likewise.
29138         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29139         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29140         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29141         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29142         Reported by Alain Magloire.
29143
29144         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29145
29146 2007-11-05  Bruno Haible  <bruno@clisp.org>
29147
29148         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29149         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29150         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29151         Reported by Eric Blake.
29152
29153 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29154             Bruno Haible  <bruno@clisp.org>
29155
29156         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29157         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29158         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29159         (malloc): Undefine also before including <stdlib.h>.
29160         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29161         Needed on OSF/1 4.0.
29162
29163 2007-11-05  Jim Meyering  <meyering@redhat.com>
29164
29165         git-version-gen: sync from coreutils.
29166         * build-aux/git-version-gen: Add comments.
29167         Change the first '-' to '.' in the snapshot version string,
29168         e.g., 6.9-377-08144 -> 6.9.377-08144
29169         Remove first parameter.
29170         Don't declare a version "-dirty" merely because a time
29171         stamp has changed.
29172
29173 2007-11-04  Bruno Haible  <bruno@clisp.org>
29174
29175         * lib/lock.h: Protect all macro definitions containing an 'if'
29176         statement through a "do { ... } while (0)".
29177         * lib/tls.h: Likewise.
29178
29179 2007-11-04  Bruno Haible  <bruno@clisp.org>
29180
29181         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29182
29183 2007-11-04  Bruno Haible  <bruno@clisp.org>
29184
29185         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29186         * modules/fprintf-posix (Depends-on): Add nocrash.
29187         * modules/snprintf-posix (Depends-on): Likewise.
29188         * modules/sprintf-posix (Depends-on): Likewise.
29189         * modules/vasnprintf-posix (Depends-on): Likewise.
29190         * modules/vasprintf-posix (Depends-on): Likewise.
29191         * modules/vfprintf-posix (Depends-on): Likewise.
29192         * modules/vsnprintf-posix (Depends-on): Likewise.
29193         * modules/vsprintf-posix (Depends-on): Likewise.
29194         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29195         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29196         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29197         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29198         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29199         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29200         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29201
29202 2007-11-04  Bruno Haible  <bruno@clisp.org>
29203
29204         * modules/nocrash: New file.
29205         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29206         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29207
29208 2007-11-04  Bruno Haible  <bruno@clisp.org>
29209
29210         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29211         precision handling.
29212         * tests/test-vasprintf-posix.c (test_function): Likewise.
29213         * tests/test-snprintf-posix.h (test_function): Likewise.
29214         * tests/test-sprintf-posix.h (test_function): Likewise.
29215
29216         Fix *printf behaviour for large precisions on mingw and BeOS.
29217         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29218         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29220         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29222         gl_PRINTF_PRECISION and test its result. Invoke
29223         gl_PREREQ_VASNPRINTF_PRECISION.
29224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29231         * doc/functions/fprintf.texi: Update.
29232         * doc/functions/printf.texi: Update.
29233         * doc/functions/snprintf.texi: Update.
29234         * doc/functions/sprintf.texi: Update.
29235         * doc/functions/vfprintf.texi: Update.
29236         * doc/functions/vprintf.texi: Update.
29237         * doc/functions/vsnprintf.texi: Update.
29238         * doc/functions/vsprintf.texi: Update.
29239
29240 2007-11-04  Bruno Haible  <bruno@clisp.org>
29241
29242         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29243
29244 2007-11-04  Bruno Haible  <bruno@clisp.org>
29245
29246         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29247         Reported by Sylvain Beucler <beuc@gnu.org>.
29248
29249 2007-11-03  Bruno Haible  <bruno@clisp.org>
29250
29251         * tests/test-fprintf-posix2.sh: New file.
29252         * tests/test-fprintf-posix2.c: New file.
29253         * modules/fprintf-posix-tests (Files): Add them.
29254         (TESTS): Add test-fprintf-posix2.sh.
29255         (configure.ac): Check for getrlimit and setrlimit.
29256         (check_PROGRAMS): Add test-fprintf-posix2.
29257
29258         * tests/test-printf-posix2.sh: New file.
29259         * tests/test-printf-posix2.c: New file.
29260         * modules/printf-posix-tests (Files): Add them.
29261         (TESTS): Add test-printf-posix2.sh.
29262         (configure.ac): Check for getrlimit and setrlimit.
29263         (check_PROGRAMS): Add test-printf-posix2.
29264
29265         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29266         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29267         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29268         (decode_double): New function, copied from decode_long_double.
29269         (scale10_round_decimal_decoded): New function, extracted from
29270         scale10_round_decimal_long_double.
29271         (scale10_round_decimal_long_double): Use it.
29272         (scale10_round_decimal_double): New function.
29273         (floorlog10): New function.
29274         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29276         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29278         gl_PRINTF_ENOMEM and test its result. Invoke
29279         gl_PREREQ_VASNPRINTF_ENOMEM.
29280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29281         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29283         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29284         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29285         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29286         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29287         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29288         * modules/snprintf-posix (Depends-on): Likewise.
29289         * modules/sprintf-posix (Depends-on): Likewise.
29290         * modules/vasnprintf-posix (Depends-on): Likewise.
29291         * modules/vasprintf-posix (Depends-on): Likewise.
29292         * modules/vfprintf-posix (Depends-on): Likewise.
29293         * modules/vsnprintf-posix (Depends-on): Likewise.
29294         * modules/vsprintf-posix (Depends-on): Likewise.
29295         * doc/functions/fprintf.texi: Update.
29296         * doc/functions/printf.texi: Update.
29297         * doc/functions/snprintf.texi: Update.
29298         * doc/functions/sprintf.texi: Update.
29299         * doc/functions/vfprintf.texi: Update.
29300         * doc/functions/vprintf.texi: Update.
29301         * doc/functions/vsnprintf.texi: Update.
29302         * doc/functions/vsprintf.texi: Update.
29303
29304 2007-11-03  Bruno Haible  <bruno@clisp.org>
29305
29306         * modules/frexp-nolibm-tests: New file.
29307
29308         * modules/frexp-nolibm: New file.
29309         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29310
29311 2007-11-03  Bruno Haible  <bruno@clisp.org>
29312
29313         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29314         value is C99 compliant.
29315         Needed for OSF/1 5.1.
29316
29317 2007-11-03  Bruno Haible  <bruno@clisp.org>
29318
29319         Fix out-of-memory handling of vasnprintf.
29320         * lib/printf-parse.c: Include <errno.h>.
29321         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29322         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29323         is already set.
29324
29325 2007-11-02  Eric Blake  <ebb9@byu.net>
29326
29327         Fix tests on cygwin.
29328         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29329
29330 2007-11-01  Bruno Haible  <bruno@clisp.org>
29331
29332         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29333         warning.
29334         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29335         needed for POSIX compatibility.
29336
29337 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29338
29339         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29340         for compatibility with GNU.
29341
29342 2007-11-01  Bruno Haible  <bruno@clisp.org>
29343
29344         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29345         (putenv): Renamed from rpl_putenv. Change argument type from
29346         'const char *' to 'char *'.
29347         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29348         of defining putenv in config.h, just set REPLACE_PUTENV.
29349         * modules/putenv (Depends-on): Add stdlib.
29350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29351         (Include): Use <stdlib.h>.
29352         * lib/stdlib.in.h (putenv): New declaration.
29353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29354         REPLACE_PUTENV.
29355         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29356         REPLACE_PUTENV.
29357         Needed for MacOS X 10.5.0.
29358         Reported by Peter O'Gorman <peter@pogma.com>.
29359
29360 2007-11-01  Jim Meyering  <meyering@redhat.com>
29361
29362         Treat an empty date string exactly like "0".
29363         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29364         if the remaining date string (to be parsed) is empty, use "0".
29365         Reported by Mischa Molhoek and discussed in this thread:
29366         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29367
29368 2007-10-31  Bruno Haible  <bruno@clisp.org>
29369
29370         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29371         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29372         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29373         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29374         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29375         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29376
29377 2007-10-31  Bruno Haible  <bruno@clisp.org>
29378
29379         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29380         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29381         (AC_TYPE_LONG_LONG_INT): Use it.
29382         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29383         it as well.
29384         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29385         to m4/longlong.m4.
29386         * modules/stdint (Files): Remove m4/ulonglong.m4.
29387         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29388         m4/ulonglong.m4.
29389         * modules/strtoumax (Files): Likewise.
29390
29391 2007-10-30  Bruno Haible  <bruno@clisp.org>
29392
29393         * modules/xvasprintf-posix: New file.
29394         Suggested by Eric Blake.
29395
29396 2007-10-30  Bruno Haible  <bruno@clisp.org>
29397
29398         * modules/xprintf-posix-tests: New file.
29399         * tests/test-xprintf-posix.sh: New file.
29400         * tests/test-xprintf-posix.c: New file.
29401         * tests/test-xfprintf-posix.c: New file.
29402
29403         * modules/xprintf-posix: New file.
29404
29405 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29406
29407         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29408         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29409         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29410
29411 2007-10-29  Bruno Haible  <bruno@clisp.org>
29412
29413         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29414         contain the special marker '_cv_'.
29415         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29416         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29417         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29418         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29419         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29420         Reported by Ralf Wildenhues.
29421
29422 2007-10-29  Bruno Haible  <bruno@clisp.org>
29423
29424         * gnulib-tool (func_import): When --lgpl is not specified, set
29425         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29426         GPLv3.
29427         Reported by Simon Josefsson.
29428
29429 2007-10-28  Bruno Haible  <bruno@clisp.org>
29430
29431         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29432         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29433         HAVE_DECL_ISFINITE.
29434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29435         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29436         HAVE_DECL_ISFINITE.
29437
29438 2007-10-28  Bruno Haible  <bruno@clisp.org>
29439
29440         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29441         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29442
29443 2007-10-28  Bruno Haible  <bruno@clisp.org>
29444
29445         Fix link errors with Sun C 5.0 on Solaris 10.
29446         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29447         function is declared but not present in the compiler's libm.
29448         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29449         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29450         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29451         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29452         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29453         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29454         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29456         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29457         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29458         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29459         HAVE_DECL_FLOORL.
29460
29461 2007-10-28  Bruno Haible  <bruno@clisp.org>
29462
29463         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29464         gl_FUNC_FLOORL. Cache the result.
29465         (gl_FUNC_FLOORL): Use it.
29466         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29467         gl_FUNC_CEILL. Cache the result.
29468         (gl_FUNC_CEILL): Use it.
29469
29470         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29471         gl_FUNC_FLOOR. Cache the result.
29472         (gl_FUNC_FLOOR): Use it.
29473         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29474         gl_FUNC_CEIL. Cache the result.
29475         (gl_FUNC_CEIL): Use it.
29476
29477         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29478         gl_FUNC_FLOORF. Cache the result.
29479         (gl_FUNC_FLOORF): Use it.
29480         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29481         gl_FUNC_CEILF. Cache the result.
29482         (gl_FUNC_CEILF): Use it.
29483
29484 2007-10-28  Bruno Haible  <bruno@clisp.org>
29485
29486         * gnulib-tool: Allow specifying the LGPL version number through
29487         --lgpl=2 or --lgpl=3.
29488         (func_usage): Document --lgpl with argument.
29489         Handle --lgpl=... arguments.
29490         (func_import): Recognize also gl_LGPL calls with an argument. When
29491         --lgpl=2 is used and the module's license is just LGPL, report an
29492         error. Set sed_transform_lib_file according to the lgpl variable. In
29493         the generated files, use --lgpl or gl_LGPL invocations with argument,
29494         if necessary.
29495         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29496         an LGPv2+ license.
29497         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29498         gl_LGPL macro.
29499
29500 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29501             Bruno Haible  <bruno@clisp.org>
29502
29503         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29504         (u16_uctomb_aux): Likewise.
29505         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29506         !HAVE_INLINE.
29507         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29508
29509 2007-10-28  Bruno Haible  <bruno@clisp.org>
29510
29511         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29512         Invoke AM_GETTEXT_OPTION if it exists.
29513         * modules/vasprintf: Likewise.
29514         * modules/verror: Likewise.
29515         * modules/xprintf: Likewise.
29516         * modules/xvasprintf: Likewise.
29517
29518 2007-10-27  Ben Pfaff  <blp@gnu.org>
29519
29520         * lib/math.in.h: Define isfinite macro and prototypes for
29521         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29522         implementations.
29523         * m4/math_h.m4: New substitutions for isfinite module.
29524         * lib/isfinite.c: New file.
29525         * m4/isfinite.m4: New file.
29526         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29527         * modules/isfinite: New file.
29528         * modules/isfinite-tests: New file.
29529         * tests/tests-isfinite.c: New file.
29530         * doc/functions/isfinite.texi: Mention isfinite module.
29531         * MODULES.html.sh: Mention new module.
29532
29533 2007-10-27  Ben Pfaff  <blp@gnu.org>
29534
29535         Ralf Wildenhues reported that Tru64 4.0D declares the round
29536         functions but does not have definitions.
29537         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29538         cannot be found in any library, set the output variable to
29539         "missing" instead of "".
29540         * m4/round.m4: Also use our substitute if we cannot find round in
29541         any library, even if it is declared.
29542         * m4/roundf.m4: Likewise for roundf.
29543         * m4/roundl.m4: Likewise for roundl.
29544         * lib/math.in.h: Undefine roundf, round, roundl before defining
29545         their replacements, to allow for hypothetical systems where these
29546         may be defined as macros but not available in libraries.
29547
29548 2007-10-27  Bruno Haible  <bruno@clisp.org>
29549
29550         * doc/gnulib.texi: Invoke @firstparagraphindent.
29551         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29552         changes in gnulib.
29553         (Source changes): New section.
29554
29555 2007-10-26  Bruno Haible  <bruno@clisp.org>
29556
29557         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29558         borrowed from autoconf.
29559
29560 2007-10-26  Bruno Haible  <bruno@clisp.org>
29561
29562         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29563         strerror returned the empty string. Needed on HP-UX 11.00.
29564
29565 2007-10-24  Micah Cowan  <micah@cowan.name>
29566
29567         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29568         * build-aux/bootstrap: Remove support for now-unnecessary option,
29569         --cvs-user, and envvars CVS_USER, CVS_RSH.
29570
29571 2007-10-24  Jim Meyering  <meyering@redhat.com>
29572
29573         Avoid diagnostics from sha1sum when there is no cached checksum.
29574         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29575         if the po.s1 file hasn't been created yet.
29576
29577         * build-aux/bootstrap: Sync from coreutils:
29578         2007-10-24  Jim Meyering  <meyering@redhat.com>
29579         Get gnulib from the git repository, not from an obsolete cvs one.
29580         * build-aux/bootstrap: Suggestion from Micah Cowan.
29581         2007-10-04  Jim Meyering  <jim@meyering.net>
29582         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29583         (update_po_files): Work also when there are no .po files in po/.
29584
29585 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29586
29587         * README: Append ".git" to git and cg examples.
29588         Problem reported by Benoit Sigoure.
29589
29590 2007-10-23  Micah Cowan  <micah@cowan.name>
29591
29592         * users.txt: Add wget.
29593
29594 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29595
29596         Fix linking of some unistdio tests on FreeBSD.
29597         * modules/unistdio/u16-vsnprintf-tests
29598         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29599         * modules/unistdio/u16-vsprintf-tests
29600         (test_u16_vsnprintf1_LDADD): Likewise.
29601         * modules/unistdio/u32-vsnprintf-tests
29602         (test_u32_vsnprintf1_LDADD): Likewise.
29603         * modules/unistdio/u32-vsprintf-tests
29604         (test_u32_vsprintf1_LDADD): Likewise.
29605         * modules/unistdio/u8-vsnprintf-tests
29606         (test_u8_vsnprintf1_LDADD): Likewise.
29607         * modules/unistdio/u8-vsprintf-tests
29608         (test_u8_vsprintf1_LDADD): Likewise.
29609         * modules/unistdio/ulc-vsnprintf-tests
29610         (test_ulc_vsnprintf1_LDADD): Likewise.
29611         * modules/unistdio/ulc-vsprintf-tests
29612         (test_ulc_vsprintf1_LDADD): Likewise.
29613
29614         Fix linking of some uniconv tests on FreeBSD.
29615         * modules/uniconv/u16-conv-from-enc-tests
29616         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29617         * modules/uniconv/u16-conv-to-enc-tests
29618         (test_u16_conv_to_enc_LDADD): Likewise.
29619         * modules/uniconv/u16-strconv-from-enc-tests
29620         (test_u16_strconv_from_enc_LDADD): Likewise.
29621         * modules/uniconv/u16-strconv-to-enc-tests
29622         (test_u16_strconv_to_enc_LDADD): Likewise.
29623         * modules/uniconv/u32-conv-from-enc-tests
29624         (test_u32_conv_from_enc_LDADD): Likewise.
29625         * modules/uniconv/u32-conv-to-enc-tests
29626         (test_u32_conv_to_enc_LDADD): Likewise.
29627         * modules/uniconv/u32-strconv-from-enc-tests
29628         (test_u32_strconv_from_enc_LDADD): Likewise.
29629         * modules/uniconv/u32-strconv-to-enc-tests
29630         (test_u32_strconv_to_enc_LDADD): Likewise.
29631         * modules/uniconv/u8-conv-from-enc-tests
29632         (test_u8_conv_from_enc_LDADD): Likewise.
29633         * modules/uniconv/u8-conv-to-enc-tests
29634         (test_u8_conv_to_enc_LDADD): Likewise.
29635         * modules/uniconv/u8-strconv-from-enc-tests
29636         (test_u8_strconv_from_enc_LDADD): Likewise.
29637         * modules/uniconv/u8-strconv-to-enc-tests
29638         (test_u8_strconv_to_enc_LDADD): Likewise.
29639
29640 2007-10-22  Bruno Haible  <bruno@clisp.org>
29641
29642         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29643         size.
29644
29645 2007-10-22  Eric Blake  <ebb9@byu.net>
29646
29647         Tweak x*printf documentation.
29648         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29649         variable name and comments.
29650         Suggested by Bruno Haible.
29651
29652 2007-10-22  Bruno Haible  <bruno@clisp.org>
29653
29654         * lib/acl.c (copy_acl): Fix file name in comment.
29655
29656 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29657
29658         Fix Tru64 problem with stdbool.h.
29659         * lib/stdbool.in.h (false, true):
29660         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29661         Don't declare as an enum in this situation; it runs afoul of Tru64.
29662         Problem reported by Steven M. Schweda in
29663         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29664
29665 2007-10-22  Eric Blake  <ebb9@byu.net>
29666
29667         Also wrap vf?printf.
29668         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29669         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29670         (xvprintf, xvfprintf): New functions.
29671
29672 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29673
29674         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29675         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29676
29677         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29678         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29679
29680 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29681
29682         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
29683         by Bruno Haible.
29684
29685 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29686
29687         * lib/getloadavg.c
29688         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
29689         Undef `sys' after including sys/table.h, for Tru64 4.0D.
29690
29691         * tests/test-i-ring.c: Work for C89.
29692
29693 2007-10-22  Bruno Haible  <bruno@clisp.org>
29694
29695         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
29696         -1u, in preprocessor expression, so that we don't test for the bug
29697         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
29698         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
29699
29700 2007-10-22  Eric Blake  <ebb9@byu.net>
29701
29702         * tests/test-yesno.sh: Silence stderr during test.
29703
29704 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29705
29706         * modules/crypto/gc-camellia: New file.
29707
29708         * m4/gc-camellia.m4: New file.
29709
29710         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
29711
29712         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
29713
29714 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29715
29716         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
29717         --help to stdout.  Reported by sms@antinode.org (Steven
29718         M. Schweda).
29719
29720 2007-10-22  Simon Josefsson  <simon@josefsson.org>
29721
29722         * users.txt: Fix link to libksba.
29723
29724 2007-10-21  Ben Pfaff  <blp@gnu.org>
29725
29726         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
29727         round.c roundf implementation that depends on floorf and ceilf to
29728         be tested unconditionally.
29729
29730 2007-10-21  Ben Pfaff  <blp@gnu.org>
29731
29732         * m4/check-libm-func.m4: Removed.
29733         * m4/check-math-lib.m4: New file.
29734         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
29735         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
29736         definition and lack of AC_LIBOBJ([roundf]).
29737         * m4/roundl.m4: Ditto, and similarly for roundl.
29738         * modules/round: Reference new m4 file.
29739         * modules/roundf: Ditto.
29740         * modules/roundl: Ditto.
29741         * tests/test-round2.c (main): Use ROUND instead of round.
29742         Bug report from Bruno Haible.
29743
29744 2007-10-21  Bruno Haible  <bruno@clisp.org>
29745
29746         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
29747         context.
29748
29749 2007-10-21  Bruno Haible  <bruno@clisp.org>
29750
29751         * tests/test-wcwidth.c (main): Allow negative result for some control
29752         characters.
29753
29754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
29755         Needed on OSF/1 5.1.
29756
29757 2007-10-21  Bruno Haible  <bruno@clisp.org>
29758
29759         * tests/test-floorf1.c: Include isnanf.h.
29760         (main): Use isnanf() instead of isnan().
29761         * tests/test-ceilf1.c: Include isnanf.h.
29762         (main): Use isnanf() instead of isnan().
29763         * tests/test-truncf1.c: Include isnanf.h.
29764         (main): Use isnanf() instead of isnan().
29765         * tests/test-roundf1.c: Include isnanf.h.
29766         (main): Use isnanf() instead of isnan().
29767
29768 2007-10-21  Eric Blake  <ebb9@byu.net>
29769
29770         * users.txt: Update URL for m4.
29771
29772 2007-10-21  Bruno Haible  <bruno@clisp.org>
29773
29774         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
29775
29776 2007-10-21  Bruno Haible  <bruno@clisp.org>
29777
29778         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
29779         Git's management files if the CVS files are not present.
29780
29781 2007-10-20  Bruno Haible  <bruno@clisp.org>
29782
29783         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
29784         gcc-3.4.x.
29785
29786 2007-10-20  Ben Pfaff  <blp@gnu.org>
29787
29788         * lib/math.in.h: Declare round, roundf, roundl if we are providing
29789         implementations.
29790         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
29791         * lib/round.c: New file.
29792         * lib/roundf.c: New file.
29793         * lib/roundl.c: New file.
29794         * m4/round.m4: New file.
29795         * m4/roundf.m4: New file.
29796         * m4/roundl.m4: New file.
29797         * m4/check-libm-func-m4: New file.
29798         * modules/math: Replace round, roundf, roundl related @VARS@ in
29799         math.in.h.
29800         * modules/round: New file.
29801         * modules/round-tests: New file.
29802         * modules/roundf: New file.
29803         * modules/roundf-tests: New file.
29804         * modules/roundl: New file.
29805         * modules/roundl-tests: New file.
29806         * tests/test-round1.c: New file.
29807         * tests/test-round2.c: New file.
29808         * tests/test-roundf1.c: New file.
29809         * tests/test-roundf2.c: New file.
29810         * tests/test-roundl.c: New file.
29811         * doc/functions/round.texi: Mention round module.
29812         * doc/functions/roundf.texi: Mention roundf module.
29813         * doc/functions/roundl.texi: Mention roundl module.
29814         * MODULES.html.sh: Mention new modules.
29815         Thanks to Bruno Haible for suggestions.
29816
29817 2007-10-20  Jim Meyering  <meyering@redhat.com>
29818
29819         * lib/xprintf.c: Include <config.h> unconditionally.
29820
29821         Change xprintf's license to GPL.
29822         * modules/xprintf (License): s/LGPL/GPL/, since this module
29823         depends on modules (exit and exitfail) which are GPL.
29824         Suggestion from Bruno Haible.
29825
29826         xprintf fixes.
29827         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
29828         Use a clearer diagnostic.
29829         Patch from Bruno Haible.
29830
29831 2007-10-20  Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
29834         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
29835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29836
29837 2007-10-20  Bruno Haible  <bruno@clisp.org>
29838
29839         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
29840         precision in the comparison result > x - 1 or similar.
29841         * tests/test-ceilf2.c (correct_result_p): Likewise.
29842         * tests/test-truncf2.c (correct_result_p): Likewise.
29843         * tests/test-trunc2.c (correct_result_p): Likewise.
29844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29845
29846 2007-10-20  Bruno Haible  <bruno@clisp.org>
29847
29848         * modules/ceil: New file.
29849         * m4/ceil.m4: New file.
29850         * doc/functions/ceil.texi: Mention the 'ceil' module.
29851
29852 2007-10-20  Bruno Haible  <bruno@clisp.org>
29853
29854         * modules/floor: New file.
29855         * m4/floor.m4: New file.
29856         * doc/functions/floor.texi: Mention the 'floor' module.
29857
29858 2007-10-20  Bruno Haible  <bruno@clisp.org>
29859
29860         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
29861         of %a.
29862         * modules/floorf-tests (Depends-on): Likewise.
29863         * modules/truncf-tests (Depends-on): Likewise.
29864         * modules/trunc-tests (Depends-on): Likewise.
29865         Reported by Ben Pfaff.
29866
29867 2007-10-19  Jim Meyering  <meyering@redhat.com>
29868
29869         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
29870         Don't bother testing specific errno values.  Just test ferror.
29871
29872         New module: xprintf
29873         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
29874
29875 2007-10-19  Bruno Haible  <bruno@clisp.org>
29876
29877         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
29878         syntax.
29879         * modules/javaexec (Makefile.am): Likewise.
29880         * modules/relocatable-prog (Makefile.am): Likewise.
29881         Suggested by Jim Meyering.
29882
29883 2007-10-18  Bruno Haible  <bruno@clisp.org>
29884
29885         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
29886         Reported by Jim Meyering.
29887
29888 2007-10-18  Eric Blake  <ebb9@byu.net>
29889
29890         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
29891
29892 2007-10-18  Bruno Haible  <bruno@clisp.org>
29893
29894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
29895         the format string into writable memory. Needed in Fortify conditions.
29896
29897 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
29898             Bruno Haible  <bruno@clisp.org>
29899
29900         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
29901         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
29902         * modules/trim (Depends-on): Add mbchar.
29903         (configure.ac): Add gl_FUNC_MBRTOWC.
29904         (Makefile.am): Augment lib_SOURCES.
29905
29906 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29907
29908         Modify glob.c to use fstatat and dirfd, to simplify it.
29909         Suggested by Eric Blake.
29910         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
29911         Don't include <stdbool.h>; not used.
29912         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
29913         (link_exists_p): Simplify implementation, since we can now assume
29914         dirfd and fstatat.
29915         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
29916
29917 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29918
29919         * gnulib-tool (func_get_dependencies): Fix sed script to
29920         match only tests.
29921
29922 2007-10-17  Bruno Haible  <bruno@clisp.org>
29923
29924         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
29925         allow locale names without encoding suffix.
29926         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
29927         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29928
29929 2007-10-16  Bruno Haible  <bruno@clisp.org>
29930
29931         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
29932         * lib/getgroups.c (getgroups): Likewise.
29933         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
29934
29935 2007-10-16  Bruno Haible  <bruno@clisp.org>
29936
29937         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
29938         * modules/malloc-posix (License): Likewise.
29939         * modules/realloc-posix (License): Likewise.
29940         * modules/calloc-posix (License): Likewise.
29941         * modules/intprops (License): Change from GPL to LGPL, with
29942         Paul Eggert's approval.
29943
29944 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29945
29946         Merge glibc changes into lib/glob.c.
29947
29948         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
29949         2007-10-15 04:59:03 UTC.  Here are the changes:
29950
29951         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
29952
29953         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
29954
29955         * lib/glob.c: Add some branch prediction throughout.
29956
29957         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
29958
29959         [BZ #5103]
29960         * lib/glob.c (glob): Recognize patterns starting \/.
29961
29962         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
29963
29964         [BZ #3996]
29965         * lib/glob.c (attribute_hidden): Define if not defined.
29966         (glob): Unescape dirname, filename or username when needed and not
29967         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
29968         is NULL.  Handle unescaped [ in pattern without closing ].
29969         Don't pass GLOB_CHECK down to recursive glob for directories.
29970         (__glob_pattern_type): New function.
29971         (__glob_pattern_p): Implement using __glob_pattern_type.
29972         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
29973         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
29974         Remove unreachable code.
29975
29976         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
29977
29978         * lib/glob.c (glob_in_dir): Add some comments and asserts to
29979         explain why there are no leaks.
29980
29981         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
29982
29983         [BZ #3253]
29984         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
29985         time, rather allocate increasingly bigger arrays of pointers, if
29986         possible with alloca, if too large with malloc.
29987
29988 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
29989
29990         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
29991         Problem reported by H.Merijn Brand in
29992         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
29993         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
29994         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
29995
29996 2007-10-15  Bruno Haible  <bruno@clisp.org>
29997
29998         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
29999         with explicit rpl_ prefix.
30000         * lib/fopen.c (fopen): Likewise.
30001         * lib/freopen.c (freopen): Likewise.
30002         * lib/iconv.c (iconv): Likewise.
30003         * lib/iconv_close.c (iconv_close): Likewise.
30004
30005 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30006
30007         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30008
30009 2007-10-15  Bruno Haible  <bruno@clisp.org>
30010
30011         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30012         <stddef.h> instead of <stdlib.h> since we only need NULL.
30013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30014
30015 2007-10-15  Bruno Haible  <bruno@clisp.org>
30016
30017         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30018         Replace paragraph talking about LIBOBJS.
30019         Reported by Colin Watson <cjwatson@debian.org>.
30020
30021 2007-10-15  Bruno Haible  <bruno@clisp.org>
30022
30023         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30024         <stdlib.h> before using NULL.
30025
30026 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30027
30028         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30029         Reported by Albert Chin <china@thewrittenword.com>.
30030
30031 2007-10-14  Bruno Haible  <bruno@clisp.org>
30032
30033         * modules/iconv_open-utf-tests: New file.
30034         * tests/test-iconv-utf.c: New file.
30035
30036         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30037         * modules/iconv_open-utf: New file.
30038         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30039         (iconv, iconv_close): New declarations.
30040         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30041         be defined.
30042         (iconv_open): Add special handling of conversion between UTF-8 and
30043         UTF-{16,32}{BE,LE}.
30044         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30045         * lib/iconv_close.c: New file.
30046         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30047         gl_FUNC_ICONV_OPEN.
30048         (gl_FUNC_ICONV_OPEN): Use it.
30049         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30050         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30051         and REPLACE_ICONV_UTF.
30052         * modules/iconv_open (Depends-on): Add c-strcase.
30053         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30054         ICONV_CONST.
30055         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30056
30057 2007-10-13  Albert Chin  <china@thewrittenword.com>
30058             Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30061         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30062
30063 2007-10-13  Bruno Haible  <bruno@clisp.org>
30064
30065         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30066         defined, use the ISO C99 inline semantics.
30067         * lib/argp.h (ARGP_EI): Likewise.
30068
30069 2007-10-13  Bruno Haible  <bruno@clisp.org>
30070
30071         Handle 'inline' change in gcc 4.3.0.
30072         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30073         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30074         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30075         argp_fmtstream_point): Disable 'extern' declaration if the function
30076         definition is going to be provided inline.
30077         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30078         semantics, not the ISO C99 inline semantics.
30079         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30080         'extern' declaration if the function definition is going to be provided
30081         inline.
30082         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30083         the GNU C inline semantics, not the ISO C99 inline semantics. With
30084         GCC 4.2, avoid a warning.
30085
30086 2007-10-13  Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/freading.h (freading): Enable the use of __freading for
30089         glibc >= 2.7.
30090         * lib/freading.c (freading): Likewise.
30091
30092 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30093
30094         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30095         "warning: C99 inline functions are not supported; using GNU89".
30096
30097 2007-10-12  Bruno Haible  <bruno@clisp.org>
30098
30099         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30100         of 2.
30101         * tests/test-ceilf2.c: New file.
30102         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30103
30104         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30105         * modules/ceilf-tests: Update.
30106
30107 2007-10-12  Bruno Haible  <bruno@clisp.org>
30108
30109         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30110         of 2.
30111         * tests/test-floorf2.c: New file.
30112         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30113
30114         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30115         * modules/floorf-tests: Update.
30116
30117 2007-10-12  Bruno Haible  <bruno@clisp.org>
30118
30119         * tests/test-trunc2.c: New file.
30120         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30121
30122         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30123         * modules/trunc-tests: Update.
30124
30125 2007-10-12  Bruno Haible  <bruno@clisp.org>
30126
30127         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30128         of 2.
30129         * tests/test-truncf2.c: New file.
30130         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30131
30132         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30133         * modules/truncf-tests: Update.
30134
30135 2007-10-11  Eric Blake  <ebb9@byu.net>
30136
30137         Don't claim strerror is broken on Interix.
30138         * doc/functions/strerror.texi (strerror): Known broken systems are
30139         now Solaris 8, and not Interix.
30140         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30141         Interix on cross-compile.
30142         Reported by Martin Koeppe in
30143         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30144
30145 2007-10-11  Bruno Haible  <bruno@clisp.org>
30146
30147         * modules/i-ring-tests: New file.
30148         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30149         instead of assert.
30150
30151 2007-10-11  Bruno Haible  <bruno@clisp.org>
30152
30153         * modules/filenamecat-tests: New file.
30154         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30155         * lib/filenamecat.c: Remove test code.
30156
30157 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30160
30161         * lib/strerror.c: Include <string.h> always, to test interface,
30162         and to remove the need for the dummy.
30163         Include intprops.h to compute width instead of doing it ourselves
30164         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30165         (strerror): Define it to return NULL if there's no system strerror.
30166         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30167         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30168         ancient pre-strerror Unix systems well any more.  Saying "unknown
30169         system error" is enough.
30170         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30171         simpler strerror.c implementation.
30172         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30173         Simplify the tests to reflect the simpler strerror implementation.
30174         * modules/strerror (Depends-on): Add intprops.
30175
30176 2007-10-09  Eric Blake  <ebb9@byu.net>
30177
30178         Silence test-fpending.
30179         * modules/fpending-tests (Files): Add wrapper script.
30180         * tests/test-fpending.sh: New file.
30181
30182 2007-10-09  Bruno Haible  <bruno@clisp.org>
30183
30184         * MODULES.html.sh (func_module): Don't create a hyperlink for
30185         function names like 'printf_frexp'.
30186         (Misc): Add crc, memxor.
30187         (Characteristics of floating types): New section.
30188         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30189         isnanf-nolibm, signbit, trunc, truncf, truncl.
30190         (Enhancements for ISO C 99 functions): New subsection Input/output.
30191         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30192         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30193         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30194         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30195         (Enhancements for POSIX:2001 functions): Add chdir-long.
30196         (File system functions): Add areadlink, chdir-safer, read-file.
30197         Remove cycle-check.
30198         (File system as inode set): New section.
30199         (Date and time): Add gethrxtime.
30200         (Multithreading): Add openmp.
30201         (Internationalization functions): Add localename.
30202         (Unicode string functions): Add unistr/u*-mbsnlen.
30203         (Support for maintaining and releasing projects): Add git-version-gen.
30204         (Lone files): Remove directories.
30205
30206 2007-10-08  Ben Pfaff  <blp@gnu.org>
30207
30208         * lib/xmalloca.h: Fix typo in comment.
30209
30210 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30211
30212         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30213         when avoiding problems with integer overflow.  Use a portable test
30214         instead.
30215
30216 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30217
30218         * modules/dummy (License): Change to LGPLv2+.
30219         * modules/float (License): Likewise
30220         * modules/realloc (License): Likewise
30221         * modules/stdlib (License): Likewise
30222
30223 2007-10-07  Bruno Haible  <bruno@clisp.org>
30224
30225         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30226         * floor.c (TWO_MANT_DIG): Likewise.
30227         * ceil.c (TWO_MANT_DIG): Likewise.
30228         Reported by Ben Pfaff.
30229
30230 2007-10-07  Bruno Haible  <bruno@clisp.org>
30231
30232         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30233         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30234         * lib/frexp.c (FUNC): Likewise.
30235         * lib/printf-frexp.h (printf_frexp): Likewise.
30236         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30237         * lib/printf-frexp.c (FUNC): Likewise.
30238         Suggested by Jim Meyering.
30239
30240 2007-10-07  Jim Meyering  <meyering@redhat.com>
30241
30242         Make xnanosleep's integer overflow test more robust.
30243         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30244         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30245
30246 2007-10-07  Bruno Haible  <bruno@clisp.org>
30247
30248         * NEWS: Mention the license change.
30249
30250         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30251         abbreviations in the modules files.
30252
30253         Change copyright notice from GPLv2+ to GPLv3+.
30254         * README: Change copyright notice.
30255         * MODULES.html.sh: Likewise.
30256         * build-aux/bootstrap.conf: Likewise.
30257         * build-aux/config.libpath: Likewise.
30258         * build-aux/csharpcomp.sh.in: Likewise.
30259         * build-aux/csharpexec.sh.in: Likewise.
30260         * build-aux/install-reloc: Likewise.
30261         * build-aux/javacomp.sh.in: Likewise.
30262         * build-aux/javaexec.sh.in: Likewise.
30263         * build-aux/ldd.sh.in: Likewise.
30264         * build-aux/reloc-ldflags: Likewise.
30265         * build-aux/relocatable.sh.in: Likewise.
30266         * build-aux/x-to-1.in: Likewise.
30267         * check-module: Likewise.
30268         * config/srclistvars.sh: Likewise.
30269         * gnulib-tool: Likewise.
30270         * lib/acl-internal.h: Likewise.
30271         * lib/acl.c: Likewise.
30272         * lib/acl.h: Likewise.
30273         * lib/acl_entries.c: Likewise.
30274         * lib/areadlink-with-size.c: Likewise.
30275         * lib/areadlink.c: Likewise.
30276         * lib/areadlink.h: Likewise.
30277         * lib/argmatch.c: Likewise.
30278         * lib/argmatch.h: Likewise.
30279         * lib/argp-ba.c: Likewise.
30280         * lib/argp-eexst.c: Likewise.
30281         * lib/argp-fmtstream.c: Likewise.
30282         * lib/argp-fmtstream.h: Likewise.
30283         * lib/argp-fs-xinl.c: Likewise.
30284         * lib/argp-help.c: Likewise.
30285         * lib/argp-namefrob.h: Likewise.
30286         * lib/argp-parse.c: Likewise.
30287         * lib/argp-pin.c: Likewise.
30288         * lib/argp-pv.c: Likewise.
30289         * lib/argp-pvh.c: Likewise.
30290         * lib/argp-xinl.c: Likewise.
30291         * lib/argp.h: Likewise.
30292         * lib/at-func.c: Likewise.
30293         * lib/atanl.c: Likewise.
30294         * lib/backupfile.c: Likewise.
30295         * lib/backupfile.h: Likewise.
30296         * lib/basename.c: Likewise.
30297         * lib/binary-io.h: Likewise.
30298         * lib/byteswap.in.h: Likewise.
30299         * lib/c-stack.c: Likewise.
30300         * lib/c-stack.h: Likewise.
30301         * lib/c-strcasestr.c: Likewise.
30302         * lib/c-strcasestr.h: Likewise.
30303         * lib/c-strstr.c: Likewise.
30304         * lib/c-strstr.h: Likewise.
30305         * lib/c-strtod.c: Likewise.
30306         * lib/calloc.c: Likewise.
30307         * lib/canon-host.c: Likewise.
30308         * lib/canon-host.h: Likewise.
30309         * lib/canonicalize-lgpl.c: Likewise.
30310         * lib/canonicalize.c: Likewise.
30311         * lib/canonicalize.h: Likewise.
30312         * lib/ceil.c: Likewise.
30313         * lib/ceilf.c: Likewise.
30314         * lib/ceill.c: Likewise.
30315         * lib/chdir-long.c: Likewise.
30316         * lib/chdir-long.h: Likewise.
30317         * lib/chdir-safer.c: Likewise.
30318         * lib/chdir-safer.h: Likewise.
30319         * lib/chown.c: Likewise.
30320         * lib/classpath.c: Likewise.
30321         * lib/classpath.h: Likewise.
30322         * lib/clean-temp.c: Likewise.
30323         * lib/clean-temp.h: Likewise.
30324         * lib/cloexec.c: Likewise.
30325         * lib/close-stream.c: Likewise.
30326         * lib/closein.c: Likewise.
30327         * lib/closein.h: Likewise.
30328         * lib/closeout.c: Likewise.
30329         * lib/closeout.h: Likewise.
30330         * lib/concat-filename.c: Likewise.
30331         * lib/copy-file.c: Likewise.
30332         * lib/copy-file.h: Likewise.
30333         * lib/count-one-bits.h: Likewise.
30334         * lib/crc.c: Likewise.
30335         * lib/crc.h: Likewise.
30336         * lib/creat-safer.c: Likewise.
30337         * lib/csharpcomp.c: Likewise.
30338         * lib/csharpcomp.h: Likewise.
30339         * lib/csharpexec.c: Likewise.
30340         * lib/csharpexec.h: Likewise.
30341         * lib/cycle-check.c: Likewise.
30342         * lib/cycle-check.h: Likewise.
30343         * lib/diacrit.c: Likewise.
30344         * lib/diacrit.h: Likewise.
30345         * lib/diffseq.h: Likewise.
30346         * lib/dirchownmod.c: Likewise.
30347         * lib/dirent.in.h: Likewise.
30348         * lib/dirfd.c: Likewise.
30349         * lib/dirfd.h: Likewise.
30350         * lib/dirname.c: Likewise.
30351         * lib/dirname.h: Likewise.
30352         * lib/dummy.c: Likewise.
30353         * lib/dup-safer.c: Likewise.
30354         * lib/dup2.c: Likewise.
30355         * lib/eealloc.h: Likewise.
30356         * lib/error.c: Likewise.
30357         * lib/error.h: Likewise.
30358         * lib/euidaccess.c: Likewise.
30359         * lib/exclude.c: Likewise.
30360         * lib/exclude.h: Likewise.
30361         * lib/execute.c: Likewise.
30362         * lib/execute.h: Likewise.
30363         * lib/exitfail.c: Likewise.
30364         * lib/exitfail.h: Likewise.
30365         * lib/expl.c: Likewise.
30366         * lib/fatal-signal.c: Likewise.
30367         * lib/fatal-signal.h: Likewise.
30368         * lib/fbufmode.c: Likewise.
30369         * lib/fbufmode.h: Likewise.
30370         * lib/fchdir.c: Likewise.
30371         * lib/fchmodat.c: Likewise.
30372         * lib/fchownat.c: Likewise.
30373         * lib/fcntl--.h: Likewise.
30374         * lib/fcntl-safer.h: Likewise.
30375         * lib/fcntl.in.h: Likewise.
30376         * lib/fd-safer.c: Likewise.
30377         * lib/fflush.c: Likewise.
30378         * lib/file-has-acl.c: Likewise.
30379         * lib/file-set.c: Likewise.
30380         * lib/file-type.c: Likewise.
30381         * lib/file-type.h: Likewise.
30382         * lib/fileblocks.c: Likewise.
30383         * lib/filemode.c: Likewise.
30384         * lib/filemode.h: Likewise.
30385         * lib/filename.h: Likewise.
30386         * lib/filenamecat.c: Likewise.
30387         * lib/filenamecat.h: Likewise.
30388         * lib/findprog.c: Likewise.
30389         * lib/findprog.h: Likewise.
30390         * lib/float.in.h: Likewise.
30391         * lib/floor.c: Likewise.
30392         * lib/floorf.c: Likewise.
30393         * lib/floorl.c: Likewise.
30394         * lib/fopen-safer.c: Likewise.
30395         * lib/fopen.c: Likewise.
30396         * lib/fpending.c: Likewise.
30397         * lib/fpending.h: Likewise.
30398         * lib/fprintf.c: Likewise.
30399         * lib/fprintftime.h: Likewise.
30400         * lib/fpucw.h: Likewise.
30401         * lib/fpurge.c: Likewise.
30402         * lib/fpurge.h: Likewise.
30403         * lib/freadable.c: Likewise.
30404         * lib/freadable.h: Likewise.
30405         * lib/freadahead.c: Likewise.
30406         * lib/freadahead.h: Likewise.
30407         * lib/freading.c: Likewise.
30408         * lib/freading.h: Likewise.
30409         * lib/free.c: Likewise.
30410         * lib/freopen.c: Likewise.
30411         * lib/frexp.c: Likewise.
30412         * lib/frexpl.c: Likewise.
30413         * lib/fseek.c: Likewise.
30414         * lib/fseterr.c: Likewise.
30415         * lib/fseterr.h: Likewise.
30416         * lib/fstatat.c: Likewise.
30417         * lib/fstrcmp.c: Likewise.
30418         * lib/fstrcmp.h: Likewise.
30419         * lib/fsusage.c: Likewise.
30420         * lib/fsusage.h: Likewise.
30421         * lib/ftell.c: Likewise.
30422         * lib/ftello.c: Likewise.
30423         * lib/fts-cycle.c: Likewise.
30424         * lib/fts.c: Likewise.
30425         * lib/fts_.h: Likewise.
30426         * lib/full-read.c: Likewise.
30427         * lib/full-read.h: Likewise.
30428         * lib/full-write.c: Likewise.
30429         * lib/full-write.h: Likewise.
30430         * lib/fwritable.c: Likewise.
30431         * lib/fwritable.h: Likewise.
30432         * lib/fwriteerror.c: Likewise.
30433         * lib/fwriteerror.h: Likewise.
30434         * lib/fwriting.c: Likewise.
30435         * lib/fwriting.h: Likewise.
30436         * lib/gcd.c: Likewise.
30437         * lib/gcd.h: Likewise.
30438         * lib/getcwd.c: Likewise.
30439         * lib/getdate.h: Likewise.
30440         * lib/getdate.y: Likewise.
30441         * lib/getdomainname.c: Likewise.
30442         * lib/getdomainname.h: Likewise.
30443         * lib/getgroups.c: Likewise.
30444         * lib/gethostname.c: Likewise.
30445         * lib/gethrxtime.c: Likewise.
30446         * lib/gethrxtime.h: Likewise.
30447         * lib/getloadavg.c: Likewise.
30448         * lib/getndelim2.c: Likewise.
30449         * lib/getndelim2.h: Likewise.
30450         * lib/getnline.c: Likewise.
30451         * lib/getnline.h: Likewise.
30452         * lib/getopt.c: Likewise.
30453         * lib/getopt.in.h: Likewise.
30454         * lib/getopt1.c: Likewise.
30455         * lib/getopt_int.h: Likewise.
30456         * lib/getpagesize.h: Likewise.
30457         * lib/getsubopt.c: Likewise.
30458         * lib/gettime.c: Likewise.
30459         * lib/getugroups.c: Likewise.
30460         * lib/getugroups.h: Likewise.
30461         * lib/getusershell.c: Likewise.
30462         * lib/gl_anyavltree_list1.h: Likewise.
30463         * lib/gl_anyavltree_list2.h: Likewise.
30464         * lib/gl_anyhash_list1.h: Likewise.
30465         * lib/gl_anyhash_list2.h: Likewise.
30466         * lib/gl_anylinked_list1.h: Likewise.
30467         * lib/gl_anylinked_list2.h: Likewise.
30468         * lib/gl_anyrbtree_list1.h: Likewise.
30469         * lib/gl_anyrbtree_list2.h: Likewise.
30470         * lib/gl_anytree_list1.h: Likewise.
30471         * lib/gl_anytree_list2.h: Likewise.
30472         * lib/gl_anytree_oset.h: Likewise.
30473         * lib/gl_anytreehash_list1.h: Likewise.
30474         * lib/gl_anytreehash_list2.h: Likewise.
30475         * lib/gl_array_list.c: Likewise.
30476         * lib/gl_array_list.h: Likewise.
30477         * lib/gl_array_oset.c: Likewise.
30478         * lib/gl_array_oset.h: Likewise.
30479         * lib/gl_avltree_list.c: Likewise.
30480         * lib/gl_avltree_list.h: Likewise.
30481         * lib/gl_avltree_oset.c: Likewise.
30482         * lib/gl_avltree_oset.h: Likewise.
30483         * lib/gl_avltreehash_list.c: Likewise.
30484         * lib/gl_avltreehash_list.h: Likewise.
30485         * lib/gl_carray_list.c: Likewise.
30486         * lib/gl_carray_list.h: Likewise.
30487         * lib/gl_linked_list.c: Likewise.
30488         * lib/gl_linked_list.h: Likewise.
30489         * lib/gl_linkedhash_list.c: Likewise.
30490         * lib/gl_linkedhash_list.h: Likewise.
30491         * lib/gl_list.c: Likewise.
30492         * lib/gl_list.h: Likewise.
30493         * lib/gl_oset.c: Likewise.
30494         * lib/gl_oset.h: Likewise.
30495         * lib/gl_rbtree_list.c: Likewise.
30496         * lib/gl_rbtree_list.h: Likewise.
30497         * lib/gl_rbtree_oset.c: Likewise.
30498         * lib/gl_rbtree_oset.h: Likewise.
30499         * lib/gl_rbtreehash_list.c: Likewise.
30500         * lib/gl_rbtreehash_list.h: Likewise.
30501         * lib/gl_sublist.c: Likewise.
30502         * lib/gl_sublist.h: Likewise.
30503         * lib/group-member.c: Likewise.
30504         * lib/group-member.h: Likewise.
30505         * lib/hard-locale.c: Likewise.
30506         * lib/hard-locale.h: Likewise.
30507         * lib/hash-pjw.c: Likewise.
30508         * lib/hash-pjw.h: Likewise.
30509         * lib/hash-triple.c: Likewise.
30510         * lib/hash.c: Likewise.
30511         * lib/hash.h: Likewise.
30512         * lib/human.c: Likewise.
30513         * lib/human.h: Likewise.
30514         * lib/i-ring.c: Likewise.
30515         * lib/i-ring.h: Likewise.
30516         * lib/idcache.c: Likewise.
30517         * lib/imaxabs.c: Likewise.
30518         * lib/imaxdiv.c: Likewise.
30519         * lib/inet_pton.c: Likewise.
30520         * lib/inet_pton.h: Likewise.
30521         * lib/intprops.h: Likewise.
30522         * lib/inttostr.c: Likewise.
30523         * lib/inttostr.h: Likewise.
30524         * lib/inttypes.in.h: Likewise.
30525         * lib/isapipe.c: Likewise.
30526         * lib/isdir.c: Likewise.
30527         * lib/isnan.c: Likewise.
30528         * lib/isnan.h: Likewise.
30529         * lib/isnanf.c: Likewise.
30530         * lib/isnanf.h: Likewise.
30531         * lib/isnanl-nolibm.h: Likewise.
30532         * lib/isnanl.c: Likewise.
30533         * lib/isnanl.h: Likewise.
30534         * lib/javacomp.c: Likewise.
30535         * lib/javacomp.h: Likewise.
30536         * lib/javaexec.c: Likewise.
30537         * lib/javaexec.h: Likewise.
30538         * lib/javaversion.c: Likewise.
30539         * lib/javaversion.h: Likewise.
30540         * lib/javaversion.java: Likewise.
30541         * lib/lbrkprop.h: Likewise.
30542         * lib/lchmod.h: Likewise.
30543         * lib/lchown.c: Likewise.
30544         * lib/ldexpl.c: Likewise.
30545         * lib/linebreak.c: Likewise.
30546         * lib/linebreak.h: Likewise.
30547         * lib/linebuffer.c: Likewise.
30548         * lib/linebuffer.h: Likewise.
30549         * lib/locale.in.h: Likewise.
30550         * lib/logl.c: Likewise.
30551         * lib/long-options.c: Likewise.
30552         * lib/long-options.h: Likewise.
30553         * lib/lstat.c: Likewise.
30554         * lib/lstat.h: Likewise.
30555         * lib/math.in.h: Likewise.
30556         * lib/mbchar.c: Likewise.
30557         * lib/mbchar.h: Likewise.
30558         * lib/mbfile.h: Likewise.
30559         * lib/mbiter.h: Likewise.
30560         * lib/mbscasecmp.c: Likewise.
30561         * lib/mbscasestr.c: Likewise.
30562         * lib/mbschr.c: Likewise.
30563         * lib/mbscspn.c: Likewise.
30564         * lib/mbslen.c: Likewise.
30565         * lib/mbsncasecmp.c: Likewise.
30566         * lib/mbsnlen.c: Likewise.
30567         * lib/mbspbrk.c: Likewise.
30568         * lib/mbspcasecmp.c: Likewise.
30569         * lib/mbsrchr.c: Likewise.
30570         * lib/mbssep.c: Likewise.
30571         * lib/mbsspn.c: Likewise.
30572         * lib/mbsstr.c: Likewise.
30573         * lib/mbstok_r.c: Likewise.
30574         * lib/mbswidth.c: Likewise.
30575         * lib/mbswidth.h: Likewise.
30576         * lib/mbuiter.h: Likewise.
30577         * lib/memcasecmp.c: Likewise.
30578         * lib/memcasecmp.h: Likewise.
30579         * lib/memchr.c: Likewise.
30580         * lib/memcmp.c: Likewise.
30581         * lib/memcoll.c: Likewise.
30582         * lib/memcoll.h: Likewise.
30583         * lib/memcpy.c: Likewise.
30584         * lib/memrchr.c: Likewise.
30585         * lib/mkancesdirs.c: Likewise.
30586         * lib/mkdir-p.c: Likewise.
30587         * lib/mkdir-p.h: Likewise.
30588         * lib/mkdir.c: Likewise.
30589         * lib/mkdirat.c: Likewise.
30590         * lib/mkdtemp.c: Likewise.
30591         * lib/mkstemp-safer.c: Likewise.
30592         * lib/mkstemp.c: Likewise.
30593         * lib/modechange.c: Likewise.
30594         * lib/modechange.h: Likewise.
30595         * lib/mountlist.c: Likewise.
30596         * lib/mountlist.h: Likewise.
30597         * lib/mpsort.c: Likewise.
30598         * lib/nanosleep.c: Likewise.
30599         * lib/obstack.c: Likewise.
30600         * lib/obstack.h: Likewise.
30601         * lib/open-safer.c: Likewise.
30602         * lib/open.c: Likewise.
30603         * lib/openat-die.c: Likewise.
30604         * lib/openat-priv.h: Likewise.
30605         * lib/openat-proc.c: Likewise.
30606         * lib/openat.c: Likewise.
30607         * lib/openat.h: Likewise.
30608         * lib/pagealign_alloc.c: Likewise.
30609         * lib/pagealign_alloc.h: Likewise.
30610         * lib/physmem.c: Likewise.
30611         * lib/physmem.h: Likewise.
30612         * lib/pipe-safer.c: Likewise.
30613         * lib/pipe.c: Likewise.
30614         * lib/pipe.h: Likewise.
30615         * lib/posixtm.c: Likewise.
30616         * lib/posixtm.h: Likewise.
30617         * lib/posixver.c: Likewise.
30618         * lib/printf-frexp.c: Likewise.
30619         * lib/printf-frexp.h: Likewise.
30620         * lib/printf-frexpl.c: Likewise.
30621         * lib/printf-frexpl.h: Likewise.
30622         * lib/printf.c: Likewise.
30623         * lib/progname.c: Likewise.
30624         * lib/progname.h: Likewise.
30625         * lib/progreloc.c: Likewise.
30626         * lib/putenv.c: Likewise.
30627         * lib/quote.c: Likewise.
30628         * lib/quote.h: Likewise.
30629         * lib/quotearg.c: Likewise.
30630         * lib/quotearg.h: Likewise.
30631         * lib/raise.c: Likewise.
30632         * lib/readline.c: Likewise.
30633         * lib/readline.h: Likewise.
30634         * lib/readlink.c: Likewise.
30635         * lib/readtokens.c: Likewise.
30636         * lib/readtokens.h: Likewise.
30637         * lib/readtokens0.c: Likewise.
30638         * lib/readtokens0.h: Likewise.
30639         * lib/readutmp.c: Likewise.
30640         * lib/readutmp.h: Likewise.
30641         * lib/realloc.c: Likewise.
30642         * lib/relocwrapper.c: Likewise.
30643         * lib/rename-dest-slash.c: Likewise.
30644         * lib/rename.c: Likewise.
30645         * lib/rmdir.c: Likewise.
30646         * lib/rpmatch.c: Likewise.
30647         * lib/safe-read.c: Likewise.
30648         * lib/safe-read.h: Likewise.
30649         * lib/safe-write.c: Likewise.
30650         * lib/safe-write.h: Likewise.
30651         * lib/same-inode.h: Likewise.
30652         * lib/same.c: Likewise.
30653         * lib/same.h: Likewise.
30654         * lib/save-cwd.c: Likewise.
30655         * lib/save-cwd.h: Likewise.
30656         * lib/savedir.c: Likewise.
30657         * lib/savedir.h: Likewise.
30658         * lib/savewd.c: Likewise.
30659         * lib/savewd.h: Likewise.
30660         * lib/search.in.h: Likewise.
30661         * lib/setenv.c: Likewise.
30662         * lib/setenv.h: Likewise.
30663         * lib/settime.c: Likewise.
30664         * lib/sh-quote.c: Likewise.
30665         * lib/sh-quote.h: Likewise.
30666         * lib/sig2str.c: Likewise.
30667         * lib/sig2str.h: Likewise.
30668         * lib/signal.in.h: Likewise.
30669         * lib/signbitd.c: Likewise.
30670         * lib/signbitf.c: Likewise.
30671         * lib/signbitl.c: Likewise.
30672         * lib/sigprocmask.c: Likewise.
30673         * lib/sincosl.c: Likewise.
30674         * lib/sleep.c: Likewise.
30675         * lib/sprintf.c: Likewise.
30676         * lib/sqrtl.c: Likewise.
30677         * lib/stat-time.h: Likewise.
30678         * lib/stdio--.h: Likewise.
30679         * lib/stdio-safer.h: Likewise.
30680         * lib/stdlib--.h: Likewise.
30681         * lib/stdlib-safer.h: Likewise.
30682         * lib/stdlib.in.h: Likewise.
30683         * lib/stpcpy.c: Likewise.
30684         * lib/stpncpy.c: Likewise.
30685         * lib/strchrnul.c: Likewise.
30686         * lib/strcspn.c: Likewise.
30687         * lib/strerror.c: Likewise.
30688         * lib/strftime.c: Likewise.
30689         * lib/strftime.h: Likewise.
30690         * lib/striconveh.c: Likewise.
30691         * lib/striconveh.h: Likewise.
30692         * lib/striconveha.c: Likewise.
30693         * lib/striconveha.h: Likewise.
30694         * lib/stripslash.c: Likewise.
30695         * lib/strnlen1.c: Likewise.
30696         * lib/strnlen1.h: Likewise.
30697         * lib/strtod.c: Likewise.
30698         * lib/strtoimax.c: Likewise.
30699         * lib/strtok_r.c: Likewise.
30700         * lib/strtol.c: Likewise.
30701         * lib/strtoll.c: Likewise.
30702         * lib/strtoul.c: Likewise.
30703         * lib/strtoull.c: Likewise.
30704         * lib/sysexits.in.h: Likewise.
30705         * lib/tempname.c: Likewise.
30706         * lib/tempname.h: Likewise.
30707         * lib/timespec.h: Likewise.
30708         * lib/tls.c: Likewise.
30709         * lib/tls.h: Likewise.
30710         * lib/tmpdir.c: Likewise.
30711         * lib/tmpdir.h: Likewise.
30712         * lib/tmpfile-safer.c: Likewise.
30713         * lib/tmpfile.c: Likewise.
30714         * lib/trigl.c: Likewise.
30715         * lib/trigl.h: Likewise.
30716         * lib/trim.c: Likewise.
30717         * lib/trim.h: Likewise.
30718         * lib/trunc.c: Likewise.
30719         * lib/truncf.c: Likewise.
30720         * lib/truncl.c: Likewise.
30721         * lib/tsearch.c: Likewise.
30722         * lib/unicodeio.c: Likewise.
30723         * lib/unicodeio.h: Likewise.
30724         * lib/unistd--.h: Likewise.
30725         * lib/unistd-safer.h: Likewise.
30726         * lib/unistdio/ulc-fprintf.c: Likewise.
30727         * lib/unistdio/ulc-vfprintf.c: Likewise.
30728         * lib/unlinkdir.c: Likewise.
30729         * lib/unlinkdir.h: Likewise.
30730         * lib/unlocked-io.h: Likewise.
30731         * lib/unsetenv.c: Likewise.
30732         * lib/userspec.c: Likewise.
30733         * lib/utime.c: Likewise.
30734         * lib/utimecmp.c: Likewise.
30735         * lib/utimecmp.h: Likewise.
30736         * lib/utimens.c: Likewise.
30737         * lib/verify.h: Likewise.
30738         * lib/verror.c: Likewise.
30739         * lib/verror.h: Likewise.
30740         * lib/version-etc-fsf.c: Likewise.
30741         * lib/version-etc.c: Likewise.
30742         * lib/version-etc.h: Likewise.
30743         * lib/vfprintf.c: Likewise.
30744         * lib/vprintf.c: Likewise.
30745         * lib/vsprintf.c: Likewise.
30746         * lib/w32spawn.h: Likewise.
30747         * lib/wait-process.c: Likewise.
30748         * lib/wait-process.h: Likewise.
30749         * lib/wcwidth.c: Likewise.
30750         * lib/write-any-file.c: Likewise.
30751         * lib/xalloc-die.c: Likewise.
30752         * lib/xalloc.h: Likewise.
30753         * lib/xasprintf.c: Likewise.
30754         * lib/xgetcwd.c: Likewise.
30755         * lib/xgetcwd.h: Likewise.
30756         * lib/xgetdomainname.c: Likewise.
30757         * lib/xgetdomainname.h: Likewise.
30758         * lib/xgethostname.c: Likewise.
30759         * lib/xmalloc.c: Likewise.
30760         * lib/xmalloca.c: Likewise.
30761         * lib/xmalloca.h: Likewise.
30762         * lib/xmemcoll.c: Likewise.
30763         * lib/xnanosleep.c: Likewise.
30764         * lib/xreadlink.c: Likewise.
30765         * lib/xreadlink.h: Likewise.
30766         * lib/xsetenv.c: Likewise.
30767         * lib/xsetenv.h: Likewise.
30768         * lib/xstriconv.c: Likewise.
30769         * lib/xstriconv.h: Likewise.
30770         * lib/xstrndup.c: Likewise.
30771         * lib/xstrndup.h: Likewise.
30772         * lib/xstrtod.c: Likewise.
30773         * lib/xstrtod.h: Likewise.
30774         * lib/xstrtol-error.c: Likewise.
30775         * lib/xstrtol.c: Likewise.
30776         * lib/xstrtol.h: Likewise.
30777         * lib/xtime.h: Likewise.
30778         * lib/xvasprintf.c: Likewise.
30779         * lib/xvasprintf.h: Likewise.
30780         * lib/yesno.c: Likewise.
30781         * lib/yesno.h: Likewise.
30782         * posix-modules: Likewise.
30783         * tests/test-alloca-opt.c: Likewise.
30784         * tests/test-arcfour.c: Likewise.
30785         * tests/test-arctwo.c: Likewise.
30786         * tests/test-argmatch.c: Likewise.
30787         * tests/test-argp-2.sh: Likewise.
30788         * tests/test-argp.c: Likewise.
30789         * tests/test-arpa_inet.c: Likewise.
30790         * tests/test-array_list.c: Likewise.
30791         * tests/test-array_oset.c: Likewise.
30792         * tests/test-atexit.c: Likewise.
30793         * tests/test-avltree_list.c: Likewise.
30794         * tests/test-avltree_oset.c: Likewise.
30795         * tests/test-avltreehash_list.c: Likewise.
30796         * tests/test-base64.c: Likewise.
30797         * tests/test-binary-io.c: Likewise.
30798         * tests/test-byteswap.c: Likewise.
30799         * tests/test-c-ctype.c: Likewise.
30800         * tests/test-c-strcasecmp.c: Likewise.
30801         * tests/test-c-strcasestr.c: Likewise.
30802         * tests/test-c-strncasecmp.c: Likewise.
30803         * tests/test-c-strstr.c: Likewise.
30804         * tests/test-canonicalize-lgpl.c: Likewise.
30805         * tests/test-canonicalize.c: Likewise.
30806         * tests/test-carray_list.c: Likewise.
30807         * tests/test-ceilf.c: Likewise.
30808         * tests/test-ceill.c: Likewise.
30809         * tests/test-count-one-bits.c: Likewise.
30810         * tests/test-crc.c: Likewise.
30811         * tests/test-dirname.c: Likewise.
30812         * tests/test-fbufmode.c: Likewise.
30813         * tests/test-fcntl.c: Likewise.
30814         * tests/test-fflush.c: Likewise.
30815         * tests/test-floorf.c: Likewise.
30816         * tests/test-floorl.c: Likewise.
30817         * tests/test-fopen.c: Likewise.
30818         * tests/test-fprintf-posix.c: Likewise.
30819         * tests/test-fprintf-posix.h: Likewise.
30820         * tests/test-fpurge.c: Likewise.
30821         * tests/test-freadable.c: Likewise.
30822         * tests/test-freadahead.c: Likewise.
30823         * tests/test-freading.c: Likewise.
30824         * tests/test-freopen.c: Likewise.
30825         * tests/test-frexp.c: Likewise.
30826         * tests/test-frexpl.c: Likewise.
30827         * tests/test-fseek.c: Likewise.
30828         * tests/test-fseeko.c: Likewise.
30829         * tests/test-fseterr.c: Likewise.
30830         * tests/test-fstrcmp.c: Likewise.
30831         * tests/test-ftell.c: Likewise.
30832         * tests/test-ftello.c: Likewise.
30833         * tests/test-fwritable.c: Likewise.
30834         * tests/test-fwriting.c: Likewise.
30835         * tests/test-getaddrinfo.c: Likewise.
30836         * tests/test-getpass.c: Likewise.
30837         * tests/test-gettimeofday.c: Likewise.
30838         * tests/test-hmac-md5.c: Likewise.
30839         * tests/test-hmac-sha1.c: Likewise.
30840         * tests/test-iconv.c: Likewise.
30841         * tests/test-iconvme.c: Likewise.
30842         * tests/test-inttypes.c: Likewise.
30843         * tests/test-isnan.c: Likewise.
30844         * tests/test-isnanf.c: Likewise.
30845         * tests/test-isnanl-nolibm.c: Likewise.
30846         * tests/test-isnanl.c: Likewise.
30847         * tests/test-isnanl.h: Likewise.
30848         * tests/test-ldexpl.c: Likewise.
30849         * tests/test-linked_list.c: Likewise.
30850         * tests/test-linkedhash_list.c: Likewise.
30851         * tests/test-locale.c: Likewise.
30852         * tests/test-localename.c: Likewise.
30853         * tests/test-lock.c: Likewise.
30854         * tests/test-lseek.c: Likewise.
30855         * tests/test-malloca.c: Likewise.
30856         * tests/test-math.c: Likewise.
30857         * tests/test-mbscasecmp.c: Likewise.
30858         * tests/test-mbscasestr1.c: Likewise.
30859         * tests/test-mbscasestr2.c: Likewise.
30860         * tests/test-mbscasestr3.c: Likewise.
30861         * tests/test-mbscasestr4.c: Likewise.
30862         * tests/test-mbschr.c: Likewise.
30863         * tests/test-mbscspn.c: Likewise.
30864         * tests/test-mbsncasecmp.c: Likewise.
30865         * tests/test-mbspbrk.c: Likewise.
30866         * tests/test-mbspcasecmp.c: Likewise.
30867         * tests/test-mbsrchr.c: Likewise.
30868         * tests/test-mbsspn.c: Likewise.
30869         * tests/test-mbsstr1.c: Likewise.
30870         * tests/test-mbsstr2.c: Likewise.
30871         * tests/test-mbsstr3.c: Likewise.
30872         * tests/test-md5.c: Likewise.
30873         * tests/test-memmem.c: Likewise.
30874         * tests/test-netinet_in.c: Likewise.
30875         * tests/test-open.c: Likewise.
30876         * tests/test-printf-frexp.c: Likewise.
30877         * tests/test-printf-frexpl.c: Likewise.
30878         * tests/test-printf-posix.c: Likewise.
30879         * tests/test-printf-posix.h: Likewise.
30880         * tests/test-rbtree_list.c: Likewise.
30881         * tests/test-rbtree_oset.c: Likewise.
30882         * tests/test-rbtreehash_list.c: Likewise.
30883         * tests/test-read-file.c: Likewise.
30884         * tests/test-rijndael.c: Likewise.
30885         * tests/test-search.c: Likewise.
30886         * tests/test-signbit.c: Likewise.
30887         * tests/test-sleep.c: Likewise.
30888         * tests/test-snprintf-posix.c: Likewise.
30889         * tests/test-snprintf-posix.h: Likewise.
30890         * tests/test-snprintf.c: Likewise.
30891         * tests/test-sprintf-posix.c: Likewise.
30892         * tests/test-sprintf-posix.h: Likewise.
30893         * tests/test-stat-time.c: Likewise.
30894         * tests/test-stdbool.c: Likewise.
30895         * tests/test-stdint.c: Likewise.
30896         * tests/test-stdio.c: Likewise.
30897         * tests/test-stdlib.c: Likewise.
30898         * tests/test-stpncpy.c: Likewise.
30899         * tests/test-strcasestr.c: Likewise.
30900         * tests/test-striconv.c: Likewise.
30901         * tests/test-striconveh.c: Likewise.
30902         * tests/test-striconveha.c: Likewise.
30903         * tests/test-string.c: Likewise.
30904         * tests/test-sys_select.c: Likewise.
30905         * tests/test-sys_socket.c: Likewise.
30906         * tests/test-sys_stat.c: Likewise.
30907         * tests/test-sys_time.c: Likewise.
30908         * tests/test-sysexits.c: Likewise.
30909         * tests/test-time.c: Likewise.
30910         * tests/test-tls.c: Likewise.
30911         * tests/test-trunc.c: Likewise.
30912         * tests/test-truncf.c: Likewise.
30913         * tests/test-truncl.c: Likewise.
30914         * tests/test-unistd.c: Likewise.
30915         * tests/test-vasnprintf-posix.c: Likewise.
30916         * tests/test-vasnprintf-posix2.c: Likewise.
30917         * tests/test-vasnprintf.c: Likewise.
30918         * tests/test-vasprintf-posix.c: Likewise.
30919         * tests/test-vasprintf.c: Likewise.
30920         * tests/test-verify.c: Likewise.
30921         * tests/test-vfprintf-posix.c: Likewise.
30922         * tests/test-vprintf-posix.c: Likewise.
30923         * tests/test-vsnprintf-posix.c: Likewise.
30924         * tests/test-vsnprintf.c: Likewise.
30925         * tests/test-vsprintf-posix.c: Likewise.
30926         * tests/test-wchar.c: Likewise.
30927         * tests/test-wctype.c: Likewise.
30928         * tests/test-wcwidth.c: Likewise.
30929         * tests/test-xstrtol.c: Likewise.
30930         * tests/test-xvasprintf.c: Likewise.
30931         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30932         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30933         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30934         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30935         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30936         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30937         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30938         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30939         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30940         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30941         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30942         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30943         * tests/uniname/test-uninames.c: Likewise.
30944         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30945         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
30946         * tests/unistdio/test-u16-printf1.h: Likewise.
30947         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30948         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30949         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30950         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30951         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30952         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30953         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30954         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
30955         * tests/unistdio/test-u32-printf1.h: Likewise.
30956         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30957         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30958         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30959         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30960         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30961         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30962         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30963         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
30964         * tests/unistdio/test-u8-printf1.h: Likewise.
30965         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30966         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30967         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30968         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30969         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30970         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30971         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30972         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
30973         * tests/unistdio/test-ulc-printf1.h: Likewise.
30974         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30975         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30976         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30977         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30978         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30979         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30980         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30981         * tests/uniwidth/test-u16-width.c: Likewise.
30982         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30983         * tests/uniwidth/test-u32-width.c: Likewise.
30984         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30985         * tests/uniwidth/test-u8-width.c: Likewise.
30986         * tests/uniwidth/test-uc_width.c: Likewise.
30987         * config/srclist-update: Likewise.
30988         (fixlicense): Update to GPLv3+.
30989
30990         Change copyright notice from LGPLv2.1+ to LGPLv3+.
30991         * tests/test-tsearch.c: Change copyright notice.
30992
30993         Change copyright notice from LGPLv2.0+ to LGPLv3+.
30994         * lib/c-strcaseeq.h: Change copyright notice.
30995         * lib/streq.h: Likewise.
30996         * lib/uniconv.h: Likewise.
30997         * lib/uniconv/u-conv-from-enc.h: Likewise.
30998         * lib/uniconv/u-conv-to-enc.h: Likewise.
30999         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31000         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31001         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31002         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31003         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31004         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31005         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31006         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31007         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31008         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31009         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31010         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31011         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31012         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31013         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31014         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31015         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31016         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31017         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31018         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31019         * lib/uniname.h: Likewise.
31020         * lib/uniname/uniname.c: Likewise.
31021         * lib/unistdio.h: Likewise.
31022         * lib/unistdio/u-asnprintf.h: Likewise.
31023         * lib/unistdio/u-asprintf.h: Likewise.
31024         * lib/unistdio/u-printf-args.c: Likewise.
31025         * lib/unistdio/u-printf-args.h: Likewise.
31026         * lib/unistdio/u-printf-parse.h: Likewise.
31027         * lib/unistdio/u-snprintf.h: Likewise.
31028         * lib/unistdio/u-sprintf.h: Likewise.
31029         * lib/unistdio/u-vasprintf.h: Likewise.
31030         * lib/unistdio/u-vsnprintf.h: Likewise.
31031         * lib/unistdio/u-vsprintf.h: Likewise.
31032         * lib/unistdio/u16-asnprintf.c: Likewise.
31033         * lib/unistdio/u16-asprintf.c: Likewise.
31034         * lib/unistdio/u16-printf-parse.c: Likewise.
31035         * lib/unistdio/u16-snprintf.c: Likewise.
31036         * lib/unistdio/u16-sprintf.c: Likewise.
31037         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31038         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31039         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31040         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31041         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31042         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31043         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31044         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31045         * lib/unistdio/u16-vasnprintf.c: Likewise.
31046         * lib/unistdio/u16-vasprintf.c: Likewise.
31047         * lib/unistdio/u16-vsnprintf.c: Likewise.
31048         * lib/unistdio/u16-vsprintf.c: Likewise.
31049         * lib/unistdio/u32-asnprintf.c: Likewise.
31050         * lib/unistdio/u32-asprintf.c: Likewise.
31051         * lib/unistdio/u32-printf-parse.c: Likewise.
31052         * lib/unistdio/u32-snprintf.c: Likewise.
31053         * lib/unistdio/u32-sprintf.c: Likewise.
31054         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31055         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31056         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31057         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31058         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31059         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31060         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31061         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31062         * lib/unistdio/u32-vasnprintf.c: Likewise.
31063         * lib/unistdio/u32-vasprintf.c: Likewise.
31064         * lib/unistdio/u32-vsnprintf.c: Likewise.
31065         * lib/unistdio/u32-vsprintf.c: Likewise.
31066         * lib/unistdio/u8-asnprintf.c: Likewise.
31067         * lib/unistdio/u8-asprintf.c: Likewise.
31068         * lib/unistdio/u8-printf-parse.c: Likewise.
31069         * lib/unistdio/u8-snprintf.c: Likewise.
31070         * lib/unistdio/u8-sprintf.c: Likewise.
31071         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31072         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31073         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31074         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31075         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31076         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31077         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31078         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31079         * lib/unistdio/u8-vasnprintf.c: Likewise.
31080         * lib/unistdio/u8-vasprintf.c: Likewise.
31081         * lib/unistdio/u8-vsnprintf.c: Likewise.
31082         * lib/unistdio/u8-vsprintf.c: Likewise.
31083         * lib/unistdio/ulc-asnprintf.c: Likewise.
31084         * lib/unistdio/ulc-asprintf.c: Likewise.
31085         * lib/unistdio/ulc-printf-parse.c: Likewise.
31086         * lib/unistdio/ulc-snprintf.c: Likewise.
31087         * lib/unistdio/ulc-sprintf.c: Likewise.
31088         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31089         * lib/unistdio/ulc-vasprintf.c: Likewise.
31090         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31091         * lib/unistdio/ulc-vsprintf.c: Likewise.
31092         * lib/unistr.h: Likewise.
31093         * lib/unistr/u-cpy-alloc.h: Likewise.
31094         * lib/unistr/u-cpy.h: Likewise.
31095         * lib/unistr/u-endswith.h: Likewise.
31096         * lib/unistr/u-move.h: Likewise.
31097         * lib/unistr/u-set.h: Likewise.
31098         * lib/unistr/u-startswith.h: Likewise.
31099         * lib/unistr/u-stpcpy.h: Likewise.
31100         * lib/unistr/u-stpncpy.h: Likewise.
31101         * lib/unistr/u-strcat.h: Likewise.
31102         * lib/unistr/u-strcpy.h: Likewise.
31103         * lib/unistr/u-strcspn.h: Likewise.
31104         * lib/unistr/u-strdup.h: Likewise.
31105         * lib/unistr/u-strlen.h: Likewise.
31106         * lib/unistr/u-strncat.h: Likewise.
31107         * lib/unistr/u-strncpy.h: Likewise.
31108         * lib/unistr/u-strnlen.h: Likewise.
31109         * lib/unistr/u-strpbrk.h: Likewise.
31110         * lib/unistr/u-strspn.h: Likewise.
31111         * lib/unistr/u-strstr.h: Likewise.
31112         * lib/unistr/u-strtok.h: Likewise.
31113         * lib/unistr/u16-check.c: Likewise.
31114         * lib/unistr/u16-chr.c: Likewise.
31115         * lib/unistr/u16-cmp.c: Likewise.
31116         * lib/unistr/u16-cpy-alloc.c: Likewise.
31117         * lib/unistr/u16-cpy.c: Likewise.
31118         * lib/unistr/u16-endswith.c: Likewise.
31119         * lib/unistr/u16-mblen.c: Likewise.
31120         * lib/unistr/u16-mbsnlen.c: Likewise.
31121         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31122         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31123         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31124         * lib/unistr/u16-mbtouc.c: Likewise.
31125         * lib/unistr/u16-mbtoucr.c: Likewise.
31126         * lib/unistr/u16-move.c: Likewise.
31127         * lib/unistr/u16-next.c: Likewise.
31128         * lib/unistr/u16-prev.c: Likewise.
31129         * lib/unistr/u16-set.c: Likewise.
31130         * lib/unistr/u16-startswith.c: Likewise.
31131         * lib/unistr/u16-stpcpy.c: Likewise.
31132         * lib/unistr/u16-stpncpy.c: Likewise.
31133         * lib/unistr/u16-strcat.c: Likewise.
31134         * lib/unistr/u16-strchr.c: Likewise.
31135         * lib/unistr/u16-strcmp.c: Likewise.
31136         * lib/unistr/u16-strcpy.c: Likewise.
31137         * lib/unistr/u16-strcspn.c: Likewise.
31138         * lib/unistr/u16-strdup.c: Likewise.
31139         * lib/unistr/u16-strlen.c: Likewise.
31140         * lib/unistr/u16-strmblen.c: Likewise.
31141         * lib/unistr/u16-strmbtouc.c: Likewise.
31142         * lib/unistr/u16-strncat.c: Likewise.
31143         * lib/unistr/u16-strncmp.c: Likewise.
31144         * lib/unistr/u16-strncpy.c: Likewise.
31145         * lib/unistr/u16-strnlen.c: Likewise.
31146         * lib/unistr/u16-strpbrk.c: Likewise.
31147         * lib/unistr/u16-strrchr.c: Likewise.
31148         * lib/unistr/u16-strspn.c: Likewise.
31149         * lib/unistr/u16-strstr.c: Likewise.
31150         * lib/unistr/u16-strtok.c: Likewise.
31151         * lib/unistr/u16-to-u32.c: Likewise.
31152         * lib/unistr/u16-to-u8.c: Likewise.
31153         * lib/unistr/u16-uctomb-aux.c: Likewise.
31154         * lib/unistr/u16-uctomb.c: Likewise.
31155         * lib/unistr/u32-check.c: Likewise.
31156         * lib/unistr/u32-chr.c: Likewise.
31157         * lib/unistr/u32-cmp.c: Likewise.
31158         * lib/unistr/u32-cpy-alloc.c: Likewise.
31159         * lib/unistr/u32-cpy.c: Likewise.
31160         * lib/unistr/u32-endswith.c: Likewise.
31161         * lib/unistr/u32-mblen.c: Likewise.
31162         * lib/unistr/u32-mbsnlen.c: Likewise.
31163         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31164         * lib/unistr/u32-mbtouc.c: Likewise.
31165         * lib/unistr/u32-mbtoucr.c: Likewise.
31166         * lib/unistr/u32-move.c: Likewise.
31167         * lib/unistr/u32-next.c: Likewise.
31168         * lib/unistr/u32-prev.c: Likewise.
31169         * lib/unistr/u32-set.c: Likewise.
31170         * lib/unistr/u32-startswith.c: Likewise.
31171         * lib/unistr/u32-stpcpy.c: Likewise.
31172         * lib/unistr/u32-stpncpy.c: Likewise.
31173         * lib/unistr/u32-strcat.c: Likewise.
31174         * lib/unistr/u32-strchr.c: Likewise.
31175         * lib/unistr/u32-strcmp.c: Likewise.
31176         * lib/unistr/u32-strcpy.c: Likewise.
31177         * lib/unistr/u32-strcspn.c: Likewise.
31178         * lib/unistr/u32-strdup.c: Likewise.
31179         * lib/unistr/u32-strlen.c: Likewise.
31180         * lib/unistr/u32-strmblen.c: Likewise.
31181         * lib/unistr/u32-strmbtouc.c: Likewise.
31182         * lib/unistr/u32-strncat.c: Likewise.
31183         * lib/unistr/u32-strncmp.c: Likewise.
31184         * lib/unistr/u32-strncpy.c: Likewise.
31185         * lib/unistr/u32-strnlen.c: Likewise.
31186         * lib/unistr/u32-strpbrk.c: Likewise.
31187         * lib/unistr/u32-strrchr.c: Likewise.
31188         * lib/unistr/u32-strspn.c: Likewise.
31189         * lib/unistr/u32-strstr.c: Likewise.
31190         * lib/unistr/u32-strtok.c: Likewise.
31191         * lib/unistr/u32-to-u16.c: Likewise.
31192         * lib/unistr/u32-to-u8.c: Likewise.
31193         * lib/unistr/u32-uctomb.c: Likewise.
31194         * lib/unistr/u8-check.c: Likewise.
31195         * lib/unistr/u8-chr.c: Likewise.
31196         * lib/unistr/u8-cmp.c: Likewise.
31197         * lib/unistr/u8-cpy-alloc.c: Likewise.
31198         * lib/unistr/u8-cpy.c: Likewise.
31199         * lib/unistr/u8-endswith.c: Likewise.
31200         * lib/unistr/u8-mblen.c: Likewise.
31201         * lib/unistr/u8-mbsnlen.c: Likewise.
31202         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31203         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31204         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31205         * lib/unistr/u8-mbtouc.c: Likewise.
31206         * lib/unistr/u8-mbtoucr.c: Likewise.
31207         * lib/unistr/u8-move.c: Likewise.
31208         * lib/unistr/u8-next.c: Likewise.
31209         * lib/unistr/u8-prev.c: Likewise.
31210         * lib/unistr/u8-set.c: Likewise.
31211         * lib/unistr/u8-startswith.c: Likewise.
31212         * lib/unistr/u8-stpcpy.c: Likewise.
31213         * lib/unistr/u8-stpncpy.c: Likewise.
31214         * lib/unistr/u8-strcat.c: Likewise.
31215         * lib/unistr/u8-strchr.c: Likewise.
31216         * lib/unistr/u8-strcmp.c: Likewise.
31217         * lib/unistr/u8-strcpy.c: Likewise.
31218         * lib/unistr/u8-strcspn.c: Likewise.
31219         * lib/unistr/u8-strdup.c: Likewise.
31220         * lib/unistr/u8-strlen.c: Likewise.
31221         * lib/unistr/u8-strmblen.c: Likewise.
31222         * lib/unistr/u8-strmbtouc.c: Likewise.
31223         * lib/unistr/u8-strncat.c: Likewise.
31224         * lib/unistr/u8-strncmp.c: Likewise.
31225         * lib/unistr/u8-strncpy.c: Likewise.
31226         * lib/unistr/u8-strnlen.c: Likewise.
31227         * lib/unistr/u8-strpbrk.c: Likewise.
31228         * lib/unistr/u8-strrchr.c: Likewise.
31229         * lib/unistr/u8-strspn.c: Likewise.
31230         * lib/unistr/u8-strstr.c: Likewise.
31231         * lib/unistr/u8-strtok.c: Likewise.
31232         * lib/unistr/u8-to-u16.c: Likewise.
31233         * lib/unistr/u8-to-u32.c: Likewise.
31234         * lib/unistr/u8-uctomb-aux.c: Likewise.
31235         * lib/unistr/u8-uctomb.c: Likewise.
31236         * lib/unitypes.h: Likewise.
31237         * lib/uniwidth.h: Likewise.
31238         * lib/uniwidth/cjk.h: Likewise.
31239         * lib/uniwidth/u16-strwidth.c: Likewise.
31240         * lib/uniwidth/u16-width.c: Likewise.
31241         * lib/uniwidth/u32-strwidth.c: Likewise.
31242         * lib/uniwidth/u32-width.c: Likewise.
31243         * lib/uniwidth/u8-strwidth.c: Likewise.
31244         * lib/uniwidth/u8-width.c: Likewise.
31245         * lib/uniwidth/width.c: Likewise.
31246
31247 2007-10-07  Bruno Haible  <bruno@clisp.org>
31248
31249         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31250         The file is still under LGPL (see modules/inttypes).
31251
31252 2007-10-06  Bruno Haible  <bruno@clisp.org>
31253
31254         * modules/trunc (Dependencies): Add 'extensions'.
31255         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31256         Reported by Ben Pfaff <blp@gnu.org>.
31257
31258 2007-10-06  Bruno Haible  <bruno@clisp.org>
31259
31260         * modules/freopen-tests: New file.
31261         * tests/test-freopen.c: New file.
31262
31263         * modules/fopen-tests: New file.
31264         * tests/test-fopen.c: New file.
31265
31266         * modules/fopen: New file.
31267         * lib/fopen.c: New file.
31268         * m4/fopen.m4: New file.
31269         * modules/freopen: New file.
31270         * lib/freopen.c: New file.
31271         * m4/freopen.m4: New file.
31272         * lib/stdio.in.h (fopen, freopen): New declarations.
31273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31274         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31275         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31276         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31277         * doc/functions/fopen.texi: Mention the 'fopen' module.
31278         * doc/functions/freopen.texi: Mention the 'freopen' module.
31279
31280 2007-10-06  Bruno Haible  <bruno@clisp.org>
31281
31282         * modules/open-tests: New file.
31283         * tests/test-open.c: New file.
31284
31285         * modules/open: New file.
31286         * lib/open.c: New file.
31287         * m4/open.m4: New file.
31288         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31289         lib/open.c does.
31290         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31291         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31292         macros.
31293         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31294         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31295         REPLACE_OPEN.
31296         * doc/functions/open.texi: Mention the 'open' module.
31297
31298 2007-10-04  Bruno Haible  <bruno@clisp.org>
31299
31300         * modules/ceill-tests: New file.
31301         * tests/test-ceill.c: New file.
31302
31303         * modules/ceill: New file.
31304         * lib/ceill.c: Replace entire file.
31305         * m4/ceill.m4: New file.
31306         * lib/math.in.h (ceill): Replace declaration.
31307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31308         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31309         * doc/functions/ceill.texi: Mention the 'ceill' module.
31310         * modules/mathl (Files): Remove lib/ceill.c.
31311         (Depends-on): Add ceill.
31312
31313 2007-10-04  Bruno Haible  <bruno@clisp.org>
31314
31315         * modules/ceilf-tests: New file.
31316         * tests/test-ceilf.c: New file.
31317
31318         * modules/ceilf: New file.
31319         * lib/ceil.c: New file.
31320         * lib/ceilf.c: New file.
31321         * m4/ceilf.m4: New file.
31322         * lib/math.in.h (ceilf): New declaration.
31323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31324         HAVE_DECL_CEILF.
31325         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31326         HAVE_DECL_CEILF.
31327         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31328
31329 2007-10-04  Bruno Haible  <bruno@clisp.org>
31330
31331         * modules/floorl-tests: New file.
31332         * tests/test-floorl.c: New file.
31333
31334         * modules/floorl: New file.
31335         * lib/floorl.c: Replace entire file.
31336         * m4/floorl.m4: New file.
31337         * lib/math.in.h (floorl): Replace declaration.
31338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31339         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31340         * doc/functions/floorl.texi: Mention the 'floorl' module.
31341         * modules/mathl (Files): Remove lib/floorl.c.
31342         (Depends-on): Add floorl.
31343
31344 2007-10-04  Bruno Haible  <bruno@clisp.org>
31345
31346         * modules/floorf-tests: New file.
31347         * tests/test-floorf.c: New file.
31348
31349         * modules/floorf: New file.
31350         * lib/floor.c: New file.
31351         * lib/floorf.c: New file.
31352         * m4/floorf.m4: New file.
31353         * lib/math.in.h (floorf): New declaration.
31354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31355         HAVE_DECL_FLOORF.
31356         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31357         HAVE_DECL_FLOORF.
31358         * doc/functions/floorf.texi: Mention the 'floorf' module.
31359
31360 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31361             Bruno Haible  <bruno@clisp.org>
31362
31363         Advertise for the Git server instead of the CVS server.
31364         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31365         repository instead of the CVS one.
31366         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31367         about all VCS systems generically.
31368         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31369
31370 2007-10-04  Bruno Haible  <bruno@clisp.org>
31371
31372         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31373         means.
31374         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31375
31376 2007-10-04  Bruno Haible  <bruno@clisp.org>
31377
31378         * modules/truncl-tests: New file.
31379         * tests/test-truncl.c: New file.
31380
31381         * modules/truncl: New file.
31382         * lib/truncl.c: New file.
31383         * m4/truncl.m4: New file.
31384         * lib/math.in.h (truncl): New declaration.
31385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31386         HAVE_DECL_TRUNCL.
31387         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31388         HAVE_DECL_TRUNCL.
31389         * doc/functions/truncl.texi: Mention the 'truncl' module.
31390
31391 2007-10-04  Bruno Haible  <bruno@clisp.org>
31392
31393         * modules/truncf-tests: New file.
31394         * tests/test-truncf.c: New file.
31395
31396         * modules/truncf: New file.
31397         * lib/trunc.c: Make paramerizable through USE_* macros.
31398         * lib/truncf.c: New file.
31399         * m4/truncf.m4: New file.
31400         * lib/math.in.h (truncf): New declaration.
31401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31402         HAVE_DECL_TRUNCF.
31403         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31404         HAVE_DECL_TRUNCF.
31405         * doc/functions/truncf.texi: Mention the 'truncf' module.
31406
31407 2007-10-03  Bruno Haible  <bruno@clisp.org>
31408
31409         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31410         augmentation also for tests modules.
31411         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31412         * modules/atexit-tests (Makefile.am): Likewise.
31413         * modules/binary-io-tests (Makefile.am): Likewise.
31414         * modules/c-strcase-tests (Makefile.am): Likewise.
31415         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31416         * modules/canonicalize-tests (Makefile.am): Likewise.
31417         * modules/closein-tests (Makefile.am): Likewise.
31418         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31419         * modules/freadahead-tests (Makefile.am): Likewise.
31420         * modules/fseek-tests (Makefile.am): Likewise.
31421         * modules/fseeko-tests (Makefile.am): Likewise.
31422         * modules/ftell-tests (Makefile.am): Likewise.
31423         * modules/ftello-tests (Makefile.am): Likewise.
31424         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31425         * modules/isnanl-tests (Makefile.am): Likewise.
31426         * modules/lseek-tests (Makefile.am): Likewise.
31427         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31428         * modules/mbscasestr-tests (Makefile.am): Likewise.
31429         * modules/mbschr-tests (Makefile.am): Likewise.
31430         * modules/mbscspn-tests (Makefile.am): Likewise.
31431         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31432         * modules/mbspbrk-tests (Makefile.am): Likewise.
31433         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31434         * modules/mbsrchr-tests (Makefile.am): Likewise.
31435         * modules/mbsspn-tests (Makefile.am): Likewise.
31436         * modules/mbsstr-tests (Makefile.am): Likewise.
31437         * modules/printf-posix-tests (Makefile.am): Likewise.
31438         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31439         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31440         * modules/tsearch-tests (Makefile.am): Likewise.
31441         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31442         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31443         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31444         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31445         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31446         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31447         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31448         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31449         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31450         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31451         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31452         * modules/xstrtol-tests (Makefile.am): Likewise.
31453         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31454         * modules/yesno-tests (Makefile.am): Likewise.
31455
31456 2007-10-03  Bruno Haible  <bruno@clisp.org>
31457
31458         * modules/trunc-tests: New file.
31459         * tests/test-trunc.c: New file.
31460
31461         * modules/trunc: New file.
31462         * lib/trunc.c: New file.
31463         * m4/trunc.m4: New file.
31464         * lib/math.in.h (trunc): New declaration.
31465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31466         HAVE_DECL_TRUNC.
31467         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31468         HAVE_DECL_TRUNC.
31469         * doc/functions/trunc.texi: Mention the 'trunc' module.
31470
31471 2007-10-03  Bruno Haible  <bruno@clisp.org>
31472
31473         * tests/test-fpending.c: New file, mostly copied
31474         from coreutils/lib/t-fpending.c.
31475         * modules/fpending-tests: New file.
31476
31477 2007-10-03  Bruno Haible  <bruno@clisp.org>
31478
31479         Port the stdio extensions to QNX (untested).
31480         * lib/fseterr.c (fseterr): Add support for QNX.
31481         * lib/fbufmode.c (fbufmode): Likewise.
31482         * lib/freadable.c (freadable): Likewise.
31483         * lib/fwritable.c (fwritable): Likewise.
31484         * lib/freading.c (freading): Likewise.
31485         * lib/fwriting.c (fwriting): Likewise.
31486         * lib/freadahead.c (freadahed): Likewise.
31487         * lib/fpurge.c (fpurge): Likewise.
31488         * lib/fseeko.c (rpl_fseeko): Likewise.
31489
31490 2007-10-03  Bruno Haible  <bruno@clisp.org>
31491             Jim Meyering  <jim@meyering.net>
31492             Eric Blake  <ebb9@byu.net>
31493
31494         * doc/relocatable.texi: Use @command instead of @program.
31495
31496 2007-10-02  Jim Meyering  <jim@meyering.net>
31497
31498         Perform one more "_.h" -> ".in.h" substitution.
31499         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31500         instead of unistd_.h here, too.
31501
31502 2007-10-01  Bruno Haible  <bruno@clisp.org>
31503
31504         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31505         Needed for the alloca-opt module.
31506
31507 2007-09-30  Bruno Haible  <bruno@clisp.org>
31508
31509         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31510         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31511         alloca_.h.
31512         * lib/argz.in.h: Renamed from lib/argz_.h.
31513         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31514         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31515         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31516         byteswap_.h.
31517         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31518         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31519         dirent_.h.
31520         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31521         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31522         fcntl_.h.
31523         * lib/float.in.h: Renamed from lib/float_.h.
31524         * modules/float (Files, Makefile.am): Use float.in.h instead of
31525         float_.h.
31526         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31527         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31528         fnmatch_.h.
31529         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31530         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31531         getopt_.h.
31532         * lib/glob.in.h: Renamed from lib/glob_.h.
31533         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31534         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31535         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31536         iconv_.h.
31537         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31538         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31539         inttypes_.h.
31540         * lib/locale.in.h: Renamed from lib/locale_.h.
31541         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31542         locale_.h.
31543         * lib/math.in.h: Renamed from lib/math_.h.
31544         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31545         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31546         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31547         of netinet_in_.h. Add dependency.
31548         * lib/poll.in.h: Renamed from lib/poll_.h.
31549         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31550         * lib/search.in.h: Renamed from lib/search_.h.
31551         * modules/search (Files, Makefile.am): Use search.in.h instead of
31552         search_.h.
31553         * lib/signal.in.h: Renamed from lib/signal_.h.
31554         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31555         _signal.h.
31556         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31557         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31558         stdbool_.h.
31559         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31560         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31561         stdint_.h.
31562         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31563         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31564         stdio_.h.
31565         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31566         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31567         stdlib_.h.
31568         * lib/string.in.h: Renamed from lib/string_.h.
31569         * modules/string (Files, Makefile.am): Use string.in.h instead of
31570         string_.h.
31571         * doc/gnulib-tool.texi (Initial import): Update.
31572         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31573         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31574         of sys_select_.h. Add dependency.
31575         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31576         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31577         of sys_socket_.h.
31578         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31579         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31580         sys_stat_.h.
31581         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31582         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31583         sys_time_.h.
31584         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31585         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31586         sysexits_.h.
31587         * lib/time.in.h: Renamed from lib/time_.h.
31588         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31589         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31590         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31591         unistd_.h.
31592         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31593         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31594         wchar_.h.
31595         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31596         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31597         wctype_.h.
31598         * build-aux/bootstrap (slurp): Update.
31599         * lib/.cppi-disable: Update.
31600
31601 2007-09-30  Bruno Haible  <bruno@clisp.org>
31602
31603         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31604         Needed on BeOS.
31605
31606 2007-09-30  Bruno Haible  <bruno@clisp.org>
31607
31608         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31609
31610 2007-09-29  Bruno Haible  <bruno@clisp.org>
31611
31612         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31613
31614 2007-09-29  Bruno Haible  <bruno@clisp.org>
31615
31616         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31617         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31618         * build-aux/install-reloc: Compile also areadlink.c.
31619         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31620
31621 2007-09-29  Bruno Haible  <bruno@clisp.org>
31622
31623         * gnulib-tool (func_emit_initmacro_done): Indentation.
31624
31625 2007-09-29  Bruno Haible  <bruno@clisp.org>
31626
31627         * README: Add CVS checkout update instructions.
31628         Info from Bob Proulx <bob@proulx.com>.
31629
31630 2007-09-28  Eric Blake  <ebb9@byu.net>
31631
31632         Provide move-if-change.
31633         * build-aux/move-if-change: New file, based on best practice
31634         rather than any canonical upstream location.
31635
31636 2007-09-28  Jim Meyering  <jim@meyering.net>
31637
31638         Fix canonicalize loop-detection corner case.
31639         Do not attempt to stat the symlink values stored via seen_triple.
31640         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31641         on linux-2.6.18, (but not 2.6.22).
31642         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31643         triple_compare.  The former compares dev,ino,filename, while the latter
31644         would actually stat dirname(filename) when dev and ino were equal.
31645         * lib/hash-triple.c: Install <string.h>.
31646         (STREQ): Define.
31647         (triple_compare_ino_str): New function.
31648         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31649
31650 2007-09-28  Eric Blake  <ebb9@byu.net>
31651
31652         Enforce that AC_REPLACE_FUNCS files exist.
31653         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31654         override check for typos.
31655
31656         Fix test-closein on Solaris 10.
31657         * tests/test-closein.c (main): Don't assume stdin can be inherited
31658         closed on all systems.
31659         * tests/test-closein.sh: Likewise.
31660         Reported by Piotr Tarnowski.
31661
31662 2007-09-28  Jim Meyering  <jim@meyering.net>
31663
31664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31665
31666 2007-09-27  Jim Meyering  <jim@meyering.net>
31667
31668         canonicalize: Avoid a false-positive cycle failure.
31669         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31670         Sort.  Remove cycle-check.
31671         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31672         not cycle-check.h.
31673         (seen_triple): New function.
31674         (canonicalize_filename_mode): Use it instead of cycle-check.
31675         * tests/test-canonicalize.c: Add a test for this bug.
31676         * tests/test-canonicalize.sh: Set up and run the test.
31677
31678         New module, file-set, from coreutils.
31679         * modules/file-set: Define it.
31680         * lib/file-set.c, lib/file-set.h: Implement.
31681
31682         New module, hash-triple, from coreutils.
31683         * modules/hash-triple: Define it.
31684         * lib/hash-triple.c, lib/hash-triple.h: Implement.
31685
31686 2007-09-25  Eric Blake  <ebb9@byu.net>
31687
31688         Fix strerror on Interix.
31689         * lib/string_.h (strerror): Declare replacement.
31690         * doc/functions/strerror.texi (strerror): Document the Interix
31691         shortcoming.
31692         * modules/string (Makefile.am): Support new hooks.
31693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
31694         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
31695         gl_FUNC_STRERROR_SEPARATE.
31696         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
31697         * lib/strerror.c (rpl_strerror): Provide replacement.
31698         * modules/strerror (Depends-on): Add string.
31699         (configure.ac): Detect use of module.
31700         * tests/test-strerror.c: New file.
31701         * modules/strerror-tests: New test module.
31702         * modules/argp (Depends-on): Add strerror.
31703         * modules/error (Depends-on): Likewise.
31704         Reported by Martin Koeppe.
31705
31706 2007-09-24  Bruno Haible  <bruno@clisp.org>
31707
31708         * README: Update git instructions.
31709
31710 2007-09-24  Eric Blake  <ebb9@byu.net>
31711
31712         Revert fpending breakage from 2007-09-08.
31713         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
31714         __fpending.c.
31715
31716 2007-09-24  Jim Meyering  <jim@meyering.net>
31717
31718         filenamecat.c: Add a test.
31719         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
31720         showing how the function works when DIR is the empty string.
31721
31722 2007-09-21  Simon Josefsson  <simon@josefsson.org>
31723
31724         * tests/test-canonicalize.sh: Turn on executable bit.
31725
31726 2007-09-19  Eric Blake  <ebb9@byu.net>
31727
31728         * README: Update CVS instructions.
31729
31730 2007-09-18  Bruno Haible  <bruno@clisp.org>
31731
31732         * modules/areadlink: New file.
31733         * lib/areadlink.h (areadlink): New declaration.
31734         * lib/areadlink.c: New file, based on lib/xreadlink.c.
31735
31736 2007-09-17  Jim Meyering  <jim@meyering.net>
31737
31738         * lib/savewd.c (ESTALE) [!defined]: Define.
31739         Reported to be required on Interix by Martin Koeppe.
31740
31741 2007-09-17  Bruno Haible  <bruno@clisp.org>
31742
31743         * gnulib-tool (func_version): Use $version.
31744
31745 2007-09-16  Bruno Haible  <bruno@clisp.org>
31746
31747         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
31748         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
31749         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
31750         Reported by Greg Schafer <gschafer@zip.com.au>.
31751
31752 2007-09-15  Bruno Haible  <bruno@clisp.org>
31753
31754         * gnulib-tool (sed): Try a little harder to make bash understand the
31755         alias.
31756         Reported by Bruce Korb <bruce.korb@gmail.com>.
31757
31758 2007-09-13  Eric Blake  <ebb9@byu.net>
31759
31760         * ChangeLog: Remove conflict markers.
31761
31762 2007-09-13  Simon Josefsson  <simon@josefsson.org>
31763
31764         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
31765         Reported by Bruno Haible <bruno@clisp.org>.
31766
31767 2007-09-12  Bruno Haible  <bruno@clisp.org>
31768
31769         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
31770         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
31771         is not defined.
31772
31773 2007-09-12  Eric Blake  <ebb9@byu.net>
31774
31775         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
31776         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
31777         Autoconf definition.
31778         * modules/euidaccess (Depends-on): Add extensions, for
31779         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
31780         * modules/fnmatch (Depends-on): Likewise.
31781         * modules/getaddrinfo (Depends-on): Likewise.
31782         * modules/getdelim (Depends-on): Likewise.
31783         * modules/getline (Depends-on): Likewise.
31784         * modules/getsubopt (Depends-on): Likewise.
31785         * modules/gettext (Depends-on): Likewise.
31786         * modules/group-member (Depends-on): Likewise.
31787         * modules/mbchar (Depends-on): Likewise.
31788         * modules/memmem (Depends-on): Likewise.
31789         * modules/mempcpy (Depends-on): Likewise.
31790         * modules/memrchr (Depends-on): Likewise.
31791         * modules/pagealign_alloc (Depends-on): Likewise.
31792         * modules/readutmp (Depends-on): Likewise.
31793         * modules/stpcpy (Depends-on): Likewise.
31794         * modules/stpncpy (Depends-on): Likewise.
31795         * modules/strchrnul (Depends-on): Likewise.
31796         * modules/strndup (Depends-on): Likewise.
31797         * modules/strsep (Depends-on): Likewise.
31798         * modules/strverscmp (Depends-on): Likewise.
31799         * modules/vasprintf (Depends-on): Likewise.
31800         * modules/wcwidth (Depends-on): Likewise.
31801         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
31802         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
31803         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
31804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
31805         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
31806         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31807         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
31808         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31809         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
31810         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31812         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
31813         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
31814         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
31815         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
31816         * m4/readutmp.m4 (gl_READUTMP): Likewise.
31817         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31818         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
31819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31820         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
31821         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31822         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
31823         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
31824         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
31825         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
31826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31827         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
31828         so that lock.m4 can be used in gettext without extensions module.
31829
31830 2007-09-11  Bruno Haible  <bruno@clisp.org>
31831
31832         * m4/isc-posix.m4: Remove file.
31833         Suggested by Eric Blake.
31834
31835 2007-09-11  Eric Blake  <ebb9@byu.net>
31836
31837         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
31838
31839 2007-09-10  Bruno Haible  <bruno@clisp.org>
31840
31841         * posix-modules: Fix typo in error message.
31842         Reported by Matt <mkraai@beckman.com>.
31843
31844 2007-09-09  Bruno Haible  <bruno@clisp.org>
31845
31846         * doc/functions/getdelim.texi: Update list of platforms lacking the
31847         function.
31848         * doc/functions/getline.texi: Likewise.
31849
31850 2007-09-09  Jim Meyering  <jim@meyering.net>
31851
31852         * lib/hash.c (hash_initialize): Detect calloc failure.
31853         Reported by Bruno Haible.
31854
31855 2007-09-09  Bruno Haible  <bruno@clisp.org>
31856
31857         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
31858         malloc or realloc fails.
31859
31860 2007-09-09  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/getcwd (Depends-on): Add malloc-posix.
31863         * modules/glob (Depends-on): Likewise.
31864         * modules/putenv (Depends-on): Likewise.
31865         * modules/strdup (Depends-on): Likewise.
31866         * modules/getdelim (Depends-on): Add realloc-posix.
31867         * modules/read-file (Depends-on): Likewise.
31868
31869 2007-09-09  Bruno Haible  <bruno@clisp.org>
31870
31871         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
31872         (gl_FUNC_MALLOC_POSIX): Require it.
31873         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
31874         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
31875         * modules/realloc (Files): Add m4/malloc.m4.
31876         * modules/calloc (Files): Likewise.
31877
31878 2007-09-09  Bruno Haible  <bruno@clisp.org>
31879
31880         * modules/malloc-posix: New file.
31881         * modules/malloc (Depends-on): Add malloc-posix.
31882         * lib/malloc.c: Include errno.h.
31883         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
31884         and a POSIX-compatible malloc into a single function. Set ENOMEM
31885         when returning NULL.
31886         * m4/malloc.m4: New file.
31887         * doc/functions/malloc.texi: Mention the malloc-posix module.
31888         * lib/stdlib_.h (malloc): New declaration.
31889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31890         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
31891         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
31892         and HAVE_MALLOC_POSIX.
31893
31894 2007-09-09  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/realloc-posix: New file.
31897         * modules/realloc (Depends-on): Add realloc-posix.
31898         * lib/realloc.c: Include errno.h.
31899         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
31900         and a POSIX-compatible realloc into a single function. Set ENOMEM
31901         when returning NULL.
31902         * m4/realloc.m4: New file.
31903         * doc/functions/realloc.texi: Mention the realloc-posix module.
31904         * lib/stdlib_.h (realloc): New declaration.
31905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31906         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
31907         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
31908         and HAVE_REALLOC_POSIX.
31909
31910 2007-09-09  Bruno Haible  <bruno@clisp.org>
31911
31912         * modules/calloc-posix: New file.
31913         * modules/calloc (Depends-on): Add calloc-posix.
31914         * lib/calloc.c: Include errno.h.
31915         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
31916         and a POSIX-compatible calloc into a single function. Set ENOMEM
31917         when returning NULL.
31918         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
31919         * doc/functions/calloc.texi: Mention the calloc-posix module.
31920         * lib/stdlib_.h (calloc): New declaration.
31921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
31922         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
31923         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
31924         and HAVE_CALLOC_POSIX.
31925
31926 2007-09-09  Bruno Haible  <bruno@clisp.org>
31927
31928         Allow for modules to show an arbitrary notice.
31929         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
31930         * gnulib-tool: New option --extract-notice.
31931         (func_usage): Document it.
31932         (sed_extract_prog): Update.
31933         (func_get_notice): New function.
31934         (func_modules_notice): New function.
31935         (func_import, func_create_testdir): Invoke it.
31936         Suggested by Jim Meyering.
31937
31938 2007-09-09  Bruno Haible  <bruno@clisp.org>
31939
31940         * gnulib-tool: New options --verbose, --quiet.
31941         (func_usage): Document them.
31942         (verbose): New variable.
31943         (func_execute_command): New function.
31944         (func_import): Don't show the module list and the file list if
31945         $verbose < 0.
31946         (func_create_testdir): Likewise. Use func_execute_command.
31947         (func_create_megatestdir): Use func_execute_command.
31948
31949 2007-09-08  Bruno Haible  <bruno@clisp.org>
31950
31951         * gnulib-tool (func_import): Prefer rsync over wget when available,
31952         for fetching the PO files.
31953
31954 2007-09-08  Bruno Haible  <bruno@clisp.org>
31955
31956         * posix-modules: New file. Portions copied from gnulib-tool.
31957         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
31958
31959 2007-09-08  Jim Meyering  <jim@meyering.net>
31960
31961         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
31962         * lib/fpending.h: Rename from __fpending.h.
31963         * lib/fpending.c: Rename from __fpending.c.
31964         Include "fpending.h", not "__fpending.h".
31965         * lib/__fpending.h, lib/__fpending.c: Remove files.
31966         * modules/fpending (Files): Reflect new file names.
31967         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
31968
31969 2007-09-08  Bruno Haible  <bruno@clisp.org>
31970
31971         * m4/inttypes-h.m4: Remove stub file.
31972
31973 2007-09-07  Simon Josefsson  <simon@josefsson.org>
31974
31975         * doc/headers/stdint.texi: Discuss #include_next issue.
31976
31977 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
31978
31979         * build-aux/bootstrap: Remove obsolete comment about wget --help.
31980
31981 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31982
31983         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
31984         in variable name.
31985
31986 2007-09-03  Jim Meyering  <jim@meyering.net>
31987
31988         New module: git-version-gen.
31989         * modules/git-version-gen: New file.
31990
31991         Import changes from coreutils for bootstrap script.
31992
31993         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
31994
31995         bootstrap: uses rsync to download the .po files
31996         * build-aux/bootstrap (po_download_command_format): New global.
31997         (download_po_files): Use rsync.
31998         (update_po_files): Don't remove .po files after download,
31999         so future rsync runs can take advantage of the copies.
32000
32001         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32002
32003         Solve the unnecessary-.po-file-regeneration problem once and for all.
32004         * build-aux/bootstrap (download_po_files): New function, renamed from
32005         get_translations.  Now, downloads, but doesn't update LINGUAS.
32006         (update_po_files): New function.
32007
32008         bootstrap: Ignore more.
32009         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32010         uniwidth to e.g., lib/.gitignore.
32011         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32012
32013         * build-aux/bootstrap: New setting: vc_ignore.
32014         (insert_sorted_if_absent): Create $file if absent.
32015         Adapt to new, possibly empty, list: $vc_ignore.
32016
32017         bootstrap: generate more ignorable names
32018         * build-aux/bootstrap (slurp): When generating ignorable names,
32019         also map .sin to .sed, .gperf to .c, and .y to .c.
32020
32021 2007-09-03  Jim Meyering  <jim@meyering.net>
32022
32023         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32024         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32025
32026 2007-09-02  Bruno Haible  <bruno@clisp.org>
32027
32028         Fix mis-recognition of 'mcs' on QNX 6.
32029         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32030         output contains the string "Mono".
32031         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32032         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32033
32034 2007-09-01  Bruno Haible  <bruno@clisp.org>
32035
32036         Fix collision between uniwidth/* and linebreak modules.
32037         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32038         u32_width): Remove declarations.
32039         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32040         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32041         streq3, streq2, streq1, streq0): Remove functions.
32042         (STREQ): Remove macro.
32043         (is_cjk_encoding): Remove function.
32044         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32045         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32046         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32047         * NEWS: Document the change.
32048
32049 2007-09-01  Bruno Haible  <bruno@clisp.org>
32050
32051         * lib/streq.h: Add double-inclusion guard.
32052
32053 2007-09-01  Karl Berry  <karl@gnu.org>
32054
32055         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32056
32057 2007-08-28  Jim Meyering  <jim@meyering.net>
32058
32059         Rename mreadlink_with_size to areadlink_with_size.
32060         * NEWS: Document the change.
32061         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32062         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32063         * lib/mreadlink.h: Rename this to...
32064         * lib/areadlink.h: ...this.
32065         * modules/mreadlink-with-size: Rename this to...
32066         * modules/areadlink-with-size: ...this.
32067         * lib/canonicalize.c: Reflect the renaming.
32068         * modules/canonicalize: Likewise.
32069
32070 2007-08-26  Bruno Haible  <bruno@clisp.org>
32071
32072         * gnulib-tool (func_import): When deciding which files to remove,
32073         consider also dangling symbolic links.
32074         Reported by Eric Blake.
32075
32076 2007-08-26  Bruno Haible  <bruno@clisp.org>
32077
32078         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32079
32080 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32081
32082         * lib/readline.c: Don't include getline.h, the prototype is now
32083         found in stdio.h.
32084
32085 2007-08-23  Jim Meyering  <jim@meyering.net>
32086
32087         Getdelim touchup.
32088         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32089         around the funlockfile call, since funlockfile never sets errno.
32090         Don't set errno upon failed realloc.
32091
32092 2007-08-22  Eric Blake  <ebb9@byu.net>
32093
32094         Getline touchups.
32095         * lib/getdelim.c (getdelim): Revert regression that required *n to
32096         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32097         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32098         getdelim, rather than whether implementation is missing.
32099         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32100         * lib/stdio_.h (getline): Also declare if replacement is
32101         required.
32102         * doc/functions/getdelim.texi: New file.
32103         * doc/functions/getline.texi: Likewise.
32104         * doc/gnulib.texi (Function Substitutes): Add new files.
32105         Reported by Bruno Haible.
32106
32107 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32108
32109         * users.txt: Add Guile.
32110
32111 2007-08-22  Eric Blake  <ebb9@byu.net>
32112
32113         * tests/test-getdelim.c (main): Use remove, not unlink.
32114         * tests/test-getline.c (main): Likewise.
32115
32116         Move getline and getdelim into stdio.h, per POSIX 200x.
32117         * modules/getline (Files): Remove getline.h.
32118         (Depends-on): Add stdio.
32119         (configure.ac): Add module indicator.
32120         * modules/getdelim (Files): Remove getdelim.h.
32121         (Depends-on): Add stdio.
32122         (configure.ac): Add module indicator.
32123         * modules/stdio (Makefile.am): Work with new indicators.
32124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32125         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32126         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32127         * lib/getdelim.h: Delete.
32128         * lib/getline.h: Delete.
32129         * lib/stdio_.h (getdelim, getline): Declare.
32130         * modules/getdelim-tests: New module.
32131         * modules/getline-tests: Likewise.
32132         * tests/test-getdelim.c: New file.
32133         * tests/test-getline.c: Likewise.
32134         * NEWS: Document the change.
32135         * lib/getline.c: Update choice of header.
32136         * lib/csharpcomp.c: Likewise.
32137         * lib/getpass.c: Likewise.
32138         * lib/javacomp.c: Likewise.
32139         * lib/javaversion.c: Likewise.
32140         * lib/yesno.c: Likewise.
32141         * lib/getdelim.c: Likewise.
32142         (getdelim): Set errno on failure, and avoid memory leak.
32143
32144 2007-08-19  Bruno Haible  <bruno@clisp.org>
32145
32146         * modules/closein (Depends-on): Add freadahead.
32147         * lib/closein.c: Include freadahead.h.
32148         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32149         is zero.
32150
32151 2007-08-19  Bruno Haible  <bruno@clisp.org>
32152
32153         * modules/freadahead-tests: New file.
32154         * tests/test-freadahead.sh: New file.
32155         * tests/test-freadahead.c: New file.
32156
32157         * modules/freadahead: New file.
32158         * lib/freadahead.h: New file.
32159         * lib/freadahead.c: New file.
32160         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32161         fbufmode, fpurge, freadable, fwritable.
32162
32163 2007-08-19  Eric Blake  <ebb9@byu.net>
32164
32165         Test yesno in combination with closein.
32166         * lib/yesno.c (yesno): Document use of stdin.
32167         * modules/yesno-tests (Files): New module.
32168         * tests/test-yesno.c (main): New file.
32169         * tests/test-yesno.sh: Likewise.
32170
32171 2007-08-19  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32174         * lib/fseeko.c (rpl_fseeko): Likewise.
32175         * lib/fseterr.c (fseterr): Likewise.
32176
32177 2007-08-19  Bruno Haible  <bruno@clisp.org>
32178
32179         * tests/test-lseek.c (main): Disable a test for BeOS.
32180         * doc/functions/lseek.texi: Document the BeOS bug.
32181
32182 2007-08-19  Bruno Haible  <bruno@clisp.org>
32183             Eric Blake  <ebb9@byu.net>
32184
32185         * lib/lseek.c: Include <sys/stat.h>.
32186         (rpl_lseek): Add workaround code also for Unix platforms.
32187         Needed for BeOS.
32188         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32189         * doc/functions/lseek.texi: Document BeOS definiency.
32190
32191 2007-08-18  Bruno Haible  <bruno@clisp.org>
32192
32193         * modules/fstrcmp-tests: New file.
32194         * tests/test-fstrcmp.c: New file.
32195
32196 2007-08-18  Bruno Haible  <bruno@clisp.org>
32197
32198         * modules/fstrcmp: New file, from GNU gettext with modifications.
32199         * lib/fstrcmp.h: New file, from GNU gettext.
32200         * lib/fstrcmp.c: New file, from GNU gettext.
32201         * MODULES.html.sh (String handling): Add fstrcmp.
32202
32203 2007-08-18  Bruno Haible  <bruno@clisp.org>
32204
32205         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32206         'bool'.
32207         (diag, compareseq): Remove const from the ctxt argument.
32208         (USE_HEURISTIC): Undefine at the end.
32209
32210 2007-08-18  Jim Meyering  <jim@meyering.net>
32211
32212         New file: lib/idcache.h
32213         * NEWS: Mention the addition.
32214         * modules/idcache (Files): Add lib/idcache.h
32215         * lib/idcache.c: Include "idcache.h".
32216         Don't include <sys/types.h>.
32217         Add a FIXME comment.
32218         Move file-scoped "static" declarations to the top.
32219         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32220
32221 2007-08-17  Bruno Haible  <bruno@clisp.org>
32222         and Paul Eggert  <eggert@cs.ucla.edu>
32223
32224         * MODULES.html.sh: Add diffseq.
32225         * modules/diffseq: New file.
32226         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32227         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32228
32229 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32230
32231         Import changes from coreutils for bootstrap script.
32232
32233         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32234
32235         * build-aux/bootstrap (slurp): Work even in environments where
32236         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32237         current code does not slurp files whose names start with ".", and
32238         this looks like it might be a troublesome area.
32239
32240         2007-07-11  Jim Meyering  <jim@meyering.net>
32241
32242         If there's a GPL vN copyright comment, require that N == 3.
32243
32244         2007-07-08  Jim Meyering  <jim@meyering.net>
32245
32246         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32247         * build-aux/bootstrap (mam_template): Move definition out of loop.
32248
32249         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32250
32251         * build-aux/bootstrap (symlink_to_dir): Rename function from
32252         symlink_to_gnulib.  Add a directory parameter.  Update all
32253         callers.
32254         (cp_mark_as_generated): Also check for -- and link to -- files in
32255         gl/.
32256
32257         2007-07-08  Jim Meyering  <jim@meyering.net>
32258
32259         Adapt to deeper hierarchy in gnulib.
32260         * build-aux/bootstrap (symlink_to_dir): If the destination
32261         directory doesn't exist, create it. This is required at least for
32262         "lib/uniwidth/cjk.h".
32263
32264         2007-05-15  Jim Meyering  <jim@meyering.net>
32265
32266         * build-aux/bootstrap: Now that generated Makefile.am files
32267         are no longer under version control, they must be created at
32268         bootstrap time.
32269
32270 2007-08-14  Ben Pfaff  <blp@gnu.org>
32271
32272         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32273
32274 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32275
32276         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32277         given the changes below.
32278         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32279         even on hosts that have padding bits beyond the supported 64.
32280
32281 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32282
32283         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32284         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32285         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32286         depends on it.
32287         (xstrtol_error): Remove.
32288         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32289         but with a different signature.
32290         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32291         * lib/xstrtol-error.c: Include exitfail.h.
32292         (xstrtol_fatal): New function, with a different signature from the
32293         old xstrtol_error, so that the caller need not worry about passing
32294         in an exit status, or about storage management of the option argument.
32295         (xstrtol_error): Now a static function.  Redo signature to
32296         implement xstrtol_fatal.  Output the correct number of hyphens in
32297         front of the option so that the caller need not worry about
32298         storage management.
32299         (N_): New macro.
32300         (_): Remove; not used now.
32301         * modules/xstrtol: Depend on getopt.
32302         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32303         of old STRTOL_FATAL_ERROR macro.
32304         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32305         of test program.
32306         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32307         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32308
32309 2007-08-08  Eric Blake  <ebb9@byu.net>
32310
32311         * lib/xstrtol-error.c: Add missing include.
32312
32313         Move xstrtol messages into gnulib domain, when --pobase is used.
32314         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32315         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32316         * modules/xstrtol (Files): Distribute new file.
32317         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32318         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32319         * tests/test-xstrtol.c: ...into new file.
32320         * tests/test-xstrtoul.c: Also test xstrtoul.
32321         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32322         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32323         * tests/test-xstrtol.sh: Drive the tests.
32324         * tests/test-xstrtoimax.sh: Likewise.
32325         * tests/test-xstrtoumax.sh: Likewise.
32326         * modules/xstrtol-tests: New module.
32327         * modules/xstrtoimax-tests: Likewise.
32328         * modules/xstrtoumax-tests: Likewise.
32329
32330 2007-08-08  Jim Meyering  <jim@meyering.net>
32331
32332         New function: mfile_name_concat.
32333         * lib/filenamecat.c (mfile_name_concat): New function, just like
32334         file_name_concat, but return NULL upon failure rather than exiting
32335         with a diagnostic.
32336         * lib/filenamecat.h: Declare it.
32337
32338 2007-08-07  Bruno Haible  <bruno@clisp.org>
32339
32340         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32341         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32342         warning from gcc.
32343         Reported by Eric Blake.
32344
32345 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32346
32347         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32348         * modules/crypto/arcfour (License): Likewise.
32349         * modules/crypto/des-tests (License): Likewise.
32350         * modules/crypto/gc-arctwo-tests (License): Likewise.
32351         * modules/crypto/gc-des-tests (License): Likewise.
32352         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32353         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32354         * modules/crypto/gc-md2-tests (License): Likewise.
32355         * modules/crypto/gc-md4-tests (License): Likewise.
32356         * modules/crypto/gc-md5-tests (License): Likewise.
32357         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32358         * modules/crypto/gc-rijndael-tests (License): Likewise.
32359         * modules/crypto/gc-sha1-tests (License): Likewise.
32360         * modules/crypto/gc-tests (License): Likewise.
32361         * modules/crypto/hmac-md5 (License): Likewise.
32362         * modules/crypto/hmac-sha1 (License): Likewise.
32363         * modules/crypto/md2-tests (License): Likewise.
32364         * modules/crypto/md4-tests (License): Likewise.
32365         * modules/crypto/md5 (License): Likewise.
32366         * modules/crypto/rijndael (License): Likewise.
32367         * modules/crypto/sha1 (License): Likewise.
32368         * modules/memxor (License): Likewise.
32369
32370 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32371         and Bruno Haible  <bruno@clisp.org>
32372
32373         * NEWS: Describe interface changes to human, xstrtol.
32374         * lib/human.h: Include <xstrtol.h>.
32375         (human_options): Return enum strtol_error, not int.  Remove
32376         bool arg; take int * instead.
32377         * lib/human.c: Don't include "gettext.h".
32378         (_): Remove; no longer used.
32379         Don't include <xstrtol.h>, since human.h does it.
32380         (human_options): Adjust to abovementioned interface changes.
32381         Do not report error to stderr; that's now the caller's
32382         responsibility.
32383         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32384         interface change.
32385         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32386         Str, Argument_type_string.  All uses changed.  Put " argument"
32387         in diagnostics to make them clearer.  Change wording of suffix
32388         message for clarity.
32389         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32390         Argument_type_string.
32391         (STRTOL_FATAL_WARN): Remove; no longer used.
32392         * modules/human (Depends-on): Remove gettext-h.
32393
32394 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32395
32396         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32397
32398 2007-07-31  Bruno Haible  <bruno@clisp.org>
32399
32400         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32401         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32402         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32403
32404 2007-07-31  Bruno Haible  <bruno@clisp.org>
32405
32406         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32407         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32408
32409 2007-07-30  Bruno Haible  <bruno@clisp.org>
32410
32411         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32412         * modules/c-ctype (License): Likewise.
32413         * modules/c-strcase (License): Likewise.
32414         * modules/check-version (License): Likewise.
32415         * modules/iconv (License): Likewise.
32416         * modules/iconv_open (License): Likewise.
32417         * modules/read-file (License): Likewise.
32418         * modules/striconv (License): Likewise.
32419         * modules/strverscmp (License): Likewise.
32420         * modules/vasprintf (License): Likewise.
32421         * modules/crypto/des (License): Likewise.
32422         * modules/crypto/gc (License): Likewise.
32423         * modules/crypto/gc-arcfour (License): Likewise.
32424         * modules/crypto/gc-arctwo (License): Likewise.
32425         * modules/crypto/gc-des (License): Likewise.
32426         * modules/crypto/gc-hmac-md5 (License): Likewise.
32427         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32428         * modules/crypto/gc-md2 (License): Likewise.
32429         * modules/crypto/gc-md4 (License): Likewise.
32430         * modules/crypto/gc-md5 (License): Likewise.
32431         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32432         * modules/crypto/gc-random (License): Likewise.
32433         * modules/crypto/gc-rijndael (License): Likewise.
32434         * modules/crypto/gc-sha1 (License): Likewise.
32435         * modules/crypto/md2 (License): Likewise.
32436         * modules/crypto/md4 (License): Likewise.
32437
32438 2007-07-30  Jim Meyering  <jim@meyering.net>
32439
32440         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32441         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32442         it has valid stat data.  This bug would cause du not to count the
32443         sizes of inaccessible directories.
32444         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32445         in <http://bugzilla.redhat.com/250077>.
32446
32447 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32448             Bruno Haible  <bruno@clisp.org>
32449
32450         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32451         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32452         #include_next, gives a diagnostic about it, but reports no error in
32453         the exit code.
32454         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32455
32456 2007-07-24  Ben Pfaff  <blp@gnu.org>
32457
32458         Improve name: "count-one-bits" is better than "popcount".
32459         * MODULES.html.sh: Update name.
32460         * lib/popcount.h: Renamed lib/count-one-bits.h.
32461         (popcount): Renamed count_one_bits.
32462         (popcountl): Renamed count_one_bits_l.
32463         (popcountll): Renamed count_one_bits_ll.
32464         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32465         * modules/popcount: Renamed module/count-one-bits.
32466         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32467         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32468
32469 2007-07-23  Ben Pfaff  <blp@gnu.org>
32470
32471         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32472         better code generation, and add U to large constants to avoid
32473         warnings, in non-GCC case.
32474         Suggested by Bruno Haible.
32475
32476 2007-07-23  Ben Pfaff  <blp@gnu.org>
32477
32478         * lib/popcount.h: Use verify_true instead of if...abort.
32479         * modules/popcount: Depend on verify module.
32480         Suggested by Jim Meyering.
32481
32482 2007-07-23  Bruno Haible  <bruno@clisp.org>
32483
32484         * gnulib-tool (func_import): Create a .cvsignore file also when the
32485         directory is not yet in CVS but the toplevel directory is. When
32486         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32487         Reported by Karl Berry.
32488
32489 2007-07-22  Ben Pfaff  <blp@gnu.org>
32490
32491         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32492         case.
32493         Suggested by Eric Blake.
32494
32495 2007-07-22  Ben Pfaff  <blp@gnu.org>
32496
32497         New module: popcount.
32498         * MODULES.html.sh: Add popcount.
32499         * modules/popcount: New file.
32500         * modules/popcount-tests: New file.
32501         * tests/test-popcount.c: New file.
32502         * lib/popcount.h: New file.
32503         * m4/popcount.m4: New file.
32504
32505 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32506
32507         * build-aux/announce-gen: Update to GPLv3.
32508
32509         * build-aux/config.guess: Update from config.
32510
32511 2007-07-21  Bruno Haible  <bruno@clisp.org>
32512
32513         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32514         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32515
32516 2007-07-20  Jim Meyering  <jim@meyering.net>
32517
32518         * check-module: Diagnose a self-dependency.
32519
32520 2007-07-19  Bruno Haible  <bruno@clisp.org>
32521
32522         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32523         empty.
32524         Reported by Eric Blake.
32525
32526 2007-07-18  Bruno Haible  <bruno@clisp.org>
32527
32528         * gnulib-tool: New options --po-base, --po-domain.
32529         (func_usage): Document them.
32530         (pobase, po_domain): New variables.
32531         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32532         DEFAULT_TEXT_DOMAIN.
32533         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32534         (func_import): Consider pobase and po_domain. Create a po/ directory.
32535         (func_create_testdir): Set pobase and po_domain to empty.
32536         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32537         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32538
32539 2007-07-18  Bruno Haible  <bruno@clisp.org>
32540
32541         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32542         EXTRA_DIST augmentation for files in build-aux/.
32543
32544 2007-07-16  Bruno Haible  <bruno@clisp.org>
32545
32546         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32547         * modules/getdelim (License): Likewise.
32548
32549 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32550
32551         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32552         * modules/d-type (License): Likewise.
32553         * modules/extensions (License): Likewise.
32554         * modules/fnmatch (License): Likewise.
32555         * modules/fseeko (License): Likewise.
32556         * modules/getaddrinfo (License): Likewise.
32557         * modules/getline (License): Likewise.
32558         * modules/getlogin_r (License): Likewise.
32559         * modules/getpass (License): Likewise.
32560         * modules/gettimeofday (License): Likewise.
32561         * modules/glob (License): Likewise.
32562         * modules/inet_ntop (License): Likewise.
32563         * modules/malloc (License): Likewise.
32564         * modules/malloca (License): Likewise.
32565         * modules/memmem (License): Likewise.
32566         * modules/mempcpy (License): Likewise.
32567         * modules/memset (License): Likewise.
32568         * modules/minmax (License): Likewise.
32569         * modules/mktime (License): Likewise.
32570         * modules/netinet_in (License): Likewise.
32571         * modules/pathmax (License): Likewise.
32572         * modules/poll (License): Likewise.
32573         * modules/regex (License): Likewise.
32574         * modules/snprintf (License): Likewise.
32575         * modules/stdbool (License): Likewise.
32576         * modules/stdint (License): Likewise.
32577         * modules/stdio (License): Likewise.
32578         * modules/strcase (License): Likewise.
32579         * modules/strcasestr (License): Likewise.
32580         * modules/strdup (License): Likewise.
32581         * modules/string (License): Likewise.
32582         * modules/strndup (License): Likewise.
32583         * modules/strnlen (License): Likewise.
32584         * modules/strpbrk (License): Likewise.
32585         * modules/strptime (License): Likewise.
32586         * modules/strsep (License): Likewise.
32587         * modules/sys_select (License): Likewise.
32588         * modules/sys_socket (License): Likewise.
32589         * modules/sys_stat (License): Likewise.
32590         * modules/sys_time (License): Likewise.
32591         * modules/time (License): Likewise.
32592         * modules/time_r (License): Likewise.
32593         * modules/timegm (License): Likewise.
32594         * modules/unistd (License): Likewise.
32595         * modules/vsnprintf (License): Likewise.
32596         * modules/wctype (License): Likewise.
32597
32598 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32599
32600         * modules/argz (License): LGPLv2+.
32601
32602 2007-07-15  Karl Berry  <karl@gnu.org>
32603
32604         * doc/gnulib.texi: revise node structure per new fdl.texi.
32605
32606 2007-07-14  Bruno Haible  <bruno@clisp.org>
32607
32608         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32609         the output file.
32610         * lib/uniname/uninames.h: Regenerated.
32611
32612 2007-07-14  Karl Berry  <karl@gnu.org>
32613
32614         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32615         omitting sectioning and index commands.
32616
32617 2007-07-13  Bruno Haible  <bruno@clisp.org>
32618
32619         New gnulib-tool option --more-symlinks.
32620         * gnulib-tool (func_usage): Document --more-symlinks.
32621         (do_copyrights): New variable.
32622         Recognize option --more-symlinks.
32623         (func_import): Don't add a copyright notice transform to
32624         sed_transform_lib_file if do_copyrights is empty.
32625
32626 2007-07-13  Bruno Haible  <bruno@clisp.org>
32627
32628         * lib/vasnprintf.c (decimal_point_char): Define also if
32629         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32630         && !NEED_PRINTF_DIRECTIVE_A.
32631         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32632         Gary V. Vaughan <gary@gnu.org>.
32633
32634 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32635
32636         * lib/inttypes_.h: Undo previous change, since it was fixed
32637         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32638
32639 2007-07-13  Bruno Haible  <bruno@clisp.org>
32640
32641         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32642         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32643
32644 2007-07-13  Jim Meyering  <jim@meyering.net>
32645
32646         df: Don't fail for Tru64's "file-on-file mount".
32647         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32648         so we fall through and use statfs instead.  Details here:
32649         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32650         Reported by Albert Chin.
32651
32652 2007-07-13  Bruno Haible  <bruno@clisp.org>
32653
32654         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32655         * modules/configmake (License): Likewise.
32656         * modules/gettext (License): Likewise.
32657         * modules/gettext-h (License): Likewise.
32658         * modules/include_next (License): Likewise.
32659         * modules/link-warning (License): Likewise.
32660         * modules/localcharset (License): Likewise.
32661         * modules/localename (License): Likewise.
32662         * modules/lock (License): Likewise.
32663         * modules/relocatable-lib-lgpl (License): Likewise.
32664         * modules/size_max (License): Likewise.
32665         * modules/vasnprintf (License): Likewise.
32666         * modules/wchar (License): Likewise.
32667         * modules/xsize (License): Likewise.
32668
32669 2007-07-13  Bruno Haible  <bruno@clisp.org>
32670
32671         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32672         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32673
32674 2007-07-12  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32677         in the modules files.
32678
32679 2007-07-11  Karl Berry  <karl@gnu.org>
32680
32681         * MODULES.html.sh (func_module): use
32682          sed -e '\|^'"${includefile}"'$|d'
32683          instead of /.../d, to avoid errors on $includefile's containing /.
32684
32685 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32686
32687         * gnulib-tool (func_import): Avoid duplication of --avoid
32688         statements
32689         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
32690         names to `_' in variable names.
32691
32692 2007-07-10  Eric Blake  <ebb9@byu.net>
32693
32694         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
32695         * NEWS: Document this change.
32696
32697 2007-07-08  Bruno Haible  <bruno@clisp.org>
32698
32699         Update to Unicode 5.0.
32700         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
32701         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
32702         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
32703         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
32704         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
32705         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
32706         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
32707         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
32708         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
32709         U+10A3F, U+1D242..U+1D244.
32710         (nonspacing_table_ind): Update.
32711         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
32712         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
32713
32714 2007-07-08  Bruno Haible  <bruno@clisp.org>
32715
32716         Update to Unicode 5.0.
32717         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
32718         code transform. Extend the name index field of unicode_name_to_code and
32719         unicode_code_to_name from 16 to 24 bits.
32720         * lib/uniname/uniname.c (unicode_character_name,
32721         unicode_name_character): Add the range 0x12xxx to the code transform.
32722         * lib/uniname/uninames.h: Regenerated.
32723         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
32724
32725 2007-07-07  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/wcwidth-tests: New file.
32728         * tests/test-wcwidth.c: New file.
32729
32730         Work around MacOS X wcwidth() bug.
32731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
32732         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
32733         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
32734         original wcwidth in non-UTF-8 locales.
32735         * modules/wcwidth (Depends-on): Add localcharset, streq,
32736         uniwidth/width.
32737         * doc/functions/wcwidth.texi: Update.
32738
32739 2007-07-07  Bruno Haible  <bruno@clisp.org>
32740
32741         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
32742         (wcwidth): New declaration.
32743         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
32744         macros.
32745         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
32746         here. Prepare for creating <wchar.h> unconditionally.
32747         * modules/wchar (Depends-on): Add link-warning.
32748         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
32749         REPLACE_WCWIDTH, and GL_LINK_WARNING.
32750         * lib/wcwidth.h: Remove file.
32751         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
32752         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
32753         * modules/wcwidth (Files): Remove lib/wcwidth.h.
32754         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
32755         (Include): Replace wcwidth.h with <wchar.h>.
32756         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
32757         * lib/mbchar.h: Don't include wcwidth.h.
32758         * lib/mbswidth.c: Likewise.
32759         * NEWS: Mention the change.
32760
32761 2007-07-07  Bruno Haible  <bruno@clisp.org>
32762
32763         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
32764         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
32765         definition with an external declaration.
32766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
32767         defined as a function. Remove AC_C_INLINE requirement.
32768         * modules/wcwidth (Files): Add lib/wcwidth.c.
32769         (Makefile.am): Remove redundant statement.
32770
32771 2007-07-07  Bruno Haible  <bruno@clisp.org>
32772
32773         * MODULES.html.sh (Unicode string functions): Add the new modules.
32774
32775         * tests/uniwidth/test-u32-strwidth.c: New file.
32776         * modules/uniwidth/u32-strwidth-tests: New file.
32777
32778         * lib/uniwidth/u32-strwidth.c: New file.
32779         * modules/uniwidth/u32-strwidth: New file.
32780
32781         * tests/uniwidth/test-u16-strwidth.c: New file.
32782         * modules/uniwidth/u16-strwidth-tests: New file.
32783
32784         * lib/uniwidth/u16-strwidth.c: New file.
32785         * modules/uniwidth/u16-strwidth: New file.
32786
32787         * tests/uniwidth/test-u8-strwidth.c: New file.
32788         * modules/uniwidth/u8-strwidth-tests: New file.
32789
32790         * lib/uniwidth/u8-strwidth.c: New file.
32791         * modules/uniwidth/u8-strwidth: New file.
32792
32793         * tests/uniwidth/test-u32-width.c: New file.
32794         * modules/uniwidth/u32-width-tests: New file.
32795
32796         * lib/uniwidth/u32-width.c: New file.
32797         * modules/uniwidth/u32-width: New file.
32798
32799         * tests/uniwidth/test-u16-width.c: New file.
32800         * modules/uniwidth/u16-width-tests: New file.
32801
32802         * lib/uniwidth/u16-width.c: New file.
32803         * modules/uniwidth/u16-width: New file.
32804
32805         * tests/uniwidth/test-u8-width.c: New file.
32806         * modules/uniwidth/u8-width-tests: New file.
32807
32808         * lib/uniwidth/u8-width.c: New file.
32809         * modules/uniwidth/u8-width: New file.
32810
32811         * tests/uniwidth/test-uc_width.c: New file.
32812         * modules/uniwidth/width-tests: New file.
32813
32814         * lib/uniwidth/width.c: New file, from GNU libiconv.
32815         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
32816         * modules/uniwidth/width: New file.
32817
32818         * lib/uniwidth.h: New file, from GNU libiconv.
32819         * modules/uniwidth/base: New file.
32820
32821 2007-07-07  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/uniname.h: New file, from GNU gettext.
32824         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
32825         * lib/uniname/uninames.h: New file, from GNU gettext.
32826         * lib/uniname/uniname.c: New file, from GNU gettext.
32827         * tests/uniname/test-uninames.sh: New file.
32828         * tests/uniname/test-uninames.c: New file, from GNU gettext.
32829         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
32830         * modules/uniname/base: New file.
32831         * modules/uniname/uniname: New file.
32832         * modules/uniname/uniname-tests: New file.
32833         * MODULES.html.sh (Unicode string functions): Add the new modules.
32834
32835 2007-07-06  Bruno Haible  <bruno@clisp.org>
32836
32837         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
32838
32839 2007-07-06  Bruno Haible  <bruno@clisp.org>
32840
32841         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
32842         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
32843         includes <cygwin/sys_time.h> which includes <sys/select.h> which
32844         include <sys/time.h>.
32845         Reported by Eric Blake.
32846
32847 2007-07-06  Eric Blake  <ebb9@byu.net>
32848
32849         Fix testing canonicalize on cygwin.
32850         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32851         Revert patch from 2007-06-19.
32852         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
32853         canonicalize module is also in use.
32854         * tests/test-canonicalize.c: New file.
32855         * tests/test-canonicalize.sh: Likewise.
32856         * modules/canonicalize-tests: Likewise.
32857
32858 2007-07-06  Jim Meyering  <jim@meyering.net>
32859
32860         * lib/getugroups.c (getugroups): Detect getgrent failure.
32861         Adjust comment to reflect reality: this function may return -1.
32862
32863 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32864
32865         * build-aux/bootstrap (TP_URL,get_translations): Update to use
32866         the new TP address.
32867         (usage): Fix typo
32868         (gnulib_mk): New variable.
32869
32870 2007-07-05  Jim Meyering  <jim@meyering.net>
32871
32872         Don't let endgrent clobber errno, no matter how improbable.
32873         * lib/getugroups.c (getugroups): Save and restore errno around
32874         endgrent call.
32875
32876         Close the group DB even when failing with 2^31 or more members.
32877         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
32878
32879 2007-07-04  Jim Meyering  <jim@meyering.net>
32880
32881         * lib/getugroups.h: New file.
32882         * lib/getugroups.c: Include "getugroups.h".
32883         Remove uses of "register" keyword.
32884         Move local variable, "cp", down into scope where used.
32885         Give "username" parameter the "const" attribute.
32886         * modules/getugroups (Files): Add lib/getugroups.h
32887
32888 2007-07-04  Karl Berry  <karl@gnu.org>
32889
32890         * MODULES.html.sh (func_all_modules): Complete rename of
32891         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
32892
32893 2007-07-02  Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
32896         mode, when inttypes.h comes from gnulib.
32897         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32898
32899 2007-07-02  Simon Josefsson  <simon@josefsson.org>
32900
32901         * NEWS: Mention lgpl module name change.
32902
32903         * modules/lgpl-2.1: Renamed from lgpl.
32904
32905         * NEWS: Mention gpl module name change.
32906
32907         * modules/gpl-3.0: New file, based on gpl-2.0.
32908
32909         * modules/gpl-2.0: Renamed from gpl.
32910
32911         * modules/gpl: Fix filename, doc/gpl.texi is now found at
32912         doc/gpl-2.0.texi.
32913
32914 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
32915
32916         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
32917         #define __STDC_LIMIT_MACROS temporarily while including
32918         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
32919         Problem reported by Joel E. Denny in
32920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
32921
32922 2007-07-01  Bruno Haible  <bruno@clisp.org>
32923
32924         * lib/unistdio.h: New file.
32925         * lib/unistdio/u-asnprintf.h: New file.
32926         * lib/unistdio/u-asprintf.h: New file.
32927         * lib/unistdio/u-printf-args.c: New file.
32928         * lib/unistdio/u-printf-args.h: New file.
32929         * lib/unistdio/u-printf-parse.h: New file.
32930         * lib/unistdio/u-snprintf.h: New file.
32931         * lib/unistdio/u-sprintf.h: New file.
32932         * lib/unistdio/u-vasprintf.h: New file.
32933         * lib/unistdio/u-vsnprintf.h: New file.
32934         * lib/unistdio/u-vsprintf.h: New file.
32935         * lib/unistdio/ulc-asnprintf.c: New file.
32936         * lib/unistdio/ulc-asprintf.c: New file.
32937         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
32938         * lib/unistdio/ulc-printf-parse.c: New file.
32939         * lib/unistdio/ulc-snprintf.c: New file.
32940         * lib/unistdio/ulc-sprintf.c: New file.
32941         * lib/unistdio/ulc-vasnprintf.c: New file.
32942         * lib/unistdio/ulc-vasprintf.c: New file.
32943         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
32944         * lib/unistdio/ulc-vsnprintf.c: New file.
32945         * lib/unistdio/ulc-vsprintf.c: New file.
32946         * lib/unistdio/u8-asnprintf.c: New file.
32947         * lib/unistdio/u8-asprintf.c: New file.
32948         * lib/unistdio/u8-printf-parse.c: New file.
32949         * lib/unistdio/u8-snprintf.c: New file.
32950         * lib/unistdio/u8-sprintf.c: New file.
32951         * lib/unistdio/u8-vasnprintf.c: New file.
32952         * lib/unistdio/u8-vasprintf.c: New file.
32953         * lib/unistdio/u8-vsnprintf.c: New file.
32954         * lib/unistdio/u8-vsprintf.c: New file.
32955         * lib/unistdio/u8-u8-asnprintf.c: New file.
32956         * lib/unistdio/u8-u8-asprintf.c: New file.
32957         * lib/unistdio/u8-u8-snprintf.c: New file.
32958         * lib/unistdio/u8-u8-sprintf.c: New file.
32959         * lib/unistdio/u8-u8-vasnprintf.c: New file.
32960         * lib/unistdio/u8-u8-vasprintf.c: New file.
32961         * lib/unistdio/u8-u8-vsnprintf.c: New file.
32962         * lib/unistdio/u8-u8-vsprintf.c: New file.
32963         * lib/unistdio/u16-asnprintf.c: New file.
32964         * lib/unistdio/u16-asprintf.c: New file.
32965         * lib/unistdio/u16-printf-parse.c: New file.
32966         * lib/unistdio/u16-snprintf.c: New file.
32967         * lib/unistdio/u16-sprintf.c: New file.
32968         * lib/unistdio/u16-vasnprintf.c: New file.
32969         * lib/unistdio/u16-vasprintf.c: New file.
32970         * lib/unistdio/u16-vsnprintf.c: New file.
32971         * lib/unistdio/u16-vsprintf.c: New file.
32972         * lib/unistdio/u16-u16-asnprintf.c: New file.
32973         * lib/unistdio/u16-u16-asprintf.c: New file.
32974         * lib/unistdio/u16-u16-snprintf.c: New file.
32975         * lib/unistdio/u16-u16-sprintf.c: New file.
32976         * lib/unistdio/u16-u16-vasnprintf.c: New file.
32977         * lib/unistdio/u16-u16-vasprintf.c: New file.
32978         * lib/unistdio/u16-u16-vsnprintf.c: New file.
32979         * lib/unistdio/u16-u16-vsprintf.c: New file.
32980         * lib/unistdio/u32-asnprintf.c: New file.
32981         * lib/unistdio/u32-asprintf.c: New file.
32982         * lib/unistdio/u32-printf-parse.c: New file.
32983         * lib/unistdio/u32-snprintf.c: New file.
32984         * lib/unistdio/u32-sprintf.c: New file.
32985         * lib/unistdio/u32-vasnprintf.c: New file.
32986         * lib/unistdio/u32-vasprintf.c: New file.
32987         * lib/unistdio/u32-vsnprintf.c: New file.
32988         * lib/unistdio/u32-vsprintf.c: New file.
32989         * lib/unistdio/u32-u32-asnprintf.c: New file.
32990         * lib/unistdio/u32-u32-asprintf.c: New file.
32991         * lib/unistdio/u32-u32-snprintf.c: New file.
32992         * lib/unistdio/u32-u32-sprintf.c: New file.
32993         * lib/unistdio/u32-u32-vasnprintf.c: New file.
32994         * lib/unistdio/u32-u32-vasprintf.c: New file.
32995         * lib/unistdio/u32-u32-vsnprintf.c: New file.
32996         * lib/unistdio/u32-u32-vsprintf.c: New file.
32997         * tests/unistdio/test-ulc-asnprintf1.c: New file.
32998         * tests/unistdio/test-ulc-asnprintf1.h: New file.
32999         * tests/unistdio/test-ulc-printf1.h: New file.
33000         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33001         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33002         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33003         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33004         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33005         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33006         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33007         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33008         * tests/unistdio/test-u8-asnprintf1.c: New file.
33009         * tests/unistdio/test-u8-asnprintf1.h: New file.
33010         * tests/unistdio/test-u8-printf1.h: New file.
33011         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33012         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33013         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33014         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33015         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33016         * tests/unistdio/test-u8-vasprintf1.c: New file.
33017         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33018         * tests/unistdio/test-u8-vsprintf1.c: New file.
33019         * tests/unistdio/test-u16-asnprintf1.c: New file.
33020         * tests/unistdio/test-u16-asnprintf1.h: New file.
33021         * tests/unistdio/test-u16-printf1.h: New file.
33022         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33023         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33024         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33025         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33026         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33027         * tests/unistdio/test-u16-vasprintf1.c: New file.
33028         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33029         * tests/unistdio/test-u16-vsprintf1.c: New file.
33030         * tests/unistdio/test-u32-asnprintf1.c: New file.
33031         * tests/unistdio/test-u32-asnprintf1.h: New file.
33032         * tests/unistdio/test-u32-printf1.h: New file.
33033         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33034         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33035         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33036         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33037         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33038         * tests/unistdio/test-u32-vasprintf1.c: New file.
33039         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33040         * tests/unistdio/test-u32-vsprintf1.c: New file.
33041         * modules/unistdio/base: New file.
33042         * modules/unistdio/u-printf-args: New file.
33043         * modules/unistdio/ulc-asnprintf: New file.
33044         * modules/unistdio/ulc-asprintf: New file.
33045         * modules/unistdio/ulc-fprintf: New file.
33046         * modules/unistdio/ulc-printf-parse: New file.
33047         * modules/unistdio/ulc-snprintf: New file.
33048         * modules/unistdio/ulc-sprintf: New file.
33049         * modules/unistdio/ulc-vasnprintf: New file.
33050         * modules/unistdio/ulc-vasprintf: New file.
33051         * modules/unistdio/ulc-vfprintf: New file.
33052         * modules/unistdio/ulc-vsnprintf: New file.
33053         * modules/unistdio/ulc-vsprintf: New file.
33054         * modules/unistdio/u8-asnprintf: New file.
33055         * modules/unistdio/u8-asprintf: New file.
33056         * modules/unistdio/u8-printf-parse: New file.
33057         * modules/unistdio/u8-snprintf: New file.
33058         * modules/unistdio/u8-sprintf: New file.
33059         * modules/unistdio/u8-vasnprintf: New file.
33060         * modules/unistdio/u8-vasprintf: New file.
33061         * modules/unistdio/u8-vsnprintf: New file.
33062         * modules/unistdio/u8-vsprintf: New file.
33063         * modules/unistdio/u8-u8-asnprintf: New file.
33064         * modules/unistdio/u8-u8-asprintf: New file.
33065         * modules/unistdio/u8-u8-snprintf: New file.
33066         * modules/unistdio/u8-u8-sprintf: New file.
33067         * modules/unistdio/u8-u8-vasnprintf: New file.
33068         * modules/unistdio/u8-u8-vasprintf: New file.
33069         * modules/unistdio/u8-u8-vsnprintf: New file.
33070         * modules/unistdio/u8-u8-vsprintf: New file.
33071         * modules/unistdio/u16-asnprintf: New file.
33072         * modules/unistdio/u16-asprintf: New file.
33073         * modules/unistdio/u16-printf-parse: New file.
33074         * modules/unistdio/u16-snprintf: New file.
33075         * modules/unistdio/u16-sprintf: New file.
33076         * modules/unistdio/u16-vasnprintf: New file.
33077         * modules/unistdio/u16-vasprintf: New file.
33078         * modules/unistdio/u16-vsnprintf: New file.
33079         * modules/unistdio/u16-vsprintf: New file.
33080         * modules/unistdio/u16-u16-asnprintf: New file.
33081         * modules/unistdio/u16-u16-asprintf: New file.
33082         * modules/unistdio/u16-u16-snprintf: New file.
33083         * modules/unistdio/u16-u16-sprintf: New file.
33084         * modules/unistdio/u16-u16-vasnprintf: New file.
33085         * modules/unistdio/u16-u16-vasprintf: New file.
33086         * modules/unistdio/u16-u16-vsnprintf: New file.
33087         * modules/unistdio/u16-u16-vsprintf: New file.
33088         * modules/unistdio/u32-asnprintf: New file.
33089         * modules/unistdio/u32-asprintf: New file.
33090         * modules/unistdio/u32-printf-parse: New file.
33091         * modules/unistdio/u32-snprintf: New file.
33092         * modules/unistdio/u32-sprintf: New file.
33093         * modules/unistdio/u32-vasnprintf: New file.
33094         * modules/unistdio/u32-vasprintf: New file.
33095         * modules/unistdio/u32-vsnprintf: New file.
33096         * modules/unistdio/u32-vsprintf: New file.
33097         * modules/unistdio/u32-u32-asnprintf: New file.
33098         * modules/unistdio/u32-u32-asprintf: New file.
33099         * modules/unistdio/u32-u32-snprintf: New file.
33100         * modules/unistdio/u32-u32-sprintf: New file.
33101         * modules/unistdio/u32-u32-vasnprintf: New file.
33102         * modules/unistdio/u32-u32-vasprintf: New file.
33103         * modules/unistdio/u32-u32-vsnprintf: New file.
33104         * modules/unistdio/u32-u32-vsprintf: New file.
33105         * modules/unistdio/ulc-asnprintf-tests: New file.
33106         * modules/unistdio/ulc-vasnprintf-tests: New file.
33107         * modules/unistdio/ulc-vasprintf-tests: New file.
33108         * modules/unistdio/ulc-vsnprintf-tests: New file.
33109         * modules/unistdio/ulc-vsprintf-tests: New file.
33110         * modules/unistdio/u8-asnprintf-tests: New file.
33111         * modules/unistdio/u8-vasnprintf-tests: New file.
33112         * modules/unistdio/u8-vasprintf-tests: New file.
33113         * modules/unistdio/u8-vsnprintf-tests: New file.
33114         * modules/unistdio/u8-vsprintf-tests: New file.
33115         * modules/unistdio/u16-asnprintf-tests: New file.
33116         * modules/unistdio/u16-vasnprintf-tests: New file.
33117         * modules/unistdio/u16-vasprintf-tests: New file.
33118         * modules/unistdio/u16-vsnprintf-tests: New file.
33119         * modules/unistdio/u16-vsprintf-tests: New file.
33120         * modules/unistdio/u32-asnprintf-tests: New file.
33121         * modules/unistdio/u32-vasnprintf-tests: New file.
33122         * modules/unistdio/u32-vasprintf-tests: New file.
33123         * modules/unistdio/u32-vsnprintf-tests: New file.
33124         * modules/unistdio/u32-vsprintf-tests: New file.
33125         * MODULES.html.sh (Unicode string functions): Add the new modules.
33126
33127 2007-07-01  Bruno Haible  <bruno@clisp.org>
33128
33129         * lib/sprintf.c (sprintf): Limit the available length estimation,
33130         to avoid address wraparound.
33131         * lib/vsprintf.c (vsprintf): Likewise.
33132         * modules/sprintf-posix (Dependencies): Add stdint.
33133         * modules/vsprintf-posix (Dependencies): Likewise.
33134
33135 2007-07-01  Bruno Haible  <bruno@clisp.org>
33136
33137         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33138         Windows PATH as well. Conservative double-quoting. Comments.
33139
33140 2007-07-01  Bruno Haible  <bruno@clisp.org>
33141             Eric Blake  <ebb9@byu.net>
33142             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33143
33144         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33145         empty components in $PATH, denoting '.'.
33146
33147 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33148
33149         * gnulib-tool: Fix indentation.
33150         (func_create_megatestdir): Likewise.
33151         Report by Bruno Haible.
33152
33153 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33154
33155         Sync from Automake.
33156         * build-aux/gnupload: Fix shell portability issues with for loops.
33157         Report by Karl Berry.
33158
33159 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33160
33161         * build-aux/maint.mk (POURL): Use translationproject.org.
33162
33163 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33164             Bruno Haible  <bruno@clisp.org>
33165
33166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33167         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33168         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33169         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33170         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33171
33172 2007-06-27  Bruno Haible  <bruno@clisp.org>
33173
33174         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33175         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33176
33177 2007-06-26  Karl Berry  <karl@gnu.org>
33178
33179         * MODULES.html.sh: remove xreadlink-with-size.
33180
33181 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33182
33183         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33184         method that I hope also handles the double-include problem noted
33185         by Bruno Haible in
33186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33187
33188 2007-06-23  Bruno Haible  <bruno@clisp.org>
33189
33190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33191         Don't let the 'mostlyclean' target fail if the last subdirectory could
33192         not be removed.
33193         Reported by Karl Berry.
33194
33195 2007-06-23  Bruno Haible  <bruno@clisp.org>
33196
33197         * gnulib-tool (echo): Add a speedier workaround for ksh.
33198         * tests/test-echo.sh: Likewise.
33199
33200 2007-06-23  Bruno Haible  <bruno@clisp.org>
33201
33202         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33203         * tests/test-echo.sh: Likewise.
33204
33205 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33206
33207         * gnulib-tool (IFS): Initialize early, so we don't set it to
33208         empty later.
33209         (self_abspathname): Rewrite algorithm to set it, reindent.
33210         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33211         (func_create_megatestdir): Merge some sed scripts.
33212
33213 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33214
33215         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33216         exposed by Sun Studio 11 cc on Solaris 8.
33217
33218 2007-06-22  Bruno Haible  <bruno@clisp.org>
33219
33220         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33221         backslashes.
33222         * tests/test-echo.sh: New file.
33223
33224 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33225
33226         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33227         simplify `sed_replace_build_aux' scripts, they are portable but
33228         echoing them with `echo' is not.
33229         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33230
33231 2007-06-21  Karl Berry  <karl@gnu.org>
33232
33233         * config/srclist.txt: guess we can't handle the licenses via
33234         srclist at the moment.
33235
33236 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33237
33238         * MODULES.html.sh: Add include_next.
33239         * modules/include_next: New file.
33240
33241 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33242
33243         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33244         INCLUDE_NEXT.
33245         (gl_CHECK_NEXT_HEADERS): New macro.
33246         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33247         the obsolescent gl_ABSOLUTE_HEADER.
33248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33249         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33250         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33251         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33252         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33253         * m4/math_h.m4 (gl_MATH_H): Likewise.
33254         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33255         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33256         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33257         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33258         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33259         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33260         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33264         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33265         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33266         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33267         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33268         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33269         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33270         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33271         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33272         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33273         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33274         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33275         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33276         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33277         * lib/float_.h: Likewise.
33278         * lib/inttypes_.h: Likewise.
33279         * lib/math_.h: Likewise.
33280         * lib/search_.h: Likewise.
33281         * lib/signal_.h: Likewise.
33282         * lib/stdint_.h: Likewise.
33283         * lib/stdio_.h: Likewise.
33284         * lib/stdlib_.h: Likewise.
33285         * lib/string_.h: Likewise.
33286         * lib/sys_stat_.h: Likewise.
33287         * lib/sys_time_.h: Likewise.
33288         * lib/time_.h: Likewise.
33289         * lib/unistd_.h: Likewise.
33290         * lib/wchar_.h: Likewise.
33291         * lib/wctype_.h: Likewise.
33292         * lib/dirent_.h: Likewise.
33293         * lib/iconv_.h: Likewise.
33294         * lib/locale_.h: Likewise.
33295         * lib/netinet_in_.h: Likewise.
33296         * lib/sys_select_.h: Likewise.
33297         * lib/sys_socket_.h: Likewise.
33298         * lib/sysexits_.h: Likewise.
33299         * modules/fcntl (Depends-on): Depend on include_next, not
33300         absolute_header.
33301         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33302         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33303         * modules/fchdir: Likewise.
33304         * modules/float: Likewise.
33305         * modules/iconv_open: Likewise.
33306         * modules/inttypes: Likewise.
33307         * modules/locale: Likewise.
33308         * modules/math: Likewise.
33309         * modules/netinet_in: Likewise.
33310         * modules/search: Likewise.
33311         * modules/signal: Likewise.
33312         * modules/stdint: Likewise.
33313         * modules/stdio: Likewise.
33314         * modules/stdlib: Likewise.
33315         * modules/string: Likewise.
33316         * modules/sys_select: Likewise.
33317         * modules/sys_socket: Likewise.
33318         * modules/sys_stat: Likewise.
33319         * modules/sys_time: Likewise.
33320         * modules/sysexits: Likewise.
33321         * modules/time: Likewise.
33322         * modules/unistd: Likewise.
33323         * modules/wchar: Likewise.
33324         * modules/wctype: Likewise.
33325         * modules/sys_stat: Change maintainer to "all".
33326         * modules/unistd: Likewise.
33327
33328 2007-06-20  Karl Berry  <karl@gnu.org>
33329
33330         * config/srclist.txt: track www changes in license files.
33331
33332 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33333
33334         * build-aux/bootstrap: Remove stray dot.
33335         Make sure build_aux settings are honored when linking
33336         gnulib_extra_files.
33337
33338 2007-06-19  Eric Blake  <ebb9@byu.net>
33339
33340         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33341         Allow compilation on cygwin.
33342
33343 2007-06-19  Jim Meyering  <jim@meyering.net>
33344
33345         xreadlink-with-size: Remove module.  No longer used.
33346         Ex-callers now use xreadlink or mreadlink-with-size.
33347         * modules/xreadlink-with-size: Remove module.
33348         * lib/xreadlink-with-size.c: Remove file.
33349         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33350         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33351         just before the function definition *is* accurate.
33352
33353         Eliminate one way canonicalize_filename_mode could exit.
33354         * lib/canonicalize.c (canonicalize_filename_mode):
33355         Use mreadlink_with_size, not xreadlink_with_size.
33356
33357 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33358
33359         Detect porting problems to FreeBSD/arm, which has time_t wider than
33360         long int.  Original problem reported for GNU diff by Xin Li in
33361         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33362         * modules/getdate (Depends-on): Add intprops, verify.
33363         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33364         is an integer type no wider than long int.
33365
33366 2007-06-18  Jim Meyering  <jim@meyering.net>
33367
33368         New module: mreadlink-with-size.
33369         * MODULES.html.sh: Add mreadlink-with-size.
33370         * modules/mreadlink-with-size: New module
33371         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33372         not xreadlink-with-size.
33373         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33374
33375 2007-06-16  Bruno Haible  <bruno@clisp.org>
33376
33377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33378         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33379         Reported by Gary V. Vaughan <gary@gnu.org>.
33380
33381 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33382
33383         Revamp lchown so that it lives in unistd.h where it belongs.
33384         * lib/lchown.h: Remove.
33385         * lib/dirchownmod.c: Don't include lib/lchown.h.
33386         * lib/fchownat.c: Likewise.
33387         * lib/openat.c: Likewise.
33388         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33389         does not follow symlinks.
33390         (EOPNOTSUPP): Define if not defined.
33391         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33392         is defined to 0.
33393         (lchown): New decl.
33394         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33395         Do not check for lchown decl.
33396         Set REPLACE_LCHOWN.
33397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33398         REPLACE_LCHOWN.
33399         * modules/chown: Make it clear it follows symlinks.
33400         * modules/lchown: Make it clear it doesn't follow symlinks.
33401         (Files): Remove lib/lchown.h
33402         (Depends-on): Add unistd.
33403         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33404         (Include): Include <unistd.h>, not "lchown.h".
33405         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33406         REPLACE_LCHOWN.
33407
33408 2007-06-15  Jim Meyering  <jim@meyering.net>
33409
33410         Change license (GPL to LGPL) of fsusage and dependents.
33411         * modules/fsusage (License): Change to LGPL.
33412         * modules/full-read (License): Likewise.
33413         * modules/full-write (License): Likewise.
33414         * modules/safe-read (License): Likewise.
33415         * modules/safe-write (License): Likewise.
33416
33417 2007-06-14  Ben Pfaff  <blp@gnu.org>
33418
33419         Missing part of allocsa -> malloca transition.
33420         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33421         gl_MALLOCA.
33422
33423 2007-06-12  Bruno Haible  <bruno@clisp.org>
33424
33425         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33426         to ia64, x86_64, i386.
33427         Reported by Eric Blake.
33428
33429 2007-06-12  Bruno Haible  <bruno@clisp.org>
33430
33431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33432         cross-compiling to x86_64.
33433
33434 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33435
33436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33437         glitch reported by Ralf Wildenhues in
33438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33439
33440         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33441         Vin Shelton.
33442
33443 2007-06-11  Bruno Haible  <bruno@clisp.org>
33444
33445         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33446         replacement string.
33447         Reported by Eric Blake.
33448
33449 2007-06-10  Bruno Haible  <bruno@clisp.org>
33450
33451         Prepare vasnprintf code for use with Unicode strings.
33452         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33453         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33454         TYPE_U32_STRING.
33455         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33456         a_u32_string variants.
33457         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33458         * lib/printf-args.c: Don't include config.h and the specification
33459         header if PRINTF_FETCHARGS is already defined.
33460         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33461         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33462         TYPE_U16_STRING, TYPE_U32_STRING.
33463         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33464         u16_directive, u16_directives, u32_directive, u32_directives): New
33465         types.
33466         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33467         New declarations.
33468         * lib/printf-parse.c: Don't include config.h and the specification
33469         header if PRINTF_PARSE is already defined. Eliminate the set of
33470         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33471         them now. Include c-ctype.h.
33472         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33473         directive and CHAR_T_ONLY_ASCII.
33474         * lib/vasnprintf.c: Don't include config.h and the specification header
33475         if VASNPRINTF is already defined.
33476         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33477         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33478         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33479         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33480         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33481         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33482         code accordingly.
33483         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33484         pad_ourselves also in this case, with the 'c' and 's' directives, and
33485         with a different notion of "width".
33486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33487
33488 2007-06-10  Bruno Haible  <bruno@clisp.org>
33489
33490         * modules/unistr/u32-mbsnlen: New file.
33491         * lib/unistr/u32-mbsnlen.c: New file.
33492
33493         * modules/unistr/u16-mbsnlen: New file.
33494         * lib/unistr/u16-mbsnlen.c: New file.
33495
33496         * modules/unistr/u8-mbsnlen: New file.
33497         * lib/unistr/u8-mbsnlen.c: New file.
33498
33499         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33500         declarations.
33501
33502 2007-06-10  Bruno Haible  <bruno@clisp.org>
33503
33504         * lib/string_.h (mbsnlen): New declaration.
33505         * lib/mbsnlen.c: New file.
33506         * m4/mbsnlen.m4: New file.
33507         * modules/mbsnlen: New file.
33508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33509         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33510         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33511
33512 2007-06-10  Bruno Haible  <bruno@clisp.org>
33513
33514         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33515
33516 2007-06-10  Bruno Haible  <bruno@clisp.org>
33517
33518         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33519         * lib/mbuiter.h: Likewise.
33520
33521 2007-06-10  Bruno Haible  <bruno@clisp.org>
33522
33523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33524         declaration.
33525
33526 2007-06-10  Karl Berry  <karl@gnu.org>
33527
33528         * config/srclist.txt: remove gettext entries, Bruno prefers
33529         to update individually.
33530
33531 2007-06-10  Bruno Haible  <bruno@clisp.org>
33532
33533         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33534         'maxlen'. Ensure only length + width bytes are allocated, not
33535         length + 1 + width.
33536
33537 2007-06-09  Bruno Haible  <bruno@clisp.org>
33538
33539         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33540         (CHAR_T): Remove macro.
33541         (VASNPRINTF): Update.
33542
33543 2007-06-09  Bruno Haible  <bruno@clisp.org>
33544
33545         * MODULES.html.sh (Unicode string functions): Add the new modules.
33546
33547         * modules/uniconv/u32-conv-to-enc: New file.
33548         * lib/uniconv/u32-conv-to-enc.c: New file.
33549         * modules/uniconv/u32-conv-to-enc-tests: New file.
33550         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33551
33552         * modules/uniconv/u16-conv-to-enc: New file.
33553         * lib/uniconv/u16-conv-to-enc.c: New file.
33554         * lib/uniconv/u-conv-to-enc.h: New file.
33555         * modules/uniconv/u16-conv-to-enc-tests: New file.
33556         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33557
33558         * modules/uniconv/u8-conv-to-enc: New file.
33559         * lib/uniconv/u8-conv-to-enc.c: New file.
33560         * modules/uniconv/u8-conv-to-enc-tests: New file.
33561         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33562
33563         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33564         u32_conv_to_encoding): New declarations.
33565
33566 2007-06-09  Bruno Haible  <bruno@clisp.org>
33567
33568         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33569
33570 2007-06-09  Bruno Haible  <bruno@clisp.org>
33571
33572         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33573         * modules/malloca: Renamed from modules/allocsa, updated.
33574         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33575         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33576         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33577         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33578         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33579         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33580         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33581         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33582         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33583         * modules/c-strcasestr (Depends-on): Update.
33584         * lib/c-strcasestr.c: Update.
33585         * modules/c-strstr (Depends-on): Update.
33586         * lib/c-strstr.c: Update.
33587         * modules/canonicalize-lgpl (Depends-on): Update.
33588         * lib/canonicalize-lgpl.c: Update.
33589         * modules/clean-temp (Depends-on): Update.
33590         * lib/clean-temp.c: Update.
33591         * modules/csharpcomp (Depends-on): Update.
33592         * lib/csharpcomp.c: Update.
33593         * modules/csharpexec (Depends-on): Update.
33594         * lib/csharpexec.c: Update.
33595         * modules/javacomp (Depends-on): Update.
33596         * lib/javacomp.c: Update.
33597         * modules/javaexec (Depends-on): Update.
33598         * lib/javaexec.c: Update.
33599         * modules/mbscasestr (Depends-on): Update.
33600         * lib/mbscasestr.c: Update.
33601         * modules/mbsstr (Depends-on): Update.
33602         * lib/mbsstr.c: Update.
33603         * modules/setenv (Depends-on): Update.
33604         * lib/setenv.c: Update.
33605         * modules/strcasestr (Depends-on): Update.
33606         * lib/strcasestr.c: Update.
33607         * modules/striconveha (Depends-on): Update.
33608         * lib/striconveha.c: Update.
33609         * modules/relocatable-prog-wrapper (Files): Update.
33610         * lib/relocwrapper.c: Update.
33611         * build-aux/install-reloc: Update.
33612         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33613
33614 2007-06-08  Bruno Haible  <bruno@clisp.org>
33615
33616         Port to uClibc.
33617         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33618         * lib/fpurge.c (fpurge): Likewise.
33619         * lib/freading.c (freading): Likewise.
33620         * lib/fseeko.c (rpl_fseeko): Likewise.
33621         * lib/fseterr.c (fseterr): Likewise.
33622         * lib/fwriting.c (fwriting): Likewise.
33623         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33624
33625 2007-06-08  Bruno Haible  <bruno@clisp.org>
33626
33627         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33628         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33629         * modules/gettext (Files): Add m4/intlmacosx.m4.
33630
33631 2007-06-07  Bruno Haible  <bruno@clisp.org>
33632
33633         * modules/localename-tests: New file.
33634         * tests/test-localename.c: New file.
33635
33636         New module 'localename'.
33637         * lib/localename.h: New file.
33638         * lib/localename.c: New file, from GNU gettext.
33639         * m4/localename.m4: New file.
33640         * modules/localename: New file.
33641
33642 2007-06-07  Bruno Haible  <bruno@clisp.org>
33643
33644         Work around the lack of <wchar.h> on some builds of uClibc.
33645         * doc/headers/wchar.texi: Update.
33646         * lib/wchar_.h: Include <wchar.h> only if it exists.
33647         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33648         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33649         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33650         doesn't exist.
33651         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33652         * modules/mbfile (Depends-on): Add wchar.
33653         * modules/mbiter (Depends-on): Likewise.
33654         * modules/mbuiter (Depends-on): Likewise.
33655         Reported by Simon Josefsson.
33656
33657 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33658
33659         Work around problem reported by Steven M. Schweda in
33660         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33661         Tru64 5.1B with the Compaq compiler environment installed declares
33662         an 'isblank' function but does not define it in the C library.
33663         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33664         * lib/regex_internal.h (isblank): Likewise.
33665         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33666         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33667
33668 2007-06-05  Bruno Haible  <bruno@clisp.org>
33669
33670         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33671         ia64.
33672         * modules/printf-safe: New file.
33673         * modules/fprintf-posix (Depends-on): Add printf-safe.
33674         * modules/printf-posix (Depends-on): Likewise.
33675         * modules/snprintf-posix (Depends-on): Likewise.
33676         * modules/sprintf-posix (Depends-on): Likewise.
33677         * modules/vasnprintf-posix (Depends-on): Likewise.
33678         * modules/vasprintf-posix (Depends-on): Likewise.
33679         * modules/vfprintf-posix (Depends-on): Likewise.
33680         * modules/vprintf-posix (Depends-on): Likewise.
33681         * modules/vsnprintf-posix (Depends-on): Likewise.
33682         * modules/vsprintf-posix (Depends-on): Likewise.
33683         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
33684         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
33685         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
33686         "no" on i386, x86_64, ia64.
33687         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
33688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33689         on i386, x86_64, ia64.
33690         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
33691         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33692         on i386, x86_64, ia64.
33693         * tests/test-vasnprintf-posix.c: Include float.h.
33694         (LDBL80_WORDS): New macro.
33695         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33696         on i386, x86_64, ia64.
33697         * tests/test-vasprintf-posix.c: Include float.h.
33698         (LDBL80_WORDS): New macro.
33699         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
33700         on i386, x86_64, ia64.
33701         * tests/test-snprintf-posix.c: Include float.h.
33702         * tests/test-sprintf-posix.c: Likewise.
33703         * tests/test-vsnprintf-posix.c: Likewise.
33704         * tests/test-vsprintf-posix.c: Likewise.
33705
33706 2007-06-05  Bruno Haible  <bruno@clisp.org>
33707
33708         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
33709         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
33710         non-IEEE numbers on i386, x86_64, ia64.
33711         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
33712         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
33713         * tests/test-isnanl.h: Include float.h.
33714         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
33715
33716 2007-06-05  Bruno Haible  <bruno@clisp.org>
33717
33718         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
33719         also the %a / %A. Handle the %a / %A code before this extra handling.
33720
33721 2007-06-05  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
33724         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
33725
33726 2007-06-05  Bruno Haible  <bruno@clisp.org>
33727
33728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
33729         typo in variable name.
33730
33731 2007-06-05  Eric Blake  <ebb9@byu.net>
33732
33733         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
33734         Reported by Simon Josefsson.
33735
33736 2007-06-04  Bruno Haible  <bruno@clisp.org>
33737
33738         Avoid test failures on some PowerPC platforms.
33739         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
33740         Define differently for PowerPC.
33741         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
33742         Reported by Gary V. Vaughan <gary@gnu.org>.
33743
33744 2007-06-02  Bruno Haible  <bruno@clisp.org>
33745
33746         Fix test-stdint failure on FreeBSD/ia64.
33747         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
33748         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
33749         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
33750         * doc/headers/stdint.texi: Update.
33751
33752 2007-06-01  Bruno Haible  <bruno@clisp.org>
33753
33754         * tests/test-binary-io.c (main): Pass a third argument to open().
33755         Reported by Gary V. Vaughan <gary@gnu.org>.
33756
33757 2007-06-01  Bruno Haible  <bruno@clisp.org>
33758
33759         * doc/functions/frexpl.texi: Update for mingw.
33760
33761 2007-06-01  Bruno Haible  <bruno@clisp.org>
33762
33763         * tests/test-lseek.c (main): Disable test of errno for invalid third
33764         argument.
33765         * doc/functions/lseek.texi: Update.
33766         Reported by Gary V. Vaughan <gary@gnu.org>.
33767
33768 2007-05-28  Bruno Haible  <bruno@clisp.org>
33769
33770         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
33771
33772 2007-05-31  Eric Blake  <ebb9@byu.net>
33773
33774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
33775         cross compiling.
33776
33777 2007-05-30  Eric Blake  <ebb9@byu.net>
33778         and Bruno Haible  <bruno@clisp.org>
33779
33780         Work around mingw test failures exposed by m4-1.4.9b.
33781         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
33782         * tests/test-unistd.c: Disable uid_t and git_t tests for the
33783         moment.
33784
33785 2007-05-30  Bruno Haible  <bruno@clisp.org>
33786
33787         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
33788         assuming that they are closed. Needed on HP-UX 11.
33789
33790 2007-05-29  Bruno Haible  <bruno@clisp.org>
33791
33792         Fix a problem with #include_next.
33793         * lib/dirent_.h: Split the double-inclusion guard.
33794         * lib/fcntl_.h: Likewise.
33795         * lib/float_.h: Likewise.
33796         * lib/iconv_.h: Likewise.
33797         * lib/inttypes_.h: Likewise.
33798         * lib/locale_.h: Likewise.
33799         * lib/math_.h: Likewise.
33800         * lib/netinet_in_.h: Likewise.
33801         * lib/search_.h: Likewise.
33802         * lib/signal_.h: Likewise.
33803         * lib/stdint_.h: Likewise.
33804         * lib/stdio_.h: Likewise.
33805         * lib/stdlib_.h: Likewise.
33806         * lib/string_.h: Likewise.
33807         * lib/sys_select_.h: Likewise.
33808         * lib/sys_socket_.h: Likewise.
33809         * lib/sys_stat_.h: Likewise.
33810         * lib/sys_time_.h: Likewise.
33811         * lib/sysexits_.h: Likewise.
33812         * lib/time_.h: Likewise.
33813         * lib/unistd_.h: Likewise.
33814         * lib/wchar_.h: Likewise.
33815         * lib/wctype_.h: Likewise.
33816
33817 2007-05-29  Bruno Haible  <bruno@clisp.org>
33818
33819         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
33820         for the moment.
33821
33822 2007-05-29  Bruno Haible  <bruno@clisp.org>
33823
33824         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
33825         invocation.
33826         Reported by Eric Blake.
33827
33828 2007-05-29  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
33831         compiling case.
33832
33833 2007-05-29  Eric Blake  <ebb9@byu.net>
33834             Bruno Haible  <bruno@clisp.org>
33835
33836         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
33837         cross compiles.
33838
33839 2007-05-28  Eric Blake  <ebb9@byu.net>
33840
33841         * modules/closein-tests (test_closein_LDADD): Support test on
33842         cygwin with libtool.
33843
33844 2007-05-28  Bruno Haible  <bruno@clisp.org>
33845
33846         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
33847         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
33848         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
33849         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
33850         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
33851         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
33852         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
33853         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
33854         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
33855
33856 2007-05-28  Eric Blake  <ebb9@byu.net>
33857
33858         Unconditionally include <config.h> in unit tests.
33859         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
33860         * tests/test-allocsa.c, tests/test-arcfour.c,
33861         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
33862         tests/test-array_list.c, tests/test-array_oset.c,
33863         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
33864         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
33865         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
33866         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
33867         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
33868         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
33869         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
33870         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
33871         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
33872         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
33873         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
33874         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
33875         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
33876         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
33877         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
33878         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
33879         test-md5.c, test-memmem.c, test-printf-posix.c,
33880         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
33881         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
33882         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
33883         test-strcasestr.c, test-striconv.c, test-striconveh.c,
33884         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
33885         test-vasnprintf-posix2.c, test-vasnprintf.c,
33886         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
33887         test-vfprintf-posix.c, test-vprintf-posix.c,
33888         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
33889         test-xvasprintf.c: Likewise.
33890
33891 2007-05-28  Bruno Haible  <bruno@clisp.org>
33892
33893         * gnulib-tool (func_import): Remember the --with-tests command-line
33894         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
33895         Reported by Eric Blake.
33896
33897 2007-05-28  Bruno Haible  <bruno@clisp.org>
33898
33899         * modules/ftell-tests: New file.
33900         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
33901         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
33902
33903         * lib/ftell.c: New file.
33904         * modules/ftell: New file.
33905         * m4/ftell.m4: New file.
33906         * doc/functions/ftell.texi: Update.
33907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
33908         REPLACE_FTELL.
33909         * lib/stdio_.h (rpl_ftell): New declaration.
33910         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
33911         REPLACE_FTELL.
33912
33913 2007-05-28  Eric Blake  <ebb9@byu.net>
33914
33915         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
33916
33917 2007-05-28  Bruno Haible  <bruno@clisp.org>
33918
33919         * modules/fseek-tests: New file.
33920         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
33921         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
33922
33923         * lib/fseek.c: New file.
33924         * modules/fseek: New file.
33925         * m4/fseek.m4: New file.
33926         * doc/functions/fseek.texi: Update.
33927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
33928         REPLACE_FSEEK.
33929         * lib/stdio_.h (rpl_fseek): New declaration.
33930         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
33931         REPLACE_FSEEK.
33932
33933 2007-05-28  Bruno Haible  <bruno@clisp.org>
33934
33935         * lib/stdio_.h (fflush): More comments.
33936
33937 2007-05-28  Bruno Haible  <bruno@clisp.org>
33938
33939         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
33940         runtime test.
33941
33942 2007-05-28  Eric Blake  <ebb9@byu.net>
33943
33944         Improve lseek module.
33945         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
33946         * lib/unistd_.h (lseek): Scale back link warning message.
33947         * tests/test-lseek.c: Beef up test.
33948         * tests/test-lseek.sh: Exercise more facets of lseek.
33949         Reported by Bruno Haible.
33950
33951 2007-05-28  Bruno Haible  <bruno@clisp.org>
33952
33953         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
33954         to define.
33955
33956 2007-05-27  Bruno Haible  <bruno@clisp.org>
33957
33958         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
33959
33960 2007-05-27  Bruno Haible  <bruno@clisp.org>
33961
33962         * modules/openmp: New file.
33963         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
33964         Noah Misch.
33965
33966 2007-05-26  Bruno Haible  <bruno@clisp.org>
33967
33968         * modules/chdir-long (Depends-on): Add fchdir.
33969         * modules/chdir-safer (Depends-on): Likewise.
33970         * modules/fts (Depends-on): Likewise.
33971         * modules/fts-lgpl (Depends-on): Likewise.
33972         * modules/openat (Depends-on): Likewise.
33973         * modules/savewd (Depends-on): Likewise.
33974
33975 2007-05-24  Eric Blake  <ebb9@byu.net>
33976
33977         Fix lseek on mingw.
33978         * modules/lseek: New module.
33979         * m4/lseek.m4: New file.
33980         * lib/lseek.c: New file.
33981         * modules/lseek-tests: New file.
33982         * tests/test-lseek.c: New file.
33983         * tests/test-lseek.sh: New file.
33984         * MODULES.html.sh: Document lseek module.
33985         * modules/fflush (Depends-on): Add lseek, fseeko.
33986         * modules/fseeko (Depends-on): Likewise.
33987         * modules/ftello (Depends-on): Likewise.
33988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
33989         broken.
33990         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
33991         broken.
33992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
33993         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
33994         * lib/ftello.c (rpl_ftello): Likewise.
33995         * tests/test-fseeko.c (main): Test this.
33996         * tests/test-fseeko.sh: Likewise.
33997         * tests/test-ftello.c (main): Likewise.
33998         * tests/test-ftello.sh: Likewise.
33999         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34000         implies replacing fseek.
34001         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34002         HAVE_FTELLO.
34003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34004         * modules/unistd (Makefile.am): Likewise.
34005         * lib/unistd_.h (lseek): Declare a replacement.
34006         * doc/functions/lseek.texi (lseek): Document this fix.
34007         * doc/functions/fseek.texi (fseek): Likewise.
34008         * doc/functions/ftell.texi (ftell): Likewise.
34009
34010 2007-05-24  Bruno Haible  <bruno@clisp.org>
34011
34012         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34013         in the printed representation of a NaN.
34014         * tests/test-vasprintf-posix.c (test_function): Likewise.
34015         * tests/test-snprintf-posix.h (test_function): Likewise.
34016         * tests/test-sprintf-posix.h (test_function): Likewise.
34017         Reported by Eric Blake.
34018
34019 2007-05-23  Eric Blake  <ebb9@byu.net>
34020
34021         Fix fseeko/ftello on cygwin 1.5.24.
34022         * doc/functions/fseeko.texi (fseeko): Document the fix.
34023         * doc/functions/ftello.texi (ftello): Document the fix.
34024         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34025         * doc/functions/stdout.text (stdout): New file.
34026         * doc/functions/stderr.text (stderr): New file.
34027         * doc/gnulib.texi (Function Substitutes): Use new files.
34028         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34029         prior to 1.7.0.
34030         * tests/test-ftello.c (main): Likewise for ftello.
34031         * tests/test-fseeko.sh: New file.
34032         * tests/test-ftello.sh: New file.
34033         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34034         with seekable stdin.
34035         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34037         (gl_REPLACE_FSEEKO): New macro.
34038         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34039         * modules/fseeko (Files): Distribute fseeko.c.
34040         * modules/ftello (Files): Distribute ftello.c.
34041         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34042         mode.
34043         * lib/ftello.c (rpl_ftello): New file.
34044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34045         fseeko, ftello.
34046         (gl_STDIN_LARGE_OFFSET): New macro.
34047         * modules/stdio (Makefile.am): Perform the replacement.
34048         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34049
34050 2007-05-23  Bruno Haible  <bruno@clisp.org>
34051
34052         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34053         GNULIB_POSIXCHECK is defined.
34054
34055 2007-05-21  Bruno Haible  <bruno@clisp.org>
34056
34057         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34058         Check also the output for NaN arguments. When cross-compiling, guess
34059         no on IRIX.
34060         * lib/vasnprintf.c: Update comments.
34061         * tests/test-vasnprintf-posix.c (strisnan): New function.
34062         (test_function): Use it.
34063         * tests/test-vasprintf-posix.c (strisnan): New function.
34064         (test_function): Use it.
34065         * tests/test-snprintf-posix.h (strisnan): New function.
34066         (test_function): Use it.
34067         * tests/test-sprintf-posix.h (strisnan): New function.
34068         (test_function): Use it.
34069         Reported by Eric Blake.
34070
34071 2007-05-20  Bruno Haible  <bruno@clisp.org>
34072
34073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34074         numbers that fails on BeOS.
34075         * doc/functions/frexpl.texi: Update.
34076
34077 2007-05-20  Jim Meyering  <jim@meyering.net>
34078
34079         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34080         forced upon us by glibc-2.6.
34081
34082 2007-05-20  Bruno Haible  <bruno@clisp.org>
34083
34084         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34085         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34086         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34087         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34088         NEED_PRINTF_INFINITE.
34089         (is_infinitel): New function.
34090         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34092         gl_PREREQ_VASNPRINTF_INFINITE.
34093         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34094         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34095         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34096         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34097         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34098         gl_PREREQ_VASNPRINTF_INFINITE.
34099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34102         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34103         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34105         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34106         * doc/functions/fprintf.texi: Update.
34107         * doc/functions/printf.texi: Update.
34108         * doc/functions/snprintf.texi: Update.
34109         * doc/functions/sprintf.texi: Update.
34110         * doc/functions/vfprintf.texi: Update.
34111         * doc/functions/vprintf.texi: Update.
34112         * doc/functions/vsnprintf.texi: Update.
34113         * doc/functions/vsprintf.texi: Update.
34114
34115 2007-05-20  Bruno Haible  <bruno@clisp.org>
34116
34117         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34118         was not found in libc.
34119         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34120
34121 2007-05-20  Bruno Haible  <bruno@clisp.org>
34122
34123         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34124         printed as "-nan" instead of "nan".
34125         * tests/test-vasprintf-posix.c (test_function): Likewise.
34126         * tests/test-snprintf-posix.h (test_function): Likewise.
34127         * tests/test-sprintf-posix.h (test_function): Likewise.
34128         Needed for HP-UX 11.
34129
34130 2007-05-20  Jim Meyering  <jim@meyering.net>
34131
34132         Fix buggy test for the fchownat-deref bug.
34133         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34134         symlink required for the run-test.  Without it, this test would
34135         always declare that fchownat doesn't work, and client code would
34136         unnecessarily use the replacement function with fixed libc.
34137         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34138         Reported by Greg Schafer.
34139
34140 2007-05-19  Bruno Haible  <bruno@clisp.org>
34141
34142         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34143         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34144         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34145         Needed for IRIX 6.5 and Solaris 2.5.1.
34146
34147 2007-05-19  Bruno Haible  <bruno@clisp.org>
34148
34149         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34150         (test_function): Skip tests involving -0.0 on platforms where
34151         -0.0 = 0.0.
34152         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34153         (test_function): Skip tests involving -0.0 on platforms where
34154         -0.0 = 0.0.
34155         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34156         (test_function): Skip tests involving -0.0 on platforms where
34157         -0.0 = 0.0.
34158         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34159         (test_function): Skip tests involving -0.0 on platforms where
34160         -0.0 = 0.0.
34161         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34162         tests.
34163         * tests/test-printf-posix.h (test_function): Likewise.
34164         * tests/test-printf-posix.output: Remove all -0.0 related results.
34165         Needed for IRIX 6.5.
34166
34167 2007-05-19  Bruno Haible  <bruno@clisp.org>
34168
34169         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34170         printed as "nan0x7fffffff" instead of "nan".
34171         * tests/test-vasprintf-posix.c (test_function): Likewise.
34172         * tests/test-snprintf-posix.h (test_function): Likewise.
34173         * tests/test-sprintf-posix.h (test_function): Likewise.
34174         * tests/test-fprintf-posix.h (NaN): Remove macro.
34175         (test_function): Remove all NaN related tests.
34176         * tests/test-printf-posix.h (NaN): Remove macro.
34177         (test_function): Remove all NaN related tests.
34178         * tests/test-printf-posix.output: Remove all NaN related results.
34179         Needed for IRIX 6.5.
34180
34181 2007-05-19  Bruno Haible  <bruno@clisp.org>
34182
34183         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34185
34186 2007-05-19  Bruno Haible  <bruno@clisp.org>
34187
34188         * lib/float_.h: New file.
34189         * m4/float_h.m4: New file.
34190         * modules/float: New file.
34191         * modules/isnanl (Dependencies): Add float.
34192         * modules/isnanl-nolibm (Dependencies): Likewise.
34193         * modules/mathl (Dependencies): Likewise.
34194         * modules/printf-frexpl (Dependencies): Likewise.
34195         * modules/signbit (Dependencies): Likewise.
34196         * modules/vasnprintf (Dependencies): Likewise.
34197         * doc/headers/float.texi: Update.
34198
34199 2007-05-19  Jim Meyering  <jim@meyering.net>
34200
34201         * lib/utimens.c (gl_futimens): Rename from futimens,
34202         now that glibc-2.6 declares futimens.
34203         * lib/utimens.h: Likewise.
34204
34205 2007-05-19  Bruno Haible  <bruno@clisp.org>
34206
34207         Avoid test failures on mingw.
34208         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34209         * tests/test-printf-posix.sh: Likewise.
34210         * tests/test-vfprintf-posix.sh: Likewise.
34211         * tests/test-vprintf-posix.sh: Likewise.
34212
34213 2007-05-19  Bruno Haible  <bruno@clisp.org>
34214
34215         Fix *printf result for NaN, Inf, -0.0 on mingw.
34216         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34217         * lib/vasnprintf.c: Include math.h and isnan.h.
34218         (is_infinite_or_zero): New function.
34219         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34220         values in the %f, %F, %e, %E, %g, %G directives.
34221         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34223         gl_PRINTF_INFINITE and test its result. Invoke
34224         gl_PREREQ_VASNPRINTF_INFINITE.
34225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34226         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34227         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34228         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34230         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34231         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34232         * doc/functions/fprintf.texi: Update.
34233         * doc/functions/printf.texi: Update.
34234         * doc/functions/snprintf.texi: Update.
34235         * doc/functions/sprintf.texi: Update.
34236         * doc/functions/vfprintf.texi: Update.
34237         * doc/functions/vprintf.texi: Update.
34238         * doc/functions/vsnprintf.texi: Update.
34239         * doc/functions/vsprintf.texi: Update.
34240
34241 2007-05-19  Bruno Haible  <bruno@clisp.org>
34242
34243         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34244         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34245         Instead of multiplying with 10^k, set extra_zeroes to k.
34246         (scale10_round_long_double): Remove function.
34247
34248 2007-05-18  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34251         introduced on 2007-05-06.
34252
34253 2007-05-18  Bruno Haible  <bruno@clisp.org>
34254
34255         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34256         %g directives.
34257         * tests/test-vasprintf-posix.c (test_function): Likewise.
34258         * tests/test-snprintf-posix.h (test_function): Likewise.
34259         * tests/test-sprintf-posix.h (test_function): Likewise.
34260
34261 2007-05-18  Bruno Haible  <bruno@clisp.org>
34262
34263         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34264         (strmatch): New function.
34265         (test_function): Test the %f directive on numbers of various exponents.
34266         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34267         (strmatch): New function.
34268         (test_function): Test the %f directive on numbers of various exponents.
34269         * tests/test-snprintf-posix.h (strmatch): New function.
34270         (test_function): Test the %f directive on numbers of various exponents.
34271         * tests/test-sprintf-posix.h (strmatch): New function.
34272         (test_function): Test the %f directive on numbers of various exponents.
34273         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34274         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34275         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34276         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34277
34278 2007-05-18  Bruno Haible  <bruno@clisp.org>
34279
34280         Add support for 'long double' number output.
34281         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34282         * lib/vasnprintf.c: Include math.h and float+.h.
34283         (mp_limb_t): New type.
34284         (GMP_LIMB_BITS): New macro.
34285         (mp_twolimb_t): New type.
34286         (GMP_TWOLIMB_BITS): New macro.
34287         (mpn_t): New type.
34288         (multiply, divide, convert_to_decimal, decode_long_double,
34289         scale10_round_long_double, scale10_round_decimal_long_double,
34290         floorlog10l): New functions.
34291         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34292         for the %f, %F, %e, %E, %g, %G directives.
34293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34295         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34296         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34304         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34305         * modules/snprintf-posix (Depends-on): Likewise.
34306         * modules/sprintf-posix (Depends-on): Likewise.
34307         * modules/vasnprintf-posix (Depends-on): Likewise.
34308         * modules/vasprintf-posix (Depends-on): Likewise.
34309         * modules/vfprintf-posix (Depends-on): Likewise.
34310         * modules/vsnprintf-posix (Depends-on): Likewise.
34311         * modules/vsprintf-posix (Depends-on): Likewise.
34312         * modules/vasnprintf (Files): Add lib/float+.h.
34313         * doc/functions/fprintf.texi: Update.
34314         * doc/functions/printf.texi: Update.
34315         * doc/functions/snprintf.texi: Update.
34316         * doc/functions/sprintf.texi: Update.
34317         * doc/functions/vfprintf.texi: Update.
34318         * doc/functions/vprintf.texi: Update.
34319         * doc/functions/vsnprintf.texi: Update.
34320         * doc/functions/vsprintf.texi: Update.
34321
34322 2007-05-18  Bruno Haible  <bruno@clisp.org>
34323
34324         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34325
34326 2007-05-18  Bruno Haible  <bruno@clisp.org>
34327
34328         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34329         for printing 64-bit integers. Needed for mingw.
34330
34331 2007-05-18  Bruno Haible  <bruno@clisp.org>
34332
34333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34334         gl_FUNC_FREXPL_WORKS.
34335         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34336
34337 2007-05-18  Bruno Haible  <bruno@clisp.org>
34338
34339         * modules/frexpl-nolibm-tests: New file.
34340
34341         * modules/frexpl-nolibm: New file.
34342         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34343
34344 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34345
34346         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34347         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34348         GCC 4.2, which otherwise issues a lot of warnings.
34349         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34350         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34351         Likewise.
34352         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34353         * modules/iconv_open (iconv.h): Likewise.
34354         * modules/locale (locale.h): Likewise.
34355         * modules/netinet_in (netinet/in.h): Likewise.
34356         * modules/sys_select (sys_select.h): Likewise.
34357         * modules/sys_socket (sys/socket.h): Likewise.
34358         * modules/sys_stat (sys/stat.h): Likewise.
34359         * modules/sysexits (sysexits.h): Likewise.
34360         * modules/unistd (unistd.h): Likewise.
34361
34362 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34363
34364         * modules/closein-tests (Makefile.am): Distribute
34365         `test-closein.sh'.
34366
34367 2007-05-17  Bruno Haible  <bruno@clisp.org>
34368
34369         * tests/test-printf-posix.output: Renamed from
34370         tests/test-fprintf-posix.out.
34371         * modules/fprintf-posix-tests: Update.
34372         * modules/printf-posix-tests: Update.
34373         * modules/vfprintf-posix-tests: Update.
34374         * modules/vprintf-posix-tests: Update.
34375         * tests/test-fprintf-posix.sh: Update.
34376         * tests/test-printf-posix.sh: Update.
34377         * tests/test-vfprintf-posix.sh: Update.
34378         * tests/test-vprintf-posix.sh: Update.
34379         Reported by Ralf Wildenhues.
34380
34381 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34382
34383         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34384         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34385         GCC 4.2, which otherwise issues a lot of warnings.
34386         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34387         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34388         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34389         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34390         it should no longer be needed.
34391         * lib/string_.h: Likewise.
34392         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34393         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34394         * modules/inttypes (inttypes.h): Likewise.
34395         * modules/math (math.h): Likewise.
34396         * modules/search (search.h): Likewise.
34397         * modules/signal (signal.h): Likewise.
34398         * modules/stdint (stdint.h): Likewise.
34399         * modules/stdio (stdio.h): Likewise.
34400         * modules/stdlib (stdlib.h): Likewise.
34401         * modules/string (string.h): Likewise.
34402         * modules/sys_time (sys/time.h): Likewise.
34403         * modules/time (time.h): Likewise.
34404         * modules/wchar (wchar.h): Likewise.
34405         * modules/wctype (wtype.h): Likewise.
34406
34407 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34408
34409         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34410
34411 2007-05-13  Bruno Haible  <bruno@clisp.org>
34412
34413         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34414         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34415         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34416         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34417         (gl_PREREQ_STRTOK_R): Don't require it here.
34418
34419 2007-05-13  Bruno Haible  <bruno@clisp.org>
34420
34421         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34422         when used in C++ mode.
34423
34424 2007-05-12  Bruno Haible  <bruno@clisp.org>
34425
34426         * lib/linebuffer.h: Tweak doc.
34427         * lib/linebuffer.c: Likewise.
34428
34429 2007-05-12  James Youngman  <jay@gnu.org>
34430
34431         * lib/linebuffer.c (readlinebuffer_delim): New function,
34432         like readlinebuffer, but use a caller-specified delimiter.
34433         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34434         as the delimiter.
34435         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34436
34437 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34438
34439         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34440         * modules/openat (Files): Remove openat-die.c.
34441         (Depends-on): Add openat-die.
34442         * modules/openat-die: New module.
34443
34444 2007-05-06  Bruno Haible  <bruno@clisp.org>
34445
34446         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34447         Update with info about Cygwin.
34448         * doc/functions/fprintf.texi: Update.
34449         * doc/functions/printf.texi: Update.
34450         * doc/functions/snprintf.texi: Update.
34451         * doc/functions/sprintf.texi: Update.
34452         * doc/functions/vfprintf.texi: Update.
34453         * doc/functions/vprintf.texi: Update.
34454         * doc/functions/vsnprintf.texi: Update.
34455         * doc/functions/vsprintf.texi: Update.
34456         Reported by Eric Blake.
34457
34458 2007-05-06  Bruno Haible  <bruno@clisp.org>
34459
34460         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34461         padding ourselves for the floating-point directives.
34462         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34463         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34464         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34465         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34466         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34467         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34474         * tests/test-snprintf-posix.h (test_function): Also check the width
34475         and some flags in the %f directive.
34476         * tests/test-sprintf-posix.h (test_function): Likewise.
34477         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34478         * tests/test-vasprintf-posix.c (test_function): Likewise.
34479         * doc/functions/fprintf.texi: Update.
34480         * doc/functions/printf.texi: Update.
34481         * doc/functions/snprintf.texi: Update.
34482         * doc/functions/sprintf.texi: Update.
34483         * doc/functions/vfprintf.texi: Update.
34484         * doc/functions/vprintf.texi: Update.
34485         * doc/functions/vsnprintf.texi: Update.
34486         * doc/functions/vsprintf.texi: Update.
34487
34488 2007-05-06  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34491         pass the ' flag character to sprintf or snprintf.
34492         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34495         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34496         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34504         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34505         flag.
34506         * tests/test-sprintf-posix.h (test_function): Likewise.
34507         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34508         * tests/test-vasprintf-posix.c (test_function): Likewise.
34509         * doc/functions/fprintf.texi: Update.
34510         * doc/functions/printf.texi: Update.
34511         * doc/functions/snprintf.texi: Update.
34512         * doc/functions/sprintf.texi: Update.
34513         * doc/functions/vfprintf.texi: Update.
34514         * doc/functions/vprintf.texi: Update.
34515         * doc/functions/vsnprintf.texi: Update.
34516         * doc/functions/vsprintf.texi: Update.
34517
34518 2007-05-01  Bruno Haible  <bruno@clisp.org>
34519
34520         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34521
34522 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34523
34524         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34525         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34526
34527 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34528
34529         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34530         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34531         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34532
34533 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34534
34535         * lib/argp-help.c (struct hol_entry): New member `ord'.
34536         (HOL_ENTRY_PTRCMP): Use ord for comparison
34537         (hol_sort): Initialize ord.
34538
34539 2007-05-01  Bruno Haible  <bruno@clisp.org>
34540
34541         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34542         Reported by Eric Blake.
34543         * doc/gnulib.texi (Function Substitutes): Update.
34544
34545 2007-05-01  Bruno Haible  <bruno@clisp.org>
34546
34547         * doc/functions.texi: Remove file, now redundant through
34548         doc/functions/*.texi.
34549
34550 2007-05-01  Bruno Haible  <bruno@clisp.org>
34551
34552         * modules/argp (Depends-on): Add sleep.
34553
34554 2007-05-01  Bruno Haible  <bruno@clisp.org>
34555
34556         * modules/sleep-tests: New file.
34557         * tests/test-sleep.c: New file.
34558
34559         * modules/sleep: New file.
34560         * lib/sleep.c: New file.
34561         * m4/sleep.m4: New file.
34562         * lib/unistd_.h (sleep): New declaration.
34563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34564         HAVE_SLEEP.
34565         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34566         * doc/functions/sleep.texi: Document the sleep module.
34567
34568 2007-05-01  Bruno Haible  <bruno@clisp.org>
34569
34570         * lib/sigprocmask.h: Remove file.
34571         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34572         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34573         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34574         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34575         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34576         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34577         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34578         HAVE_SIGSET_T as a shell variable.
34579         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34580         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34581         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34582         (Depends-on): Add signal. Remove verify.
34583         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34584         (Include): Mention <signal.h> instead of sigprocmask.h.
34585         * NEWS: Mention the change.
34586         * lib/fatal-signal.c: Don't include sigprocmask.h.
34587
34588 2007-05-01  Bruno Haible  <bruno@clisp.org>
34589
34590         * modules/signal: New file.
34591         * lib/signal_.h: New file.
34592         * m4/signal_h.m4: New file.
34593
34594 2007-05-01  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34597         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34598         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34599         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34600
34601 2007-05-01  Bruno Haible  <bruno@clisp.org>
34602
34603         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34604         configure time.
34605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34606         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34607         * modules/sys_stat (Makefile.am): Substitute their values into
34608         sys/stat.h.
34609
34610 2007-05-01  Bruno Haible  <bruno@clisp.org>
34611
34612         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34613         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34614         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34615
34616 2007-05-01  Bruno Haible  <bruno@clisp.org>
34617
34618         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34619         'assert' module here.
34620
34621 2007-05-01  Bruno Haible  <bruno@clisp.org>
34622
34623         * doc/functions/*.texi: New files.
34624         * doc/functions/google-ranking.txt: New file.
34625         * doc/gnulib.texi (Function Substitutes): New chapter.
34626         (ctime, inet_ntoa): Remove sections.
34627         * doc/ctime.texi: Remove file.
34628         * doc/inet_ntoa.texi: Remove file.
34629         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34630         dependencies.
34631         (%.info): New rule, specifying a --reference-limit.
34632
34633 2007-05-01  Bruno Haible  <bruno@clisp.org>
34634
34635         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34636
34637 2007-05-01  Bruno Haible  <bruno@clisp.org>
34638
34639         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34640         the portability of 'mkdir' to mingw systems.
34641
34642 2007-05-01  Bruno Haible  <bruno@clisp.org>
34643
34644         * doc/headers/google-ranking.txt: New file.
34645
34646 2007-04-30  Eric Blake  <ebb9@byu.net>
34647
34648         Prefer fseeko to fseek.
34649         * modules/getpass (Depends-on): Add fseeko.
34650         * lib/getpass.c (getpass): Use fseeko, not fseek.
34651
34652 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34653
34654         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34655         assumes the sorting is stable, while most qsort implementations
34656         are not.  Use argument addresses to ensure they never compare as
34657         equal.
34658
34659         * tests/test-argp-2.sh (usage-indent test): Fix output
34660         (func_compare): Restore diff options
34661         * tests/test-argp.c: Restore #include "progname.h"
34662
34663 2007-04-29  Bruno Haible  <bruno@clisp.org>
34664
34665         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34667         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34668         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34669         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34670         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34671         (TESTS, check_PROGRAMS): Add test-snprintf.
34672         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34673         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34674         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34675         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34676         assertions that fail on HP-UX, OSF/1, or IRIX.
34677         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34678
34679 2007-04-29  Bruno Haible  <bruno@clisp.org>
34680
34681         * MODULES.html.sh (posix_functions): Remove 'contents'.
34682
34683 2007-04-29  Karl Berry  <karl@gnu.org>
34684
34685         * config/srclist.txt (gendocs_template_min): new entry.
34686
34687 2007-04-29  Bruno Haible  <bruno@clisp.org>
34688
34689         Work around fpurge bug on BSD systems.
34690         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
34691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
34692         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
34693         fpurge to rpl_fpurge if the system already has this function.
34694         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
34695         the case where the system already has this function. Correct invariants
34696         on BSD systems.
34697         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
34698         BSD systems.
34699
34700 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34701
34702         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
34703         proposed by Sven Verdoolaege.
34704
34705         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
34706         options.
34707         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
34708         (usage and help tests): Update
34709
34710 2007-04-29  Bruno Haible  <bruno@clisp.org>
34711
34712         * tests/test-fflush.c (main): Use a file of size 17, not 10.
34713         Print more information in case of failure. Disable a test on BeOS.
34714
34715 2007-04-29  Bruno Haible  <bruno@clisp.org>
34716
34717         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
34718         This helps debugging on systems on which no gdb is available.
34719
34720 2007-04-29  Bruno Haible  <bruno@clisp.org>
34721
34722         * lib/freading.h: Improve comments.
34723         * lib/fwriting.h: Likewise.
34724         * tests/test-freading.c (main): Don't check freading immediately after
34725         repositioning. Needed for glibc.
34726
34727 2007-04-29  Bruno Haible  <bruno@clisp.org>
34728
34729         * lib/freading.c (freading): Trivial simplification.
34730
34731 2007-04-28  Bruno Haible  <bruno@clisp.org>
34732
34733         * tests/test-fwriting.c (main): Also test the interaction between
34734         fflush and fwriting.
34735         * modules/fwriting-tests (Depends-on): Add fflush.
34736
34737         * tests/test-freading.c (main): Also test the interaction between
34738         fflush and freading.
34739         * modules/freading-tests (Depends-on): Add fflush.
34740
34741 2007-04-28  Bruno Haible  <bruno@clisp.org>
34742
34743         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
34744         fseeko and ftello.
34745         Suggested by Eric Blake.
34746
34747 2007-04-28  Jim Meyering  <jim@meyering.net>
34748
34749         Avoid false-negative in gl_STDINT_H's C99 conformance test.
34750         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
34751         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
34752
34753 2007-04-27  Eric Blake  <ebb9@byu.net>
34754
34755         * doc/headers/assert.texi (assert.h): Document assert module use.
34756
34757 2007-04-27  Bruno Haible  <bruno@clisp.org>
34758
34759         * doc/headers/*.texi: New files.
34760         * doc/gnulib.texi (Header File Substitutes): New chapter.
34761         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
34762         dependencies.
34763         (standards.info ,standards.html, standards.dvi): Update dependencies.
34764         (mostlyclean, clean): New targets.
34765
34766 2007-04-27  Bruno Haible  <bruno@clisp.org>
34767
34768         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
34769         * modules/sysexits (Files, Makefile.am): Update.
34770
34771         * lib/sys_socket_.h: Renamed from lib/socket_.h.
34772         * modules/sys_socket (Files, Makefile.am): Update.
34773
34774         * lib/sys_stat_.h: Renamed from lib/stat_.h.
34775         * modules/sys_stat (Files, Makefile.am): Update.
34776
34777 2007-04-27  Eric Blake  <ebb9@byu.net>
34778
34779         * lib/freading.h: Improve comments.
34780         * lib/fwriting.h: Likewise.
34781         * lib/fflush.c: Likewise.
34782
34783         Fix closein for mingw.
34784         * modules/closein-tests: Add tests for closein.
34785         * tests/test-closein.c: New file.
34786         * tests/test-closein.sh: Likewise.
34787         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
34788         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
34789
34790 2007-04-27  Bruno Haible  <bruno@clisp.org>
34791
34792         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
34793         version is < 6.
34794         * lib/math_.h [__DECC]: Likewise.
34795         * lib/stdio_.h [__DECC]: Likewise.
34796         * lib/stdlib_.h [__DECC]: Likewise.
34797         * lib/string_.h [__DECC]: Likewise.
34798         * lib/time_.h [__DECC]: Likewise.
34799         * lib/wchar_.h [__DECC]: Likewise.
34800         * lib/wctype_.h [__DECC]: Likewise.
34801
34802 2007-04-27  Bruno Haible  <bruno@clisp.org>
34803
34804         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
34805
34806 2007-04-27  Bruno Haible  <bruno@clisp.org>
34807
34808         * lib/fflush.c: Add comments.
34809         * modules/fpurge-tests (Depends-on): Add fflush.
34810         * modules/freadable-tests (Depends-on): Likewise.
34811         * modules/fwritable-tests (Depends-on): Likewise.
34812
34813 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
34814
34815         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
34816         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
34817         Report by Bruno Haible <bruno@clisp.org>.
34818
34819 2007-04-26  Eric Blake  <ebb9@byu.net>
34820
34821         Fix fflush on mingw.
34822         * modules/fflush (Depends-on): Add freading.
34823         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
34824         but unread data.
34825
34826 2007-04-26  Eric Blake  <ebb9@byu.net>
34827         and Bruno Haible  <bruno@clisp.org>
34828
34829         Implement freading and fwriting.
34830         * lib/freading.c: New file.
34831         * lib/freading.h: Likewise.
34832         * m4/freading.m4: Likewise.
34833         * modules/freading: Likewise.
34834         * modules/freading-tests: Likewise.
34835         * tests/test-freading.c: Likewise.
34836         * lib/fwriting.c: New file.
34837         * lib/fwriting.h: Likewise.
34838         * m4/fwriting.m4: Likewise.
34839         * modules/fwriting: Likewise.
34840         * modules/fwriting-tests: Likewise.
34841         * tests/test-fwriting.c: Likewise.
34842         * MODULES.html.sh (File stream based Input/Output): Mention them.
34843
34844 2007-04-26  Bruno Haible  <bruno@clisp.org>
34845
34846         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
34847         'long' when we assume it.
34848         Suggested by Eric Blake.
34849
34850 2007-04-26  Bruno Haible  <bruno@clisp.org>
34851
34852         Ensure fseeko, ftello are declared on glibc systems.
34853         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
34854         * modules/fseeko (configure.ac-early): Likewise.
34855         * modules/ftello (configure.ac-early): Likewise.
34856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
34857         AC_FUNC_FSEEKO for this.
34858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
34859         (gl_CHECK_FSEEKO): Remove macro.
34860
34861 2007-04-26  Bruno Haible  <bruno@clisp.org>
34862
34863         * tests/test-fflush.c (main): Also check the ftell result after
34864         fflush and fseek/fseeko.
34865         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
34866         file descriptor position cache in the stream.
34867         * lib/fseeko.c (rpl_fseeko): Likewise.
34868
34869 2007-04-26  Bruno Haible  <bruno@clisp.org>
34870
34871         * modules/fflush-tests (Depends-on): Add fseeko.
34872
34873 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
34874             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34875
34876         * lib/argz_.h: ensure error_t definition is obtained in same
34877         mechanism system argz.h would have.
34878         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
34879         argz facilities are known bad.  Err on the side of caution if
34880         cross-compiling.
34881
34882 2007-04-25  Eric Blake  <ebb9@byu.net>
34883
34884         * lib/fpurge.c (includes): Use stdlib.h for free.
34885         * tests/test-fflush.c (main): Also test fflush-fseeko.
34886
34887 2007-04-25  Bruno Haible  <bruno@clisp.org>
34888
34889         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
34890         * lib/fseeko.c: New file.
34891         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
34892         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
34893         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
34894         gl_FUNC_FSEEKO.
34895         (gl_FUNC_FSEEKO): Invoke it.
34896         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
34897         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
34898         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
34899
34900 2007-04-25  Bruno Haible  <bruno@clisp.org>
34901
34902         * modules/fflush (Depends-on): Add ftello.
34903
34904 2007-04-25  Bruno Haible  <bruno@clisp.org>
34905
34906         * modules/ftello-tests: New file.
34907         * tests/test-ftello.c: New file.
34908
34909         * modules/ftello: New file.
34910         * m4/ftello.m4: New file.
34911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
34912         HAVE_FTELLO.
34913         * lib/stdio_.h (ftello): New declaration.
34914         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
34915         HAVE_FTELLO.
34916
34917 2007-04-25  Bruno Haible  <bruno@clisp.org>
34918
34919         * modules/fseeko-tests: New file.
34920         * tests/test-fseeko.c: New file.
34921
34922         * modules/fseeko: New file.
34923         * m4/fseeko.m4: New file.
34924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
34925         HAVE_FSEEKO.
34926         * lib/stdio_.h (fseeko): New declaration.
34927         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
34928         HAVE_FSEEKO.
34929
34930 2007-04-25  Bruno Haible  <bruno@clisp.org>
34931
34932         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
34933
34934 2007-04-25  Bruno Haible  <bruno@clisp.org>
34935
34936         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
34937         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
34938         * tests/test-unistd.c: Likewise.
34939         * tests/test-fcntl.c: Likewise.
34940
34941 2007-04-23  Eric Blake  <ebb9@byu.net>
34942
34943         * lib/fflush.c: Fix missing include.
34944         Reported by Bruno Haible.
34945
34946 2007-04-23  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
34949         Reported by Eric Blake.
34950
34951 2007-04-23  Bruno Haible  <bruno@clisp.org>
34952
34953         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
34954
34955 2007-04-23  Bruno Haible  <bruno@clisp.org>
34956
34957         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
34958
34959 2007-04-23  Bruno Haible  <bruno@clisp.org>
34960
34961         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
34962         Needed on HP-UX 11.
34963
34964 2007-04-16  Eric Blake  <ebb9@byu.net>
34965
34966         Make fflush rely on fpurge.
34967         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
34968         open coding all variants.
34969         * modules/fflush (Depends-on): Add fpurge and unistd.
34970         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
34971         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
34972
34973         Fix --with-tests compilation on cygwin.
34974         * modules/argmatch-tests (Makefile.am): List gnulib library first
34975         in LDADD.
34976         * modules/argp-tests (Makefile.am): Likewise.
34977         * modules/array-list-tests (Makefile.am): Likewise.
34978         * modules/array-oset-tests (Makefile.am): Likewise.
34979         * modules/avltree-list-tests (Makefile.am): Likewise.
34980         * modules/avltree-oset-tests (Makefile.am): Likewise.
34981         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34982         * modules/carray-list-tests (Makefile.am): Likewise.
34983         * modules/dirname-tests (Makefile.am): Likewise.
34984         * modules/frexp-tests (Makefile.am): Likewise.
34985         * modules/isnanl-tests (Makefile.am): Likewise.
34986         * modules/linked-list-tests (Makefile.am): Likewise.
34987         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34988         * modules/lock-tests (Makefile.am): Likewise.
34989         * modules/rbtree-list-tests (Makefile.am): Likewise.
34990         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34991         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34992         * modules/tls-tests (Makefile.am): Likewise.
34993         * modules/tsearch-tests (Makefile.am): Likewise.
34994         * modules/xvasprintf-tests (Makefile.am): Likewise.
34995
34996         Fix fpurge for cygwin.
34997         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
34998         value.
34999         * modules/fpurge-tests (Depends-on): Clean up trash.
35000
35001 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35002
35003         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35004
35005         * m4/autobuild.m4: Re-indent.
35006
35007 2007-04-13  Bruno Haible  <bruno@clisp.org>
35008
35009         * modules/fpurge-tests: New file.
35010         * tests/test-fpurge.c: New file.
35011
35012         * modules/fpurge: New file.
35013         * lib/fpurge.h: New file.
35014         * lib/fpurge.c: New file.
35015         * m4/fpurge.m4: New file.
35016
35017 2007-04-13  Bruno Haible  <bruno@clisp.org>
35018
35019         * modules/fbufmode-tests: New file.
35020         * tests/test-fbufmode.c: New file.
35021
35022         * modules/fbufmode: New file.
35023         * lib/fbufmode.h: New file.
35024         * lib/fbufmode.c: New file.
35025         * m4/fbufmode.m4: New file.
35026
35027 2007-04-13  Bruno Haible  <bruno@clisp.org>
35028
35029         * modules/fwritable-tests: New file.
35030         * tests/test-fwritable.c: New file.
35031
35032         * modules/fwritable: New file.
35033         * lib/fwritable.h: New file.
35034         * lib/fwritable.c: New file.
35035         * m4/fwritable.m4: New file.
35036
35037 2007-04-13  Bruno Haible  <bruno@clisp.org>
35038
35039         * modules/freadable-tests: New file.
35040         * tests/test-freadable.c: New file.
35041
35042         * modules/freadable: New file.
35043         * lib/freadable.h: New file.
35044         * lib/freadable.c: New file.
35045         * m4/freadable.m4: New file.
35046
35047 2007-04-13  Bruno Haible  <bruno@clisp.org>
35048
35049         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35050         MOSTLYCLEANFILES.
35051
35052 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35053
35054         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35055         gzip bootstrap.conf to avoid dragging in i18n machinery.
35056         (gnulib_tool_option): Use it.
35057
35058 2007-04-13  Bruno Haible  <bruno@clisp.org>
35059
35060         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35061         %F directives.
35062         * tests/test-vasprintf-posix.c (test_function): Likewise.
35063         * tests/test-snprintf-posix.h (test_function): Likewise.
35064         * tests/test-sprintf-posix.h (test_function): Likewise.
35065         * tests/test-fprintf-posix.h (test_function): Likewise.
35066         * tests/test-printf-posix.h (test_function): Likewise.
35067         * tests/test-fprintf-posix.out: Likewise.
35068
35069 2007-04-13  Bruno Haible  <bruno@clisp.org>
35070
35071         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35072         * modules/tls-tests (configure.ac): Likewise.
35073         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35074
35075 2007-04-13  Bruno Haible  <bruno@clisp.org>
35076
35077         * lib/tls.c (glthread_tls_get): Fix return type.
35078         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35079
35080 2007-04-12  Eric Blake  <ebb9@byu.net>
35081
35082         * modules/gettime (Depends-on): Remove gettime.
35083         Reported by Dmitry V. Levin.
35084
35085 2007-04-12  Bruno Haible  <bruno@clisp.org>
35086
35087         * modules/fflush (Include): Mention <stdio.h>.
35088         * modules/strtoimax (Include): Mention <inttypes.h>.
35089         * modules/strtoumax (Include): Likewise.
35090
35091 2007-04-12  Eric Blake  <ebb9@byu.net>
35092
35093         * .cvsignore: New file.
35094         * .gitignore: Likewise.
35095
35096 2007-04-12  Bruno Haible  <bruno@clisp.org>
35097
35098         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35099         not before, since $(LDADD) often contains libgnu.a.
35100         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35101         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35102         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35103         Needed on Cygwin.
35104
35105 2007-04-12  Eric Blake  <ebb9@byu.net>
35106
35107         Work around glibc's failure to flush stdin on fclose.
35108         * lib/closein.c (close_stdin): Flush stdin before closing.
35109
35110         Work around glibc's failure to reset seekable stdin on exit.
35111         * modules/closein: New module.
35112         * lib/closein.c: New file.
35113         * lib/closein.h: Likewise.
35114         * m4/closein.m4: Likewise.
35115         * MODULES.html.sh (File stream based Input/Output): Document it.
35116
35117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35118
35119         * gnulib-tool: Rename generated 'autobuild' script to
35120         'do-autobuild' in --create-megatestdir output.
35121
35122         * doc/gnulib.texi (Build robot for gnulib): Fix.
35123
35124 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35125
35126         * modules/sysexits (Depends-on): Add absolute-header.
35127
35128 2007-04-12  Eric Blake  <ebb9@byu.net>
35129
35130         No need to preserve errno on success.
35131         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35132         Reported by Bruno Haible.
35133
35134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35135
35136         * MODULES.html.sh (Support for maintaining and releasing
35137         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35138
35139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35140
35141         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35142
35143 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35144
35145         * modules/autobuild: New module.
35146
35147         * m4/autobuild.m4: New file.
35148
35149 2007-04-11  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35152         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35156         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35157         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35158         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35159         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35160         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35162         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35163         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35165         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35166         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35167         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35168         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35169         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35170         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35171         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35172         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35174         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35175         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35177         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35178         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35179         Reported by Eric Blake.
35180
35181 2007-04-11  Bruno Haible  <bruno@clisp.org>
35182
35183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35184
35185 2007-04-10  Bruno Haible  <bruno@clisp.org>
35186
35187         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35188         for NaN and Infinity. Needed on FreeBSD 6.1.
35189         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35190         regarding results for "%010a" of Infinity and NaN.
35191         * tests/test-vasprintf-posix.c (test_function): Likewise.
35192         * tests/test-snprintf-posix.h (test_function): Likewise.
35193         * tests/test-sprintf-posix.h (test_function): Likewise.
35194         * tests/test-fprintf-posix.h (test_function): Likewise.
35195         * tests/test-printf-posix.h (test_function): Likewise.
35196         * tests/test-fprintf-posix.out: Likewise.
35197
35198 2007-04-10  Bruno Haible  <bruno@clisp.org>
35199
35200         * modules/locale-tests: New file.
35201         * tests/test-locale.c: New file.
35202
35203         * modules/locale: New file.
35204         * lib/locale_.h: New file.
35205         * m4/locale_h.m4: New file.
35206
35207 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35208             Bruno Haible  <bruno@clisp.org>
35209
35210         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35211         be determined, test for availability of the copysignf, copysign,
35212         copysignl functions.
35213         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35214         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35215         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35216
35217 2007-04-09  Eric Blake  <ebb9@byu.net>
35218
35219         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35220         * modules/stdio (Makefile.am): Support fflush.
35221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35222         * modules/fflush: New file.
35223         * lib/fflush.c: Likewise.
35224         * m4/fflush.m4: Likewise.
35225         * modules/fflush-tests: New test.
35226         * tests/test-fflush.c: Likewise.
35227         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35228
35229 2007-04-06  Bruno Haible  <bruno@clisp.org>
35230
35231         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35232         (VASNPRINTF): Use signbit for faster determination whether to print a
35233         minus sign.
35234         * modules/vasnprintf (Files): Remove lib/float+.h.
35235         * modules/fprintf-posix (Depends-on): Add signbit.
35236         * modules/snprintf-posix (Depends-on): Likewise.
35237         * modules/sprintf-posix (Depends-on): Likewise.
35238         * modules/vasnprintf-posix (Depends-on): Likewise.
35239         * modules/vasprintf-posix (Depends-on): Likewise.
35240         * modules/vfprintf-posix (Depends-on): Likewise.
35241         * modules/vsnprintf-posix (Depends-on): Likewise.
35242         * modules/vsprintf-posix (Depends-on): Likewise.
35243
35244 2007-04-06  Bruno Haible  <bruno@clisp.org>
35245
35246         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35247         * tests/test-frexpl.c (main): Likewise.
35248         * tests/test-ldexpl.c (main): Likewise.
35249         * modules/frexp-tests (Depends-on): Add signbit.
35250         * modules/frexpl-tests (Depdends-on): Likewise.
35251         * modules/ldexpl-tests (Depdends-on): Likewise.
35252
35253 2007-04-06  Bruno Haible  <bruno@clisp.org>
35254
35255         * modules/signbit-tests: New file.
35256         * tests/test-signbit.c: New file.
35257
35258         * modules/signbit: New file.
35259         * lib/signbitf.c: New file.
35260         * lib/signbitd.c: New file.
35261         * lib/signbitl.c: New file.
35262         * m4/signbit.m4: New file.
35263         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35264         (signbit): New macro.
35265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35266         REPLACE_SIGNBIT.
35267         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35268         REPLACE_FREXPL into math.h.
35269
35270 2007-04-06  Bruno Haible  <bruno@clisp.org>
35271
35272         * modules/isnanf-nolibm-tests: New file.
35273         * tests/test-isnanf.c: New file.
35274
35275         * modules/isnanf-nolibm: New file.
35276         * lib/isnanf.h: New file.
35277         * lib/isnanf.c: New file.
35278         * lib/isnan.c: Consider the USE_FLOAT macro.
35279         * m4/isnanf.m4: New file.
35280
35281 2007-04-06  Bruno Haible  <bruno@clisp.org>
35282
35283         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35284         (Link): New section.
35285
35286         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35287
35288 2007-04-06  Bruno Haible  <bruno@clisp.org>
35289
35290         Assume the 'long double' type.
35291         * m4/longdouble.m4: Remove file.
35292         * config/srclist.txt: Don't mention longdouble.m4.
35293         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35294         * lib/float+.h: Likewise.
35295         * lib/frexp.c: Likewise.
35296         * lib/printf-args.h: Likewise.
35297         * lib/printf-args.c: Likewise.
35298         * lib/printf-frexp.c: Likewise.
35299         * lib/printf-parse.c: Likewise.
35300         * lib/vasnprintf.c: Likewise.
35301         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35302         * m4/intl.m4: Likewise.
35303         * m4/isnanl.m4: Likewise.
35304         * m4/printf.m4: Likewise.
35305         * m4/printf-frexpl.m4: Likewise.
35306         * m4/vasnprintf.m4: Likewise.
35307         * modules/allocsa (Files): Remove m4/longdouble.m4.
35308         * modules/gettext (Files): Likewise.
35309         * modules/relocatable-prog-wrapper (Files): Likewise.
35310         * modules/vasnprintf (Files): Likewise.
35311         * modules/isnanl (Files): Likewise.
35312         (Include): Simplify.
35313         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35314         (Include): Simplify.
35315         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35316         (Include): Simplify.
35317         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35319         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35320         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35321         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35322         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35323         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35324         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35325         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35326         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35327         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35329         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35330         * tests/test-isnanl.c: Likewise.
35331         * tests/test-snprintf-posix.h: Likewise.
35332         * tests/test-sprintf-posix.h: Likewise.
35333         * tests/test-vasnprintf-posix.c: Likewise.
35334         * tests/test-vasnprintf-posix2.c: Likewise.
35335         * tests/test-vasprintf-posix.c: Likewise.
35336
35337 2007-04-06  Bruno Haible  <bruno@clisp.org>
35338
35339         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35340         * lib/math_.h [__DECC]: Include the overridden include file through
35341         #include_next, outside the double-inclusion guard.
35342         * lib/stdio_.h [__DECC]: Likewise.
35343         * lib/stdlib_.h [__DECC]: Likewise.
35344         * lib/string_.h [__DECC]: Likewise.
35345         * lib/time_.h [__DECC]: Likewise.
35346         * lib/wchar_.h [__DECC]: Likewise.
35347         * lib/wctype_.h [__DECC]: Likewise.
35348         * lib/inttypes_.h [__DECC]: Likewise.
35349         Reported by Albert Chin <china@thewrittenword.com> in
35350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35351
35352 2007-04-04  Eric Blake  <ebb9@byu.net>
35353
35354         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35355         1.5.x.
35356
35357 2007-04-04  Bruno Haible  <bruno@clisp.org>
35358
35359         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35360         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35361
35362 2007-04-04  Bruno Haible  <bruno@clisp.org>
35363
35364         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35365         results for "%010a" of Infinity and NaN.
35366         * tests/test-vasprintf-posix.c (test_function): Likewise.
35367         * tests/test-snprintf-posix.h (test_function): Likewise.
35368         * tests/test-sprintf-posix.h (test_function): Likewise.
35369         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35370         * tests/test-printf-posix.h (test_function): Likewise.
35371         * tests/test-fprintf-posix.out: Update.
35372         Needed for FreeBSD 6.1.
35373
35374 2007-04-04  Bruno Haible  <bruno@clisp.org>
35375
35376         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35377         directly used by the gnulib modules nor by gnulib-tool.
35378
35379 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35380
35381         * DEPENDENCIES: Give overall description of version dependency
35382         desirability.  Use more-typical names for apps.
35383         Add shell, coreutils, diffutils, grep, tar, gzip.
35384
35385 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35386
35387         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35388
35389 2007-04-04  Karl Berry  <karl@gnu.org>
35390
35391         * MODULES.html.sh (func_module): missing '.
35392
35393 2007-04-03  Bruno Haible  <bruno@clisp.org>
35394
35395         * modules/argmatch-tests (Makefile.am): New variable
35396         test_argmatch_LDADD.
35397         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35398         * modules/array-list-tests (Makefile.am): New variable
35399         test_array_list_LDADD.
35400         * modules/array-oset-tests (Makefile.am): New variable
35401         test_array_oset_LDADD.
35402         * modules/avltree-list-tests (Makefile.am): New variable
35403         test_avltree_list_LDADD.
35404         * modules/avltree-oset-tests (Makefile.am): New variable
35405         test_avltree_oset_LDADD.
35406         * modules/avltreehash-list-tests (Makefile.am): New variable
35407         test_avltreehash_list_LDADD.
35408         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35409         test_canonicalize_lgpl_LDADD.
35410         * modules/carray-list-tests (Makefile.am): New variable
35411         test_carray_list_LDADD.
35412         * modules/dirname-tests (Makefile.am): New variable
35413         test_dirname_LDADD.
35414         * modules/linked-list-tests (Makefile.am): New variable
35415         test_linked_list_LDADD.
35416         * modules/linkedhash-list-tests (Makefile.am): New variable
35417         test_linkedhash_list_LDADD.
35418         * modules/rbtree-list-tests (Makefile.am): New variable
35419         test_rbtree_list_LDADD.
35420         * modules/rbtree-oset-tests (Makefile.am): New variable
35421         test_rbtree_oset_LDADD.
35422         * modules/rbtreehash-list-tests (Makefile.am): New variable
35423         test_rbtreehash_list_LDADD.
35424         * modules/xvasprintf-tests (Makefile.am): New variable
35425         test_xvasprintf_LDADD.
35426         Reported by Eric Blake.
35427
35428 2007-04-03  Eric Blake  <ebb9@byu.net>
35429
35430         * DEPENDENCIES: Weaken m4 requirements.
35431
35432 2007-04-03  Bruno Haible  <bruno@clisp.org>
35433
35434         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35435         * modules/isnanl-tests (configure.ac): Likewise.
35436
35437 2007-04-03  Ben Pfaff  <blp@gnu.org>
35438
35439         * modules/iconv_open: Add $(srcdir)/ to source directory
35440         references in Makefile fragments that call gperf, to fix VPATH
35441         builds.
35442
35443 2007-04-03  Bruno Haible  <bruno@clisp.org>
35444
35445         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35446         * lib/ldexpl.c: Undo last change.
35447
35448 2007-04-03  Bruno Haible  <bruno@clisp.org>
35449
35450         * modules/printf-frexpl (Depends-on): Undo last change.
35451         (Files): Add m4/ldexpl.m4.
35452
35453 2007-04-03  Bruno Haible  <bruno@clisp.org>
35454
35455         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35456         * modules/isnanl (Link): New section.
35457
35458         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35459         * modules/frexp (Link): New section.
35460
35461         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35462         * modules/frexpl (Link): New section.
35463
35464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35465         * modules/ldexpl (Link): New section.
35466
35467 2007-04-03  Bruno Haible  <bruno@clisp.org>
35468
35469         * modules/TEMPLATE-EXTENDED: New file.
35470         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35471
35472 2007-04-03  Bruno Haible  <bruno@clisp.org>
35473
35474         * DEPENDENCIES: New file.
35475         Suggested by Simon Josefsson.
35476
35477 2007-04-03  Bruno Haible  <bruno@clisp.org>
35478
35479         * doc/gnulib.texi: Escape @.
35480
35481 2007-04-03  James Youngman  <jay@gnu.org>
35482         and Paul Eggert  <eggert@cs.ucla.edu>
35483
35484         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35485         birthtime on all systems that have birthtime, not just those which
35486         use st_birthtimensec rather than st_birthtim.  Putting zero in
35487         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35488         that the birth time is not available for files on an NFS mount.
35489
35490 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35491
35492         * modules/memxor: Move back from crypto/, suggested by Bruno.
35493         * modules/crypto/hmac-sha1: Fix memxor dependency.
35494
35495         * modules/crypto/gc: Moved from ../.
35496
35497 2007-04-02  Eric Blake  <ebb9@byu.net>
35498
35499         * lib/ldexpl.c (includes): Avoid libm.
35500
35501         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35502
35503 2007-04-02  Bruno Haible  <bruno@clisp.org>
35504
35505         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35506         on IRIX.
35507
35508 2007-04-02  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35511         x86 or x86_64 platforms running MacOS X.
35512         Reported by Ryan Schmidt <@ryandesign.com>.
35513
35514 2007-04-02  Bruno Haible  <bruno@clisp.org>
35515
35516         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35517         i386.
35518
35519 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35520
35521         * modules/crypto/arcfour: Moved from ../.
35522         * modules/crypto/arcfour-tests: Moved from ../.
35523         * modules/crypto/arctwo: Moved from ../.
35524         * modules/crypto/arctwo-tests: Moved from ../.
35525         * modules/crypto/des: Moved from ../.
35526         * modules/crypto/des-tests: Moved from ../.
35527         * modules/crypto/gc-arcfour: Moved from ../.
35528         * modules/crypto/gc-arcfour-tests: Moved from ../.
35529         * modules/crypto/gc-arctwo: Moved from ../.
35530         * modules/crypto/gc-arctwo-tests: Moved from ../.
35531         * modules/crypto/gc-des: Moved from ../.
35532         * modules/crypto/gc-des-tests: Moved from ../.
35533         * modules/crypto/gc-hmac-md5: Moved from ../.
35534         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35535         * modules/crypto/gc-hmac-sha1: Moved from ../.
35536         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35537         * modules/crypto/gc-md2: Moved from ../.
35538         * modules/crypto/gc-md2-tests: Moved from ../.
35539         * modules/crypto/gc-md4: Moved from ../.
35540         * modules/crypto/gc-md4-tests: Moved from ../.
35541         * modules/crypto/gc-md5: Moved from ../.
35542         * modules/crypto/gc-md5-tests: Moved from ../.
35543         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35544         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35545         * modules/crypto/gc-random: Moved from ../.
35546         * modules/crypto/gc-rijndael: Moved from ../.
35547         * modules/crypto/gc-rijndael-tests: Moved from ../.
35548         * modules/crypto/gc-sha1: Moved from ../.
35549         * modules/crypto/gc-sha1-tests: Moved from ../.
35550         * modules/crypto/gc-tests: Moved from ../.
35551         * modules/crypto/hmac-md5: Moved from ../.
35552         * modules/crypto/hmac-md5-tests: Moved from ../.
35553         * modules/crypto/hmac-sha1: Moved from ../.
35554         * modules/crypto/hmac-sha1-tests: Moved from ../.
35555         * modules/crypto/md2: Moved from ../.
35556         * modules/crypto/md2-tests: Moved from ../.
35557         * modules/crypto/md4: Moved from ../.
35558         * modules/crypto/md4-tests: Moved from ../.
35559         * modules/crypto/md5: Moved from ../.
35560         * modules/crypto/md5-tests: Moved from ../.
35561         * modules/crypto/memxor: Moved from ../.
35562         * modules/crypto/rijndael: Moved from ../.
35563         * modules/crypto/rijndael-tests: Moved from ../.
35564         * modules/crypto/sha1: Moved from ../.
35565
35566 2007-03-30  James Youngman  <jay@gnu.org>
35567
35568         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35569         rename() to change the ctime of a file (because ctime is unaffected
35570         by rename on jfs2 on AIX 5.1).
35571         (main): Start by doing cleanup, in case a previous run failed leaving
35572         test files behind.
35573
35574 2007-03-31  Bruno Haible  <bruno@clisp.org>
35575
35576         Support old proprietary implementations of iconv.
35577         * modules/iconv_open: New file.
35578         * lib/iconv_.h: New file.
35579         * m4/iconv_h.m4: New file.
35580         * lib/iconv_open.c: New file.
35581         * lib/iconv_open-aix.gperf: New file.
35582         * lib/iconv_open-hpux.gperf: New file.
35583         * lib/iconv_open-irix.gperf: New file.
35584         * lib/iconv_open-osf.gperf: New file.
35585         * m4/iconv_open.m4: New file.
35586         * modules/linebreak (Depends-on): Add iconv_open.
35587         * modules/striconv (Depends-on): Likewise.
35588         * modules/striconveh (Depends-on): Likewise.
35589         * modules/unicodeio (Depends-on): Likewise.
35590         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35591         (iconv_t)(-1).
35592         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35593         conversion if cd is (iconv_t)(-1).
35594         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35595         is not possible.
35596
35597 2007-03-31  Bruno Haible  <bruno@clisp.org>
35598
35599         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35600         work on Solaris either. Protect also second use of "autodetect_jp".
35601
35602 2007-03-31  Bruno Haible  <bruno@clisp.org>
35603
35604         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35605         the function is not present.
35606
35607 2007-03-31  Bruno Haible  <bruno@clisp.org>
35608
35609         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35610         the function is not present.
35611
35612 2007-03-31  Bruno Haible  <bruno@clisp.org>
35613
35614         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35615         a bug in HP-UX iconv_open().
35616
35617 2007-03-31  Bruno Haible  <bruno@clisp.org>
35618
35619         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35620         (Mathematics <math.h>): New section, add fpieee.
35621         (Input/output <stdio.h>): Add fseterr.
35622         (Mathematics <math.h>): New section, add printf-frexp.
35623         (Container data structures): Add sublist.
35624         (Core language properties): Add fpucw, inline.
35625         (Functions for greatest-width integer types <inttypes.h>): Add
35626         imaxabs, imaxdiv, inttypes.
35627         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35628         isnanl-nolibm, ldexp.
35629         (Mathematics <math.h>): New section, add printf-frexpl.
35630         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35631         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35632         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35633         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35634         (Unicode string functions): Add unistr/u*-mbtoucr.
35635         (Java): Add javacomp-script, javaexec-script.
35636         (C#): Add csharpcomp-script, csharpexec-script.
35637         (Support for building libraries and executables): Add havelib,
35638         relocatable-*.
35639         (Support for maintaining and releasing projects): Renamed from
35640         'Support for maintaining and release projects'. Add announce-gen.
35641
35642 2007-03-31  Bruno Haible  <bruno@clisp.org>
35643
35644         * README: Talk primarily about git.
35645         (git and CVS): Renamed from CVS.
35646         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35647         gnulib is available through git.
35648         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35649
35650 2007-03-30  Bruno Haible  <bruno@clisp.org>
35651
35652         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35653         * lib/poll_.h: Likewise.
35654         * lib/stat_.h: Likewise.
35655         * lib/sys_time_.h: Likewise.
35656         * lib/sysexit_.h: Likewise.
35657         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35658         * lib/stdbool_.h: Likewise.
35659         * lib/byteswap_.h: Add double-inclusion guard.
35660
35661 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35662
35663         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35664
35665 2007-03-30  Karl Berry  <karl@gnu.org>
35666
35667         * config/srclist-update: double space after USA in the license
35668         substitution, since that's how it's usually (?) written.
35669
35670 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35671
35672         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35673         reported by Bruno Haible.
35674
35675 2007-03-29  Bruno Haible  <bruno@clisp.org>
35676
35677         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35678         a bug in AIX iconv().
35679
35680 2007-03-29  Bruno Haible  <bruno@clisp.org>
35681
35682         * modules/ldexpl-tests: New file.
35683         * tests/test-ldexpl.c: New file.
35684
35685 2007-03-29  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/ldexpl.c: Include fpucw.h.
35688         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
35689         multiplication.
35690         * modules/ldexpl (Depends-on): Add fpucw.
35691
35692 2007-03-29  Bruno Haible  <bruno@clisp.org>
35693
35694         * modules/ldexpl: New file.
35695         * m4/ldexpl.m4: New file.
35696         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
35697         set.
35698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
35699         REPLACE_LDEXPL.
35700         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
35701         REPLACE_LDEXPL.
35702         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35703         gl_FUNC_LDEXPL_WORKS.
35704         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
35705         * modules/mathl (Files): Remove lib/ldexpl.c.
35706         (Depends-on): Add ldexpl.
35707
35708 2007-03-29  Bruno Haible  <bruno@clisp.org>
35709
35710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
35711
35712 2007-03-29  Bruno Haible  <bruno@clisp.org>
35713
35714         * tests/test-striconveh.c (main): Don't assume that a direct conversion
35715         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
35716         and possibly also HP-UX.
35717         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35718         work on AIX, IRIX, HP-UX, OSF/1.
35719         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35720         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35721         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35722         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35723         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
35724         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35725
35726 2007-03-29  Bruno Haible  <bruno@clisp.org>
35727
35728         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
35729
35730 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35731
35732         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
35733         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
35734
35735 2007-03-29  Eric Blake  <ebb9@byu.net>
35736
35737         * lib/acl-internal.h: Remove redundant include.
35738         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
35739         Cygwin when a file is locked.
35740
35741 2007-03-29  Bruno Haible  <bruno@clisp.org>
35742
35743         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
35744         file.
35745         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
35746
35747 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35748
35749         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
35750         try to remove a parent directory if the child couldn't be removed
35751         (except for the first rmdir, which could fail because the child
35752         doesn't exist).  Problem reported by Jeff Blaine in
35753         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
35754
35755 2007-03-28  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/striconveh.c (utf8conv_carefully): New function.
35758         (mem_cd_iconveh_internal): Invoke it.
35759
35760 2007-03-28  Bruno Haible  <bruno@clisp.org>
35761
35762         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
35763         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
35764         input.
35765         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
35766         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
35767         unistr/u8-uctomb.
35768
35769 2007-03-28  Bruno Haible  <bruno@clisp.org>
35770
35771         * modules/unistr/u8-mbtoucr: New file.
35772         * lib/unistr/u8-mbtoucr.c: New file.
35773         * modules/unistr/u16-mbtoucr: New file.
35774         * lib/unistr/u16-mbtoucr.c: New file.
35775         * modules/unistr/u16-mbtoucr: New file.
35776         * lib/unistr/u16-mbtoucr.c: New file.
35777         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
35778
35779 2007-03-27  Simon Josefsson  <simon@josefsson.org>
35780             Bruno Haible  <bruno@clisp.org>
35781
35782         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
35783         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
35784         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
35785
35786         * m4/stdio_h.m4: Add stubs for vasprintf too.
35787
35788         * modules/stdio: Support vasprintf in sed command.
35789
35790         * modules/vasprintf: Depend on stdio for prototypes.  Remove
35791         vasprintf.h.  Add stdio module indicator.
35792
35793         * lib/stdio_.h: Declare asprintf and vasprintf, based on
35794         vasprintf.h.
35795
35796         * lib/vasprintf.h: File removed.
35797
35798         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
35799         * lib/vasprintf.c: Ditto.
35800         * lib/xvasprintf.c: Ditto.
35801         * tests/test-vasprintf-posix.c: Ditto.
35802         * tests/test-vasprintf.c: Ditto.
35803
35804 2007-03-27  Bruno Haible  <bruno@clisp.org>
35805
35806         Make vasnprintf multithread-safe.
35807         * lib/vasnprintf.c (decimal_point_char): New function.
35808         (VASNPRINTF): Use it.
35809         Suggested by Simon Josefsson.
35810
35811 2007-03-27  Eric Blake  <ebb9@byu.net>
35812
35813         Support sub-second birthtime on cygwin.
35814         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
35815         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
35816         (get_stat_birthtime): Also work with st_birthtim.
35817
35818 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
35819
35820         * lib/stat-time.h (USE_BIRTHTIME): Remove.
35821         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
35822         (get_stat_birthtime_ns): Do not try to use "spare" fields.
35823         (get_stat_birthtime_ns): Simplify compile-time tests.
35824         (get_stat_birthtime): Change the API to look like
35825         get_stat_mtime etc., except return a negative tv_nsec on error.
35826         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
35827         Don't check for "spare" fields.
35828         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
35829         or for struct stat.st_birthtime, as these tests aren't used.
35830         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
35831
35832 2007-03-27  Bruno Haible  <bruno@clisp.org>
35833
35834         * lib/stat-time.h: Include <sys/stat.h>.
35835
35836 2007-03-27  James Youngman  <jay@gnu.org>
35837
35838         * lib/stat-time.h (get_stat_birthtime): New function for
35839           retrieving st_birthtime as provided by UFS2 (hence *BSD).
35840         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
35841           and its variants.
35842         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
35843         * modules/stat-time-test: New file.
35844         * tests/test-stat-time.c: New test, devised by Bruno Haible.
35845
35846 2007-03-26  Bruno Haible  <bruno@clisp.org>
35847
35848         Better support of signalling NaNs.
35849         * lib/atanl.c: Include isnanl.h.
35850         (atanl): Perform test for NaN at the beginning of the function and
35851         through a call to isnanl.
35852         * lib/cosl.c: Include isnanl.h.
35853         (cosl): Perform test for NaN at the beginning of the function and
35854         through a call to isnanl.
35855         * lib/ldexpl.c: Include isnanl.h.
35856         (ldexpl): Perform test for NaN through a call to isnanl.
35857         * lib/logl.c: Include isnanl.h.
35858         (logl): Perform test for NaN at the beginning of the function and
35859         through a call to isnanl.
35860         * lib/sinl.c: Include isnanl.h.
35861         (sinl): Perform test for NaN at the beginning of the function and
35862         through a call to isnanl.
35863         * lib/sqrtl.c: Include isnanl.h.
35864         (sqrtl): Perform test for NaN at the beginning of the function and
35865         through a call to isnanl.
35866         * lib/tanl.c: Include isnanl.h.
35867         (tanl): Perform test for NaN at the beginning of the function and
35868         through a call to isnanl.
35869         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
35870         * modules/mathl (Depends-on): Add isnanl.
35871
35872 2007-03-26  Eric Blake  <ebb9@byu.net>
35873
35874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
35875         regression in logic sense of previous patch.
35876
35877 2007-03-26  Bruno Haible  <bruno@clisp.org>
35878
35879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
35880         unportable shell command "if ! ...".
35881         Reported by Ralf Wildenhues.
35882
35883 2007-03-25  Bruno Haible  <bruno@clisp.org>
35884
35885         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
35886         <sysexits.h> file, and only add EX_CONFIG.
35887         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
35888         absolute file name and whether it is sufficient. Substitute also
35889         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
35890         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
35891         ABSOLUTE_SYSEXITS_H into sysexits.h.
35892
35893 2007-03-25  Bruno Haible  <bruno@clisp.org>
35894
35895         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
35896         hints is NULL.
35897
35898 2007-03-25  Bruno Haible  <bruno@clisp.org>
35899
35900         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
35901         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
35902
35903 2007-03-25  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/vasnprintf.c: Include langinfo.h.
35906         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
35907         multithread-safe.
35908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
35909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
35910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35914         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35915         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
35916         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35917         Reported by Simon Josefsson.
35918
35919 2007-03-25  Bruno Haible  <bruno@clisp.org>
35920
35921         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
35922         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
35923         * modules/vasnprintf (Depends-on): Add stdint.
35924
35925 2007-03-25  Bruno Haible  <bruno@clisp.org>
35926
35927         * modules/fpieee: New file.
35928         * m4/fpieee.m4: New file.
35929         * modules/isnan-nolibm (Depends-on): Add fpieee.
35930         * modules/isnanl-nolibm (Depends-on): Add fpieee.
35931         * modules/isnanl (Depends-on): Add fpieee.
35932
35933 2007-03-25  Bruno Haible  <bruno@clisp.org>
35934
35935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
35936
35937 2007-03-25  Bruno Haible  <bruno@clisp.org>
35938
35939         Avoid test failures on IRIX 6.5.
35940         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
35941         (main): Use it.
35942         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
35943         macros.
35944         (main): Use them.
35945
35946 2007-03-25  Bruno Haible  <bruno@clisp.org>
35947
35948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
35949         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
35950         exists but doesn't work.
35951         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
35952         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
35953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
35954         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
35955
35956 2007-03-25  Bruno Haible  <bruno@clisp.org>
35957
35958         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
35959         returns inf. Needed on IRIX 6.5.
35960
35961 2007-03-25  Bruno Haible  <bruno@clisp.org>
35962
35963         * tests/test-frexpl.c: Include isnanl-nolibm.h.
35964         (main): Use isnanl instead of x != x idiom.
35965         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
35966
35967         * tests/test-frexp.c: Include isnan.h.
35968         (main): Use isnan instead of x != x idiom.
35969         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
35970
35971 2007-03-25  Bruno Haible  <bruno@clisp.org>
35972
35973         * tests/test-frexp.c (NaN): New function/macro.
35974         (main): Use it instead of 0.0 / 0.0.
35975         * tests/test-isnan.c (NaN): New function/macro.
35976         (main): Use it instead of 0.0 / 0.0.
35977         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
35978         (test_function): Use it instead of 0.0 / 0.0.
35979         * tests/test-vasprintf-posix.c (NaN): New function/macro.
35980         (test_function): Use it instead of 0.0 / 0.0.
35981         * tests/test-snprintf-posix.h (NaN): New function/macro.
35982         (test_function): Use it instead of 0.0 / 0.0.
35983         * tests/test-sprintf-posix.h (NaN): New function/macro.
35984         (test_function): Use it instead of 0.0 / 0.0.
35985         * tests/test-fprintf-posix.h (NaN): New function/macro.
35986         (test_function): Use it instead of 0.0 / 0.0.
35987         * tests/test-printf-posix.h (NaN): New function/macro.
35988         (test_function): Use it instead of 0.0 / 0.0.
35989
35990         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
35991
35992 2007-03-25  Bruno Haible  <bruno@clisp.org>
35993
35994         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
35995
35996 2007-03-25  Bruno Haible  <bruno@clisp.org>
35997
35998         * lib/regexec.c (merge_state_with_log): Make static.
35999
36000 2007-03-25  Bruno Haible  <bruno@clisp.org>
36001
36002         * lib/trigl.c (kernel_rem_pio2): Make static.
36003
36004 2007-03-25  Bruno Haible  <bruno@clisp.org>
36005
36006         * lib/sincosl.c (sincosl_table): Make static.
36007
36008 2007-03-25  Bruno Haible  <bruno@clisp.org>
36009
36010         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36011         if the compiler does not support C99.
36012
36013 2007-03-25  Bruno Haible  <bruno@clisp.org>
36014
36015         * modules/time (Makefile.am): Ensure all rule action lines start with a
36016         tab.
36017
36018 2007-03-24  Bruno Haible  <bruno@clisp.org>
36019
36020         * modules/tsearch-tests: New file.
36021         * tests/test-tsearch.sh: New file.
36022         * tests/test-tsearch.c: New file, mostly copied from glibc.
36023
36024         * modules/search-tests: New file.
36025         * tests/test-search.c: New file.
36026
36027         * modules/search: New file.
36028         * lib/search_.h: New file, incorporating lib/tsearch.h.
36029         * m4/search_h.m4: New file.
36030         * lib/tsearch.h: Remove file.
36031         * lib/tsearch.c: Include search.h instead of tsearch.h.
36032         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36033         HAVE_TSEARCH.
36034         * modules/tsearch (Files): Remove lib/tsearch.h.
36035         (Depends-on): Add search.
36036         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36037         (Include): Change tsearch.h into search.h.
36038
36039 2007-03-24  Bruno Haible  <bruno@clisp.org>
36040
36041         * modules/fpucw: New file.
36042         * lib/fpucw.h: New file.
36043         * lib/frexp.c: Include fpucw.h.
36044         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36045         (FUNC): Use them.
36046         * lib/printf-frexp.c: Include fpucw.h.
36047         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36048         (FUNC): Use them.
36049         * lib/vasnprintf.c: Include fpucw.h.
36050         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36051         'long double' calculations.
36052         * tests/test-frexpl.c: Include fpucw.h.
36053         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36054         * tests/test-printf-frexpl.c: Include fpucw.h.
36055         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36056         * modules/frexpl (Depends-on): Add fpucw.
36057         * modules/printf-frexpl (Depends-on): Likewise.
36058         * modules/fprintf-posix (Depends-on): Likewise.
36059         * modules/snprintf-posix (Depends-on): Likewise.
36060         * modules/sprintf-posix (Depends-on): Likewise.
36061         * modules/vasnprintf-posix (Depends-on): Likewise.
36062         * modules/vasprintf-posix (Depends-on): Likewise.
36063         * modules/vfprintf-posix (Depends-on): Likewise.
36064         * modules/vsnprintf-posix (Depends-on): Likewise.
36065         * modules/vsprintf-posix (Depends-on): Likewise.
36066         * modules/frexpl-tests (Depends-on): Likewise.
36067         * modules/printf-frexpl-tests (Depends-on): Likewise.
36068
36069 2007-03-24  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/float+.h: New file.
36072         * lib/isnan.c: Include float+.h.
36073         (SIZE): New macro.
36074         (FUNC): Compare only SIZE bytes of the value.
36075         * lib/vasnprintf.c: Include float+.h.
36076         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36077         SIZEOF_LDBL or SIZEOF_DBL bytes.
36078         * modules/isnan-nolibm (Files): Add lib/float+.h.
36079         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36080         * modules/isnanl (Files): Add lib/float+.h.
36081         * modules/vasnprintf (Files): Add lib/float+.h.
36082
36083 2007-03-24  Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36086         include isnanl-nolibm.h.
36087
36088 2007-03-24  Bruno Haible  <bruno@clisp.org>
36089
36090         * tests/test-read-file.c (main): Don't produce spurious output for
36091         expected situations. Make the test fail if it encountered unexpected
36092         results.
36093
36094 2007-03-24  Bruno Haible  <bruno@clisp.org>
36095
36096         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36097         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36098
36099 2007-03-24  Bruno Haible  <bruno@clisp.org>
36100
36101         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36102
36103 2007-03-24  Bruno Haible  <bruno@clisp.org>
36104
36105         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36106         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36107
36108         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36109         * modules/utf8-ucs4: Turn into a symbolic link to module
36110         unistr/u8-mbtouc.
36111
36112         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36113         utf8-ucs4-unsafe.
36114         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36115         unistr/u8-mbtouc-unsafe.
36116
36117         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36118         * modules/utf16-ucs4: Turn into a symbolic link to module
36119         unistr/u16-mbtouc.
36120
36121         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36122         utf16-ucs4-unsafe.
36123         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36124         unistr/u16-mbtouc-unsafe.
36125
36126         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36127         * modules/ucs4-utf8: Turn into a symbolic link to module
36128         unistr/u8-ubtomb.
36129
36130         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36131         * modules/ucs4-utf16: Turn into a symbolic link to module
36132         unistr/u16-ubtomb.
36133
36134 2007-03-24  Bruno Haible  <bruno@clisp.org>
36135
36136         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36137         Enable the function only if HAVE_INLINE.
36138         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36139         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36140         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36141         Enable the function only if HAVE_INLINE.
36142         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36143         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36144         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36145         Enable the function only if HAVE_INLINE.
36146         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36147         Enable the function only if HAVE_INLINE.
36148         * modules/utf8-ucs4: Update.
36149         * modules/utf8-ucs4-unsafe: Update.
36150         * modules/utf16-ucs4: Update.
36151         * modules/utf16-ucs4-unsafe: Update.
36152         * modules/ucs4-utf8: Update.
36153         * modules/ucs4-utf16: Update.
36154
36155 2007-03-24  Bruno Haible  <bruno@clisp.org>
36156
36157         * lib/utf8-ucs4.h: Remove file.
36158         * lib/utf8-ucs4-unsafe.h: Remove file.
36159         * lib/utf16-ucs4.h: Remove file.
36160         * lib/utf16-ucs4-unsafe.h: Remove file.
36161         * lib/ucs4-utf8.h: Remove file.
36162         * lib/ucs4-utf16.h: Remove file.
36163         * lib/unistr.h: Include their previous contents.
36164         * m4/utf-ucs4.m4: Remove file.
36165         * m4/ucs4-utf.m4: Remove file.
36166         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36167         (Depends-on): Add unistr/base.
36168         (configure.ac): Remove gl_UTF_UCS4.
36169         (Makefile.am): Update.
36170         (Include): Change to unistr.h.
36171         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36172         (Depends-on): Add unistr/base.
36173         (configure.ac): Remove gl_UTF_UCS4.
36174         (Makefile.am): Update.
36175         (Include): Change to unistr.h.
36176         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36177         (Depends-on): Add unistr/base.
36178         (configure.ac): Remove gl_UTF_UCS4.
36179         (Makefile.am): Update.
36180         (Include): Change to unistr.h.
36181         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36182         (Depends-on): Add unistr/base.
36183         (configure.ac): Remove gl_UTF_UCS4.
36184         (Makefile.am): Update.
36185         (Include): Change to unistr.h.
36186         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36187         (Depends-on): Add unistr/base.
36188         (configure.ac): Remove gl_UCS4_UTF.
36189         (Makefile.am): Update.
36190         (Include): Change to unistr.h.
36191         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36192         (Depends-on): Add unistr/base.
36193         (configure.ac): Remove gl_UCS4_UTF.
36194         (Makefile.am): Update.
36195         (Include): Change to unistr.h.
36196         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36197         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36198         utf8-ucs4-unsafe.h.
36199         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36200         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36201         utf16-ucs4-unsafe.h.
36202         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36203         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36204         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36205         * lib/unistr/u8-strchr.c: Likewise.
36206         * lib/unistr/u8-strrchr.c: Likewise.
36207         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36208         * lib/unistr/u16-strchr.c: Likewise.
36209         * lib/unistr/u16-strrchr.c: Likewise.
36210         * lib/striconveh.c: Update.
36211         * lib/linebreak.c: Update.
36212
36213 2007-03-24  Bruno Haible  <bruno@clisp.org>
36214
36215         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36216         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36217
36218 2007-03-22  Bruno Haible  <bruno@clisp.org>
36219
36220         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36221
36222 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36223
36224         * MODULES.html.sh (File system functions): New module write-any-file.
36225         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36226         * m4/write-any-file.m4: New files.
36227
36228 2007-03-23  Eric Blake  <ebb9@byu.net>
36229
36230         * gnulib-tool: Rearrange space-tab sequences, since some editors
36231         like to eat them.
36232
36233 2007-03-23  Eric Blake  <ebb9@byu.net>
36234
36235         * lib/version-etc.c (version_etc_va): Update license wording to
36236         be more concise.  Recommended by Richard Stallman.
36237
36238 2007-03-22  Bruno Haible  <bruno@clisp.org>
36239
36240         * lib/poll.c (MSG_PEEK): New fallback definition.
36241
36242 2007-03-22  Bruno Haible  <bruno@clisp.org>
36243
36244         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36245         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36246         (main): Update.
36247         Fixes a compilation error on BeOS.
36248
36249 2007-03-22  Bruno Haible  <bruno@clisp.org>
36250
36251         * modules/frexpl-tests: New file.
36252         * tests/test-frexpl.c: New file.
36253
36254         * modules/frexpl: New file.
36255         * m4/frexpl.m4: New file.
36256         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36257         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36259         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36260         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36261         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36262
36263 2007-03-22  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/frexpl.c: Share code with lib/frexp.c.
36266         * modules/mathl (Files): Add lib/frexp.c.
36267         (Depends-on): Add isnanl-nolibm.
36268
36269 2007-03-22  Bruno Haible  <bruno@clisp.org>
36270
36271         * modules/printf-frexp (Files): Add m4/frexp.m4.
36272         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36273         only if the found frexp function actually works.
36274
36275 2007-03-22  Bruno Haible  <bruno@clisp.org>
36276
36277         * lib/frexp.c: Remove older implementation that uses divisions.
36278
36279 2007-03-21  Bruno Haible  <bruno@clisp.org>
36280
36281         * modules/frexp-tests: New file.
36282         * tests/test-frexp.c: New file.
36283
36284         * modules/frexp: New file.
36285         * lib/frexp.c: New file.
36286         * m4/frexp.m4: New file.
36287         * lib/math_.h (frexp): New declaration.
36288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36289         REPLACE_FREXP.
36290         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36291
36292 2007-03-21  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/isnanl-tests: New file.
36295         * tests/test-isnanl.c: New file.
36296
36297         * modules/isnanl: New file.
36298         * lib/isnanl.h: New file.
36299         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36300         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36301         gl_FUNC_ISNANL_WORKS.
36302         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36303         New macros.
36304
36305 2007-03-21  Bruno Haible  <bruno@clisp.org>
36306
36307         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36308         lib/isnanl.h.
36309         (Include): Update.
36310         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36311         * lib/vasnprintf.c: Update.
36312         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36313         tests/test-isnanl.h, remove tests/test-isnanl.c.
36314         (Makefile.am): Update.
36315         * tests/test-isnanl-nolibm.c: New file.
36316         * tests/test-isnanl.h: New file.
36317         * tests/test-isnanl.c: Remove file.
36318
36319 2007-03-21  Jim Meyering  <jim@meyering.net>
36320
36321         When trying to open ".", treat ESTALE like EACCES.
36322         * lib/savewd.c (savewd_save): Resort to forking not just upon
36323         failure with EACCES, but also when errno is ESTALE.
36324
36325 2007-03-20  Bruno Haible  <bruno@clisp.org>
36326
36327         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36328         Needed on AIX 5.1. Reported by Matthew Woehlke.
36329
36330 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36331
36332         Suggestions by Bruno Haible:
36333         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36334         our own.
36335         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36336         * modules/acl (Depends-on): Add gettext.
36337
36338 2007-03-19  Bruno Haible  <bruno@clisp.org>
36339
36340         * modules/iconvme: Remove file.
36341         * lib/iconvme.h: Remove file.
36342         * lib/iconvme.c: Remove file.
36343         * m4/iconvme.m4: Remove file.
36344
36345 2007-03-19  Bruno Haible  <bruno@clisp.org>
36346
36347         * doc/relocatable-maint.texi: Break long shell script line.
36348         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36349
36350 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36351
36352         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36353         handle file_has_acl.
36354         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36355         * lib/acl.c: Move header inclusions and related macro defns into
36356         lib/acl-internal.h.
36357         (S_ISLNK): Remove defn, since that's now done for us.
36358         (file_has_acl): Move to lib/file-has-acl.c.
36359         Call acl_trivial if available.  This is the crucial part of the fix.
36360         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36361         shared within the library.  Rewrite a bit, partly to make it compatible
36362         with the GNU coding style.
36363         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36364         Remove unnecessary double-quotes.
36365         Don't test for acl_to_text; the build will catch that.
36366         Replace acl_entries if it doesn't exist and it is needed.
36367         Check for -lsec and acl_trivial (as used on Solaris 10).
36368         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36369         lib/file-has-acl.c.
36370         (Depends-on): Add sys_stat, for S_ISLNK.
36371
36372 2007-03-19  Ben Pfaff  <blp@gnu.org>
36373
36374         * doc/gnulib.texi: Fix typos.
36375         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36376
36377 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36378
36379         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36380         If size is zero here, buf must be zero.
36381
36382 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36383
36384         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36385         <bruno@clisp.org>.
36386
36387 2007-03-18  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36390         Suggested by Eric Blake.
36391
36392 2007-03-18  Ben Pfaff  <blp@gnu.org>
36393
36394         * doc/relocatable.texi: Recommend using as prefix a directory
36395         that does not exist and will never be created.  Based on
36396         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36397         and others.
36398
36399 2007-03-17  Bruno Haible  <bruno@clisp.org>
36400
36401         * lib/fchownat.c: Include lchown.h.
36402
36403 2007-03-17  Bruno Haible  <bruno@clisp.org>
36404
36405         Fix endless loop when the given allocated size was > INT_MAX.
36406         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36407         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36408         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36409         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36410         * lib/sprintf.c (sprintf): Likewise.
36411
36412 2007-03-17  Bruno Haible  <bruno@clisp.org>
36413
36414         * tests/test-argp-2.sh (func_compare): Output a context diff.
36415
36416 2007-03-17  Bruno Haible  <bruno@clisp.org>
36417
36418         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36419         locale's decimal-point character.
36420
36421 2007-03-17  Bruno Haible  <bruno@clisp.org>
36422
36423         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36424         before comparing it. Needed because on some platforms (e.g. x86) a
36425         'long double' occupies less bytes than sizeof (long double).
36426
36427 2007-03-17  Bruno Haible  <bruno@clisp.org>
36428
36429         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36430         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36431         * tests/test-getaddrinfo.c (simple): Likewise.
36432         * tests/test-read-file.c (main): Likewise.
36433
36434 2007-03-17  Bruno Haible  <bruno@clisp.org>
36435
36436         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36437
36438 2007-03-17  Bruno Haible  <bruno@clisp.org>
36439
36440         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36441         unused variable.
36442
36443 2007-03-17  Bruno Haible  <bruno@clisp.org>
36444
36445         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36446         * tests/test-c-strncasecmp.c: Likewise.
36447
36448 2007-03-17  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/stdlib (Depends-on): Add unistd.
36451         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36452         Needed for MacOS X 10.3.
36453
36454 2007-03-17  Bruno Haible  <bruno@clisp.org>
36455
36456         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36457
36458 2007-03-17  Bruno Haible  <bruno@clisp.org>
36459
36460         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36461
36462 2007-03-17  Bruno Haible  <bruno@clisp.org>
36463
36464         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36465         to reflect files copied from gnulib (with or without modifications).
36466         Suggested by Jim Meyering.
36467
36468 2007-03-17  Eric Blake  <ebb9@byu.net>
36469
36470         * NEWS: Document stdlib change from 2007-02-18.
36471
36472 2007-03-17  Jim Meyering  <jim@meyering.net>
36473
36474         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36475         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36476         someone uses a name containing shell meta-characters.
36477         Reported by Alfred M. Szmidt.
36478
36479         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36480
36481 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36482
36483         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36484         and copy gettext configuration files only if configure.ac contains
36485         a use of AM_GNU_GETTEXT_VERSION.
36486
36487 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36488
36489         * build-aux/bootstrap (gnulib_name): New variable.
36490         (gnulib_tool_options): Use it.
36491
36492 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36493
36494         * tests/test-des.c: Use new namespace.
36495
36496 2007-03-15  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36499         Reported by James Youngman <jay@gnu.org>.
36500
36501 2007-03-15  Bruno Haible  <bruno@clisp.org>
36502
36503         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36504         declared prototype. Needed with cc on OSF/1 5.1.
36505
36506 2007-03-15  Bruno Haible  <bruno@clisp.org>
36507
36508         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36509         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36510         (struct gl_list_implementation): Add dispose_fn argument to the
36511         'create_empty', 'create' methods.
36512         (struct gl_list_impl_base): Add field 'dispose_fn'.
36513         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36514         argument.
36515         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36516         dispose_fn argument.
36517         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36518         dispose_fn on the dropped values.
36519         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36520         dispose_fn argument.
36521         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36522         dropped values.
36523         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36524         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36525         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36526         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36527         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36528         argument.
36529         (gl_tree_list_free): Call dispose_fn on the dropped values.
36530         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36531         the dropped values.
36532         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36533         Add dispose_fn argument.
36534         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36535         Call dispose_fn on the dropped values.
36536         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36537         Add dispose_fn argument.
36538         (gl_sublist_create): Initialize the 'dispose_fn' field.
36539         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36540         * tests/test-array_list.c (main): Update.
36541         * tests/test-carray_list.c (main): Update.
36542         * tests/test-avltree_list.c (main): Update.
36543         * tests/test-rbtree_list.c (main): Update.
36544         * tests/test-avltreehash_list.c (main): Update.
36545         * tests/test-rbtreehash_list.c (main): Update.
36546         * tests/test-linked_list.c (main): Update.
36547         * tests/test-linkedhash_list.c (main): Update.
36548         * tests/test-array_oset.c (main): Update.
36549
36550 2007-03-15  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36553         (gl_oset_create_empty): Add dispose_fn argument.
36554         (struct gl_oset_implementation): Add dispose_fn argument to
36555         'create_empty' method.
36556         (struct gl_oset_impl_base): Add dispose_fn field.
36557         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36558         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36559         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36560         values.
36561         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36562         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36563         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36564         dropped value.
36565         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36566         dropped value.
36567         * tests/test-array_oset.c (main): Update.
36568         * tests/test-avltree_oset.c (main): Update.
36569         * tests/test-rbtree_oset.c (main): Update.
36570         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36571
36572 2007-03-13  Bruno Haible  <bruno@clisp.org>
36573
36574         * tests/test-stdbool.c (i): Update after last patch.
36575
36576 2007-03-12  Bruno Haible  <bruno@clisp.org>
36577
36578         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36579         the iswprint macro. Needed on Solaris 2.5.1.
36580
36581 2007-03-12  Bruno Haible  <bruno@clisp.org>
36582
36583         * tests/test-printf-frexp.c (main): Declare x as volatile.
36584
36585 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36586
36587         * doc/gnulib.texi (Build robot for gnulib): New section.
36588
36589 2007-03-12  Jim Meyering  <jim@meyering.net>
36590
36591         * build-aux/bootstrap: New file.
36592         * build-aux/bootstrap.conf: New file, from coreutils.
36593
36594 2007-03-11  Bruno Haible  <bruno@clisp.org>
36595
36596         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36597
36598 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36599
36600         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36601         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36602         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36603
36604 2007-03-11  Bruno Haible  <bruno@clisp.org>
36605
36606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36607         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36608
36609 2007-03-11  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36612         formula. Needed for SunPRO C 5.0.
36613
36614 2007-03-11  Bruno Haible  <bruno@clisp.org>
36615
36616         * modules/long-options (Depends-on): Add getopt.
36617
36618 2007-03-11  Bruno Haible  <bruno@clisp.org>
36619
36620         * modules/modechange (Depends-on): Add stdbool.
36621
36622 2007-03-11  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/i-ring (Depends-on): Add stdbool.
36625
36626 2007-03-11  Bruno Haible  <bruno@clisp.org>
36627
36628         * modules/gc-des (Depends-on): Add stdbool.
36629
36630 2007-03-11  Bruno Haible  <bruno@clisp.org>
36631
36632         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36633
36634 2007-03-11  Bruno Haible  <bruno@clisp.org>
36635
36636         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36637
36638 2007-03-11  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36641
36642 2007-03-11  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/vasnprintf.c (sprintf): Undefine.
36645
36646 2007-03-11  Bruno Haible  <bruno@clisp.org>
36647
36648         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36649         initializers in SunPRO C and Compaq C compilers.
36650
36651 2007-03-11  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36654         decrementing code ANSI C compliant.
36655
36656 2007-03-11  Bruno Haible  <bruno@clisp.org>
36657
36658         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36659         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36660
36661 2007-03-11  Bruno Haible  <bruno@clisp.org>
36662
36663         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36664         <stdbool.h> substitute doesn't pass.
36665
36666 2007-03-11  Bruno Haible  <bruno@clisp.org>
36667
36668         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36669
36670 2007-03-11  Bruno Haible  <bruno@clisp.org>
36671
36672         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36673         script, for submission to autobuild.josefsson.org.
36674
36675 2007-03-10  Bruno Haible  <bruno@clisp.org>
36676
36677         * modules/canonicalize-lgpl-tests: New file.
36678         * tests/test-canonicalize-lgpl.sh: New file.
36679         * tests/test-canonicalize-lgpl.c: New file.
36680
36681         * modules/c-strcase-tests: New file.
36682         * tests/test-c-strcase.sh: New file.
36683         * tests/test-c-strcasecmp.c: New file.
36684         * tests/test-c-strncasecmp.c: New file.
36685
36686         * modules/atexit-tests: New file.
36687         * tests/test-atexit.sh: New file.
36688         * tests/test-atexit.c: New file.
36689
36690 2007-03-10  Bruno Haible  <bruno@clisp.org>
36691
36692         * tests/test-binary-io.sh: Use temporary filenames that are not so
36693         likely to clash with those of other tests (in a parallel make).
36694         * tests/test-binary-io.c: Likewise.
36695
36696 2007-03-10  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
36699         fallback; use #error instead.
36700         Suggested by Simon Josefsson.
36701
36702 2007-03-10  Bruno Haible  <bruno@clisp.org>
36703
36704         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
36705         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
36706         first and the last.
36707
36708 2007-03-10  Bruno Haible  <bruno@clisp.org>
36709
36710         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
36711
36712 2007-03-10  Bruno Haible  <bruno@clisp.org>
36713
36714         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
36715         "make distcheck".
36716         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
36717         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
36718         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
36719
36720 2007-03-10  Bruno Haible  <bruno@clisp.org>
36721
36722         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
36723         variable.
36724         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
36725         variable.
36726
36727 2007-03-09  Eric Blake  <ebb9@byu.net>
36728         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
36729
36730         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
36731         types are not being provided by gnulib.
36732         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
36733         types are supported.
36734
36735 2007-03-10  Bruno Haible  <bruno@clisp.org>
36736
36737         * lib/stdio_.h (__attribute__): New macro.
36738         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
36739         vsprintf): Specify __attribute__ __format__ for GCC.
36740         Suggested by Eric Blake.
36741
36742 2007-03-09  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/printf-posix-tests: New file.
36745         * tests/test-printf-posix.sh: New file.
36746         * tests/test-printf-posix.c: New file.
36747
36748         * modules/printf-posix: New file.
36749         * lib/printf.c: New file.
36750         * m4/printf-posix-rpl.m4: New file.
36751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
36752         REPLACE_PRINTF.
36753         * lib/stdio_.h (printf): New declaration.
36754         (format, __format__, ____printf____, ____scanf____, ____strftime____,
36755         ____strfmon____): New macros.
36756         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
36757         REPLACE_PRINTF.
36758
36759 2007-03-09  Bruno Haible  <bruno@clisp.org>
36760
36761         * tests/test-vasnprintf-posix2.sh: New file.
36762         * tests/test-vasnprintf-posix2.c: New file.
36763         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
36764         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
36765         (Makefile.am): Activate test-vasnprintf-posix2.sh.
36766
36767         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
36768         a locale dependent decimal point, rather than always '.'.
36769
36770 2007-03-09  Eric Blake  <ebb9@byu.net>
36771
36772         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
36773         spite of platforms like Tandem/NSK that define it to -1.
36774
36775 2007-03-08  Bruno Haible  <bruno@clisp.org>
36776
36777         * modules/vprintf-posix-tests: New file.
36778         * tests/test-vprintf-posix.sh: New file.
36779         * tests/test-vprintf-posix.c: New file.
36780         * tests/test-printf-posix.h: New file.
36781
36782         * modules/vprintf-posix: New file.
36783         * lib/vprintf.c: New file.
36784         * m4/vprintf-posix.m4: New file.
36785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
36786         REPLACE_VPRINTF.
36787         * lib/stdio_.h (vprintf): New declaration.
36788         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
36789         REPLACE_VPRINTF.
36790
36791 2007-03-08  Bruno Haible  <bruno@clisp.org>
36792
36793         * modules/fprintf-posix-tests: New file.
36794         * tests/test-fprintf-posix.sh: New file.
36795         * tests/test-fprintf-posix.c: New file.
36796
36797         * modules/fprintf-posix: New file.
36798         * lib/fprintf.c: New file.
36799         * m4/fprintf-posix.m4: New file.
36800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
36801         REPLACE_FPRINTF.
36802         * lib/stdio_.h (fprintf): New declaration.
36803         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
36804         REPLACE_FPRINTF.
36805
36806 2007-03-08  Bruno Haible  <bruno@clisp.org>
36807
36808         * modules/vfprintf-posix-tests: New file.
36809         * tests/test-vfprintf-posix.sh: New file.
36810         * tests/test-vfprintf-posix.c: New file.
36811         * tests/test-fprintf-posix.h: New file.
36812         * tests/test-fprintf-posix.out: New file.
36813
36814         * modules/vfprintf-posix: New file.
36815         * lib/vfprintf.c: New file.
36816         * m4/vfprintf-posix.m4: New file.
36817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
36818         REPLACE_VFPRINTF.
36819         * lib/stdio_.h (vfprintf): New declaration.
36820         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
36821         REPLACE_VFPRINTF.
36822
36823 2007-03-08  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
36826
36827 2007-03-08  Bruno Haible  <bruno@clisp.org>
36828
36829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
36830         instead of 'expr' invocations.
36831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36832         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36833         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36835         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36836         Suggested by Paul Eggert.
36837
36838 2007-03-08  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/fseterr-tests: New file.
36841         * tests/test-fseterr.c: New file.
36842
36843         * modules/fseterr: New file.
36844         * lib/fseterr.h: New file.
36845         * lib/fseterr.c: New file.
36846
36847 2007-03-08  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
36850         * lib/getopt_.h: Likewise.
36851         * lib/mbswidth.h: Likewise.
36852         * lib/setenv.h: Likewise.
36853         * lib/vasnprintf.h: Likewise.
36854         * lib/vasprintf.h: Likewise.
36855         * lib/verror.h: Likewise.
36856         * lib/xsetenv.h: Likewise.
36857         * lib/xvasprintf.h: Likewise.
36858
36859 2007-03-08  Jim Meyering  <jim@meyering.net>
36860
36861         * users.txt: Add parted.
36862
36863         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
36864
36865 2007-03-07  Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/printf.m4: Make the shell script snippets copy&pastable.
36868
36869 2007-03-02  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/netinet_in_.h: New file.
36872         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
36873         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
36874         * modules/netinet_in (Files): Add lib/netinet_in_.h.
36875         (Depends-on): Add absolute-header.
36876         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
36877         into netinet/in.h.
36878
36879 2007-03-03  Bruno Haible  <bruno@clisp.org>
36880
36881         * lib/sys_select_.h: New file.
36882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
36883         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
36884         * modules/sys_select (Files): Add lib/sys_select_.h.
36885         (Depends-on): Add absolute-header.
36886         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
36887         into sys/select.h.
36888
36889 2007-03-02  Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
36892         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
36893         values.
36894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
36895         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
36896         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
36897         * modules/sys_socket (Depends-on): Add absolute-header.
36898         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
36899         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
36900         (Include): Remove requirement of inclusion of <sys/types.h>.
36901
36902 2007-03-02  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/byteswap_.h (bswap_32): Fix formula.
36905
36906 2007-03-06  Bruno Haible  <bruno@clisp.org>
36907
36908         * modules/sprintf-posix-tests: New file.
36909         * tests/test-sprintf-posix.c: New file.
36910
36911         * modules/sprintf-posix: New file.
36912         * lib/sprintf.c: New file.
36913         * m4/sprintf-posix.m4: New file.
36914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
36915         REPLACE_SPRINTF.
36916         * lib/stdio_.h (sprintf): New declaration.
36917         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
36918         REPLACE_SPRINTF.
36919
36920 2007-03-06  Bruno Haible  <bruno@clisp.org>
36921
36922         * modules/vsprintf-posix-tests: New file.
36923         * tests/test-vsprintf-posix.c: New file.
36924         * tests/test-sprintf-posix.h: New file.
36925
36926         * modules/vsprintf-posix: New file.
36927         * lib/vsprintf.c: New file.
36928         * m4/vsprintf-posix.m4: New file.
36929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
36930         REPLACE_VSPRINTF.
36931         * lib/stdio_.h (vsprintf): New declaration.
36932         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
36933         REPLACE_VSPRINTF.
36934
36935 2007-03-06  Bruno Haible  <bruno@clisp.org>
36936
36937         * modules/vsnprintf (Depend-on): Remove minmax.
36938
36939 2007-03-06  Bruno Haible  <bruno@clisp.org>
36940
36941         * modules/snprintf-posix-tests: New file.
36942         * tests/test-snprintf-posix.c: New file.
36943
36944         * modules/snprintf-posix: New file.
36945         * m4/snprintf-posix.m4: New file.
36946         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
36947         gl_FUNC_SNPRINTF.
36948         (gl_FUNC_SNPRINTF): Invoke it.
36949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
36950         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
36951         is set.
36952         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
36953
36954 2007-03-06  Bruno Haible  <bruno@clisp.org>
36955
36956         * modules/vsnprintf-posix-tests: New file.
36957         * tests/test-vsnprintf-posix.c: New file.
36958         * tests/test-snprintf-posix.h: New file.
36959
36960         * modules/vsnprintf-posix: New file.
36961         * m4/vsnprintf-posix.m4: New file.
36962         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
36963         gl_FUNC_VSNPRINTF.
36964         (gl_FUNC_VSNPRINTF): Invoke it.
36965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
36966         * lib/stdio_.h (vsnprintf): Define as a replacement if
36967         REPLACE_VSNPRINTF is set.
36968         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
36969
36970 2007-03-06  Bruno Haible  <bruno@clisp.org>
36971
36972         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
36973         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
36974
36975 2007-03-06  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
36978         (asinl): Declare also if HAVE_DECL_ASINL is set.
36979         (atanl): Declare also if HAVE_DECL_ATANL is set.
36980         (ceill): Declare also if HAVE_DECL_CEILL is set.
36981         (cosl): Declare also if HAVE_DECL_COSL is set.
36982         (expl): Declare also if HAVE_DECL_EXPL is set.
36983         (floorl): Declare also if HAVE_DECL_FLOORL is set.
36984         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
36985         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
36986         (logl): Declare also if HAVE_DECL_LOGL is set.
36987         (sinl): Declare also if HAVE_DECL_SINL is set.
36988         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
36989         (tanl): Declare also if HAVE_DECL_TANL is set.
36990         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
36991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
36992         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
36993         declaration of frexpl, ldexpl.
36994         * modules/printf-frexpl (Depends-on): Add math.
36995         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
36996
36997 2007-03-05  Bruno Haible  <bruno@clisp.org>
36998
36999         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37000         frexpl and ldexpl are declared.
37001         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37002
37003 2007-03-05  Bruno Haible  <bruno@clisp.org>
37004
37005         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37006         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37007
37008 2007-03-05  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/stdio_.h: Include <stddef.h>.
37011
37012 2007-03-05  Bruno Haible  <bruno@clisp.org>
37013
37014         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37015
37016 2007-03-05  Bruno Haible  <bruno@clisp.org>
37017
37018         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37019         NetBSD 4, from Ralf Wildenhues.
37020
37021 2007-03-04  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/vasprintf.h: Update #if logic for the case when the functions
37024         exist but are overridden.
37025
37026 2007-03-04  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37029         implementations: glibc-2.4 and MacOS X 10.3.
37030         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37031         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37032         * tests/test-vasprintf-posix.c (test_function): Likewise.
37033
37034 2007-03-04  Bruno Haible  <bruno@clisp.org>
37035
37036         * modules/vasprintf-posix-tests: New file.
37037         * tests/test-vasprintf-posix.c: New file.
37038
37039         * modules/vasprintf-posix: New file.
37040         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37041         defined.
37042         * m4/vasprintf-posix.m4: New file.
37043         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37044         gl_FUNC_VASPRINTF.
37045         (gl_FUNC_VASPRINTF): Invoke it.
37046         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37047         here.
37048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37049
37050 2007-03-04  Bruno Haible  <bruno@clisp.org>
37051
37052         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37053         REPLACE_GETTIMEOFDAY.
37054         * modules/sys_time (Makefile.am): Likewise.
37055         * m4/sys_time_h.m4: Likewise.
37056         * m4/gettimeofday.m4: Likewise.
37057
37058 2007-03-04  Bruno Haible  <bruno@clisp.org>
37059
37060         * modules/vasnprintf-posix-tests: New file.
37061         * tests/test-vasnprintf-posix.c: New file.
37062
37063         * modules/vasnprintf-posix: New file.
37064         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37065         printf-frexpl.h.
37066         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37067         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37068         REPLACE_VASNPRINTF is defined.
37069         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37070         gl_FUNC_VASNPRINTF.
37071         (gl_FUNC_VASNPRINTF): Invoke it.
37072         * m4/vasnprintf-posix.m4: New file.
37073         * m4/printf.m4: New file.
37074
37075 2007-03-04  Bruno Haible  <bruno@clisp.org>
37076
37077         Compile progreloc.c only if --enable-relocatable is specified.
37078         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37079         if --enable-relocatable was specified.
37080         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37081         lib_SOURCES.
37082
37083 2007-03-04  Jim Meyering  <jim@meyering.net>
37084
37085         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37086         Use it consistently, rather than enumerating errno constants.
37087
37088 2007-03-04  Bruno Haible  <bruno@clisp.org>
37089
37090         * modules/xvasprintf-tests: New file.
37091         * tests/test-xvasprintf.c: New file.
37092
37093         * modules/vasprintf-tests: New file.
37094         * tests/test-vasprintf.c: New file.
37095
37096         * modules/vasnprintf-tests: New file.
37097         * tests/test-vasnprintf.c: New file.
37098
37099         * modules/vsnprintf-tests: New file.
37100         * tests/test-vsnprintf.c: New file.
37101
37102         * modules/snprintf-tests: New file.
37103         * tests/test-snprintf.c: New file.
37104
37105 2007-03-04  Bruno Haible  <bruno@clisp.org>
37106
37107         Compile relocatable.c only if --enable-relocatable is specified.
37108         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37109         gl_RELOCATABLE_LIBRARY.
37110         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37111         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37112         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37113         gl_RELOCATABLE_LIBRARY.
37114         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37115         (Makefile.am): Remove lib_SOURCES.
37116         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37117         gl_RELOCATABLE_LIBRARY.
37118         (Makefile.am): Remove lib_SOURCES.
37119         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37120         always.
37121         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37122         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37123
37124 2007-03-04  Bruno Haible  <bruno@clisp.org>
37125
37126         * modules/argmatch-tests: New file.
37127         * tests/test-argmatch.c: New file.
37128
37129         * tests/test-allocsa.c (main): Halve the number of loop runs.
37130
37131         * modules/alloca-opt-tests: New file.
37132         * tests/test-alloca-opt.c: New file.
37133
37134 2007-03-04  Jim Meyering  <jim@meyering.net>
37135
37136         Work around difference between Linux ACLs and Solaris 10 ZFS.
37137         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37138         for EINVAL.
37139
37140 2007-03-03  Bruno Haible  <bruno@clisp.org>
37141
37142         * modules/relocatable-prog (Depends-on): Add back progreloc's
37143         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37144
37145 2007-03-03  Bruno Haible  <bruno@clisp.org>
37146
37147         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37148         * modules/relocatable-lib: New file.
37149
37150 2007-03-03  Bruno Haible  <bruno@clisp.org>
37151
37152         * modules/relocatable-prog: Renamed from modules/relocatable.
37153         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37154
37155 2007-03-03  Bruno Haible  <bruno@clisp.org>
37156
37157         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37158         m4/relocatable-lib.m4.
37159         (Depends-on): Remove 'relocatable'.
37160         (configure.ac): Add gl_RELOCATABLE_NOP.
37161
37162 2007-03-03  Bruno Haible  <bruno@clisp.org>
37163
37164         * modules/relocatable-prog-wrapper: New file.
37165         * modules/relocatable (Depends-on): Add it. Remove all other
37166         dependencies except progname.
37167         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37168
37169         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37170         (gl_FUNC_STRERROR): Nop.
37171         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37172
37173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37174         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37175
37176         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37177         (gl_FUNC_READLINK): Update.
37178
37179         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37180
37181 2007-03-03  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37184         * modules/xreadlink (Depends-on): Add unistd.
37185         * modules/xreadlink-with-size (Depends-on): Likewise.
37186
37187 2007-03-03  Bruno Haible  <bruno@clisp.org>
37188
37189         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37190         extracted from gt_FUNC_SETENV.
37191         (gt_FUNC_SETENV): Remove macro.
37192         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37193         remove gt_FUNC_SETENV.
37194
37195 2007-03-03  Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37198         ENABLE_RELOCATABLE here.
37199         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37200
37201 2007-03-03  Bruno Haible  <bruno@clisp.org>
37202
37203         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37204         * tests/test-rbtreehash_list.c: Include progname.h.
37205         (main): Call set_program_name.
37206
37207         * modules/rbtree-oset-tests (Depends-on): Add progname.
37208         * tests/test-rbtree_oset.c: Include progname.h.
37209         (main): Call set_program_name.
37210
37211         * modules/rbtree-list-tests (Depends-on): Add progname.
37212         * tests/test-rbtree_list.c: Include progname.h.
37213         (main): Call set_program_name.
37214
37215         * modules/linked-list-tests (Depends-on): Add progname.
37216         * tests/test-linked_list.c: Include progname.h.
37217         (main): Call set_program_name.
37218
37219 2007-03-03  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37222         All uses of __restrict changed to _Restrict_.
37223         * lib/glob_.h (__restrict): Remove macro.
37224
37225 2007-03-02  Bruno Haible  <bruno@clisp.org>
37226
37227         * modules/gettext (configure.ac): Require gettext infrastructure
37228         from version 0.16.1.
37229
37230 2007-03-02  Bruno Haible  <bruno@clisp.org>
37231
37232         * modules/linkedhash-list-tests (Depends-on): Add progname.
37233         * tests/test-linkedhash_list.c: Include progname.h.
37234         (main): Call set_program_name.
37235
37236         * modules/carray-list-tests (Depends-on): Add progname.
37237         * tests/test-carray_list.c: Include progname.h.
37238         (main): Call set_program_name.
37239
37240         * modules/avltreehash-list-tests (Depends-on): Add progname.
37241         * tests/test-avltreehash_list.c: Include progname.h.
37242         (main): Call set_program_name.
37243
37244         * modules/avltree-oset-tests (Depends-on): Add progname.
37245         * tests/test-avltree_oset.c: Include progname.h.
37246         (main): Call set_program_name.
37247
37248         * modules/avltree-list-tests (Depends-on): Add progname.
37249         * tests/test-avltree_list.c: Include progname.h.
37250         (main): Call set_program_name.
37251
37252         * modules/array-oset-tests (Depends-on): Add progname.
37253         * tests/test-array_oset.c: Include progname.h.
37254         (main): Call set_program_name.
37255
37256         * modules/array-list-tests (Depends-on): Add progname.
37257         * tests/test-array_list.c: Include progname.h.
37258         (main): Call set_program_name.
37259
37260         * modules/argp-tests (Depends-on): Add progname.
37261         * tests/test-argp.c: Include argp.h first. Include progname.h.
37262         (main): Call set_program_name.
37263
37264 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         * doc/gnulib-tool.texi (Initial import): Reword description of
37267         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37268         limited effect even if defined after the first system include.
37269
37270 2007-03-01  Bruno Haible  <bruno@clisp.org>
37271
37272         * build-aux/config.libpath: Update to libtool-1.5.22.
37273         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37274
37275 2007-03-01  Bruno Haible  <bruno@clisp.org>
37276
37277         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37278         foo_CFLAGS.
37279         Reported by Ralf Wildenhues.
37280
37281 2007-03-01  Bruno Haible  <bruno@clisp.org>
37282
37283         * build-aux/install-reloc: Remove object files left over by some
37284         compilers.
37285         Reported by Ralf Wildenhues.
37286
37287 2007-03-01  Bruno Haible  <bruno@clisp.org>
37288
37289         * build-aux/install-reloc: Break long lines.
37290
37291 2007-03-01  Bruno Haible  <bruno@clisp.org>
37292
37293         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37294         Reported by Ralf Wildenhues.
37295
37296 2007-03-01  Bruno Haible  <bruno@clisp.org>
37297
37298         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37299         include ordering constraints.
37300
37301 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37302
37303         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37305         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37306         as another example.
37307         * lib/time_.h: Fix misspelling.
37308         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37309         Require gl_HEADER_TIME_H_DEFAULTS.
37310         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37311         * m4/time_r.m4 (gl_TIME_R): Likewise.
37312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37313
37314 2007-03-01  Bruno Haible  <bruno@clisp.org>
37315
37316         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37317         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37318
37319 2007-03-01  Jim Meyering  <jim@meyering.net>
37320
37321         * modules/xreadlink (Maintainer): Add my name.
37322         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37323
37324 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37325             Bruno Haible  <bruno@clisp.org>
37326
37327         * build-aux/install-reloc: Compile also c-ctype.c.
37328         * build-aux/relocatable.sh.in: New file.
37329         * doc/relocatable.texi: New file.
37330         * doc/relocatable-maint.texi: New file.
37331         * doc/gnulib.texi: Include relocatable-maint.texi.
37332         * lib/progreloc.c: Include unistd.h unconditionally.
37333         * lib/relocwrapper.c: Include unistd.h unconditionally.
37334         Include c-ctype.h.
37335         (add_dotbin): Use c_tolower.
37336         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37337         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37338         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37339         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37340         to m4/relocatable-lib.m4.
37341         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37342         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37343         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37344         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37345         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37346         * modules/relocatable: New file.
37347         * modules/relocatable-lib: New file.
37348         * modules/relocatable-script: New file.
37349
37350 2007-02-28  Bruno Haible  <bruno@clisp.org>
37351
37352         Import --enable-relocatable infrastructure.
37353         * build-aux/config.libpath: New file, from GNU gettext.
37354         * build-aux/install-reloc: New file, from GNU gettext.
37355         * build-aux/reloc-ldflags: New file, from GNU gettext.
37356         * lib/relocatable.h: New file, from GNU gettext.
37357         * lib/relocatable.c: New file, from GNU gettext.
37358         * lib/relocwrapper.c: New file, from GNU gettext.
37359         * m4/relocatable.m4: New file, from GNU gettext.
37360
37361 2007-02-28  Bruno Haible  <bruno@clisp.org>
37362
37363         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37364
37365         * modules/xreadlink: New file, from GNU gettext with modifications.
37366         * lib/xreadlink.c: New file, from GNU gettext.
37367         * lib/xreadlink.h: Add comments.
37368         (xreadlink): New declaration.
37369
37370         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37371         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37372         lib/xreadlink-with-size.c.
37373         (configure.ac): Remove gl_XREADLINK invocation.
37374         (Makefile.am): Augment lib_SOURCES.
37375         * m4/xreadlink.m4: Remove file.
37376         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37377         (xreadlink_with_size): Renamed from xreadink.
37378         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37379         * modules/canonicalize (Depends-on): Replace xreadlink with
37380         xreadlink-with-size.
37381         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37382
37383 2007-02-25  Jim Meyering  <jim@meyering.net>
37384
37385         * build-aux/announce-gen: When complaining about excess arguments,
37386         list them.
37387
37388 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37389
37390         * README: Document signed integer overflow situation more
37391         accurately.
37392
37393 2007-02-25  Bruno Haible  <bruno@clisp.org>
37394
37395         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37396         'a' or 'A' conversion.
37397
37398 2007-02-25  Bruno Haible  <bruno@clisp.org>
37399
37400         * modules/filename: Renamed from modules/pathname.
37401         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37402         lib/concatpath.c with lib/concat-filename.c.
37403         (Makefile.am): Update.
37404         (Include): Replace pathname.h with filename.h.
37405         * lib/filename.h: Renamed from lib/pathname.h.
37406         (concatenated_filename): Renamed from concatenated_pathname.
37407         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37408         (concatenated_filename): Renamed from concatenated_pathname.
37409         * lib/findprog.c: Include filename.h instead of pathname.h.
37410         (find_in_path): Update.
37411         * lib/javacomp.c: Include filename.h instead of pathname.h.
37412         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37413         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37414         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37415         is_oldgcj_14_13_usable, is_javac_usable): Update.
37416         * lib/javaexec.c: Include filename.h instead of pathname.h.
37417         (execute_java_class): Update.
37418         * modules/findprog: Update.
37419         * modules/javacomp: Update.
37420         * modules/javaexec: Update.
37421         * MODULES.html.sh (File system functions): Add 'filename', remove
37422         'pathname'.
37423
37424 2007-02-25  Bruno Haible  <bruno@clisp.org>
37425
37426         * modules/printf-frexpl-tests: New file.
37427         * tests/test-printf-frexpl.c: New file.
37428
37429         * modules/printf-frexpl: New file.
37430         * lib/printf-frexpl.h: New file.
37431         * lib/printf-frexpl.c: New file.
37432         * m4/printf-frexpl.m4: New file.
37433
37434 2007-02-25  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/printf-frexp-tests: New file.
37437         * tests/test-printf-frexp.c: New file.
37438
37439         * modules/printf-frexp: New file.
37440         * lib/printf-frexp.h: New file.
37441         * lib/printf-frexp.c: New file.
37442         * m4/printf-frexp.m4: New file.
37443
37444 2007-02-25  Bruno Haible  <bruno@clisp.org>
37445
37446         Assume automake >= 1.10 for the tests.
37447         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37448         * modules/arctwo-tests: Likewise.
37449         * modules/argp-tests: Likewise.
37450         * modules/avltree-list-tests: Likewise.
37451         * modules/avltree-oset-tests: Likewise.
37452         * modules/avltreehash-list-tests: Likewise.
37453         * modules/carray-list-tests: Likewise.
37454         * modules/crc-tests: Likewise.
37455         * modules/des-tests: Likewise.
37456         * modules/gc-arcfour-tests: Likewise.
37457         * modules/gc-arctwo-tests: Likewise.
37458         * modules/gc-des-tests: Likewise.
37459         * modules/gc-hmac-md5-tests: Likewise.
37460         * modules/gc-hmac-sha1-tests: Likewise.
37461         * modules/gc-md2-tests: Likewise.
37462         * modules/gc-md4-tests: Likewise.
37463         * modules/gc-md5-tests: Likewise.
37464         * modules/gc-pbkdf2-sha1-tests: Likewise.
37465         * modules/gc-rijndael-tests: Likewise.
37466         * modules/gc-sha1-tests: Likewise.
37467         * modules/gc-tests: Likewise.
37468         * modules/getaddrinfo-tests: Likewise.
37469         * modules/hmac-md5-tests: Likewise.
37470         * modules/hmac-sha1-tests: Likewise.
37471         * modules/linked-list-tests: Likewise.
37472         * modules/linkedhash-list-tests: Likewise.
37473         * modules/lock-tests: Likewise.
37474         * modules/md2-tests: Likewise.
37475         * modules/md4-tests: Likewise.
37476         * modules/md5-tests: Likewise.
37477         * modules/rbtree-list-tests: Likewise.
37478         * modules/rbtree-oset-tests: Likewise.
37479         * modules/rbtreehash-list-tests: Likewise.
37480         * modules/read-file-tests: Likewise.
37481         * modules/rijndael-tests: Likewise.
37482         * modules/stdint-tests: Likewise.
37483         * modules/tls-tests: Likewise.
37484
37485 2007-02-24  Bruno Haible  <bruno@clisp.org>
37486
37487         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37488         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37489         function; instead check whether isnan with a double argument links.
37490         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37491         function; instead check whether isnan with a 'long double' argument
37492         links.
37493         Reported by Eric Blake <ebb9@byu.net>.
37494
37495 2007-02-24  Bruno Haible  <bruno@clisp.org>
37496
37497         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37498         defined.
37499         * lib/isnanl.c: Remove all code. Just include isnan.c.
37500         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37501
37502 2007-02-25  Jim Meyering  <jim@meyering.net>
37503
37504         Avoid conflicting types for 'unsetenv' on FreeBSD.
37505         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37506         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37507         in stdlib.h.
37508
37509 2007-02-24  Bruno Haible  <bruno@clisp.org>
37510
37511         * modules/isnanl-nolibm-tests: New file.
37512         * tests/test-isnanl.c: New file.
37513
37514         * modules/isnanl-nolibm: New file.
37515         * lib/isnanl.h: New file.
37516         * lib/isnanl.c: New file.
37517         * m4/isnanl.m4: New file.
37518
37519 2007-02-24  Bruno Haible  <bruno@clisp.org>
37520
37521         * modules/isnan-nolibm-tests: New file.
37522         * tests/test-isnan.c: New file.
37523
37524         * modules/isnan-nolibm: New file.
37525         * lib/isnan.h: New file.
37526         * lib/isnan.c: New file.
37527         * m4/isnan.m4: New file.
37528
37529 2007-02-24  Bruno Haible  <bruno@clisp.org>
37530
37531         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37532         assume that an exponent fits in 20 bits.
37533
37534 2007-02-24  Jim Meyering  <jim@meyering.net>
37535
37536         * m4/regex.m4: Update the description of the configure-time option,
37537         --without-included-regex, to state accurately what the defaults are,
37538         and perhaps to give people an idea why using this option is risky.
37539
37540 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37541
37542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37543         loops on small arguments.  This attempts to avoid the problem
37544         Bruno Haible reported for AIX 4.3.2 in
37545         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37546
37547 2007-02-23  Bruno Haible  <bruno@clisp.org>
37548
37549         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37550         Needed for help2man.
37551
37552 2007-02-23  Karl Berry  <karl@gnu.org>
37553
37554         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37555         exists, foo.h should be cvs-ignored, not committed.
37556
37557 2007-02-23  Eric Blake  <ebb9@byu.net>
37558
37559         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37560         * lib/stat-time.h (includes): Likewise.
37561         * lib/utimecmp.c (includes): Likewise.
37562         * lib/utimens.h (includes): Likewise.
37563         * lib/getdate.y (includes): Also include "timespec.h" for use
37564         internal to the module.
37565         * modules/utimens (Depends-on): Revert yesterday's patch.
37566         * modules/nanosleep (Depends-on): Add missing dependency.
37567
37568 2007-02-22  Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/glob.c: Don't include getlogin_r.h.
37571
37572 2007-02-22  Jim Meyering  <jim@meyering.net>
37573
37574         * modules/utimens (Depends-on): Add timespec, required for
37575         utimens.h's inclusion of timespec.h.
37576
37577 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37578
37579         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37580         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37581         Schwab in
37582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37583         I'll try to think of a better way to fix the Solaris problem.
37584
37585         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37586         like glibc; on Solaris 10, it fails with errno == EINVAL.
37587         POSIX says the behavior is unspecified if the first argument is NULL,
37588         so play it safe and never pass NULL to the system getcwd.
37589
37590 2007-02-21  Jim Meyering  <jim@meyering.net>
37591
37592         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37593         of gettimeofday.  It would conflict with the one now always
37594         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37595         an IRIX 6.5 build failure.
37596
37597 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37598
37599         Minor fixups to port to Solaris 10 with Sun C 5.8.
37600         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37601         * modules/getcwd (Depends-on): Add dirfd.
37602         * lib/putenv.c (putenv): #undef it.
37603         (rpl_putenv): New decl.
37604         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37605
37606 2007-02-20  Bruno Haible  <bruno@clisp.org>
37607
37608         * modules/stdio-tests: New file.
37609         * tests/test-stdio.c: New file.
37610
37611         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37612         (Depends-on): Add stdio.
37613         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37614         (Include): Use <stdio.h> instead of vsnprintf.h.
37615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37616         HAVE_DECL_VSNPRINTF.
37617         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37618
37619         * modules/snprintf (Files): Remove lib/snprintf.h.
37620         (Depends-on): Add stdio.
37621         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37622         (Include): Use <stdio.h> instead of snprintf.h.
37623         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37624         HAVE_DECL_SNPRINTF.
37625         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37626         * lib/getaddrinfo.c: Likewise.
37627
37628         * modules/stdio: New file.
37629         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37630         * lib/snprintf.h: Remove file.
37631         * lib/vsnprintf.h: Remove file.
37632         * lib/.cppi-disable: Remove snprintf.h.
37633         * m4/stdio_h.m4: New file.
37634         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37635
37636 2007-02-20  Jim Meyering  <jim@meyering.net>
37637
37638         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37639         used by e.g., mingw.  From Bruno Haible.
37640
37641 2007-02-19  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37644         warnings.
37645         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37646
37647 2007-02-19  Bruno Haible  <bruno@clisp.org>
37648
37649         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37650         from mingw users.
37651
37652 2007-02-19  Bruno Haible  <bruno@clisp.org>
37653
37654         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37655         warnings.
37656         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37657
37658 2007-02-19  Jim Meyering  <jim@meyering.net>
37659
37660         Don't use FD after a successful "fdopendir (fd)".
37661         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37662         Reset it by calling dirfd on the just-obtained DIR*.
37663
37664         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37665         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37666
37667 2007-02-18  Bruno Haible  <bruno@clisp.org>
37668
37669         * lib/readlink.c: Include <unistd.h>.
37670         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37671         HAVE_READLINK.
37672         * modules/readlink (Depends-on): Add unistd.
37673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37674         (Include): Add <unistd.h>.
37675
37676         * lib/getlogin_r.h: Remove file.
37677         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37678         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37679         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37680         HAVE_DECL_GETLOGIN_R.
37681         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
37682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37683         (Include): Use <unistd.h> instead of getlogin_r.h.
37684
37685         * lib/getcwd.h: Remove file.
37686         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
37687         * lib/xgetcwd.c: Likewise.
37688         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
37689         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
37690         * modules/getcwd (Files): Remove lib/getcwd.h.
37691         (Depends-on): Add unistd.
37692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37693         (Include): Use <unistd.h> instad of getcwd.h.
37694
37695         * lib/ftruncate.c: Include <unistd.h> first.
37696         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
37697         Set HAVE_FTRUNCATE.
37698         * modules/ftruncate (Depends-on): Add unistd.
37699         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37700
37701         * lib/fchdir.c: Include <unistd.h> first.
37702         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
37703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
37704         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
37705         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37706         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
37707
37708         * lib/dup2.c: Include <unistd.h> first.
37709         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
37710         HAVE_DUP2.
37711         * modules/dup2 (Depends-on): Add unistd.
37712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37713
37714         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
37715         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
37716         REPLACE_CHOWN. Don't define chown as a macro here.
37717         * modules/chown (Depends-on): Add unistd.
37718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37719
37720         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
37721         Add definition for GL_LINK_WARNING.
37722         (chown, dup2): New declarations.
37723         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
37724         link warning.
37725         (ftruncate): New declaration.
37726         (getcwd): New declaration, taken from old getcwd.h.
37727         (getlogin_r): New declaration, taken from old getlogin_r.h.
37728         (readlink): New declaration.
37729         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
37730         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
37731         (gl_PREREQ_UNISTD): Remove macro.
37732         (gl_UNISTD_MODULE_INDICATOR): New macro.
37733         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
37734         many new variables. Don't set UNISTD_H.
37735         * modules/unistd (Description): Change.
37736         (Depends-on): Add link-warning.
37737         (configure.ac): Update.
37738         (Makefile.am): Create unistd.h always. Substitute many new variables
37739         into it.
37740
37741 2007-02-18  Bruno Haible  <bruno@clisp.org>
37742
37743         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
37744         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
37745         HAVE_GETSUBOPT.
37746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
37747         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
37748         * lib/getsubopt.h: Remove file.
37749         * modules/getsubopt (Files): Remove lib/getsubopt.h.
37750         (Depends-on): Add stdlib.
37751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37752         (Includes): Use <stdlib.h> instead of getsubopt.h.
37753         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
37754         Set HAVE_GETSUBOPT.
37755         * lib/getsubopt.c: Don't include getsubopt.h.
37756
37757 2007-02-18  Bruno Haible  <bruno@clisp.org>
37758
37759         * modules/fchdir (Depends-on): Add dup2.
37760
37761 2007-02-18  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/stdlib_.h: Handle glibc's special invocation convention
37764         specially.
37765
37766 2007-02-18  Bruno Haible  <bruno@clisp.org>
37767
37768         * modules/stdlib-tests: New file.
37769         * tests/test-stdlib.c: New file.
37770
37771         * modules/mkstemp (Files): Remove lib/mkstemp.h.
37772         (Depends-on): Add stdlib.
37773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37774         (Includes): Use <stdlib.h> instead of mkstemp.h.
37775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37776         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
37777         * lib/mkstemp.c: Don't include mkstemp.h.
37778         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
37779         * lib/stdlib--.h: Don't include mkstemp.h.
37780
37781         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
37782         (Depends-on): Add stdlib.
37783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37784         (Includes): Use <stdlib.h> instead of mkdtemp.h.
37785         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
37786         HAVE_MKDTEMP.
37787         * lib/mkdtemp.c: Don't include mkdtemp.h.
37788         * lib/clean-temp.c: Don't include mkdtemp.h.
37789
37790         * modules/exit (Files): Remove lib/exit.h.
37791         (Depends-on): Add stdlib.
37792         (Makefile.am): Remove lib_SOURCES.
37793         (Include): Use <stdlib.h> instead of exit.h.
37794         * lib/argmatch.c: Don't include exit.h.
37795         * lib/execute.c: Likewise.
37796         * lib/pagealign_alloc.c: Likewise.
37797         * lib/pipe.c: Likewise.
37798         * lib/wait-process.c: Likewise.
37799         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
37800         * lib/exitfail.c: Likewise.
37801         * lib/savewd.c: Likewise.
37802         * lib/xsetenv.c: Likewise.
37803
37804         * modules/stdlib: New file.
37805         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
37806         and extra comments about mkstemp().
37807         * lib/exit.h: Remove file.
37808         * lib/mkdtemp.h: Remove file.
37809         * lib/mkstemp.h: Remove file.
37810         * m4/stdlib_h.m4: New file.
37811         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
37812
37813 2007-02-18  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/math-tests: New file.
37816         * tests/test-math.c: New file.
37817
37818         * modules/math: New file.
37819         * modules/mathl (Files): Remove lib/mathl.h.
37820         (Depends-on): Add math.
37821         (Makefile.am): Don't mention mathl.h.
37822         (Include): Use <math.h> instead of mathl.h.
37823         * lib/math_.h: New file.
37824         * lib/mathl.h: Remove file.
37825         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
37826         mathl.h.
37827         * lib/asinl.c: Likewise.
37828         * lib/atanl.c: Likewise.
37829         * lib/ceill.c: Likewise.
37830         * lib/cosl.c: Likewise.
37831         * lib/expl.c: Likewise.
37832         * lib/floorl.c: Likewise.
37833         * lib/frexpl.c: Likewise.
37834         * lib/ldexpl.c: Likewise.
37835         * lib/logl.c: Likewise.
37836         * lib/sincosl.c: Likewise.
37837         * lib/sinl.c: Likewise.
37838         * lib/sqrtl.c: Likewise.
37839         * lib/tanl.c: Likewise.
37840         * lib/trigl.c: Likewise.
37841         * m4/math_h.m4: New file.
37842         * MODULES.html.sh (Mathematics): Add math.
37843
37844 2007-02-17  Bruno Haible  <bruno@clisp.org>
37845
37846         * modules/wctype-tests: New file.
37847         * tests/test-wctype.c: New file.
37848
37849         * modules/wchar-tests: New file.
37850         * tests/test-wchar.c: New file.
37851
37852         * modules/unistd-tests: New file.
37853         * tests/test-unistd.c: New file.
37854
37855         * modules/time-tests: New file.
37856         * tests/test-time.c: New file.
37857
37858         * modules/sysexits-tests: New file.
37859         * tests/test-sysexits.c: New file.
37860
37861         * modules/sys_time-tests: New file.
37862         * tests/test-sys_time.c: New file.
37863
37864         * modules/sys_stat-tests: New file.
37865         * tests/test-sys_stat.c: New file.
37866
37867         * modules/sys_socket-tests: New file.
37868         * tests/test-sys_socket.c: New file.
37869
37870         * modules/sys_select-tests: New file.
37871         * tests/test-sys_select.c: New file.
37872
37873         * modules/string-tests: New file.
37874         * tests/test-string.c: New file.
37875
37876         * modules/stdbool-tests: New file.
37877         * tests/test-stdbool.c: New file.
37878
37879         * modules/netinet_in-tests: New file.
37880         * tests/test-netinet_in.c: New file.
37881
37882         * modules/inttypes-tests: New file.
37883         * tests/test-inttypes.c: New file.
37884
37885         * modules/fcntl-tests: New file.
37886         * tests/test-fcntl.c: New file.
37887
37888         * modules/byteswap-tests: New file.
37889         * tests/test-byteswap.c: New file.
37890
37891         * modules/arpa_inet-tests: New file.
37892         * tests/test-arpa_inet.c: New file.
37893
37894 2007-02-17  Bruno Haible  <bruno@clisp.org>
37895
37896         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
37897         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
37898         if the corresponding module is not enabled. Emit link warnings if
37899         the function is used nevertheless.
37900         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
37901         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
37902         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
37903         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
37904         * modules/inttypes (Depends-on): Add link-warning.
37905         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37906         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
37907         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
37908         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
37909         * modules/imaxdiv (configure.ac): Likewise.
37910         * modules/strtoimax (configure.ac): Likewise.
37911         * modules/strtoumax (configure.ac): Likewise.
37912
37913 2007-02-17  Bruno Haible  <bruno@clisp.org>
37914
37915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
37916         gl_STRING_MODULE_INDICATOR_DEFAULTS.
37917         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
37918         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
37919
37920 2007-02-17  Bruno Haible  <bruno@clisp.org>
37921
37922         * modules/link-warning: New file.
37923         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
37924         * lib/string_.h (GL_LINK_WARNING): Remove definition.
37925         * modules/string (Depends-on): Add link-warning.
37926         (Makefile.am): Copy the contents of build-aux/link-warning.h into
37927         string.h.
37928         * MODULES.html.sh (Support for building libraries and executables): Add
37929         link-warning.
37930
37931 2007-02-17  Bruno Haible  <bruno@clisp.org>
37932
37933         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
37934         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
37935         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
37936         long lines.
37937
37938 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
37939             Bruno Haible  <bruno@clisp.org>
37940
37941         * modules/tmpfile: New file.
37942         * lib/tmpfile.c: New file.
37943         * m4/tmpfile.m4: New file.
37944         * MODULES.html.sh (func_all_modules): New section "Input/output".
37945
37946 2007-02-15  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
37949         (supports_delete_on_close): New function.
37950         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
37951
37952 2007-02-14  Bruno Haible  <bruno@clisp.org>
37953
37954         * modules/mbspcasecmp-tests: New file.
37955         * tests/test-mbspcasecmp.sh: New file.
37956         * tests/test-mbspcasecmp.c: New file.
37957
37958         New module mbspcasecmp.
37959         * modules/mbspcasecmp: New file.
37960         * lib/mbspcasecmp.c: New file.
37961         * lib/string_.h (strncasecmp): Change warning message.
37962         (mbspcasecmp): New declaration.
37963         * m4/mbspcasecmp.m4: New file.
37964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37965         GNULIB_MBSPCASECMP.
37966         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
37967         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
37968
37969 2007-02-14  Bruno Haible  <bruno@clisp.org>
37970
37971         * modules/mbsncasecmp-tests: New file.
37972         * tests/test-mbsncasecmp.sh: New file.
37973         * tests/test-mbsncasecmp.c: New file.
37974
37975         New module mbsncasecmp.
37976         * modules/mbsncasecmp: New file.
37977         * lib/mbsncasecmp.c: New file.
37978         * lib/string_.h (mbsncasecmp): New declaration.
37979         * m4/mbsncasecmp.m4: New file.
37980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37981         GNULIB_MBSNCASECMP.
37982         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
37983         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
37984
37985 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
37986
37987         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
37988         Verify that it doesn't overlap with our flags.
37989         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
37990         do not have the desired effect in multibyte locales; instead, use
37991         mbscasecmp.
37992         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
37993         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
37994         we don't require GNU fnmatch ourselves (if our users require it, they
37995         should do so explicitly).
37996
37997         Fix regex code so it doesn't rely on strcasecmp.
37998         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
37999         Otherwise, include gnulib's langinfo.h.
38000         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38001         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38002         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38003         * modules/regex (FILES): Remove m4/codeset.m4.
38004         (Depends-on): Add localcharset.  Remove strcase.
38005
38006 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38007
38008         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38009         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38010
38011 2007-02-13  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38014         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38015
38016 2007-02-12  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38019         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38020         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38021         time warning rather than a link error.
38022
38023 2007-02-12  Bruno Haible  <bruno@clisp.org>
38024
38025         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38026         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38027         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38028
38029 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38030
38031         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38032         args, not 2.
38033
38034 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38035
38036         New module 'time', so that apps can include <time.h> as per
38037         POSIX and GNU instead of separate include files like time_r.h
38038         and timegm.h.  This implementation tries out a simpler approach
38039         for replacing decls in standard include files (as compared to
38040         the string module), somewhat as an experiment.
38041
38042         * config/srclist.txt: Comment out mktime.c for now.
38043         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38044         since it doesn't apply any more.  Use generic wording instead.
38045         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38046         'time'.
38047         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38048         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38049         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38050         Don't include <sys/types.h>; no longer needed since we assume C89.
38051         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38052         * lib/strftime.c: Likewise.
38053         * lib/time_r.c: Likewise.
38054         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38055         * lib/nanosleep.c: Include <time.h> first, to check interface.
38056         * lib/strptime.c: Likewise.
38057         * lib/time_r.c: Likewise.
38058         * lib/timegm.c: Likewise.
38059         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38060         needed.
38061         * lib/timegm.c: Don't include timegm.h; no longer needed.
38062         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38063         time.h now handles any problems in that area.
38064         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38065         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38066         that time.h defines struct timespec.
38067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38068         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38069         handles that.
38070         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38071         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38072         needed.  Set REPLACE_LOCALTIME.
38073         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38074         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38075         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38076         nanosleep; time_h.m4 now does that.  Don't require
38077         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38078         module handles this now.
38079         * modules/getdate (Depends-on): Remove timespec.  Add time.
38080         * modules/nanosleep (Depends-on): Likewise.
38081         * modules/stat-time (Depends-on): Likewise.
38082         * modules/nanosleep (Include): Include time.h, not timespec.h.
38083         * modules/strptime (Files): Remove lib/strptime.h.
38084         (Depends-on): Add extensions, time.
38085         (Include): Include time.h, not strptime.h.
38086         * modules/time_r (Files): Remove lib/time_r.h.
38087         (Depends-on): Add time.
38088         (Include): Include time.h, not time_r.h.
38089         * modules/timegm: Likewise.
38090         * modules/timespec (Description): Now does timespec-related decls
38091         of our own, instead of struct timespec itself.
38092         (Depends-on): Add time; remove extensions.
38093         (Maintainer): Add self.
38094         * modules/utimecmp (Depends-on): Add time; remove timespec.
38095         * modules/utimens (Depends-on): Likewise.
38096         * modules/xnanosleep (Depends-on): Likewise.
38097
38098 2007-02-11  Bruno Haible  <bruno@clisp.org>
38099
38100         * lib/c-strstr.c: Include allocsa.h.
38101         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38102         * lib/c-strcasestr.c: Include allocsa.h.
38103         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38104         * lib/strcasestr.c: Include allocsa.h.
38105         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38106         * lib/mbsstr.c: Include allocsa.h.
38107         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38108         allocsa/freesa instead of malloc/free.
38109         * lib/mbscasestr.c: Include allocsa.h.
38110         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38111         allocsa/freesa instead of malloc/free.
38112         * modules/c-strstr (Depends-on): Add allocsa.
38113         * modules/c-strcasestr (Depends-on): Likewise.
38114         * modules/strcasestr (Depends-on): Likewise.
38115         * modules/mbsstr (Depends-on): Likewise.
38116         * modules/mbscasestr (Depends-on): Likewise.
38117
38118 2007-02-11  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38121
38122         * modules/mbsspn-tests: New file.
38123         * tests/test-mbsspn.sh: New file.
38124         * tests/test-mbsspn.c: New file.
38125
38126 2007-02-11  Bruno Haible  <bruno@clisp.org>
38127
38128         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38129
38130         * modules/mbspbrk-tests: New file.
38131         * tests/test-mbspbrk.sh: New file.
38132         * tests/test-mbspbrk.c: New file.
38133
38134 2007-02-11  Bruno Haible  <bruno@clisp.org>
38135
38136         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38137         unneeded cast.
38138
38139         * modules/mbscspn-tests: New file.
38140         * tests/test-mbscspn.sh: New file.
38141         * tests/test-mbscspn.c: New file.
38142
38143 2007-02-11  Bruno Haible  <bruno@clisp.org>
38144
38145         * modules/mbscasecmp-tests: New file.
38146         * tests/test-mbscasecmp.sh: New file.
38147         * tests/test-mbscasecmp.c: New file.
38148
38149 2007-02-11  Bruno Haible  <bruno@clisp.org>
38150
38151         Ensure O(n) worst-case complexity of mbscasestr.
38152         * lib/mbscasestr.c: Include stdbool.h.
38153         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38154         functions.
38155         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38156         the bookkeeping indicates that it's worth it.
38157         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38158
38159         * modules/mbscasestr-tests: New file.
38160         * tests/test-mbscasestr1.c: New file.
38161         * tests/test-mbscasestr2.sh: New file.
38162         * tests/test-mbscasestr2.c: New file.
38163         * tests/test-mbscasestr3.sh: New file.
38164         * tests/test-mbscasestr3.c: New file.
38165         * tests/test-mbscasestr4.sh: New file.
38166         * tests/test-mbscasestr4.c: New file.
38167         * m4/locale-tr.m4: New file.
38168
38169 2007-02-11  Bruno Haible  <bruno@clisp.org>
38170
38171         Ensure O(n) worst-case complexity of mbsstr.
38172         * lib/mbsstr.c: Include stdbool.h.
38173         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38174         functions.
38175         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38176         bookkeeping indicates that it's worth it.
38177         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38178
38179         * modules/mbsstr-tests: New file.
38180         * tests/test-mbsstr1.c: New file.
38181         * tests/test-mbsstr2.sh: New file.
38182         * tests/test-mbsstr2.c: New file.
38183         * tests/test-mbsstr3.sh: New file.
38184         * tests/test-mbsstr3.c: New file.
38185         * m4/locale-fr.m4: New file.
38186
38187 2007-02-11  Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/mbsrchr.c (mbsrchr): Fix bug.
38190
38191         * modules/mbsrchr-tests: New file.
38192         * tests/test-mbsrchr.sh: New file.
38193         * tests/test-mbsrchr.c: New file.
38194
38195 2007-02-11  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/mbschr.c (mbschr): Fix bug.
38198
38199         * modules/mbschr-tests: New file.
38200         * tests/test-mbschr.sh: New file.
38201         * tests/test-mbschr.c: New file.
38202         * m4/locale-zh.m4: New file.
38203
38204 2007-02-11  Bruno Haible  <bruno@clisp.org>
38205
38206         Support for copying multibyte string iterators.
38207         * lib/mbiter.h: Include <string.h>.
38208         (mbiter_multi_copy): New function.
38209         (mbi_copy): New macro.
38210         * lib/mbuiter.h: Include <string.h>.
38211         (mbuiter_multi_copy): New function.
38212         (mbui_copy): New macro.
38213
38214 2007-02-11  Bruno Haible  <bruno@clisp.org>
38215
38216         New module mbslen.
38217         * modules/mbslen: New file.
38218         * lib/mbslen.c: New file.
38219         * lib/string_.h (mbslen): New declaration.
38220         * m4/mbslen.m4: New file.
38221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38222         GNULIB_MBSLEN.
38223         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38224         * MODULES.html.sh (Internationalization functions): Add mbslen.
38225
38226 2007-02-11  Bruno Haible  <bruno@clisp.org>
38227
38228         Ensure O(n) worst-case complexity of strcasestr substitute.
38229         * lib/strcasestr.c: Include stdbool.h.
38230         (knuth_morris_pratt): New function.
38231         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38232         bookkeeping indicates that it's worth it.
38233         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38234
38235         * modules/strcasestr-tests: New file.
38236         * tests/test-strcasestr.c: New file.
38237
38238 2007-02-11  Bruno Haible  <bruno@clisp.org>
38239
38240         Ensure O(n) worst-case complexity of c_strcasestr.
38241         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38242         (knuth_morris_pratt): New function.
38243         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38244         the bookkeeping indicates that it's worth it.
38245         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38246
38247         * modules/c-strcasestr-tests: New file.
38248         * tests/test-c-strcasestr.c: New file.
38249
38250 2007-02-11  Bruno Haible  <bruno@clisp.org>
38251
38252         Ensure O(n) worst-case complexity of c_strstr.
38253         * lib/c-strstr.c: Include stdbool.h, string.h.
38254         (knuth_morris_pratt): New function.
38255         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38256         bookkeeping indicates that it's worth it.
38257         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38258
38259         * lib/c-strstr.c: Complete rewrite for maintainability.
38260
38261         * modules/c-strstr-tests: New file.
38262         * tests/test-c-strstr.c: New file.
38263
38264 2007-02-11  Bruno Haible  <bruno@clisp.org>
38265
38266         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38267         5.2.1 and earlier, whereby \055 was treated just like the range
38268         delimiter '-'.
38269         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38270
38271 2007-02-08  Bruno Haible  <bruno@clisp.org>
38272
38273         * modules/regex (Depends-on): Add stdbool.
38274         Reported by Dalibor Topic <robilad@kaffe.org>.
38275
38276 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38277
38278         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38279         Prefer returning from main to exiting from it.
38280         Remove unnecessary parens after sizeof.
38281
38282 2007-02-05  Bruno Haible  <bruno@clisp.org>
38283
38284         New module mbssep.
38285         * modules/mbssep: New file.
38286         * lib/mbssep.c: New file.
38287         * lib/string_.h (strsep): Add a conditional link warning.
38288         (mbssep): New declaration.
38289         * m4/mbssep.m4: New file.
38290         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38291         GNULIB_MBSSEP.
38292         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38293         * MODULES.html.sh (Internationalization functions): Add mbssep.
38294
38295 2007-02-05  Bruno Haible  <bruno@clisp.org>
38296
38297         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38298         Optimize search in case of 1 delimiter.
38299
38300 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38301
38302         * lib/acl.h: Include sys/types.h before sys/acl.h.
38303
38304 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38305
38306         Merge upstream fix for glibc bugzilla #3957:
38307
38308         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38309
38310         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38311         bit for RE_HAT_LISTS_NOT_NEWLINE.
38312         (build_charclass_op): Remove bogus comment.
38313
38314 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38315
38316         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38317
38318 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38319
38320         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38321         * lib/memmem.c [!defined _LIBC]: Include config.h.
38322
38323 2007-02-04  Bruno Haible  <bruno@clisp.org>
38324
38325         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38326         warning message.
38327
38328 2007-02-04  Bruno Haible  <bruno@clisp.org>
38329
38330         New module mbstok_r.
38331         * modules/mbstok_r: New file.
38332         * lib/mbstok_r.c: New file.
38333         * lib/string_.h (strtok_r): Change argument names to match the
38334         comments. Add a conditional link warning.
38335         (mbstok_r): New declaration.
38336         * m4/mbstok_r.m4: New file.
38337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38338         GNULIB_MBSTOK_R.
38339         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38340         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38341
38342 2007-02-04  Bruno Haible  <bruno@clisp.org>
38343
38344         New module mbsspn.
38345         * modules/mbsspn: New file.
38346         * lib/mbsspn.c: New file.
38347         * lib/string_.h (strspn): Add a conditional link warning.
38348         (mbsspn): New declaration.
38349         * m4/mbsspn.m4: New file.
38350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38351         GNULIB_MBSSPN.
38352         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38353         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38354
38355 2007-02-04  Bruno Haible  <bruno@clisp.org>
38356
38357         New module mbspbrk.
38358         * modules/mbspbrk: New file.
38359         * lib/mbspbrk.c: New file.
38360         * lib/string_.h (strpbrk): Add a conditional link warning.
38361         (mbspbrk): New declaration.
38362         * m4/mbspbrk.m4: New file.
38363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38364         GNULIB_MBSPBRK.
38365         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38366         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38367
38368 2007-02-04  Bruno Haible  <bruno@clisp.org>
38369
38370         New module mbscspn.
38371         * modules/mbscspn: New file.
38372         * lib/mbscspn.c: New file.
38373         * lib/string_.h (strcspn): Add a conditional link warning.
38374         (mbscspn): New declaration.
38375         * m4/mbscspn.m4: New file.
38376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38377         GNULIB_MBSCSPN.
38378         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38379         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38380
38381 2007-02-04  Bruno Haible  <bruno@clisp.org>
38382
38383         New module mbscasestr, reduced goal of strcasestr.
38384         * modules/mbscasestr: New file.
38385         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38386         (mbscasestr): Renamed from strcasestr.
38387         * lib/strcasestr.c: Don't include mbuiter.h.
38388         (strcasestr): Remove support for multibyte locales.
38389         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38390         Change the conditional link warning.
38391         (mbscasestr): New declaration.
38392         * m4/mbscasestr.m4: New file.
38393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38394         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38395         REPLACE_STRCASESTR.
38396         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38398         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38399         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38400         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38401         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38402         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38403         (Depends-on): Remove mbuiter.
38404         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38405
38406 2007-02-04  Bruno Haible  <bruno@clisp.org>
38407
38408         Simplify handling of strncasecmp.
38409         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38410         the conditional link warning.
38411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38412         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38413         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38414         * modules/strcase (configure.ac): Don't invoke
38415         gl_STRING_MODULE_INDICATOR.
38416         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38417
38418 2007-02-04  Bruno Haible  <bruno@clisp.org>
38419
38420         New module mbscasecmp, reduced goal of strcasecmp.
38421         * modules/mbscasecmp: New file.
38422         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38423         (mbscasecmp): Renamed from strcasecmp.
38424         * lib/strcasecmp.c: Don't include mbuiter.h.
38425         (strcasecmp): Remove support for multibyte locales.
38426         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38427         Change the conditional link warning.
38428         (mbscasecmp): New declaration.
38429         * m4/mbscasecmp.m4: New file.
38430         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38431         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38432         REPLACE_STRCASECMP.
38433         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38434         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38435         GNULIB_MBSCASECMP.
38436         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38437         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38438         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38439         (Depends-on): Remove mbuiter.
38440         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38441
38442 2007-02-04  Bruno Haible  <bruno@clisp.org>
38443
38444         New module mbsstr. Remove module strstr.
38445         * modules/mbsstr: New file.
38446         * modules/strstr: Remove file.
38447         * lib/mbsstr.c: Renamed from lib/strstr.c.
38448         (mbsstr): Renamed from strstr.
38449         * lib/string_.h (strstr): Remove declaration. Change the conditional
38450         link warning.
38451         (mbsstr): New declaration.
38452         * m4/mbsstr.m4: New file.
38453         * m4/strstr.m4: Remove file.
38454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38455         REPLACE_STRSTR.
38456         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38457         Don't initialize GNULIB_STRSTR.
38458         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38459         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38460         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38461         (Support for systems lacking ANSI C 89): Remove strstr.
38462
38463 2007-02-04  Bruno Haible  <bruno@clisp.org>
38464
38465         New module mbsrchr.
38466         * modules/mbsrchr: New file.
38467         * lib/mbsrchr.c: New file.
38468         * lib/string_.h (strrchr): Add a conditional link warning.
38469         (mbsrchr): New declaration.
38470         * m4/mbsrchr.m4: New file.
38471         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38472         GNULIB_MBSRCHR.
38473         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38474         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38475
38476 2007-02-04  Bruno Haible  <bruno@clisp.org>
38477
38478         New module mbschr.
38479         * modules/mbschr: New file.
38480         * lib/mbschr.c: New file.
38481         * lib/string_.h (strchr): Add a conditional link warning.
38482         (mbschr): New declaration.
38483         * m4/mbschr.m4: New file.
38484         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38485         GNULIB_MBSCHR.
38486         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38487         * MODULES.html.sh (Internationalization functions): Add mbschr.
38488
38489 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38490
38491         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38492
38493         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38494
38495 2007-02-04  Bruno Haible  <bruno@clisp.org>
38496
38497         New module description section 'configure.ac-early'.
38498         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38499         (func_get_autoconf_early_snippet): New function.
38500         (func_import, func_create_testdir): Use it. Remove special cases for
38501         modules 'extensions' and 'lock'.
38502         * modules/extensions (configure.ac-early): Require
38503         gl_USE_SYSTEM_EXTENSIONS.
38504         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38505
38506 2007-02-04  Bruno Haible  <bruno@clisp.org>
38507
38508         Make use of gcj-4.3's -fsource and -ftarget option.
38509         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38510         and if so try the options -fsource and -ftarget.
38511         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38512         source_version, ftarget_option, target_version arguments.
38513         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38514         (is_envjavac_oldgcj_14_14_usable): Renamed from
38515         is_envjavac_gcj_14_14_usable.
38516         (is_envjavac_oldgcj_14_13_usable): Renamed from
38517         is_envjavac_gcj_14_13_usable.
38518         (is_gcj_present): Update.
38519         (is_gcj_43, is_gcj43_usable): New functions.
38520         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38521         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38522         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38523         try the options -fsource and -ftarget.
38524
38525 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38526
38527         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38528         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38529         larger value.
38530
38531 2007-02-03  Jim Meyering  <jim@meyering.net>
38532
38533         Give tools a better chance to allocate space for very large buffers.
38534         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38535
38536         Make pwd and readlink work also when run with an unreadable parent dir
38537         on systems with openat support.
38538         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38539         provided getcwd function, even when we have openat support.
38540         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38541
38542 2007-02-02  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38545         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38546         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38547         portability problems if one of these functions is only used on specific
38548         platforms.
38549         Reported by Paul Eggert.
38550
38551 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38552
38553         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38554         is causing more trouble than it's curing.
38555         * lib/regex_internal.h (__mempcpy): Remove.
38556         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38557         (and make the code a tad smaller to boot).
38558         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38559
38560 2007-02-02  Jim Meyering  <jim@meyering.net>
38561
38562         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38563         section, not in the Makefile.am: one.
38564
38565 2007-02-02  Eric Blake  <ebb9@byu.net>
38566
38567         * lib/strchrnul.c: Always include config.h first.
38568
38569         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38570         gnulib strstr is not necessary here.
38571
38572 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38573
38574         * m4/socklen.m4: Fix typo.
38575
38576 2007-02-02  Eric Blake  <ebb9@byu.net>
38577
38578         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38579         * modules/netinet_in (Makefile.am): Likewise.
38580
38581 2007-02-01  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/string_.h (GL_LINK_WARNING): New macro.
38584         (strcasecmp, strstr, strcasestr): If provided by the system,
38585         conditionally define as a macro that leads to a warning instead of to
38586         an error.
38587         (strncasecmp): Conditionally define as a macro that leads to a warning.
38588
38589 2007-02-01  Karl Berry  <karl@gnu.org>
38590
38591         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38592
38593 2007-02-01  Bruno Haible  <bruno@clisp.org>
38594
38595         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38596         renamings.
38597
38598 2007-02-01  Eric Blake  <ebb9@byu.net>
38599
38600         * modules/regex (Depends-on): Revert dependence on mempcpy.
38601         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38602         module's definition of mempcpy.
38603         Reported by Paul Eggert.
38604
38605 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38606
38607         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38608         the symbol XYZ before redefining it.  This fixes a problem with
38609         programs that don't use XYZ, when compiled on systems that define
38610         XYZ to something else.
38611
38612 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38613
38614         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38615         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38616         writeable to group or other and (2) is intended to have a special
38617         mode bit that is set or cleared.  In such a case, the directory
38618         should be neither group- nor other-writeable until the special
38619         mode bits are right.
38620
38621 2007-01-31  Eric Blake  <ebb9@byu.net>
38622
38623         * modules/mountlist (Depends-on): Add strstr.
38624
38625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38626         bug.
38627         * modules/string (Makefile.am): Remove redundant replacement.
38628         * modules/regex (Depends-on): Add mempcpy.
38629
38630 2007-01-31  Bruno Haible  <bruno@clisp.org>
38631
38632         New module description field 'Link'.
38633         * gnulib-tool (func_usage): Document --extract-link-directive.
38634         (sed_extract_prog): Recognize 'Link' directive.
38635         (func_get_link_directive): New function.
38636         (func_import): Show summary of link directives.
38637         Handle --extract-link-directive option.
38638         * modules/acl (Link): New section.
38639         * modules/clock-time (Link): New section.
38640         * modules/euidaccess (Link): New section.
38641         * modules/gettext (Link): New section.
38642         * modules/iconv (Link): New section.
38643         * modules/lock (Link): New section.
38644         * modules/nanosleep (Link): New section.
38645         * modules/readline (Link): New section.
38646
38647 2007-01-27  Bruno Haible  <bruno@clisp.org>
38648
38649         Enforce the use of gnulib modules for unportable <string.h> functions.
38650         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38651         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38652         (gl_HEADER_STRING_H_BODY): Require it.
38653         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38654         the symbol XYZ to one that gives a link error.
38655         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38656         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38657         * modules/mempcpy (configure.ac): Likewise.
38658         * modules/memrchr (configure.ac): Likewise.
38659         * modules/stpcpy (configure.ac): Likewise.
38660         * modules/stpncpy (configure.ac): Likewise.
38661         * modules/strcase (configure.ac): Likewise.
38662         * modules/strcasestr (configure.ac): Likewise.
38663         * modules/strchrnul (configure.ac): Likewise.
38664         * modules/strdup (configure.ac): Likewise.
38665         * modules/strndup (configure.ac): Likewise.
38666         * modules/strnlen (configure.ac): Likewise.
38667         * modules/strpbrk (configure.ac): Likewise.
38668         * modules/strsep (configure.ac): Likewise.
38669         * modules/strstr (configure.ac): Likewise.
38670         * modules/strtok_r (configure.ac): Likewise.
38671
38672 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38673
38674         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38675
38676 2007-01-30  Jim Meyering  <jim@meyering.net>
38677
38678         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38679
38680 2007-01-29  Bruno Haible  <bruno@clisp.org>
38681
38682         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
38683         * lib/execute.c: Likewise.
38684         * lib/pipe.c: Likewise.
38685         * lib/printf-args.h: Likewise.
38686         * lib/printf-args.c: Likewise.
38687         * lib/printf-parse.c: Likewise.
38688         * lib/vasnprintf.c: Likewise.
38689
38690 2007-01-29  Eric Blake  <ebb9@byu.net>
38691
38692         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
38693         declaration.
38694
38695 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38696
38697         * lib/strptime.h (strptime): Use 'restrict' for args where
38698         POSIX requires this.
38699         * lib/strptime.c (strptime): Likewise.
38700         Change license notice from LGPL to GPL, since gnulib-tool will
38701         change this as needed.
38702         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
38703         defined.
38704         Include "strptime.h" first, to check interface.
38705         Do not #undef _LIBC and _NL_CURRENT.
38706         Do not include <stdlib.h>; no longer needed.
38707         Include "time_r.h" and declare ptime_locale_status
38708         only if _LIBC is not defined.
38709         (__P): Remove unused macro.
38710         (match_string): Bring back glibc version, but use it only if _LIBC
38711         is defined.
38712         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
38713         Remove unnecessary assertion and abort() call.
38714         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
38715         * m4/strptime.m4: Fix serial number comment.
38716         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
38717         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
38718         (Depends-on): Add time_r.
38719
38720 2007-01-29  Bruno Haible  <bruno@clisp.org>
38721
38722         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38723         strptime.
38724         * modules/strptime (Depends-on): Add stdbool.
38725         * lib/strptime.h: Include <time.h> always. Add comments.
38726
38727 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38728
38729         * modules/strptime: New file.
38730         * lib/strptime.h: New file.
38731         * lib/strptime.c: New file.
38732         * m4/strptime.m4: New file.
38733
38734 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38735
38736         * MODULES.html.sh: New module mpsort.
38737         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
38738
38739         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
38740         a circularity problem with HP-UX ia64 reported by Bob Proulx in
38741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
38742         All uses changed.
38743         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
38744         All uses changed.
38745         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
38746         to _Restrict_.
38747         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
38748         the parameter matches the prototype.
38749
38750 2007-01-28  Jim Meyering  <jim@meyering.net>
38751
38752         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
38753         sys/time.h here, reverting that part of the previous patch:
38754         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
38755
38756 2007-01-28  Bruno Haible  <bruno@clisp.org>
38757
38758         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
38759         value of $(SYS_TIME_H).
38760         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
38761         remove it conditionally, too. [added by Jim Meyering]
38762         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
38763         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38764         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
38765         GETTIMEOFDAY_REPLACEMENT to 1.
38766
38767 2007-01-28  Bruno Haible  <bruno@clisp.org>
38768
38769         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
38770         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
38771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
38772         Set UNISTD_H instead of UNISTD_H2.
38773         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
38774
38775 2007-01-28  Bruno Haible  <bruno@clisp.org>
38776
38777         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
38778         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
38779
38780 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38781
38782         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
38783         (func_create_testdir): Ensure C locale for `grep' and `tr'
38784         character ranges.
38785         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
38786         ACLOCAL_AMFLAGS parsing state machine.
38787
38788 2007-01-27  Bruno Haible  <bruno@clisp.org>
38789
38790         * modules/unistr/base: Update.
38791
38792 2007-01-27  Bruno Haible  <bruno@clisp.org>
38793
38794         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
38795         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
38796         * modules/unistr/u32-mbtouc-unsafe: Renamed from
38797         modules/unistr/u32-mbtouc.
38798         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
38799         * lib/unistr.h: Update.
38800         * lib/linebreak.c: Update.
38801         * modules/unistr/u32-mbtouc: Renamed from
38802         modules/unistr/u32-mbtouc-safe.
38803         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
38804         * lib/unistr.h: Update.
38805         * lib/unistr/u32-to-u8.c: Update.
38806         * lib/unistr/u32-to-u16.c: Update.
38807
38808 2007-01-27  Bruno Haible  <bruno@clisp.org>
38809
38810         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
38811         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
38812         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
38813         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
38814         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
38815         * modules/unistr/u16-mbtouc-unsafe: Renamed from
38816         modules/unistr/u16-mbtouc.
38817         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
38818         * lib/unistr.h: Update.
38819         * lib/linebreak.c: Update.
38820         * modules/linebreak: Update.
38821         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
38822         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
38823         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
38824         * modules/unistr/u16-mbtouc: Renamed from
38825         modules/unistr/u16-mbtouc-safe.
38826         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
38827         * lib/unistr.h: Update.
38828         * lib/unistr/u16-to-u8.c: Update.
38829         * modules/unistr/u16-to-u8: Update.
38830         * lib/unistr/u16-to-u32.c: Update.
38831         * modules/unistr/u16-to-u32: Update.
38832
38833 2007-01-27  Bruno Haible  <bruno@clisp.org>
38834
38835         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
38836         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
38837         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
38838         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
38839         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
38840         * modules/unistr/u8-mbtouc-unsafe: Renamed from
38841         modules/unistr/u8-mbtouc.
38842         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
38843         * lib/unistr.h: Update.
38844         * lib/striconveh.c: Update.
38845         * modules/striconveh: Update.
38846         * lib/linebreak.c: Update.
38847         * modules/linebreak: Update.
38848         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
38849         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
38850         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
38851         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
38852         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
38853         * lib/unistr.h: Update.
38854         * lib/striconveh.c: Update.
38855         * modules/striconveh: Update.
38856         * lib/unistr/u8-to-u16.c: Update.
38857         * modules/unistr/u8-to-u16: Update.
38858         * lib/unistr/u8-to-u32.c: Update.
38859         * modules/unistr/u8-to-u32: Update.
38860
38861 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38862
38863         Sync from Libtool.
38864         * lib/argz.c: Do not include strings.h nor memory.h, include
38865         string.h unconditionally.  Patch by Simon Josefsson.
38866
38867 2007-01-27  Bruno Haible  <bruno@clisp.org>
38868
38869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
38870         from gl_HEADER_STRING_H_BODY.
38871         (gl_HEADER_STRING_H_BODY): Require it.
38872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
38873         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38874         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38875         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38877         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
38878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38879         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38880         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
38881         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38883         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
38884         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38885         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38887
38888 2007-01-27  Bruno Haible  <bruno@clisp.org>
38889
38890         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
38891         check_PROGRAMS into noinst_PROGRAMS.
38892         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
38893         check_PROGRAMS in this case.
38894         (func_import): Set for_test to false.
38895         (func_create_testdir): Set for_test to true.
38896
38897 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38898             Bruno Haible  <bruno@clisp.org>
38899
38900         * modules/strcasestr (Files): Remove lib/strcasestr.h.
38901         (Depends-on): Add string.
38902         (Includes): Use <string.h> instead of strcasestr.h.
38903         * modules/string (Makefile.am): Also substitute the value of
38904         REPLACE_STRCASESTR.
38905         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
38906         assume strcasestr is declared in <string.h> not <strings.h>. Also
38907         set REPLACE_STRCASESTR.
38908         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
38909         REPLACE_STRCASESTR.
38910         * lib/strcasestr.h: Remove file.
38911         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
38912         * lib/string_.h (strcasestr): New declaration.
38913
38914 2007-01-27  Bruno Haible  <bruno@clisp.org>
38915
38916         * lib/string_.h: Use 'extern'.
38917
38918 2007-01-27  Jim Meyering  <jim@meyering.net>
38919
38920         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
38921         of set-but-not-used local, "q".
38922
38923         * lib/mempcpy.c: Include <config.h> before <string.h>.
38924         This fixes a compilation error on HP-UX, due to the system's
38925         "restrict"-using mempcpy prototype.
38926
38927 2007-01-26  Bruno Haible  <bruno@clisp.org>
38928
38929         Small optimization.
38930         * lib/javacomp.c: Include c-strstr.h.
38931          (is_envjavac_gcj): Use c_strstr instead of strstr.
38932         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
38933
38934 2007-01-26  Bruno Haible  <bruno@clisp.org>
38935
38936         * MODULES.html.sh (Unicode string functions): Add the new modules.
38937
38938         * modules/uniconv/u32-strconv-to-locale: New file.
38939         * lib/uniconv/u32-strconv-to-locale.c: New file.
38940
38941         * modules/uniconv/u16-strconv-to-locale: New file.
38942         * lib/uniconv/u16-strconv-to-locale.c: New file.
38943
38944         * modules/uniconv/u8-strconv-to-locale: New file.
38945         * lib/uniconv/u8-strconv-to-locale.c: New file.
38946
38947         * modules/uniconv/u32-strconv-from-locale: New file.
38948         * lib/uniconv/u32-strconv-from-locale.c: New file.
38949
38950         * modules/uniconv/u16-strconv-from-locale: New file.
38951         * lib/uniconv/u16-strconv-from-locale.c: New file.
38952
38953         * modules/uniconv/u8-strconv-from-locale: New file.
38954         * lib/uniconv/u8-strconv-from-locale.c: New file.
38955
38956         * modules/uniconv/u32-strconv-to-enc: New file.
38957         * lib/uniconv/u32-strconv-to-enc.c: New file.
38958         * modules/uniconv/u32-strconv-to-enc-tests: New file.
38959         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
38960
38961         * modules/uniconv/u16-strconv-to-enc: New file.
38962         * lib/uniconv/u16-strconv-to-enc.c: New file.
38963         * lib/uniconv/u-strconv-to-enc.h: New file.
38964         * modules/uniconv/u16-strconv-to-enc-tests: New file.
38965         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
38966
38967         * modules/uniconv/u8-strconv-to-enc: New file.
38968         * lib/uniconv/u8-strconv-to-enc.c: New file.
38969         * modules/uniconv/u8-strconv-to-enc-tests: New file.
38970         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
38971
38972         * modules/uniconv/u32-strconv-from-enc: New file.
38973         * lib/uniconv/u32-strconv-from-enc.c: New file.
38974         * modules/uniconv/u32-strconv-from-enc-tests: New file.
38975         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
38976
38977         * modules/uniconv/u16-strconv-from-enc: New file.
38978         * lib/uniconv/u16-strconv-from-enc.c: New file.
38979         * modules/uniconv/u16-strconv-from-enc-tests: New file.
38980         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
38981
38982         * modules/uniconv/u8-strconv-from-enc: New file.
38983         * lib/uniconv/u8-strconv-from-enc.c: New file.
38984         * lib/uniconv/u-strconv-from-enc.h: New file.
38985         * modules/uniconv/u8-strconv-from-enc-tests: New file.
38986         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
38987
38988         * modules/uniconv/u32-conv-from-enc: New file.
38989         * lib/uniconv/u32-conv-from-enc.c: New file.
38990         * modules/uniconv/u32-conv-from-enc-tests: New file.
38991         * tests/uniconv/test-u32-conv-from-enc.c: New file.
38992
38993         * modules/uniconv/u16-conv-from-enc: New file.
38994         * lib/uniconv/u16-conv-from-enc.c: New file.
38995         * lib/uniconv/u-conv-from-enc.h: New file.
38996         * modules/uniconv/u16-conv-from-enc-tests: New file.
38997         * tests/uniconv/test-u16-conv-from-enc.c: New file.
38998
38999         * modules/uniconv/u8-conv-from-enc: New file.
39000         * lib/uniconv/u8-conv-from-enc.c: New file.
39001         * modules/uniconv/u8-conv-from-enc-tests: New file.
39002         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39003
39004         * modules/uniconv/base: New file.
39005         * lib/uniconv.h: New file.
39006
39007 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39008
39009         * doc/gnulib-tool.texi (Initial import): Update to match current
39010         behavior with strdup module.
39011         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39012         * lib/memmem.h: Remove; all uses removed.  This is now done
39013         by <string.h>.
39014         * lib/mempcpy.h: Likewise.
39015         * lib/memrchr.h: Likewise.
39016         * lib/stpcpy.h: Likewise.
39017         * lib/stpncpy.h: Likewise.
39018         * lib/strcase.h: Likewise.
39019         * lib/strchrnul.h: Likewise.
39020         * lib/strdup.h: Likewise.
39021         * lib/strndup.h: Likewise.
39022         * lib/strnlen.h: Likewise.
39023         * lib/strpbrk.h: Likewise.
39024         * lib/strsep.h: Likewise.
39025         * lib/strstr.h: Likewise.
39026         * lib/strtok_r.h: Likewise.
39027         * lib/string_.h: New file.
39028         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39029         Rely on <string.h> instead.
39030         * lib/canon-host.c: Likewise.
39031         * lib/chdir-long.c: Likewise.
39032         * lib/concatpath.c: Likewise.
39033         * lib/exclude.c: Likewise.
39034         * lib/fchdir.c: Likewise.
39035         * lib/getaddrinfo.c: Likewise.
39036         * lib/getcwd.c: Likewise.
39037         * lib/getsubopt.c: Likewise.
39038         * lib/glob.c: Likewise.
39039         * lib/hard-locale.c: Likewise.
39040         * lib/iconvme.c: Likewise.
39041         * lib/javacomp.c: Likewise.
39042         * lib/mempcpy.c: Likewise.
39043         * lib/memrchr.c: Likewise.
39044         * lib/regex_internal.h: Likewise.
39045         * lib/stpncpy.c: Likewise.
39046         * lib/strcasecmp.c: Likewise.
39047         * lib/strchrnul.c: Likewise.
39048         * lib/strdup.c: Likewise.
39049         * lib/striconv.c: Likewise.
39050         * lib/striconveh.c: Likewise.
39051         * lib/striconveha.c: Likewise.
39052         * lib/strncasecmp.c: Likewise.
39053         * lib/strndup.c: Likewise.
39054         * lib/strnlen.c: Likewise.
39055         * lib/strsep.c: Likewise.
39056         * lib/strstr.c: Likewise.
39057         * lib/strtok_r.c: Likewise.
39058         * lib/userspec.c: Likewise.
39059         * lib/w32spawn.h: Likewise.
39060         * lib/xstrndup.c: Likewise.
39061         * lib/mountlist.c (strstr): Remove decl.
39062         * m4/string_h.m4: New file.
39063         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39066         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39067         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39068         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39069         Set REPLACE_STRCASECMP if necessary.
39070         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39071         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39072         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39073         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39074         HAVE_DECL_STRDUP if necessary.
39075         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39076         since gl_FUNC_STRNDUP does that now.
39077         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39078         Check for decl here...
39079         (gl_PREREQ_STRNLEN): ... not here.
39080         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39081         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39082         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39083         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39084         necessary.
39085         * modules/string: New file.
39086         * modules/memmem (Files): Remove special-purpose include file.
39087         (Depends-on): Add string.
39088         (Include): Include <string.h>, not the removed file.
39089         * modules/mempcpy: Likewise.
39090         * modules/memrchr: Likewise.
39091         * modules/stpcpy: Likewise.
39092         * modules/stpncpy: Likewise.
39093         * modules/strcase: Likewise.
39094         * modules/strchrnul: Likewise.
39095         * modules/strdup: Likewise.
39096         * modules/strndup: Likewise.
39097         * modules/strnlen: Likewise.
39098         * modules/strpbrk: Likewise.
39099         * modules/strsep: Likewise.
39100         * modules/strstr: Likewise.
39101         * modules/strtok_r: Likewise.
39102         * tests/test-dirname.c: Don't include "strdup.h", since
39103         <string.h> now suffices.
39104         * tests/test-memmem.c: Don't include "memmem.h", since
39105         <string.h> now suffices.
39106
39107 2007-01-25  Bruno Haible  <bruno@clisp.org>
39108
39109         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39110         *resultp is 0.
39111
39112         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39113         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39114         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39115         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39116
39117         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39118         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39119         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39120         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39121         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39122         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39123
39124 2007-01-24  Bruno Haible  <bruno@clisp.org>
39125
39126         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39127         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39128         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39129         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39130         gl_FUNC_FTS_CORE.
39131         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39132         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39133         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39134         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39135         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39136         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39137         gl_FUNC_FCHOWNAT.
39138         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39139         gl_FUNC_STRFTIME.
39140         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39141         Reported by Ralf Wildenhues.
39142
39143 2007-01-24  Bruno Haible  <bruno@clisp.org>
39144
39145         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39146         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39147         gl_GETADDRINFO.
39148         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39149         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39150         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39151
39152 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39153
39154         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39155         Don't use 'exit'; just return from 'main'.
39156         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39157
39158         * lib/fnmatch_.h: Readjust white space and comments to match
39159         glibc, to avoid spurious diffs.
39160
39161 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39162
39163         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39164         2004-12-01 change by Jakub Jelinek, since this code won't compile
39165         if !LIBC.  Problem reported by Bob Proulx.
39166
39167 2007-01-23  Bruno Haible  <bruno@clisp.org>
39168
39169         * lib/striconveh.c: Include c-strcaseeq.h.
39170         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39171         * modules/striconveh (Depends-on): Add c-strcaseeq.
39172
39173 2007-01-23  Bruno Haible  <bruno@clisp.org>
39174
39175         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39176
39177         * modules/c-strcaseeq: New file.
39178         * lib/c-strcaseeq.h: New file.
39179
39180         * modules/streq: New file.
39181         * lib/streq.h: New file.
39182
39183 2007-01-23  Bruno Haible  <bruno@clisp.org>
39184
39185         * modules/striconveha-tests: New file.
39186         * tests/test-striconveha.c: New file.
39187
39188         * lib/striconveha.h: Include <stdbool.h>.
39189         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39190         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39191         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39192         (mem_iconveha): New function.
39193         (str_iconveha_notranslit): Renamed from str_iconveha.
39194         (str_iconveha): New function.
39195         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39196         c-strcase.
39197
39198 2007-01-23  Bruno Haible  <bruno@clisp.org>
39199
39200         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39201         encodings without forgiving before trying any encoding with handler.
39202         (str_iconveha): Try all encodings without forgiving before trying any
39203         encoding with handler.
39204
39205 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39206
39207         Import the following changes from libc.
39208
39209         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39210
39211         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39212
39213         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39214
39215         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39216         normal_bracket label.
39217
39218         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39219
39220         [BZ #361]
39221         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39222         to normal_bracket after fetching the next character.
39223
39224 2007-01-22  Bruno Haible  <bruno@clisp.org>
39225
39226         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39227         argument.
39228         * lib/striconveh.c (iconv_carefully_1): New function.
39229         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39230         argument.
39231         (str_cd_iconveh): Update.
39232         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39233         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39234         * tests/test-striconveh.c (MAGIC): New macro.
39235         (new_offsets): New function.
39236         (main): Test call with and without offsets.
39237
39238 2007-01-22  Bruno Haible  <bruno@clisp.org>
39239
39240         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39241         * modules/sys_select (Makefile.am): Likewise.
39242         * modules/sys_socket (Makefile.am): Likewise.
39243         * modules/sys_time (Makefile.am): Likewise.
39244
39245 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39246
39247         * modules/gettimeofday (License): Change from GPL to LGPL, since
39248         gettimeofday is a library function.
39249
39250 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39251
39252         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39253
39254 2007-01-21  Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39257
39258 2007-01-21  Bruno Haible  <bruno@clisp.org>
39259
39260         * modules/striconveha: New file.
39261         * lib/striconveha.h: New file.
39262         * lib/striconveha.c: New file.
39263         * MODULES.html.sh (Internationalization functions): Add striconveha.
39264         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39265         string.
39266         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39267
39268 2007-01-21  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39271         * lib/striconveh.c (str_iconveh): Likewise.
39272
39273 2007-01-21  Bruno Haible  <bruno@clisp.org>
39274
39275         * lib/striconveh.h (mem_iconveh): New declaration.
39276         * lib/striconveh.c (mem_iconveh): New function.
39277         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39278
39279 2007-01-21  Bruno Haible  <bruno@clisp.org>
39280
39281         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39282
39283         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39284         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39285         original result buffer.
39286         (str_cd_iconveh): Update.
39287         * tests/test-striconveh.c (main): Update.
39288
39289         * lib/striconv.h (mem_cd_iconv): Change specification.
39290         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39291         result buffer.
39292         (str_cd_iconv): Update.
39293         * tests/test-striconv.c (main): Update.
39294
39295 2007-01-21  Bruno Haible  <bruno@clisp.org>
39296
39297         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39298
39299 2007-01-20  Jim Meyering  <jim@meyering.net>
39300
39301         * lib/userspec.c (parse_with_separator): If a user or group string
39302         starts with "+", skip the corresponding name-to-ID look-up, since
39303         such a look-up must fail: user and group names may not include "+".
39304
39305 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39308         since we now assume the sys_time module.
39309         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39310         check for sys/time.h; no longer needed.
39311         * modules/poll (Depends-on): Depend on sys_time.
39312
39313 2007-01-18  Bruno Haible  <bruno@clisp.org>
39314
39315         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39316         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39317
39318         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39319         gettimeofday.
39320
39321         * tests/test-gettimeofday.c: Include <time.h>.
39322         (dummy): Remove variable.
39323
39324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39325         gl_HEADER_SYS_TIME_H.
39326         (gl_HEADER_SYS_TIME_H): New macro.
39327
39328         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39329         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39330         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39331         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39332         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39334         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39335         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39336         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39337         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39338         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39339
39340         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39341         last change; it caused a compilation error when cross-compiling to
39342         Cygwin.
39343
39344 2007-01-18  Jim Meyering  <jim@meyering.net>
39345
39346         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39347         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39348         than the race-prone "test -d sys || mkdir sys".
39349         (configure.ac): Use AC_PROG_MKDIR_P.
39350         * modules/sys_select: Likewise.
39351         * modules/sys_socket: Likewise.
39352         * modules/sys_time: Likewise.
39353
39354 2007-01-18  Eric Blake  <ebb9@byu.net>
39355
39356         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39357         replace gettimeofday.
39358         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39359         name, to avoid infinite recursion.
39360
39361 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39362
39363         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39364         module sys_time.
39365         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39366         assume timespec.h defines struct timeval.
39367         * lib/settime.c: Likewise.
39368         * lib/utimens.c: Likewise.
39369         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39370         since we now assume the gettimeofday module.
39371         * lib/tempname.c (__gen_tempname): Likewise.
39372         * lib/gettimeofday.h: Remove.
39373         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39374         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39375         Include <time.h>, for 'time()'.
39376         (localtime_buffer_addr): Also use this workaround if
39377         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39378         to simplify the uses.  All uses changed.
39379         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39380         that #undef is inside {}, and 'const' follows type name consistently.
39381         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39382         (gettimeofday): Do not use the maximum possible value for
39383         tv->tv_usec, since that might break usages other than ls.c.
39384         Instead, we'll leave ls.c alone.  This undoes today's patch
39385         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39386         we've never observed the problem but might as well keep the
39387         canary.
39388         * lib/nanosleep.c: Include timespec.h first, for interface check.
39389         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39390         now assume the sys_time module.
39391         * lib/tempname.c: Likewise.
39392         * lib/timespec.h: Likewise.
39393         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39394         needed.
39395         * lib/strftime.c: Likewise.
39396         * lib/timespec.h: Likewise.
39397         * lib/posixtm.c: Include posixtm.h first, for interface check.
39398         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39399         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39400         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39401         * lib/sys_time_.h: New file.
39402         * lib/timespec.h (struct timespec): Use long int, not long.
39403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39404         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39405         Remove obsolescent call to AC_HEADER_TIME.
39406         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39408         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39409         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39410         Likewise.
39411         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39412         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39414         into the sys_time module.  Check for gettimeofday just once.
39415         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39416         for gettimeofday signature to just check the signature.  Merely
39417         compile it, since linking doesn't test signature.  Improve test for
39418         whether gettimeofday.o is actually needed.
39419         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39420         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39421         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39422         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39423         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39424         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39425         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39426         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39427         than worrying about sys/time.h.
39428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39429         Don't bother worrying about TIME_WITH_SYS_TIME.
39430         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39431         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39432         * m4/sys_time_h.m4: New file.
39433         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39434         Don't include sys/time.h.  Return from main rather than exiting.
39435         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39436         all uses changed.
39437         * modules/gethrxtime (Depends-on): Add sys_time.
39438         * modules/gettime (Depends-on): Likewise.
39439         * modules/gettimeofday (Depends-on): Likewise.
39440         * modules/nanosleep (Depends-on): Likewise.
39441         * modules/settime (Depends-on): Likewise.
39442         * modules/tempname (Depends-on): Likewise.
39443         * modules/utimens (Depends-on): Likewise.
39444         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39445         (Include:) Change back to <sys/time.h>.
39446         (Maintainer:) Add self.
39447         * modules/sys_time: New file.
39448         * modules/tempname (Depends-on): Add gettimeofday.
39449         * tests/test-gettimeofday.c: Include <sys/time.h>
39450         rather than gettimeofday.h.
39451
39452 2007-01-17  Bruno Haible  <bruno@clisp.org>
39453
39454         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39455         the license default to GPL.
39456         (func_create_testdir): Don't complain if a module is LGPL and its
39457         tests module depends on GPLed modules.
39458
39459 2007-01-17  Bruno Haible  <bruno@clisp.org>
39460
39461         * lib/gettimeofday.c (gettimeofday): Add code for the case
39462         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39463         maximum possible value for tv->tv_usec, rather than the minimum one.
39464
39465 2005-10-08  Martin Lambers  <marlam@marlam.de>
39466 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39467 2007-01-16  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39470         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39471         gl_FUNC_GETTIMEOFDAY.
39472         (Include): Add gettimeofday.h.
39473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39474         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39475         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39476         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39477         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39478         * lib/gettimeofday.h: New file.
39479         * lib/gettimeofday.c: Include <sys/timeb.h>.
39480         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39481         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39482         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39483         fall back on time().
39484
39485         * tests/test-gettimeofday.c: New file.
39486         * modules/gettimeofday-tests: New file.
39487
39488 2007-01-16  Eric Blake  <ebb9@byu.net>
39489
39490         * modules/fnmatch (Depends-on): Depend on wchar.
39491         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39492         * m4/fnmatch.m4: Likewise.
39493         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39494         * m4/mbchar.m4: Likewise.
39495         * modules/mbswidth (Depends-on): Depend on wchar.
39496         * lib/mbswidth.c: Assume <wchar.h>.
39497         * m4/mbswidth.m4: Likewise.
39498         * modules/quotearg (Depends-on): Depend on wchar.
39499         * lib/quotearg.c: Assume <wchar.h>.
39500         * m4/quotearg.m4: Likewise.
39501         * modules/regex (Depends-on): Depend on wchar.
39502         * lib/regex_internal.h: Assume <wchar.h>.
39503         * m4/regex.m4: Likewise.
39504         * modules/stdint (Depends-on): Depend on wchar.
39505         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39506         * m4/stdint.m4: Likewise.
39507         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39508         * modules/strftime (Depends-on): Depend on wchar.
39509         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39510         * modules/strtol (Depends-on): Depend on wchar.
39511         * lib/strtol.c: Assume <wchar.h>.
39512         * modules/wcwidth (Depends-on): Depend on wchar.
39513         * lib/wcwidth.h: Assume <wchar.h>.
39514         * m4/wcwidth.m4: Likewise.
39515
39516 2007-01-16  Bruno Haible  <bruno@clisp.org>
39517
39518         * modules/csharpexec-script: New, created from...
39519         * modules/csharpexec: ... this.
39520
39521 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39522
39523         * modules/javaexec-script: New, created from...
39524         * modules/javaexec: ... this.
39525
39526 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39527
39528         * modules/poll (Dependencies): Add sys_select.
39529
39530 2007-01-15  Jim Meyering  <jim@meyering.net>
39531
39532         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39533         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39534         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39535         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39536
39537 2007-01-15  Bruno Haible  <bruno@clisp.org>
39538
39539         * modules/striconveh: New file.
39540         * lib/striconveh.h: New file.
39541         * lib/striconveh.c: New file.
39542         * MODULES.html.sh (Internationalization functions): Add striconveh.
39543
39544         * modules/striconveh-tests: New file.
39545         * tests/test-striconveh.c: New file.
39546
39547 2007-01-15  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39550         not from GNU libiconv or GNU libc.
39551
39552 2007-01-15  Bruno Haible  <bruno@clisp.org>
39553
39554         * doc/gnulib-intro.texi (Copyright): Explain the different license
39555         terms for module descriptions, autoconf macros, tests, documentation.
39556
39557 2007-01-14  Bruno Haible  <bruno@clisp.org>
39558
39559         * modules/striconv-tests: New file.
39560         * tests/test-striconv.c: New file.
39561
39562 2007-01-14  Bruno Haible  <bruno@clisp.org>
39563
39564         * modules/iconv-tests: New file.
39565         * tests/test-iconv.c: New file.
39566
39567 2007-01-14  Bruno Haible  <bruno@clisp.org>
39568
39569         * gnulib-tool (func_get_license): For test modules, use the license of
39570         the main module.
39571
39572 2007-01-14  Bruno Haible  <bruno@clisp.org>
39573
39574         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39575         if iconv is found to exist.
39576
39577 2007-01-14  Bruno Haible  <bruno@clisp.org>
39578
39579         * modules/c-ctype-tests: New file.
39580         * tests/test-c-ctype.c: New file.
39581
39582 2007-01-14  Bruno Haible  <bruno@clisp.org>
39583
39584         * modules/binary-io-tests: New file.
39585         * tests/test-binary-io.sh: New file.
39586         * tests/test-binary-io.c: New file.
39587
39588 2007-01-14  Bruno Haible  <bruno@clisp.org>
39589
39590         * modules/array-oset-tests: New file.
39591         * tests/test-array_oset.c: New file.
39592
39593 2007-01-14  Bruno Haible  <bruno@clisp.org>
39594
39595         * modules/array-list-tests: New file.
39596         * tests/test-array_list.c: New file.
39597
39598 2007-01-14  Bruno Haible  <bruno@clisp.org>
39599
39600         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39601         and make.
39602         Reported by Simon Josefsson in
39603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39604
39605 2007-01-14  Bruno Haible  <bruno@clisp.org>
39606
39607         * modules/allocsa-tests: New file.
39608         * tests/test-allocsa.c: New file.
39609
39610 2007-01-14  Bruno Haible  <bruno@clisp.org>
39611
39612         * modules/fchdir (Depends-on): Add absolute-header.
39613         * modules/unistd (Depends-on): Likewise.
39614
39615 2006-12-30  Bruno Haible  <bruno@clisp.org>
39616
39617         * modules/fchdir: New file.
39618         * modules/unistd (Files): Add lib/unistd_.h.
39619         (Makefile.am): Generate unistd.h from unistd_.h.
39620         * lib/fchdir.c: New file.
39621         * lib/dirent_.h: New file.
39622         * lib/unistd_.h: New file.
39623         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39624         * m4/fchdir.m4: New file.
39625         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39626         (gl_HEADER_UNISTD): Invoke it.
39627         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39628         function.
39629         * lib/backupfile.c (opendir, closedir): Undefine.
39630         * lib/chown.c (open, close): Undefine.
39631         * lib/clean-temp.c (open, close): Undefine.
39632         * lib/copy-file.c (open, close): Undefine.
39633         * lib/execute.c (open, close): Undefine.
39634         * lib/fsusage.c (open, close): Undefine.
39635         * lib/gc-gnulib.c (open, close): Undefine.
39636         * lib/getcwd.c (opendir, closedir): Undefine.
39637         * lib/glob.c (opendir, closedir): Undefine.
39638         * lib/javacomp.c (open, close): Undefine.
39639         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39640         * lib/openat-proc.c (open, close): Undefine.
39641         * lib/pagealign_alloc.c (open, close): Undefine.
39642         * lib/pipe.c (open, close): Undefine.
39643         * lib/progreloc.c (open, close): Undefine.
39644         * lib/savedir.c (opendir, closedir): Undefine.
39645         * lib/utime.c (open, close): Undefine.
39646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39647
39648 2007-01-10  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39651
39652 2007-01-12  Eric Blake  <ebb9@byu.net>
39653
39654         Provide a robust <wchar.h>.  Further simplifications are now
39655         possible in other modules, but not included here.
39656         * modules/wchar: New module.
39657         * m4/wchar.m4: New file.
39658         * lib/wchar_.h: Likewise.
39659         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39660         of the new module.
39661         * MODULES.html.sh (Extended multibyte and wide character utilities):
39662         New section.
39663
39664 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39665
39666         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39667         to a reasonable default for memory allocation.
39668         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39669         file system that reports garbage st_size values for symlinks.
39670         Problem reported by Liyang Hu.
39671
39672 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39673
39674         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39675         Emacs .#* auto-save files).
39676
39677 2007-01-11  Bruno Haible  <bruno@clisp.org>
39678
39679         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39680         directory.
39681
39682 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39683
39684         Use @...@ consistently in lib/wctype_.h.
39685         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
39686         on it being set to 1 or 0.
39687         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
39688         go back to AC_SUBSTing it.
39689         * modules/wctype (Makefile.am): Undo previous change.
39690
39691 2007-01-10  Eric Blake  <ebb9@byu.net>
39692
39693         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
39694         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
39695         * modules/wctype (Makefile.am): Likewise.
39696         Reported by Chris McGuire.
39697
39698 2007-01-10  Jim Meyering  <jim@meyering.net>
39699
39700         fts.c: a small readability/maintainability improvement
39701         * lib/fts.c (fts_read): Make this code slightly more readable and
39702         maintainable by hoisting the "sp->fts_cur = p" assignments to
39703         immediately follow the statements that set P.  Derived from
39704         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
39705
39706 2007-01-10  Eric Blake  <ebb9@byu.net>
39707
39708         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
39709         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
39710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39711         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39712         Reported by Chris McGuire.
39713
39714 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39715
39716         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
39717         in sed script.
39718
39719 2007-01-09  Bruno Haible  <bruno@clisp.org>
39720
39721         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
39722         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
39723         variables.
39724         (func_module): Use them.
39725
39726 2007-01-09  Bruno Haible  <bruno@clisp.org>
39727
39728         * modules/unistr/base: New file.
39729         * lib/unistr.h: New file.
39730
39731         * modules/unistr/u8-to-u16: New file.
39732         * lib/unistr/u8-to-u16.c: New file.
39733
39734         * modules/unistr/u8-to-u32: New file.
39735         * lib/unistr/u8-to-u32.c: New file.
39736
39737         * modules/unistr/u16-to-u8: New file.
39738         * lib/unistr/u16-to-u8.c: New file.
39739
39740         * modules/unistr/u16-to-u32: New file.
39741         * lib/unistr/u16-to-u32.c: New file.
39742
39743         * modules/unistr/u32-to-u8: New file.
39744         * lib/unistr/u32-to-u8.c: New file.
39745
39746         * modules/unistr/u32-to-u16: New file.
39747         * lib/unistr/u32-to-u16.c: New file.
39748
39749         * modules/unistr/u8-check: New file.
39750         * modules/unistr/u16-check: New file.
39751         * modules/unistr/u32-check: New file.
39752         * lib/unistr/u8-check.c: New file.
39753         * lib/unistr/u16-check.c: New file.
39754         * lib/unistr/u32-check.c: New file.
39755
39756         * modules/unistr/u8-chr: New file.
39757         * modules/unistr/u16-chr: New file.
39758         * modules/unistr/u32-chr: New file.
39759         * lib/unistr/u8-chr.c: New file.
39760         * lib/unistr/u16-chr.c: New file.
39761         * lib/unistr/u32-chr.c: New file.
39762
39763         * modules/unistr/u8-cmp: New file.
39764         * modules/unistr/u16-cmp: New file.
39765         * modules/unistr/u32-cmp: New file.
39766         * lib/unistr/u8-cmp.c: New file.
39767         * lib/unistr/u16-cmp.c: New file.
39768         * lib/unistr/u32-cmp.c: New file.
39769
39770         * modules/unistr/u8-cpy: New file.
39771         * modules/unistr/u16-cpy: New file.
39772         * modules/unistr/u32-cpy: New file.
39773         * lib/unistr/u8-cpy.c: New file.
39774         * lib/unistr/u16-cpy.c: New file.
39775         * lib/unistr/u32-cpy.c: New file.
39776         * lib/unistr/u-cpy.h: New file.
39777
39778         * modules/unistr/u8-cpy-alloc: New file.
39779         * modules/unistr/u16-cpy-alloc: New file.
39780         * modules/unistr/u32-cpy-alloc: New file.
39781         * lib/unistr/u8-cpy-alloc.c: New file.
39782         * lib/unistr/u16-cpy-alloc.c: New file.
39783         * lib/unistr/u32-cpy-alloc.c: New file.
39784         * lib/unistr/u-cpy-alloc.h: New file.
39785
39786         * modules/unistr/u8-endswith: New file.
39787         * modules/unistr/u16-endswith: New file.
39788         * modules/unistr/u32-endswith: New file.
39789         * lib/unistr/u8-endswith.c: New file.
39790         * lib/unistr/u16-endswith.c: New file.
39791         * lib/unistr/u32-endswith.c: New file.
39792         * lib/unistr/u-endswith.h: New file.
39793
39794         * modules/unistr/u8-mblen: New file.
39795         * modules/unistr/u16-mblen: New file.
39796         * modules/unistr/u32-mblen: New file.
39797         * lib/unistr/u8-mblen.c: New file.
39798         * lib/unistr/u16-mblen.c: New file.
39799         * lib/unistr/u32-mblen.c: New file.
39800
39801         * modules/unistr/u8-mbtouc: New file.
39802         * modules/unistr/u16-mbtouc: New file.
39803         * modules/unistr/u32-mbtouc: New file.
39804         * lib/unistr/u8-mbtouc.c: New file.
39805         * lib/unistr/u16-mbtouc.c: New file.
39806         * lib/unistr/u32-mbtouc.c: New file.
39807
39808         * modules/unistr/u8-mbtouc-safe: New file.
39809         * modules/unistr/u16-mbtouc-safe: New file.
39810         * modules/unistr/u32-mbtouc-safe: New file.
39811         * lib/unistr/u8-mbtouc-safe.c: New file.
39812         * lib/unistr/u16-mbtouc-safe.c: New file.
39813         * lib/unistr/u32-mbtouc-safe.c: New file.
39814
39815         * modules/unistr/u8-move: New file.
39816         * modules/unistr/u16-move: New file.
39817         * modules/unistr/u32-move: New file.
39818         * lib/unistr/u8-move.c: New file.
39819         * lib/unistr/u16-move.c: New file.
39820         * lib/unistr/u32-move.c: New file.
39821         * lib/unistr/u-move.h: New file.
39822
39823         * modules/unistr/u8-next: New file.
39824         * modules/unistr/u16-next: New file.
39825         * modules/unistr/u32-next: New file.
39826         * lib/unistr/u8-next.c: New file.
39827         * lib/unistr/u16-next.c: New file.
39828         * lib/unistr/u32-next.c: New file.
39829
39830         * modules/unistr/u8-prev: New file.
39831         * modules/unistr/u16-prev: New file.
39832         * modules/unistr/u32-prev: New file.
39833         * lib/unistr/u8-prev.c: New file.
39834         * lib/unistr/u16-prev.c: New file.
39835         * lib/unistr/u32-prev.c: New file.
39836
39837         * modules/unistr/u8-set: New file.
39838         * modules/unistr/u16-set: New file.
39839         * modules/unistr/u32-set: New file.
39840         * lib/unistr/u8-set.c: New file.
39841         * lib/unistr/u16-set.c: New file.
39842         * lib/unistr/u32-set.c: New file.
39843         * lib/unistr/u-set.h: New file.
39844
39845         * modules/unistr/u8-startswith: New file.
39846         * modules/unistr/u16-startswith: New file.
39847         * modules/unistr/u32-startswith: New file.
39848         * lib/unistr/u8-startswith.c: New file.
39849         * lib/unistr/u16-startswith.c: New file.
39850         * lib/unistr/u32-startswith.c: New file.
39851         * lib/unistr/u-startswith.h: New file.
39852
39853         * modules/unistr/u8-stpcpy: New file.
39854         * modules/unistr/u16-stpcpy: New file.
39855         * modules/unistr/u32-stpcpy: New file.
39856         * lib/unistr/u8-stpcpy.c: New file.
39857         * lib/unistr/u16-stpcpy.c: New file.
39858         * lib/unistr/u32-stpcpy.c: New file.
39859         * lib/unistr/u-stpcpy.h: New file.
39860
39861         * modules/unistr/u8-stpncpy: New file.
39862         * modules/unistr/u16-stpncpy: New file.
39863         * modules/unistr/u32-stpncpy: New file.
39864         * lib/unistr/u8-stpncpy.c: New file.
39865         * lib/unistr/u16-stpncpy.c: New file.
39866         * lib/unistr/u32-stpncpy.c: New file.
39867         * lib/unistr/u-stpncpy.h: New file.
39868
39869         * modules/unistr/u8-strcat: New file.
39870         * modules/unistr/u16-strcat: New file.
39871         * modules/unistr/u32-strcat: New file.
39872         * lib/unistr/u8-strcat.c: New file.
39873         * lib/unistr/u16-strcat.c: New file.
39874         * lib/unistr/u32-strcat.c: New file.
39875         * lib/unistr/u-strcat.h: New file.
39876
39877         * modules/unistr/u8-strchr: New file.
39878         * modules/unistr/u16-strchr: New file.
39879         * modules/unistr/u32-strchr: New file.
39880         * lib/unistr/u8-strchr.c: New file.
39881         * lib/unistr/u16-strchr.c: New file.
39882         * lib/unistr/u32-strchr.c: New file.
39883
39884         * modules/unistr/u8-strcmp: New file.
39885         * modules/unistr/u16-strcmp: New file.
39886         * modules/unistr/u32-strcmp: New file.
39887         * lib/unistr/u8-strcmp.c: New file.
39888         * lib/unistr/u16-strcmp.c: New file.
39889         * lib/unistr/u32-strcmp.c: New file.
39890
39891         * modules/unistr/u8-strcpy: New file.
39892         * modules/unistr/u16-strcpy: New file.
39893         * modules/unistr/u32-strcpy: New file.
39894         * lib/unistr/u8-strcpy.c: New file.
39895         * lib/unistr/u16-strcpy.c: New file.
39896         * lib/unistr/u32-strcpy.c: New file.
39897         * lib/unistr/u-strcpy.h: New file.
39898
39899         * modules/unistr/u8-strcspn: New file.
39900         * modules/unistr/u16-strcspn: New file.
39901         * modules/unistr/u32-strcspn: New file.
39902         * lib/unistr/u8-strcspn.c: New file.
39903         * lib/unistr/u16-strcspn.c: New file.
39904         * lib/unistr/u32-strcspn.c: New file.
39905         * lib/unistr/u-strcspn.h: New file.
39906
39907         * modules/unistr/u8-strdup: New file.
39908         * modules/unistr/u16-strdup: New file.
39909         * modules/unistr/u32-strdup: New file.
39910         * lib/unistr/u8-strdup.c: New file.
39911         * lib/unistr/u16-strdup.c: New file.
39912         * lib/unistr/u32-strdup.c: New file.
39913         * lib/unistr/u-strdup.h: New file.
39914
39915         * modules/unistr/u8-strlen: New file.
39916         * modules/unistr/u16-strlen: New file.
39917         * modules/unistr/u32-strlen: New file.
39918         * lib/unistr/u8-strlen.c: New file.
39919         * lib/unistr/u16-strlen.c: New file.
39920         * lib/unistr/u32-strlen.c: New file.
39921         * lib/unistr/u-strlen.h: New file.
39922
39923         * modules/unistr/u8-strmblen: New file.
39924         * modules/unistr/u16-strmblen: New file.
39925         * modules/unistr/u32-strmblen: New file.
39926         * lib/unistr/u8-strmblen.c: New file.
39927         * lib/unistr/u16-strmblen.c: New file.
39928         * lib/unistr/u32-strmblen.c: New file.
39929
39930         * modules/unistr/u8-strmbtouc: New file.
39931         * modules/unistr/u16-strmbtouc: New file.
39932         * modules/unistr/u32-strmbtouc: New file.
39933         * lib/unistr/u8-strmbtouc.c: New file.
39934         * lib/unistr/u16-strmbtouc.c: New file.
39935         * lib/unistr/u32-strmbtouc.c: New file.
39936
39937         * modules/unistr/u8-strncat: New file.
39938         * modules/unistr/u16-strncat: New file.
39939         * modules/unistr/u32-strncat: New file.
39940         * lib/unistr/u8-strncat.c: New file.
39941         * lib/unistr/u16-strncat.c: New file.
39942         * lib/unistr/u32-strncat.c: New file.
39943         * lib/unistr/u-strncat.h: New file.
39944
39945         * modules/unistr/u8-strncmp: New file.
39946         * modules/unistr/u16-strncmp: New file.
39947         * modules/unistr/u32-strncmp: New file.
39948         * lib/unistr/u8-strncmp.c: New file.
39949         * lib/unistr/u16-strncmp.c: New file.
39950         * lib/unistr/u32-strncmp.c: New file.
39951
39952         * modules/unistr/u8-strncpy: New file.
39953         * modules/unistr/u16-strncpy: New file.
39954         * modules/unistr/u32-strncpy: New file.
39955         * lib/unistr/u8-strncpy.c: New file.
39956         * lib/unistr/u16-strncpy.c: New file.
39957         * lib/unistr/u32-strncpy.c: New file.
39958         * lib/unistr/u-strncpy.h: New file.
39959
39960         * modules/unistr/u8-strnlen: New file.
39961         * modules/unistr/u16-strnlen: New file.
39962         * modules/unistr/u32-strnlen: New file.
39963         * lib/unistr/u8-strnlen.c: New file.
39964         * lib/unistr/u16-strnlen.c: New file.
39965         * lib/unistr/u32-strnlen.c: New file.
39966         * lib/unistr/u-strnlen.h: New file.
39967
39968         * modules/unistr/u8-strpbrk: New file.
39969         * modules/unistr/u16-strpbrk: New file.
39970         * modules/unistr/u32-strpbrk: New file.
39971         * lib/unistr/u8-strpbrk.c: New file.
39972         * lib/unistr/u16-strpbrk.c: New file.
39973         * lib/unistr/u32-strpbrk.c: New file.
39974         * lib/unistr/u-strpbrk.h: New file.
39975
39976         * modules/unistr/u8-strrchr: New file.
39977         * modules/unistr/u16-strrchr: New file.
39978         * modules/unistr/u32-strrchr: New file.
39979         * lib/unistr/u8-strrchr.c: New file.
39980         * lib/unistr/u16-strrchr.c: New file.
39981         * lib/unistr/u32-strrchr.c: New file.
39982
39983         * modules/unistr/u8-strspn: New file.
39984         * modules/unistr/u16-strspn: New file.
39985         * modules/unistr/u32-strspn: New file.
39986         * lib/unistr/u8-strspn.c: New file.
39987         * lib/unistr/u16-strspn.c: New file.
39988         * lib/unistr/u32-strspn.c: New file.
39989         * lib/unistr/u-strspn.h: New file.
39990
39991         * modules/unistr/u8-strstr: New file.
39992         * modules/unistr/u16-strstr: New file.
39993         * modules/unistr/u32-strstr: New file.
39994         * lib/unistr/u8-strstr.c: New file.
39995         * lib/unistr/u16-strstr.c: New file.
39996         * lib/unistr/u32-strstr.c: New file.
39997         * lib/unistr/u-strstr.h: New file.
39998
39999         * modules/unistr/u8-strtok: New file.
40000         * modules/unistr/u16-strtok: New file.
40001         * modules/unistr/u32-strtok: New file.
40002         * lib/unistr/u8-strtok.c: New file.
40003         * lib/unistr/u16-strtok.c: New file.
40004         * lib/unistr/u32-strtok.c: New file.
40005         * lib/unistr/u-strtok.h: New file.
40006
40007         * modules/unistr/u8-uctomb: New file.
40008         * modules/unistr/u16-uctomb: New file.
40009         * modules/unistr/u32-uctomb: New file.
40010         * lib/unistr/u8-uctomb.c: New file.
40011         * lib/unistr/u16-uctomb.c: New file.
40012         * lib/unistr/u32-uctomb.c: New file.
40013
40014         * MODULES.html.sh (Unicode string functions): Add the new modules.
40015
40016 2007-01-08  Bruno Haible  <bruno@clisp.org>
40017
40018         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40019         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40020         subdirectories.
40021
40022 2007-01-08  Karl Berry  <karl@gnu.org>
40023
40024         * doc/error.texi: mention that main() fns must set program_name
40025         when progname is used.
40026
40027 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40030         WCTYPE_H is empty, for the benefit of builds from non-distclean
40031         directories.  Problem reported by Eric Blake in
40032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40033
40034 2007-01-08  Bruno Haible  <bruno@clisp.org>
40035
40036         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40037         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40038         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40039         PROVIDE_CANONICALIZE_FILENAME_MODE.
40040         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40041
40042 2007-01-08  Bruno Haible  <bruno@clisp.org>
40043
40044         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40045         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40046         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40047         * lib/fts.c: Likewise.
40048         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40049
40050 2006-12-25  Bruno Haible  <bruno@clisp.org>
40051
40052         * modules/utf8-ucs4-safe: New file.
40053         * lib/utf8-ucs4-safe.h: New file.
40054         * lib/unistr/utf8-ucs4-safe.c: New file.
40055
40056         * modules/utf16-ucs4-safe: New file.
40057         * lib/utf16-ucs4-safe.h: New file.
40058         * lib/unistr/utf16-ucs4-safe.c: New file.
40059
40060         * MODULES.html.sh (Unicode string functions): Add the new modules.
40061
40062 2007-01-08  Bruno Haible  <bruno@clisp.org>
40063
40064         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40065         (Depends-on): Add unitypes.
40066         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40067         (u8_mbtouc_aux): Move out to separate file.
40068         (u8_mbtouc): Use ucs4_t, uint8_t types.
40069         * lib/unistr/utf8-ucs4.c: New file.
40070
40071         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40072         (Depends-on): Add unitypes.
40073         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40074         (u16_mbtouc_aux): Move out to separate file.
40075         (u16_mbtouc): Use ucs4_t, uint16_t types.
40076         * lib/unistr/utf16-ucs4.c: New file.
40077
40078         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40079         (Depends-on): Add unitypes.
40080         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40081         (u8_uctomb_aux): Move out to separate file.
40082         (u8_uctomb): Use ucs4_t, uint8_t types.
40083         * lib/unistr/ucs4-utf8.c: New file.
40084
40085         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40086         (Depends-on): Add unitypes.
40087         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40088         (u16_uctomb_aux): Move out to separate file.
40089         (u16_uctomb): Use ucs4_t, uint16_t types.
40090         * lib/unistr/ucs4-utf16.c: New file.
40091
40092 2006-12-25  Bruno Haible  <bruno@clisp.org>
40093
40094         * modules/unitypes: New file.
40095         * lib/unitypes.h: New file.
40096         * MODULES.html.sh (func_all_modules): New section "Unicode string
40097         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40098         this section. Add unitypes.
40099
40100 2007-01-08  Bruno Haible  <bruno@clisp.org>
40101
40102         Avoid variable names that conflict with those from libtool.
40103         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40104         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40105         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40106         library_names_spec to acl_library_names_spec, hardcode_* to
40107         acl_hardcode_*.
40108         Reported by Ralf Wildenhues.
40109
40110 2007-01-08  Bruno Haible  <bruno@clisp.org>
40111
40112         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40113         definition.
40114         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40115         definition.
40116         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40117         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40118         definition.
40119         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40120         definition.
40121         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40122         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40123         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40124         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40125         definition.
40126         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40127         definition.
40128         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40129         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40130         GC_USE_<algorithm>.
40131         * lib/gc-libgcrypt.c: Likewise.
40132         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40133         * modules/gc-arctwo (configure.ac): Likewise.
40134         * modules/gc-des (configure.ac): Likewise.
40135         * modules/gc-hmac-md5 (configure.ac): Likewise.
40136         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40137         * modules/gc-md2 (configure.ac): Likewise.
40138         * modules/gc-md4 (configure.ac): Likewise.
40139         * modules/gc-md5 (configure.ac): Likewise.
40140         * modules/gc-random (configure.ac): Likewise.
40141         * modules/gc-rijndael (configure.ac): Likewise.
40142         * modules/gc-sha1 (configure.ac): Likewise.
40143
40144 2007-01-08  Bruno Haible  <bruno@clisp.org>
40145
40146         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40147         macro definition.
40148         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40149         definition.
40150         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40151         definition.
40152         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40153         * modules/fcntl-safer (configure.ac): Likewise.
40154         * modules/fopen-safer (configure.ac): Likewise.
40155         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40156         GNULIB_FWRITEERROR macro definition.
40157
40158 2007-01-08  Bruno Haible  <bruno@clisp.org>
40159
40160         * m4/gnulib-common.m4: New file.
40161         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40162         (func_get_filelist): Add m4/gnulib-common.m4.
40163
40164 2007-01-08  Bruno Haible  <bruno@clisp.org>
40165
40166         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40167         command.
40168
40169 2007-01-08  Jim Meyering  <jim@meyering.net>
40170
40171         Use a more robust test for a "can't happen" condition.
40172         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40173         narrowed the st_size value.  Presuming the "can't happen" condition
40174         is true, that narrowing could conceivably convert an invalid st_size
40175         value into a valid one.  Instead, use a change based on Matthew
40176         Woehlke's original patch.
40177
40178         Slight readability improvement: use an assert-like macro
40179         in place of literal "abort ()" uses.
40180         * lib/fts.c (fts_assert): Define.
40181         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40182         Use this macro instead of a bare 'abort'.
40183
40184 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40185
40186         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40187         simply work around them.
40188         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40189         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40190         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40191         declaring.
40192         Don't bother to define as macros, since the standard doesn't require it.
40193         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40194         longer worry about IRIX 5.3.
40195         (HAVE_WCTYPE_CTMP_BUG): Remove.
40196
40197 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40198
40199         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40200         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40201         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40202         Problems reported by Georg Schwarz for IRIX 5.3.
40203
40204         * gnulib-tool (autoconf_minversion): Take the maximum version number
40205         found, not the minimum.  Problem reported by James Youngman.
40206
40207 2007-01-03  Karl Berry  <karl@gnu.org>
40208
40209         * doc/error.texi: new file, explaining interaction with progname.
40210         * doc/gnulib.texi: include it.  Update copyright.
40211
40212 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40213
40214         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40215         AC_CANONICAL_HOST, to improve autobuild outputs.
40216
40217 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40218             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40219
40220         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40221         sockets, server sockets, and other file descriptors.  Count errors
40222         to compute the return value.  Reorder the code a bit to be easier
40223         to follow.  Don't set event bits that were not requested (except
40224         POLLERR and POLLHUP).
40225
40226 2007-01-01  Bruno Haible  <bruno@clisp.org>
40227
40228         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40229
40230 2007-01-03  Jim Meyering  <jim@meyering.net>
40231
40232         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40233
40234 2007-01-02  Bruno Haible  <bruno@clisp.org>
40235
40236         * modules/settime (Include): Require timespec.h.
40237         * modules/nanosleep (Include): Likewise.
40238
40239 2007-01-01  Bruno Haible  <bruno@clisp.org>
40240
40241         * gnulib-tool (func_emit_copyright_notice): Bump year.
40242         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40243
40244 2007-01-01  Bruno Haible  <bruno@clisp.org>
40245
40246         Improve support for OpenBSD.
40247         * build-aux/config.rpath (libname_spec): Export.
40248         (library_names_spec): New variable. Export.
40249         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40250         library_names_spec from the config.rpath output. Locate shared library
40251         through the name pattern in library_names_spec.
40252
40253 2007-01-01  Eric Blake  <ebb9@byu.net>
40254
40255         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40256
40257 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40258
40259         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40260         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40261         assume the C locale, and avoid an "eval" that could cause trouble.
40262         Problem with SORT reported by Bob Proulx.
40263
40264         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40265         Define.  Trivial patch from Henning Nielsen Lund, originally
40266         sent to bug-grep@gnu.org today.
40267
40268 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40271         struct stat.  Problem reported by Henning Nielsen Lund.
40272         * lib/acl.c: Include acl.h first, to check interface.  Don't
40273         bother to include sys/types.h and sys/stat.h again.
40274
40275 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40276
40277         Import the following change from libc; problem reported by
40278         Sven Verdoolaege.
40279
40280         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40281
40282         [BZ #1373]
40283         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40284
40285 2006-12-28  Jim Meyering  <jim@meyering.net>
40286
40287         * build-aux/announce-gen: Do not assume that the package
40288         builds any of tar.gz, tar.bz2, and .xdelta files.
40289         Suggestion from Simon Josefsson.
40290
40291 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40292
40293         * modules/announce-gen: New file.
40294
40295 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40296
40297         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40298         handles its gotchas now.
40299         * lib/mbswidth.c: Likewise.
40300         * lib/wcwidth.h: Likewise.
40301         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40302         and iswcntrl; the wctype module does this stuff now.
40303         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40305         * modules/mbchar (Depends-on): Add wctype.
40306         * modules/mbswidth (Depends-on): Likewise.
40307         * modules/wcwidth (Depends-on): Likewise.
40308
40309 2006-12-27  Eric Blake  <ebb9@byu.net>
40310
40311         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40312         module uses more than what <wctype.h> is required to provide.
40313
40314 2006-12-26  Eric Blake  <ebb9@byu.net>
40315
40316         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40317
40318 2006-12-26  Eric Blake  <ebb9@byu.net>
40319
40320         * modules/absolute-header: New module.
40321         * modules/fcntl (Depends-on): Depend on it.
40322         * modules/inttypes (Depends-on): Likewise.
40323         * modules/stdint (Depends-on): Likewise.
40324         * modules/sys_stat (Depends-on): Likewise.
40325         * modules/wctype (Depends-on): Likewise.
40326         * MODULES.html.sh (Support for building libraries and
40327         executables): Document it.
40328
40329 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40330
40331         * gnulib-tool (SED): Remove, undoing previous change.
40332         The problem was that it broke coreutils on Solaris, because
40333         "sed --posix" leaked into a makefile.
40334         (sed): New alias, if 'alias' and GNU sed.
40335
40336 2006-12-24  Jim Meyering  <jim@meyering.net>
40337
40338         Work around an fchownat bug in glibc-2.4:
40339         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40340         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40341         in spite of the -P option.
40342         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40343         New macros.
40344         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40345         * modules/openat (Files): Add lib/fchownat.c.
40346         * lib/openat.c (fchownat): Don't define here.  Move to...
40347         * lib/fchownat.c: ...this new file.
40348
40349 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40350
40351         Fix bug reported by Bruno Haible in
40352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40353         where quotearg.c didn't compile on Mac OS X 10.2 because it
40354         lacks <wchar.h> and wint_t.
40355         * lib/wctype_.h (__wctype_wint_t): New type.
40356         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40357         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40358         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40359         Arg is now of type __wctype_wint_t, not wint_t.
40360         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40361         substitute HAVE_WINT_T.
40362         * modules/wctype (Files): Add m4/wint_t.m4.
40363         (wctype.h): Substitute HAVE_WINT_T.
40364
40365 2006-12-23  Bruno Haible  <bruno@clisp.org>
40366
40367         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40368
40369 2006-12-23  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40372         S_ISLNK.
40373         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40374         mingw.
40375
40376 2006-12-22  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/copy-file.c: Include acl.h.
40379         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40380         Close the file descriptors only after being done with copy_acl.
40381         * modules/copy-file (Depends-on): Add acl.
40382
40383 2006-12-22  Bruno Haible  <bruno@clisp.org>
40384
40385         * gnulib-tool (SED): New variable.
40386         Use $SED instead of sed everywhere.
40387
40388 2006-12-22  Bruno Haible  <bruno@clisp.org>
40389
40390         * modules/no-c++: New file.
40391         * m4/no-c++.m4: New file.
40392         * MODULES.html.sh (Support for building libraries and executables):
40393         Add no-c++.
40394
40395 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40396
40397         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40398         Include <limits.h>, and use its INT_MAX to rewrite the
40399         j loop so that it does not overflow 'int'.  Problem reported by
40400         Ralf Wildenhues in
40401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40402         Play it safe by shifting left by 1 rather than multiplying by 2,
40403         as GCC is less likely to optimize this away when the value
40404         is signed (when it assumes overflow leads to undefined behavior).
40405         Also, don't assume time_t uses two's complement.
40406
40407 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40408
40409         * MODULES.html.sh: New module wctype.
40410         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40411         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40412         <wctype.h>, since the new wctype module should fix this.
40413         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40414         the wctype module should arrange for it.
40415         * lib/regex_internal.h: Likewise.
40416         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40417         since the wctype module should handle this now.
40418         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40419         * modules/fnmatch (Depends-on): Add wctype.
40420         * modules/quotearg (Depends-on): Likewise.
40421         * modules/regex (Depends-on): Likewise.
40422
40423 2006-12-19  Bruno Haible  <bruno@clisp.org>
40424
40425         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40426         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40427
40428 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40429
40430         * modules/savewd (Depends-on): Fix dependency on fcntl.
40431
40432 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40433
40434         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40435         conforms to C99, rather than relying on the user's environment
40436         setting of STDINT_H.
40437
40438 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40439         and Eric Blake  <ebb9@byu.net>
40440
40441         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40442         This is more consistent with the other defines here.
40443         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40444         Port to z/OS.  Problem reported by Paul Gilmartin.
40445         Change local vars to use gl_ prefix rather than ac_.
40446         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40447         with other defines.
40448         * modules/double-slash-root: New module.
40449         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40450         (Depends-on): Add double-slash-root.
40451         * MODULES.html.sh (File system functions): Mention new module.
40452
40453 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40454
40455         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40456         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40457         This is for the benefit of gzip, which doesn't do i18n.
40458
40459 2006-12-12  Jim Meyering  <jim@meyering.net>
40460
40461         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40462         Reported by Andreas Schwab <schwab@suse.de>.
40463
40464 2006-12-12  Bruno Haible  <bruno@clisp.org>
40465
40466         Merge these changes.
40467         2006-09-05  Bruno Haible  <bruno@clisp.org>
40468         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40469         iconv_alloc succeeded.
40470         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40471         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40472         test for " && dest " at the end - dest is always != NULL there. Call
40473         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40474         with 2xNULL arguments, also to flush the state storage. Handle the
40475         IRIX iconv behaviour. Realloc the final result, to throw away unused
40476         memory.
40477
40478 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40479
40480         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40481         and fchmodat unconditionally, since glibc 2.4 has them.
40482         Problem reported by Arkadiusz Miskiewicz.
40483
40484 2006-12-10  Bruno Haible  <bruno@clisp.org>
40485
40486         * gnulib-tool (func_import): Show the include files only for those
40487         modules that are copied and specified.
40488         Reported by Karl Berry.
40489
40490 2006-12-08  Jim Meyering  <jim@meyering.net>
40491
40492         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40493         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40494
40495         * build-aux/announce-gen: Add two new options, both optional:
40496         --bootstrap-tools=TOOL_LIST
40497               a comma-separated list of tools, e.g.,
40498               autoconf,automake,bison,gnulib
40499         --gnulib-snapshot-date=DATE
40500               if gnulib is in the bootstrap tool list,
40501               then report this as the snapshot date.
40502               If not specified, use the current date/time.
40503               If you specify a date here, be sure it's UTC.
40504
40505 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40506
40507         * tests/test-argp-2.sh: Fix test to match actual output.
40508         (func_compare): Fix sed script to be portable.
40509
40510 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40511
40512         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40513         workaround for this case.  It is not autoconfigured now; offhand
40514         it's hard to see how to autoconfigure it.
40515
40516 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40517
40518         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40519         a directory that is about to be chowned.  Such a directory's
40520         initial file permissions should permit the owner only and this
40521         should not be changed until after the chown, since the group and
40522         other bits would be incorrect if they granted permission before
40523         the chown.
40524
40525         Fix porting problem for iswctype reported by Georg Schwarz in:
40526         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40527         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40528         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40529         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40531
40532 2006-12-03  Jim Meyering  <jim@meyering.net>
40533
40534         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40535         p->fts_statp may not yet be defined.
40536         (fts_read): Instead, set it in the caller, once p->fts_statp is
40537         sure to be defined, and corresponds to a top-level directory.
40538         This bug made du -x fail.  Here's the coreutils test case:
40539         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40540         Reported by Mike Frysinger.
40541
40542 2006-12-01  Jim Meyering  <jim@meyering.net>
40543
40544         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40545         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40546         Reported by Simon Josefsson.
40547
40548 2006-11-30  Jim Meyering  <jim@meyering.net>
40549
40550         * m4/warning.m4: Use the all-permissive copyright notice
40551         recommended by RMS (rather than LGPL).
40552         * m4/vararrays.m4: Likewise.
40553         * m4/flexmember.m4: Likewise.
40554
40555 2006-11-29  Bruno Haible  <bruno@clisp.org>
40556
40557         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40558         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40559         using +=.
40560         Reported by Simon Josefsson <simon@josefsson.org>.
40561
40562 2006-11-28  James Youngman <jay@gnu.org>
40563
40564         * README: Advise users that they might find the bug-gnulib@gnu.org
40565         and autotools-announce@gnu.org mailing lists useful.
40566
40567 2006-11-28  Bruno Haible  <bruno@clisp.org>
40568
40569         * m4/ptrdiff_max.m4: Remove file.
40570
40571 2006-11-21  Bruno Haible  <bruno@clisp.org>
40572
40573         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40574         _AC_COMPUTE_INT.
40575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40576         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40577         _AC_COMPUTE_INT.
40578         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40579         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40580         _AC_COMPUTE_INT.
40581         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40582
40583 2006-11-28  Jim Meyering  <jim@meyering.net>
40584
40585         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40586         warning from "gcc -Wshadow" about shadowing the builtin.
40587
40588 2006-11-27  Bruno Haible  <bruno@clisp.org>
40589
40590         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40591         _AC_COMPUTE_INT.
40592         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40593
40594 2006-11-27  Bruno Haible  <bruno@clisp.org>
40595             Paul Eggert  <eggert@cs.ucla.edu>
40596
40597         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40598
40599 2006-11-26  Bruno Haible  <bruno@clisp.org>
40600
40601         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40602         noinst_LTLIBRARIES.
40603
40604 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40605             Bruno Haible  <bruno@clisp.org>
40606
40607         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40608         if compiling with "gcc -ansi".
40609
40610 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40611
40612         Fix some incompatibilities with gcc -ansi -pedantic.
40613         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40614         if compiling pedantically with GCC, unless it's C99 or later.
40615         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40616         it mishandles gcc -ansi -pedantic as well.
40617         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40618         if gcc -pedantic.
40619         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40620         initializers for struct if -pedantic, unless it's C99 or later.
40621
40622 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40623
40624         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40625         Don't close an fd more than once. Identical atimes indicate
40626         success, not failure.
40627
40628 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40629
40630         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40631
40632 2006-11-23  Jim Meyering  <jim@meyering.net>
40633
40634         * build-aux/announce-gen: New file.  From coreutils.
40635
40636 2006-11-22  Jim Meyering  <jim@meyering.net>
40637
40638         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40639         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40640         (fts_read): Use a temporary to narrow the overused st_size member
40641         before using it in a switch statement.  Reported by Matthew Woehlke.
40642
40643         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40644         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40645
40646 2006-11-20  Bruno Haible  <bruno@clisp.org>
40647
40648         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40649         changequote instead of pairs of brackets.
40650         Reported by Andreas Schwab <schwab@suse.de>.
40651
40652 2006-11-21  Jim Meyering  <jim@meyering.net>
40653
40654         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40655         so as to remain compatible with older compilers.
40656         Patch from Michael Deutschmann.
40657
40658 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * MODULES.html.sh (File system functions): Add openat.
40661
40662         * lib/openat.h (rpl_fstatat): New macro, if
40663         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40664         (fstatat): Define to rpl_fstatat under the same conditions,
40665         unless COMPILING_FSTATAT.
40666         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40667         seems to have the bug.
40668         * lib/fstatat.c: New file.
40669         * modules/openat (Files): Add it.
40670
40671 2006-11-20  Bruno Haible  <bruno@clisp.org>
40672
40673         * Makefile: New file.
40674
40675 2006-11-20  Jim Meyering  <jim@meyering.net>
40676
40677         The beginnings of syntax-related checks for gnulib.
40678         * lib/Makefile: New file.
40679         * lib/t-idcache: New script.  Ensure that the two halves of
40680         idcache.c stay in sync.
40681
40682         * lib/idcache.c: Adjust comments in user- and group- portions to
40683         be more accurate, and to be consistent with one another.
40684
40685 2006-11-20  Jim Meyering  <jim@meyering.net>
40686
40687         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
40688         continue using the flexible array member (thus, this module performs
40689         half as many malloc calls), with the addition that...
40690         (getgroup, getuser): Consistently record a non-match via an empty
40691         "name" string, and map an empty string match to a NULL return value.
40692         * modules/idcache (Depends-on): Re-add flexmember.
40693
40694         * lib/idcache.c (getuser): Remove all uses of the register keyword.
40695         (getuidbyname, getgroup, getgidbyname): Likewise.
40696
40697         Use cleaner syntax: NULL rather than 0.
40698         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
40699
40700 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40701
40702         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
40703         It mishandled the case where the group was missing.
40704         Problem reported by Greg Schafer.
40705         * modules/idcache: Likewise.
40706
40707 2006-11-18  Jim Meyering  <jim@meyering.net>
40708
40709         * check-module (%exempt_header): Add exception for some
40710         conditionally-included headers.
40711
40712         * modules/i-ring (Depends-on): Add verify.
40713         (License): Change to LGPL.
40714
40715 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
40716
40717         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
40718         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
40719         and inttostr.h.  Use snprintf rather than uinttostr, so that
40720         LGPLed code doesn't depend on GPLed.
40721
40722 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
40723
40724         * modules/inline (License): Change from GPL to LGPL.
40725
40726 2006-11-17  Jim Meyering  <jim@meyering.net>
40727
40728         * modules/d-type (License): Switch to LGPL.
40729
40730 2006-11-15  Bruno Haible  <bruno@clisp.org>
40731
40732         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
40733
40734 2006-11-15  Eric Blake  <ebb9@byu.net>
40735
40736         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
40737         the module dependency.
40738
40739 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40740             Bruno Haible  <bruno@clisp.org>
40741
40742         * gnulib-tool (func_create_testdir): Add license consistency check.
40743
40744 2006-11-15  Eric Blake  <ebb9@byu.net>
40745
40746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
40747         random "(cached)" in configure output.
40748
40749 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40750
40751         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
40752         test for conforming inttypes.h is both announced and cached.
40753
40754         * MODULES.html.sh (seen_modules, seen_files): New variables.
40755         (func_module): Rewrite to use a few less gnulib-tool and sed
40756         invocations.  Avoid a couple of quadratic algorithms for ...
40757         (missed_modules, missed_files): ... these, with ...
40758         (func_append, func_tmpdir): ... these new functions, from
40759         gnulib-tool.  Analogously, install traps for cleanup.
40760
40761         * tests/test-gc.c (main): Remove unused variables.
40762         * tests/test-read-file.c: Include stdlib.h, for 'free'.
40763
40764 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
40765
40766         * modules/inttostr (License): Change to LGPL.
40767
40768 2006-11-14  Eric Blake  <ebb9@byu.net>
40769
40770         * modules/tempname (License): Change to LGPL.
40771
40772 2006-11-14  Eric Blake  <ebb9@byu.net>
40773
40774         * doc/functions.texi (Function Portability): *printf functions on
40775         Cygwin now understand all POSIX size specifiers.
40776
40777 2006-11-14  Bruno Haible  <bruno@clisp.org>
40778
40779         * modules/c-ctype (License): Change to LGPL.
40780
40781 2006-11-12  Bruno Haible  <bruno@clisp.org>
40782
40783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40784         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
40785         for GNOME libraries, for which the include files are installed in
40786         subdirectories of $prefix/include.
40787
40788 2006-11-12  Bruno Haible  <bruno@clisp.org>
40789
40790         * m4/lib-link.m4: Require at least autoconf-2.54.
40791         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
40792         name to underscores for the --with option.
40793
40794 2006-11-13  Bruno Haible  <bruno@clisp.org>
40795
40796         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
40797         the tests directory.
40798         Reported by Ralf Wildenhues.
40799
40800 2006-11-13  Bruno Haible  <bruno@clisp.org>
40801
40802         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
40803         (func_emit_initmacro_end): Undo the override here.
40804         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
40805         Works around the famous automake error in coreutils.
40806
40807 2006-11-13  Eric Blake  <ebb9@byu.net>
40808
40809         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
40810         element, not its node.
40811
40812 2006-11-12  Bruno Haible  <bruno@clisp.org>
40813
40814         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
40815         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
40816
40817 2006-11-12  Bruno Haible  <bruno@clisp.org>
40818
40819         * gnulib-tool: New option --local-symlink.
40820         (func_usage): Document it.
40821         (lsymbolic): New variable.
40822         (func_import, func_create_testdir): If --symlink was not specified,
40823         test whether --local-symlink was specified and the file comes from
40824         the local_gnulib_dir.
40825
40826 2006-11-12  Bruno Haible  <bruno@clisp.org>
40827
40828         * gnulib-tool (func_ln): New function.
40829         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
40830
40831 2006-11-12  Bruno Haible  <bruno@clisp.org>
40832
40833         Finish support for source files in subdirectories.
40834         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
40835         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
40836         AUTOMAKE_OPTIONS.
40837         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
40838
40839 2006-11-12  Bruno Haible  <bruno@clisp.org>
40840
40841         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40842         EXTRA_lib_SOURCES augmentation.
40843         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
40844
40845 2006-11-12  Jim Meyering  <jim@meyering.net>
40846
40847         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
40848         file descriptors.  This also averts a failure on systems with
40849         native openat support when a traversed directory lacks "x" access.
40850         * lib/fts_.h: Include "i-ring.h"
40851         (struct FTS) [fts_fd_ring]: New member.
40852         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
40853         (FCHDIR): Add parentheses.
40854         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
40855         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
40856         When descending, rather than simply closing the previous
40857         fts_cwd_fd value, push that file descriptor onto the ring.
40858         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
40859         (fts_open): Initialize the new fd_ring member.
40860         (fts_close): Clear the ring.
40861         (fts_safe_changedir): When possible, use our new fd_ring to skip
40862         the diropen and fstat and dev/ino comparison that would normally
40863         accompany a virtual `chdir ("..")'.
40864
40865         * modules/fts (Depends-on): Add i-ring.
40866         * modules/i-ring: New module.
40867         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
40868         * m4/i-ring.m4: New file.
40869
40870 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40871
40872         * gnulib-tool (func_create_testdir): Fix replacement of
40873         `build-aux' in configure.ac.  Run autotools in gltests
40874         subdirectory.
40875         (func_create_testdir, func_create_megatestdir, test): There is
40876         no need for '--force' in most autotool invocations in a new
40877         tree.  Actually fail the whole test if any of the tools, or the
40878         configure or make stages fail.
40879
40880         Sync from Automake.
40881         * build-aux/gnupload: Revert last change.  Add pointer to upload
40882         instructions of the GNU Maintenance Instructions.
40883         Suggestion by Karl Berry.
40884
40885 2006-11-10  Jim Meyering  <jim@meyering.net>
40886
40887         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
40888
40889 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40890
40891         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
40892         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
40893         (bind_textdomain_codeset) [! ENABLE_NLS]:
40894         Evaluate all the arguments.  That way, callers get compatible behavior
40895         if the arguments have side effects.  Also, it avoids some GCC
40896         diagnostics in some cases; Joel E. Denny reported problems when Bison
40897         was configured with --enable-gcc-warnigs.
40898
40899 2006-11-10  Jim Meyering  <jim@meyering.net>
40900
40901         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
40902         relevant options in CFLAGS (like -O, -fno-inline) are taken into
40903         account.
40904
40905 2006-11-10  Jim Meyering  <jim@meyering.net>
40906
40907         * modules/inline: New file/module.
40908         * modules/xalloc (Files): Remove m4/inline.m4.
40909         (Depends-on): Add inline, instead.
40910         * modules/oset: Likewise.
40911         * modules/list: Likewise.
40912
40913 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
40916         Problem reported by Matthew Woehlke.
40917
40918 2006-11-09  Bruno Haible  <bruno@clisp.org>
40919
40920         * lib/tempname.c (gen_tempname): Remove variant that invokes
40921         __gen_tempname.
40922         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
40923         __gen_tempname.
40924
40925 2006-11-08  Bruno Haible  <bruno@clisp.org>
40926
40927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
40928         to 'yes' instead of 'cross-compiling'.
40929
40930 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
40931
40932         * lib/quotearg.h (quotearg_free): New decl.
40933         * lib/quotearg.c (quotearg_free): New function.
40934         (slot0, nslots, slotvec0, slotvec):
40935         Now file-scope so that quotearg_free can get at them.
40936
40937 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40938
40939         Sync from Automake.
40940         * build-aux/gnupload: Add missing 'gnu' to example URL.
40941         Report by Karl Berry.
40942
40943 2006-11-08  Bruno Haible  <bruno@clisp.org>
40944
40945         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
40946         Suggested by Paul Eggert.
40947
40948 2006-11-08  Jim Meyering  <jim@meyering.net>
40949
40950         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
40951         It's already included if !_LIBC.
40952         (fts_safe_changedir): Add a comment.
40953
40954 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40955
40956         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
40957         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
40958         Matthew Woehlke.
40959
40960         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
40961         definitions up, to avoid colliding with change below.
40962         (static_inline) [HAVE_INLINE]: New macro.
40963         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
40964         Provide extern decls when !HAVE_INLINE.  Do not define unless
40965         static_inline is defined, either by us or by xmalloc.c.  Use
40966         static_inline rather than static inline.
40967         (XCALLOC): Optimize sizeof(T) = 1 case.
40968         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
40969
40970 2006-11-07  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
40973         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
40974         AC_C_INLINE.
40975         * modules/xalloc (Files): Add m4/inline.m4.
40976
40977 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40978
40979         * README: Fix typo.
40980         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
40981         (Miscellanous Notes): ...from this.
40982
40983 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
40984
40985         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40986         Mention that offsetof should be used instead of sizeof.
40987         From Bruno Haible.
40988
40989 2006-11-07  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
40992
40993 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40994
40995         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40996         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
40997         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
40998         (gl_tree_add_before, gl_tree_add_after):
40999         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41000         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41001         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41002         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41003         (gl_linked_add_after, gl_linked_add_at): Likewise.
41004         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41005         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41006         (gl_tree_add_before, gl_tree_add_after): Likewise.
41007         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41008         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41009         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41010
41011 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41012
41013         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41014
41015 2006-11-06  Bruno Haible  <bruno@clisp.org>
41016
41017         * m4/inline.m4: New file.
41018         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41019         * modules/list (Files): Add m4/inline.m4.
41020         * modules/oset (Files): Likewise.
41021
41022 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41023
41024         * lib/idcache.c: Include <stddef.h>, for offsetof.
41025         (struct userid.name): Change from char * to a flexible array member.
41026         All uses changed.
41027         * modules/idcache (Depends-on): Add flexmember.
41028
41029         * MODULES.html.sh (Core language properties): New module flexmember.
41030         * modules/flexmember, m4/flexmember.m4: New files.
41031
41032         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41033         inline functions that are identical with the old xnmalloc_inline,
41034         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41035         that we can avoid some unnecessary integer multiplications and
41036         divisions in the common case where the element size is known at
41037         compile time.
41038         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41039         needed.
41040         (xnboundedmalloc): Remove.
41041         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41042         arguments, for consistency with rest of this header.
41043         (xcharalloc): Rewrite using XNMALLOC.
41044         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41045         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41046         versions have been moved to lib/xalloc.h and renamed to be the
41047         non-*_inline versions.
41048         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41049         and xnrealloc functions, since those functions are now inline and
41050         now call us.
41051         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41052         renaming described above.
41053         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41054         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41055         captures the dependency in AC_C_INLINE.
41056
41057         New module canonicalize-lgpl, proposed by Charles Wilson in
41058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41059         with a few small changes afterwards.
41060         * MODULES.html.sh (File system functions): New module
41061         canonicalize-lgpl.
41062         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41063         and canonicalize_file_name.
41064         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41065         * modules/canonicalize-lgpl: New files.
41066
41067 2006-11-05  Bruno Haible  <bruno@clisp.org>
41068
41069         * gnulib-tool (func_import, func_create_testdir): Create directories
41070         also for files in subdirectories of lib/.
41071
41072 2006-11-05  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41075         ANSI C compliant.
41076
41077 2006-11-03  Bruno Haible  <bruno@clisp.org>
41078
41079         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41080         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41081         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41082         (xnboundedmalloc): New inline function.
41083         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41084         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41085         xmalloc.
41086         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41087         xmalloc.
41088         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41089         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41090         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41091         xmalloc.
41092         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41093         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41094         xmalloc.
41095         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41096         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41097         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41098         xmalloc.
41099         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41100         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41101         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41102         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41103         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41104         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41105         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41106
41107 2006-11-03  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/c-ctype.h [C++]: Define functions without name mangling.
41110         * lib/fwriteerror.h [C++]: Likewise.
41111         * lib/gcd.h [C++]: Likewise.
41112         * lib/linebreak.h [C++]: Likewise.
41113
41114 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41115
41116         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41117         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41118         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41119         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41120         Check for functions and headers just once.
41121         Check for declaration of canonicalize_file_name.
41122         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41123
41124 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41125
41126         * gnulib-tool (func_import): Fix typo in actioncmd.
41127
41128 2006-11-02  Bruno Haible  <bruno@clisp.org>
41129
41130         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41131         newline sequence in the Makefile.am snippet as a space, like "make"
41132         does.
41133         Reported by Roger Persson <perrog@gmail.com>.
41134
41135 2006-11-01  Bruno Haible  <bruno@clisp.org>
41136
41137         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41138         already declared in <string.h>.
41139         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41140
41141 2006-11-01  Bruno Haible  <bruno@clisp.org>
41142
41143         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41144         * lib/strcase.h: Include <string.h>.
41145         (strcasecmp): Define to rpl_strcasecmp here.
41146
41147 2006-11-01  Bruno Haible  <bruno@clisp.org>
41148
41149         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41150
41151 2006-11-01  Eric Blake  <ebb9@byu.net>
41152
41153         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41154
41155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41156
41157 2006-10-29  Bruno Haible  <bruno@clisp.org>
41158
41159         Make it compile in C++ mode.
41160         * lib/full-write.c (full_rw): Add a cast.
41161
41162 2006-11-01  Bruno Haible  <bruno@clisp.org>
41163
41164         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41165         be POSIX compliant.
41166         Reported by Roger Persson <perrog@gmail.com>.
41167
41168 2006-11-01  Eric Blake  <ebb9@byu.net>
41169
41170         * lib/getopt_.h: Fix comments.
41171
41172 2006-10-31  Eric Blake  <ebb9@byu.net>
41173
41174         * modules/tmpdir (Depends-on): Add sys_stat.
41175         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41176         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41177         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41178         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41179         tempname.
41180
41181 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41182
41183         Avoid some C++ diagnostics reported by Bruno Haible.
41184         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41185         xmalloc.
41186         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41187         (struct slotvec): Move to top level.
41188         (quotearg_n_options): Rewrite to avoid xmalloc.
41189         * lib/xalloc.h (xcharalloc): New function.
41190         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41191         [defined __cplusplus]: Add function template that provides result
41192         type propagation.  This part of the change is from Bruno Haible.
41193
41194 2006-10-29  Bruno Haible  <bruno@clisp.org>
41195
41196         Make it compile in C++ mode.
41197         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41198         * lib/strnlen1.c (strnlen1): Cast memchr result.
41199         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41200         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41201         (create_temp_dir): Rename local variable 'template'.
41202         (compile_csharp_using_sscli): Add cast.
41203         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41204         * lib/findprog.c (find_in_path): Likewise.
41205         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41206         * lib/wait-process.c (register_slave_subprocess): Likewise.
41207
41208 2006-10-22  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/tsearch: New file.
41211         * lib/tsearch.h: New file.
41212         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41213         * m4/tsearch.m4: New file.
41214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41215
41216 2006-10-29  Eric Blake  <ebb9@byu.net>
41217
41218         * lib/arcfour.c: Assume config.h.
41219         * lib/arctwo.c: Likewise.
41220         * lib/base64.c: Likewise.
41221         * lib/check-version.c: Likewise.
41222         * lib/crc.c: Likewise.
41223         * lib/des.c: Likewise.
41224         * lib/gc-gnulib.c: Likewise.
41225         * lib/gc-libgcrypt.c: Likewise.
41226         * lib/gc-pbkdf2-sha1.c: Likewise.
41227         * lib/getaddrinfo.c: Likewise.
41228         * lib/getdelim.c: Likewise.
41229         * lib/getline.c: Likewise.
41230         * lib/hmac-md5.c: Likewise.
41231         * lib/hmac-sha1.c: Likewise.
41232         * lib/iconvme.c: Likewise.
41233         * lib/md2.c: Likewise.
41234         * lib/md4.c: Likewise.
41235         * lib/memxor.c: Likewise.
41236         * lib/read-file.c: Likewise.
41237         * lib/readline.c: Likewise.
41238         * lib/rijndael-alg-fst.c: Likewise.
41239         * lib/rijndael-api-fst.c: Likewise.
41240         * lib/xgetdomainname.c: Likewise.
41241
41242 2006-10-28  Eric Blake  <ebb9@byu.net>
41243
41244         * lib/xstrndup.c: Assume config.h.
41245
41246 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41247
41248         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41249         stat-macros.h is now for our own macros, whereas stat_h is for
41250         macros in the <sys/stat.h> name space.
41251         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41252         (STAT_MACROS_H): Remove.
41253         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41254         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41255         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41256         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41257         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41258         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41259         Move these macros to ...
41260         * lib/stat_.h: here.  Don't include stat-macros.h.
41261         * lib/canonicalize.c: Don't include stat-macros.h.
41262         * lib/chown.c: Likewise.
41263         * lib/euidaccess.c: Likewise.
41264         * lib/file-type.c: Likewise.
41265         * lib/filemode.c: Likewise.
41266         * lib/glob.c: Likewise.
41267         * lib/isapipe.c: Likewise.
41268         * lib/lchown.c: Likewise.
41269         * lib/lstat.c: Likewise.
41270         * lib/mkdir-p.c: Likewise.
41271         * lib/rmdir.c: Likewise.
41272         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41274         unless mkdir isn't declared, to speed up 'configure'.
41275         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41276         would define all the S_* symbols.
41277         * modules/canonicalize (Depends-on):
41278         Depend on sys_stat, not stat-macros.
41279         * modules/chown: Likewise.
41280         * modules/euidaccess: Likewise.
41281         * modules/filemode: Likewise.
41282         * modules/file-type: Likewise.
41283         * modules/glob: Likewise.
41284         * modules/isapipe: Likewise.
41285         * modules/lchown: Likewise.
41286         * modules/lstat: Likewise.
41287         * modules/mkancesdirs: Likewise.
41288         * modules/rmdir: Likewise.
41289         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41290         * modules/modechange: Likewise.
41291         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41292         (configure.ac): Remove gl_STAT_MACROS.
41293         * modules/sys_stat (Depends-on): Remove stat-macros.
41294
41295 2006-10-27  Bruno Haible  <bruno@clisp.org>
41296
41297         * m4/signed.m4: Remove file.
41298         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41299         invocation.
41300         * modules/vasnprintf (Files): Remove m4/signed.m4.
41301
41302 2006-10-27  Bruno Haible  <bruno@clisp.org>
41303
41304         Update to GNU gettext 0.16.
41305         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41306         m4/inttypes-h.m4, m4/signed.m4.
41307         * m4/gettext.m4: Update to GNU gettext 0.16.
41308         * m4/intl.m4: New file, from GNU gettext.
41309         * m4/intldir.m4: New file, from GNU gettext.
41310         * config/srclist.txt: Update
41311
41312 2006-10-27  Eric Blake  <ebb9@byu.net>
41313
41314         * MODULES.html.sh: Document tempname.
41315         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41316         dependencies.
41317         (Files): Move lib/tempname.c...
41318         * modules/tempname: ...to this new module.
41319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41320         (gl_PREREQ_TEMPNAME): Move...
41321         * m4/tempname.m4: ...to this new file.
41322         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41323         * modules/sys_stat (Depends-on): Add stat-macros.
41324         * lib/stat_.h (includes): Pick up stat macros.
41325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41326         if stat macros are broken.
41327         * lib/tempname.c (includes): No need to include "stat-macros.h".
41328         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41329         (direxists, __path_search) [!_LIBC]: Don't compile these in
41330         gnulib; the tmpdir module covers that.
41331         * lib/tempname.h: New file.
41332
41333 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41334
41335         * COPYING: Explain how gnulib-tool converts licence headers.
41336         Almost all wording by Eric Blake.
41337
41338 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41339
41340         * lib/mbchar.h (is_basic_table): Make read-only.
41341         * lib/mbchar.c (is_basic_table): Likewise.
41342         Reported by John Darrington.
41343
41344 2006-10-25  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/progname.h (set_program_name): Undefine before defining.
41347
41348 2006-10-25  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41351         false for non-gcc C++ compilers.
41352         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41353
41354 2006-10-24  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41357         iconv implementations like Irix iconv.
41358
41359 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41360
41361         * modules/vararrays: New file.
41362         * m4/vararrays.m4: New file, taken from diffutils.
41363         * MODULES.html.sh: New module vararrays.
41364
41365 2006-10-24  Karl Berry  <karl@gnu.org>
41366
41367         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41368         Don't call GNU Unix.
41369
41370 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41371
41372         * users.txt: Add Libtool.
41373
41374         Sync from Libtool:
41375
41376         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41377
41378         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41379         to gnulib's policy of including config.h unconditionally.
41380
41381 2006-10-24  Bruno Haible  <bruno@clisp.org>
41382
41383         * modules/wcwidth (Files): Add m4/wint_t.m4.
41384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41385         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41386
41387 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41388
41389         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41390         to pacify GCC with some -W flags enabled.  Problem reported by
41391         Bruno Haible.
41392
41393 2006-10-24  Jim Meyering  <jim@meyering.net>
41394
41395         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41396         Reported by Karl Berry.
41397
41398 2006-10-23  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41401
41402 2006-10-24  Bruno Haible  <bruno@clisp.org>
41403
41404         * lib/gl_list.h: Use C comment style, not C++ comment style.
41405
41406 2006-10-23  Eric Blake  <ebb9@byu.net>
41407
41408         * lib/getaddrinfo.c (includes): Add missing include.
41409
41410 2006-10-23  Bruno Haible  <bruno@clisp.org>
41411             Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         Ability to rename obstack_free.
41414         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41415         obstack_free.
41416         (obstack_free): Invoke the __obstack_free macro.
41417         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41418
41419 2006-10-23  Bruno Haible  <bruno@clisp.org>
41420             Paul Eggert  <eggert@cs.ucla.edu>
41421
41422         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41423         __argc, __argv from the declaration. (They are defined as macros on
41424         mingw.)
41425
41426 2006-10-22  Bruno Haible  <bruno@clisp.org>
41427
41428         * doc/gnulib-intro.texi: New file.
41429         * doc/gnulib.texi: Include it.
41430
41431 2006-10-21  Bruno Haible  <bruno@clisp.org>
41432
41433         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41434         "Introduction", "Miscellanous Notes", "Particular Modules".
41435
41436 2006-10-21  Bruno Haible  <bruno@clisp.org>
41437
41438         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41439         Change mostlyclean-local rule to avoid sh syntax error from bash
41440         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41441
41442 2006-10-23  Jim Meyering  <jim@meyering.net>
41443
41444         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41445         in place of snprintf.
41446
41447         * modules/inttostr (Files): Add lib/uinttostr.c.
41448         * lib/uinttostr.c (inttostr): New file/function.
41449         * lib/inttostr.h (uinttostr): Declare.
41450         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41451         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41452         Add uinttostr.
41453         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41454
41455 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41456
41457         * lib/canonicalize.c (ELOOP): Define if not already defined.
41458         Problem reported by Bruno Haible in
41459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41460
41461 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41462
41463         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41464         Problem reported by Perry Smith and Ville Laurikari.
41465
41466         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41467         uses.
41468
41469 2006-10-19  Bruno Haible  <bruno@clisp.org>
41470
41471         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41472         for mingw.
41473
41474 2006-10-19  Bruno Haible  <bruno@clisp.org>
41475
41476         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41477         Needed for mingw.
41478
41479 2006-10-19  Bruno Haible  <bruno@clisp.org>
41480
41481         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41482
41483 2006-10-19  Bruno Haible  <bruno@clisp.org>
41484
41485         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41486         it.
41487
41488 2006-10-19  Bruno Haible  <bruno@clisp.org>
41489
41490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41491         invocation.
41492
41493 2006-10-19  Bruno Haible  <bruno@clisp.org>
41494
41495         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41496         mountlist by default.
41497
41498 2006-10-16  Bruno Haible  <bruno@clisp.org>
41499
41500         * lib/c-strstr.c: Include c-strstr.h.
41501
41502 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41503
41504         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41505         in a slash.
41506
41507 2006-10-18  Bruno Haible  <bruno@clisp.org>
41508
41509         * lib/lock.h [C++]: Wrap definitions in extern "C".
41510
41511 2006-10-18  Bruno Haible  <bruno@clisp.org>
41512
41513         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41514         gl_LIBOBJS list.
41515
41516 2006-10-18  Bruno Haible  <bruno@clisp.org>
41517
41518         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41519
41520 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41521
41522         * lib/xstrtol.h: Include gettext.h.
41523         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41524         Problem reported by Eric Blake.
41525         * modules/xstrtol (Depends-on): Add gettext-h.
41526
41527 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41528
41529         * lib/strftime.c (advance): New macro.
41530         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41531         incomplete type, so you can't add 0 to it.  Problem and patch
41532         reported by Eelco Dolstra for dietlibc.
41533
41534 2006-10-18  Jim Meyering  <jim@meyering.net>
41535
41536         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41537         type for a local, and rename it: s/up/user_proc/.
41538
41539 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41540
41541         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41542         READ_UTMP_USER_PROCESS.
41543         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41544
41545 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41546
41547         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41548         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41549
41550 2006-10-17  Eric Blake  <ebb9@byu.net>
41551
41552         * lib/sigprocmask.c (sigprocmask): Fix typo.
41553
41554         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41555
41556         * modules/clean-temp (Makefile.am): Don't add to make output...
41557         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41558         config.h.
41559
41560 2006-10-17  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41563         differently if DEFAULT_TEXT_DOMAIN is set.
41564
41565 2006-10-16  Bruno Haible  <bruno@clisp.org>
41566
41567         * lib/clean-temp.c: Include fwriteerror.h.
41568
41569 2006-10-16  Bruno Haible  <bruno@clisp.org>
41570
41571         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41572
41573 2006-10-16  Bruno Haible  <bruno@clisp.org>
41574
41575         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41576         * lib/sigprocmask.h: Include <sys/types.h>.
41577         (sigset_t): Use the system's definition if present.
41578
41579 2006-10-17  Eric Blake  <ebb9@byu.net>
41580
41581         * lib/xvasprintf.c (includes): Assume config.h.
41582         * lib/xasprintf.c (includes): Likewise.
41583
41584 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41585
41586         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41587         at least as wide as intmax_t.
41588
41589 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41590
41591         (Imported from Automake.)
41592         * build-aux/gnupload: Update to version 1.1 of directive file.
41593
41594 2006-10-16  Eric Blake  <ebb9@byu.net>
41595
41596         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41597         match Automake 1.10a.
41598
41599 2006-10-14  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/sigprocmask: New file.
41602         * lib/sigprocmask.h: New file.
41603         * lib/sigprocmask.c: New file.
41604         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41605         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41606         request sigprocmask.o.
41607         (gl_PREREQ_SIGPROCMASK): New macro.
41608         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41609         (Depends-on): Add sigprocmask.
41610         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41611         gt_SIGNALBLOCKING. Test for 'raise' only once.
41612         * lib/fatal-signal.c: Include sigprocmask.h.
41613         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41614         unblock_fatal_signals): Define always.
41615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41616         sigprocmask.
41617
41618 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41619
41620         Sync from Automake.
41621         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41622         which incorrectly sets the mode of an existing destination
41623         directory.  In some cases the unpatched install-sh could do the
41624         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41625         system.  We hope this is rare in practice, but it's clearly worth
41626         fixing.  Problem reported by Alex Unleashed in
41627         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41628         Also, don't bother to check for -m bugs unless we're using -m;
41629         suggested by Stepan Kasal.
41630
41631 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41632
41633         Sync from Automake.
41634         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41635         `-c' flag, so they appear at the same position as in %FASTDEP%
41636         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41637         which ignores unknown options only after the first non-option.
41638         Bug report against M4 by Nelson H. F. Beebe.
41639
41640 2006-10-13  Jim Meyering  <jim@meyering.net>
41641
41642         Fix a bug in yesterday's change.
41643         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41644         p->fts_statp->st_dev would be used uninitialized.
41645         Ensures that we always call fts_stat on the very first entry.
41646         Miklos Szeredi reported that find -xdev stopped working.
41647
41648 2006-10-12  Bruno Haible  <bruno@clisp.org>
41649
41650         * gnulib-tool (func_get_automake_snippet): Append an automatically
41651         computed EXTRA_DIST augmentation.
41652         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41653         * modules/alloca-opt (Makefile.am): Likewise.
41654         * modules/allocsa (Makefile.am): Likewise.
41655         * modules/arcfour (Makefile.am): Likewise.
41656         * modules/arctwo (Makefile.am): Likewise.
41657         * modules/argmatch (Makefile.am): Likewise.
41658         * modules/argz (Makefile.am): Likewise.
41659         * modules/atexit (Makefile.am): Likewise.
41660         * modules/backupfile (Makefile.am): Likewise.
41661         * modules/byteswap (Makefile.am): Likewise.
41662         * modules/c-strtod (Makefile.am): Likewise.
41663         * modules/c-strtold (Makefile.am): Likewise.
41664         * modules/calloc (Makefile.am): Likewise.
41665         * modules/canon-host (Makefile.am): Likewise.
41666         * modules/canonicalize (Makefile.am): Likewise.
41667         * modules/chdir-long (Makefile.am): Likewise.
41668         * modules/chdir-safer (Makefile.am): Likewise.
41669         * modules/check-version (Makefile.am): Likewise.
41670         * modules/chown (Makefile.am): Likewise.
41671         * modules/cloexec (Makefile.am): Likewise.
41672         * modules/close-stream (Makefile.am): Likewise.
41673         * modules/closeout (Makefile.am): Likewise.
41674         * modules/crc (Makefile.am): Likewise.
41675         * modules/csharpexec (Makefile.am): Likewise.
41676         * modules/cycle-check (Makefile.am): Likewise.
41677         * modules/des (Makefile.am): Likewise.
41678         * modules/dev-ino (Makefile.am): Likewise.
41679         * modules/dirfd (Makefile.am): Likewise.
41680         * modules/dirname (Makefile.am): Likewise.
41681         * modules/dup2 (Makefile.am): Likewise.
41682         * modules/eealloc (Makefile.am): Likewise.
41683         * modules/error (Makefile.am): Likewise.
41684         * modules/euidaccess (Makefile.am): Likewise.
41685         * modules/exclude (Makefile.am): Likewise.
41686         * modules/exitfail (Makefile.am): Likewise.
41687         * modules/fcntl-safer (Makefile.am): Likewise.
41688         * modules/fcntl (Makefile.am): Likewise.
41689         * modules/file-type (Makefile.am): Likewise.
41690         * modules/fileblocks (Makefile.am): Likewise.
41691         * modules/filemode (Makefile.am): Likewise.
41692         * modules/filenamecat (Makefile.am): Likewise.
41693         * modules/fnmatch (Makefile.am): Likewise.
41694         * modules/fopen-safer (Makefile.am): Likewise.
41695         * modules/fpending (Makefile.am): Likewise.
41696         * modules/fprintftime (Makefile.am): Likewise.
41697         * modules/free (Makefile.am): Likewise.
41698         * modules/fsusage (Makefile.am): Likewise.
41699         * modules/ftruncate (Makefile.am): Likewise.
41700         * modules/fts (Makefile.am): Likewise.
41701         * modules/gc-arcfour (Makefile.am): Likewise.
41702         * modules/gc-des (Makefile.am): Likewise.
41703         * modules/gc-hmac-md5 (Makefile.am): Likewise.
41704         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
41705         * modules/gc-md4 (Makefile.am): Likewise.
41706         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41707         * modules/gc-sha1 (Makefile.am): Likewise.
41708         * modules/gc (Makefile.am): Likewise.
41709         * modules/getaddrinfo (Makefile.am): Likewise.
41710         * modules/getcwd (Makefile.am): Likewise.
41711         * modules/getdelim (Makefile.am): Likewise.
41712         * modules/getdomainname (Makefile.am): Likewise.
41713         * modules/getgroups (Makefile.am): Likewise.
41714         * modules/gethostname (Makefile.am): Likewise.
41715         * modules/gethrxtime (Makefile.am): Likewise.
41716         * modules/getline (Makefile.am): Likewise.
41717         * modules/getloadavg (Makefile.am): Likewise.
41718         * modules/getlogin_r (Makefile.am): Likewise.
41719         * modules/getndelim2 (Makefile.am): Likewise.
41720         * modules/getopt (Makefile.am): Likewise.
41721         * modules/getpagesize (Makefile.am): Likewise.
41722         * modules/getpass-gnu (Makefile.am): Likewise.
41723         * modules/getpass (Makefile.am): Likewise.
41724         * modules/getsubopt (Makefile.am): Likewise.
41725         * modules/gettime (Makefile.am): Likewise.
41726         * modules/gettimeofday (Makefile.am): Likewise.
41727         * modules/getugroups (Makefile.am): Likewise.
41728         * modules/getusershell (Makefile.am): Likewise.
41729         * modules/glob (Makefile.am): Likewise.
41730         * modules/group-member (Makefile.am): Likewise.
41731         * modules/hard-locale (Makefile.am): Likewise.
41732         * modules/hash (Makefile.am): Likewise.
41733         * modules/hmac-md5 (Makefile.am): Likewise.
41734         * modules/hmac-sha1 (Makefile.am): Likewise.
41735         * modules/human (Makefile.am): Likewise.
41736         * modules/idcache (Makefile.am): Likewise.
41737         * modules/imaxabs (Makefile.am): Likewise.
41738         * modules/imaxdiv (Makefile.am): Likewise.
41739         * modules/inet_ntop (Makefile.am): Likewise.
41740         * modules/inet_pton (Makefile.am): Likewise.
41741         * modules/intprops (Makefile.am): Likewise.
41742         * modules/inttostr (Makefile.am): Likewise.
41743         * modules/inttypes (Makefile.am): Likewise.
41744         * modules/isapipe (Makefile.am): Likewise.
41745         * modules/javaversion (Makefile.am): Likewise.
41746         * modules/lchmod (Makefile.am): Likewise.
41747         * modules/lchown (Makefile.am): Likewise.
41748         * modules/localcharset (Makefile.am): Likewise.
41749         * modules/long-options (Makefile.am): Likewise.
41750         * modules/lstat (Makefile.am): Likewise.
41751         * modules/malloc (Makefile.am): Likewise.
41752         * modules/mathl (Makefile.am): Likewise.
41753         * modules/mbchar (Makefile.am): Likewise.
41754         * modules/md2 (Makefile.am): Likewise.
41755         * modules/md4 (Makefile.am): Likewise.
41756         * modules/md5 (Makefile.am): Likewise.
41757         * modules/memcasecmp (Makefile.am): Likewise.
41758         * modules/memchr (Makefile.am): Likewise.
41759         * modules/memcmp (Makefile.am): Likewise.
41760         * modules/memcoll (Makefile.am): Likewise.
41761         * modules/memcpy (Makefile.am): Likewise.
41762         * modules/memmem (Makefile.am): Likewise.
41763         * modules/memmove (Makefile.am): Likewise.
41764         * modules/mempcpy (Makefile.am): Likewise.
41765         * modules/memrchr (Makefile.am): Likewise.
41766         * modules/memset (Makefile.am): Likewise.
41767         * modules/memxor (Makefile.am): Likewise.
41768         * modules/mkancesdirs (Makefile.am): Likewise.
41769         * modules/mkdir-p (Makefile.am): Likewise.
41770         * modules/mkdir (Makefile.am): Likewise.
41771         * modules/mkdtemp (Makefile.am): Likewise.
41772         * modules/mkstemp (Makefile.am): Likewise.
41773         * modules/mktime (Makefile.am): Likewise.
41774         * modules/modechange (Makefile.am): Likewise.
41775         * modules/mountlist (Makefile.am): Likewise.
41776         * modules/nanosleep (Makefile.am): Likewise.
41777         * modules/obstack (Makefile.am): Likewise.
41778         * modules/openat (Makefile.am): Likewise.
41779         * modules/pagealign_alloc (Makefile.am): Likewise.
41780         * modules/pathmax (Makefile.am): Likewise.
41781         * modules/physmem (Makefile.am): Likewise.
41782         * modules/poll (Makefile.am): Likewise.
41783         * modules/posixtm (Makefile.am): Likewise.
41784         * modules/posixver (Makefile.am): Likewise.
41785         * modules/putenv (Makefile.am): Likewise.
41786         * modules/quote (Makefile.am): Likewise.
41787         * modules/quotearg (Makefile.am): Likewise.
41788         * modules/raise (Makefile.am): Likewise.
41789         * modules/read-file (Makefile.am): Likewise.
41790         * modules/readline (Makefile.am): Likewise.
41791         * modules/readlink (Makefile.am): Likewise.
41792         * modules/readtokens (Makefile.am): Likewise.
41793         * modules/readutmp (Makefile.am): Likewise.
41794         * modules/realloc (Makefile.am): Likewise.
41795         * modules/regex (Makefile.am): Likewise.
41796         * modules/rename-dest-slash (Makefile.am): Likewise.
41797         * modules/rename (Makefile.am): Likewise.
41798         * modules/rijndael (Makefile.am): Likewise.
41799         * modules/rmdir (Makefile.am): Likewise.
41800         * modules/rpmatch (Makefile.am): Likewise.
41801         * modules/safe-read (Makefile.am): Likewise.
41802         * modules/safe-write (Makefile.am): Likewise.
41803         * modules/same-inode (Makefile.am): Likewise.
41804         * modules/same (Makefile.am): Likewise.
41805         * modules/save-cwd (Makefile.am): Likewise.
41806         * modules/savedir (Makefile.am): Likewise.
41807         * modules/setenv (Makefile.am): Likewise.
41808         * modules/settime (Makefile.am): Likewise.
41809         * modules/sha1 (Makefile.am): Likewise.
41810         * modules/sig2str (Makefile.am): Likewise.
41811         * modules/snprintf (Makefile.am): Likewise.
41812         * modules/stat-macros (Makefile.am): Likewise.
41813         * modules/stat-time (Makefile.am): Likewise.
41814         * modules/stdbool (Makefile.am): Likewise.
41815         * modules/stdint (Makefile.am): Likewise.
41816         * modules/stdlib-safer (Makefile.am): Likewise.
41817         * modules/stpcpy (Makefile.am): Likewise.
41818         * modules/stpncpy (Makefile.am): Likewise.
41819         * modules/strcase (Makefile.am): Likewise.
41820         * modules/strcasestr (Makefile.am): Likewise.
41821         * modules/strchrnul (Makefile.am): Likewise.
41822         * modules/strcspn (Makefile.am): Likewise.
41823         * modules/strdup (Makefile.am): Likewise.
41824         * modules/strerror (Makefile.am): Likewise.
41825         * modules/strftime (Makefile.am): Likewise.
41826         * modules/strndup (Makefile.am): Likewise.
41827         * modules/strnlen (Makefile.am): Likewise.
41828         * modules/strpbrk (Makefile.am): Likewise.
41829         * modules/strsep (Makefile.am): Likewise.
41830         * modules/strstr (Makefile.am): Likewise.
41831         * modules/strtod (Makefile.am): Likewise.
41832         * modules/strtoimax (Makefile.am): Likewise.
41833         * modules/strtok_r (Makefile.am): Likewise.
41834         * modules/strtol (Makefile.am): Likewise.
41835         * modules/strtoll (Makefile.am): Likewise.
41836         * modules/strtoul (Makefile.am): Likewise.
41837         * modules/strtoull (Makefile.am): Likewise.
41838         * modules/strtoumax (Makefile.am): Likewise.
41839         * modules/strverscmp (Makefile.am): Likewise.
41840         * modules/sys_socket (Makefile.am): Likewise.
41841         * modules/sys_stat (Makefile.am): Likewise.
41842         * modules/sysexits (Makefile.am): Likewise.
41843         * modules/time_r (Makefile.am): Likewise.
41844         * modules/timegm (Makefile.am): Likewise.
41845         * modules/timespec (Makefile.am): Likewise.
41846         * modules/tmpfile-safer (Makefile.am): Likewise.
41847         * modules/trim (Makefile.am): Likewise.
41848         * modules/unistd-safer (Makefile.am): Likewise.
41849         * modules/unlinkdir (Makefile.am): Likewise.
41850         * modules/unlocked-io (Makefile.am): Likewise.
41851         * modules/userspec (Makefile.am): Likewise.
41852         * modules/utime (Makefile.am): Likewise.
41853         * modules/utimecmp (Makefile.am): Likewise.
41854         * modules/utimens (Makefile.am): Likewise.
41855         * modules/vasnprintf (Makefile.am): Likewise.
41856         * modules/vasprintf (Makefile.am): Likewise.
41857         * modules/vsnprintf (Makefile.am): Likewise.
41858         * modules/xalloc (Makefile.am): Likewise.
41859         * modules/xgetcwd (Makefile.am): Likewise.
41860         * modules/xnanosleep (Makefile.am): Likewise.
41861         * modules/xreadlink (Makefile.am): Likewise.
41862         * modules/xstrtod (Makefile.am): Likewise.
41863         * modules/xstrtol (Makefile.am): Likewise.
41864         * modules/xstrtold (Makefile.am): Likewise.
41865         * modules/yesno (Makefile.am): Likewise.
41866         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
41867
41868 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41869
41870         * modules/error (Makefile.am): Distribute files through
41871         EXTRA_DIST, not lib_SOURCES.
41872
41873 2006-10-12  Eric Blake  <ebb9@byu.net>
41874
41875         * modules/error (Makefile.am): Distribute files in /lib.
41876         * modules/obstack (Makefile.am): Likewise.
41877
41878 2006-10-12  Bruno Haible  <bruno@clisp.org>
41879
41880         * modules/acl (Makefile.am): Distribute all files in lib/ through
41881         EXTRA_DIST.
41882         * modules/arcfour (Makefile.am): Likewise.
41883         * modules/arctwo (Makefile.am): Likewise.
41884         * modules/argmatch (Makefile.am): Likewise.
41885         * modules/argz (Makefile.am): Likewise.
41886         * modules/atexit (Makefile.am): Likewise.
41887         * modules/backupfile (Makefile.am): Likewise.
41888         * modules/c-strtod (Makefile.am): Likewise.
41889         * modules/c-strtold (Makefile.am): Likewise.
41890         * modules/calloc (Makefile.am): Likewise.
41891         * modules/canon-host (Makefile.am): Likewise.
41892         * modules/canonicalize (Makefile.am): Likewise.
41893         * modules/chdir-long (Makefile.am): Likewise.
41894         * modules/chdir-safer (Makefile.am): Likewise.
41895         * modules/check-version (Makefile.am): Likewise.
41896         * modules/chown (Makefile.am): Likewise.
41897         * modules/cloexec (Makefile.am): Likewise.
41898         * modules/close-stream (Makefile.am): Likewise.
41899         * modules/closeout (Makefile.am): Likewise.
41900         * modules/crc (Makefile.am): Likewise.
41901         * modules/cycle-check (Makefile.am): Likewise.
41902         * modules/des (Makefile.am): Likewise.
41903         * modules/dirfd (Makefile.am): Likewise.
41904         * modules/dirname (Makefile.am): Likewise.
41905         * modules/dup2 (Makefile.am): Likewise.
41906         * modules/euidaccess (Makefile.am): Likewise.
41907         * modules/exclude (Makefile.am): Likewise.
41908         * modules/exitfail (Makefile.am): Likewise.
41909         * modules/fcntl-safer (Makefile.am): Likewise.
41910         * modules/file-type (Makefile.am): Likewise.
41911         * modules/fileblocks (Makefile.am): Likewise.
41912         * modules/filemode (Makefile.am): Likewise.
41913         * modules/filenamecat (Makefile.am): Likewise.
41914         * modules/fnmatch (Makefile.am): Likewise.
41915         * modules/fopen-safer (Makefile.am): Likewise.
41916         * modules/fpending (Makefile.am): Likewise.
41917         * modules/fprintftime (Makefile.am): Likewise.
41918         * modules/free (Makefile.am): Likewise.
41919         * modules/fsusage (Makefile.am): Likewise.
41920         * modules/ftruncate (Makefile.am): Likewise.
41921         * modules/fts (Makefile.am): Likewise.
41922         * modules/gc (Makefile.am): Likewise.
41923         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
41924         * modules/getaddrinfo (Makefile.am): Likewise.
41925         * modules/getcwd (Makefile.am): Likewise.
41926         * modules/getdelim (Makefile.am): Likewise.
41927         * modules/getdomainname (Makefile.am): Likewise.
41928         * modules/getgroups (Makefile.am): Likewise.
41929         * modules/gethostname (Makefile.am): Likewise.
41930         * modules/gethrxtime (Makefile.am): Likewise.
41931         * modules/getline (Makefile.am): Likewise.
41932         * modules/getloadavg (Makefile.am): Likewise.
41933         * modules/getlogin_r (Makefile.am): Likewise.
41934         * modules/getopt (Makefile.am): Likewise.
41935         * modules/getpass (Makefile.am): Likewise.
41936         * modules/getpass-gnu (Makefile.am): Likewise.
41937         * modules/getsubopt (Makefile.am): Likewise.
41938         * modules/gettime (Makefile.am): Likewise.
41939         * modules/gettimeofday (Makefile.am): Likewise.
41940         * modules/getugroups (Makefile.am): Likewise.
41941         * modules/getusershell (Makefile.am): Likewise.
41942         * modules/glob (Makefile.am): Likewise.
41943         * modules/group-member (Makefile.am): Likewise.
41944         * modules/hard-locale (Makefile.am): Likewise.
41945         * modules/hash (Makefile.am): Likewise.
41946         * modules/hmac-md5 (Makefile.am): Likewise.
41947         * modules/hmac-sha1 (Makefile.am): Likewise.
41948         * modules/human (Makefile.am): Likewise.
41949         * modules/idcache (Makefile.am): Likewise.
41950         * modules/imaxabs (Makefile.am): Likewise.
41951         * modules/imaxdiv (Makefile.am): Likewise.
41952         * modules/inet_ntop (Makefile.am): Likewise.
41953         * modules/inet_pton (Makefile.am): Likewise.
41954         * modules/inttostr (Makefile.am): Likewise.
41955         * modules/isapipe (Makefile.am): Likewise.
41956         * modules/lchown (Makefile.am): Likewise.
41957         * modules/long-options (Makefile.am): Likewise.
41958         * modules/lstat (Makefile.am): Likewise.
41959         * modules/malloc (Makefile.am): Likewise.
41960         * modules/mathl (Makefile.am): Likewise.
41961         * modules/mbchar (Makefile.am): Likewise.
41962         * modules/md2 (Makefile.am): Likewise.
41963         * modules/md4 (Makefile.am): Likewise.
41964         * modules/md5 (Makefile.am): Likewise.
41965         * modules/memcasecmp (Makefile.am): Likewise.
41966         * modules/memchr (Makefile.am): Likewise.
41967         * modules/memcmp (Makefile.am): Likewise.
41968         * modules/memcoll (Makefile.am): Likewise.
41969         * modules/memcpy (Makefile.am): Likewise.
41970         * modules/memmem (Makefile.am): Likewise.
41971         * modules/memmove (Makefile.am): Likewise.
41972         * modules/mempcpy (Makefile.am): Likewise.
41973         * modules/memrchr (Makefile.am): Likewise.
41974         * modules/memset (Makefile.am): Likewise.
41975         * modules/memxor (Makefile.am): Likewise.
41976         * modules/mkancesdirs (Makefile.am): Likewise.
41977         * modules/mkdir (Makefile.am): Likewise.
41978         * modules/mkdir-p (Makefile.am): Likewise.
41979         * modules/mkdtemp (Makefile.am): Likewise.
41980         * modules/mkstemp (Makefile.am): Likewise.
41981         * modules/mktime (Makefile.am): Likewise.
41982         * modules/modechange (Makefile.am): Likewise.
41983         * modules/mountlist (Makefile.am): Likewise.
41984         * modules/nanosleep (Makefile.am): Likewise.
41985         * modules/openat (Makefile.am): Likewise.
41986         * modules/pagealign_alloc (Makefile.am): Likewise.
41987         * modules/physmem (Makefile.am): Likewise.
41988         * modules/poll (Makefile.am): Likewise.
41989         * modules/posixtm (Makefile.am): Likewise.
41990         * modules/posixver (Makefile.am): Likewise.
41991         * modules/putenv (Makefile.am): Likewise.
41992         * modules/quote (Makefile.am): Likewise.
41993         * modules/quotearg (Makefile.am): Likewise.
41994         * modules/raise (Makefile.am): Likewise.
41995         * modules/read-file (Makefile.am): Likewise.
41996         * modules/readline (Makefile.am): Likewise.
41997         * modules/readlink (Makefile.am): Likewise.
41998         * modules/readtokens (Makefile.am): Likewise.
41999         * modules/readutmp (Makefile.am): Likewise.
42000         * modules/realloc (Makefile.am): Likewise.
42001         * modules/regex (Makefile.am): Likewise.
42002         * modules/rename (Makefile.am): Likewise.
42003         * modules/rename-dest-slash (Makefile.am): Likewise.
42004         * modules/rijndael (Makefile.am): Likewise.
42005         * modules/rmdir (Makefile.am): Likewise.
42006         * modules/rpmatch (Makefile.am): Likewise.
42007         * modules/safe-read (Makefile.am): Likewise.
42008         * modules/safe-write (Makefile.am): Likewise.
42009         * modules/same (Makefile.am): Likewise.
42010         * modules/save-cwd (Makefile.am): Likewise.
42011         * modules/savedir (Makefile.am): Likewise.
42012         * modules/setenv (Makefile.am): Likewise.
42013         * modules/settime (Makefile.am): Likewise.
42014         * modules/sha1 (Makefile.am): Likewise.
42015         * modules/sig2str (Makefile.am): Likewise.
42016         * modules/snprintf (Makefile.am): Likewise.
42017         * modules/stdlib-safer (Makefile.am): Likewise.
42018         * modules/stpcpy (Makefile.am): Likewise.
42019         * modules/stpncpy (Makefile.am): Likewise.
42020         * modules/strcase (Makefile.am): Likewise.
42021         * modules/strcasestr (Makefile.am): Likewise.
42022         * modules/strchrnul (Makefile.am): Likewise.
42023         * modules/strcspn (Makefile.am): Likewise.
42024         * modules/strdup (Makefile.am): Likewise.
42025         * modules/strerror (Makefile.am): Likewise.
42026         * modules/strftime (Makefile.am): Likewise.
42027         * modules/strndup (Makefile.am): Likewise.
42028         * modules/strnlen (Makefile.am): Likewise.
42029         * modules/strpbrk (Makefile.am): Likewise.
42030         * modules/strsep (Makefile.am): Likewise.
42031         * modules/strstr (Makefile.am): Likewise.
42032         * modules/strtod (Makefile.am): Likewise.
42033         * modules/strtoimax (Makefile.am): Likewise.
42034         * modules/strtok_r (Makefile.am): Likewise.
42035         * modules/strtol (Makefile.am): Likewise.
42036         * modules/strtoll (Makefile.am): Likewise.
42037         * modules/strtoul (Makefile.am): Likewise.
42038         * modules/strtoull (Makefile.am): Likewise.
42039         * modules/strtoumax (Makefile.am): Likewise.
42040         * modules/strverscmp (Makefile.am): Likewise.
42041         * modules/time_r (Makefile.am): Likewise.
42042         * modules/timegm (Makefile.am): Likewise.
42043         * modules/tmpfile-safer (Makefile.am): Likewise.
42044         * modules/unistd-safer (Makefile.am): Likewise.
42045         * modules/unlinkdir (Makefile.am): Likewise.
42046         * modules/userspec (Makefile.am): Likewise.
42047         * modules/utime (Makefile.am): Likewise.
42048         * modules/utimecmp (Makefile.am): Likewise.
42049         * modules/utimens (Makefile.am): Likewise.
42050         * modules/vasnprintf (Makefile.am): Likewise.
42051         * modules/vasprintf (Makefile.am): Likewise.
42052         * modules/vsnprintf (Makefile.am): Likewise.
42053         * modules/xalloc (Makefile.am): Likewise.
42054         * modules/xgetcwd (Makefile.am): Likewise.
42055         * modules/xnanosleep (Makefile.am): Likewise.
42056         * modules/xreadlink (Makefile.am): Likewise.
42057         * modules/xstrtod (Makefile.am): Likewise.
42058         * modules/xstrtol (Makefile.am): Likewise.
42059         * modules/xstrtold (Makefile.am): Likewise.
42060         * modules/yesno (Makefile.am): Likewise.
42061
42062 2006-10-12  Jim Meyering  <jim@meyering.net>
42063
42064         * m4/getloadavg.m4: Revert the change below.
42065
42066         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42067         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42068         fail with a symlink, which is what coreutils' ./bootstrap now
42069         creates by default.
42070
42071 2006-10-12  Bruno Haible  <bruno@clisp.org>
42072
42073         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42074         mingw.
42075         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42076         MSVC and mingw explicitly.
42077
42078 2006-10-11  Simon Josefsson  <jas@extundo.com>
42079             Bruno Haible  <bruno@clisp.org>
42080
42081         Add support for multiple gnulib-tool invocations in the scope of a
42082         single configure.ac file.
42083         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42084         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42085         with the same contents as the _LIBADD variable.
42086         (func_emit_initmacro_start, func_emit_initmacro_end,
42087         func_emit_initmacro_done): New functions.
42088         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42089         gl_LIBOBJS and gl_LTLIBOBJS.
42090
42091 2006-10-11  Bruno Haible  <bruno@clisp.org>
42092
42093         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42094         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42095         autoreconf. Instead, invoke autopoint explicitly but move back the
42096         *.m4 files from gnulib.
42097
42098 2006-10-11  Bruno Haible  <bruno@clisp.org>
42099
42100         * gnulib-tool (func_usage): Make module names after --create-testdir
42101         optional.
42102         (func_create_testdir): If no module was specified, use nearly all
42103         modules.
42104
42105 2006-10-12  Jim Meyering  <jim@meyering.net>
42106
42107         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42108         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42109         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42110         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42111         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42112         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42113         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42114         (fts_set_stat_required): New function.
42115         (fts_open): Defer the calls to fts_stat, if possible or requested.
42116         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42117         into fts_stat itself.
42118         (fts_read): Perform any required (deferred) fts_stat call.
42119         (fts_build): Likewise, for the directory we're about to open and read.
42120         In the readdir loop, carefully decide whether each entry will require
42121         an eventual call to fts_stat, using dirent.d_type info if available.
42122         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42123         a command line argument into this function.  Update all callers.
42124         Map a return value of FTS_DOT to FTS_D for a command line argument.
42125         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42126         Thanks to Miklos Szeredi for his tenacity and for the initial
42127         bug report about "find" failing on a FUSE-based file system.
42128
42129         * lib/fts.c (fts_open): Use consistent indentation.
42130
42131 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42134         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42135         reported by Jim Meyering.  All uses of cache variables renamed
42136         to match Autoconf's.
42137         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42138         the other one.
42139
42140         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42141         Fix misspelling in diagnostic.
42142
42143 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42144
42145         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42146         defined.  Problem reported by Matthew Woehlke.
42147
42148         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42149         Add support for Tandem NonStop R series.
42150         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42151         Use new macro.
42152
42153         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42154         (has_trailing_slash): Omit size arg; all callers changed.
42155         Omit 'inline', since it doesn't help performance and we'd
42156         need to configure it.
42157         Don't count //, ///, etc. as having a trailing slash.
42158         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42159         (rpl_rename_dest_slash): On failure, use rename's errno rather
42160         than (in some cases) an incorrect or junk errno.
42161         Simplify code by removing need to compute length; this does
42162         cause it to make two passes instead of one over the file name,
42163         but it's worth it.
42164
42165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42166         change, since Autoconf's version may no longer be appropriate now
42167         that we are using CVS Autoconf's version.  Add support for Tandem.
42168
42169 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42170             Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42173         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42174         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42175         gl_AC_TYPE_LONG_LONG.
42176
42177         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42178         instead of HAVE_LONG_LONG.
42179         * lib/printf-args.c (printf_fetchargs): Likewise.
42180         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42181         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42182         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42183         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42184         gl_AC_TYPE_LONG_LONG.
42185
42186 2006-10-11  Bruno Haible  <bruno@clisp.org>
42187
42188         * m4/longlong.m4: Add comments.
42189         * m4/ulonglong.m4: Likewise.
42190
42191 2006-10-10  Bruno Haible  <bruno@clisp.org>
42192
42193         Make it possible to #define stpcpy, strdup to aliases.
42194         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42195         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42196
42197 2006-10-10  Bruno Haible  <bruno@clisp.org>
42198
42199         Make it possible to #define gcd to an alias.
42200         * lib/gcd.c: Include config.h.
42201
42202 2006-10-10  Bruno Haible  <bruno@clisp.org>
42203
42204         Make it possible to #define c_isascii to an alias.
42205         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42206         defined. Undefine the macros before defining them, to avoid gcc
42207         warnings.
42208         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42209         define NO_C_CTYPE_MACROS early.
42210
42211 2006-10-10  Bruno Haible  <bruno@clisp.org>
42212
42213         Make it possible to #define set_program_name to an alias.
42214         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42215         ENABLE_RELOCATABLE early.
42216
42217 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42218
42219         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42220         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42221         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42222         More generally, don't assume that 64-bit signed int is available
42223         if unsigned int is, and vice versa.
42224         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42225         unsigned symbols, not on their signed counterparts.
42226         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42227         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42228         (UINT64_C, UINTMAX_C):
42229         Likewise.
42230         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42231         unsigned counterparts.
42232         (Have_long_long, Unsigned): New macros.
42233         (Int): Renamed from INT.
42234         (strtoimax): Use the new macros.
42235         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42236         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42237         * modules/inttypes (inttypes.h): Substitute
42238         HAVE_UNSIGNED_LONG_LONG_INT.
42239         * modules/stdint (stdint.h): Likewise.
42240         (Files): Add m4/ulonglong.m4.
42241
42242 2006-10-10  Bruno Haible  <bruno@clisp.org>
42243
42244         Fix a gcc -Wshadow warning.
42245         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42246         to 'bucket'.
42247         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42248         gl_linked_indexof_from_to): Likewise.
42249         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42250         Likewise.
42251         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42252         Likewise.
42253         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42254         Reported by Eric Blake.
42255
42256 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42259         for NetBSD.  Problem reported by Bruno Haible.
42260
42261 2006-10-09  Jim Meyering  <jim@meyering.net>
42262
42263         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42264         Patch from Bruno Haible.
42265
42266 2006-10-09  Jim Meyering  <jim@meyering.net>
42267
42268         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42269         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42270         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42271
42272 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42273
42274         Don't include <config.h> twice; this doesn't work in some cases,
42275         e.g., when config.h has "#define intmax_t long long int" and
42276         we include <config.h>, <inttypes.h>, <config.h> in that order.
42277         Problem reported by Matthew Woehlke in:
42278         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42279         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42280         * lib/fts-cycle.c: Don't include config.h.
42281         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42282         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42283         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42284         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42285         inttypes.h.
42286         * lib/xstrtoumax.c: Likewise.
42287         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42288         __strtol and the like, so that this module is more like its siblings.
42289         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42290         Remove; no longer needed now that we assume gnulib inttypes.h.
42291
42292 2006-10-08  Bruno Haible  <bruno@clisp.org>
42293
42294         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42295         option.
42296
42297 2006-10-07  Jim Meyering  <jim@meyering.net>
42298
42299         * modules/inttypes (inttypes.h): Revert what seems to have been
42300         an inadvertent part of today's change: use "|", not "/" in the
42301         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42302
42303 2006-10-07  Bruno Haible  <bruno@clisp.org>
42304
42305         * modules/sublist: New file.
42306
42307 2006-10-07  Bruno Haible  <bruno@clisp.org>
42308
42309         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42310         * modules/argz (argz.h): Likewise.
42311         * modules/arpa_inet (arpa/inet.h): Likewise.
42312         * modules/byteswap (byteswap.h): Likewise.
42313         * modules/configmake (configmake.h): Likewise.
42314         * modules/fcntl (fcntl.h): Likewise.
42315         * modules/fnmatch (fnmatch.h): Likewise.
42316         * modules/getopt (getopt.h): Likewise.
42317         * modules/glob (glob.h): Likewise.
42318         * modules/inttypes (inttypes.h): Likewise.
42319         * modules/netinet_in (netinet/in.h): Likewise.
42320         * modules/poll (poll.h): Likewise.
42321         * modules/stdbool (stdbool.h): Likewise.
42322         * modules/stdint (stdint.h): Likewise.
42323         * modules/sys_select (sys/select.h): Likewise.
42324         * modules/sys_socket (sys/socket.h): Likewise.
42325         * modules/sys_stat (sys/stat.h): Likewise.
42326         * modules/sysexits (sysexits.h): Likewise.
42327         * modules/unistd (unistd.h): Likewise.
42328         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42329         Add a "DO NOT EDIT" comment to the generated file.
42330         (func_import): Likewise for gnulib-comp.m4.
42331
42332 2006-10-07  Bruno Haible  <bruno@clisp.org>
42333
42334         * lib/gl_sublist.h: New file.
42335         * lib/gl_sublist.c: New file.
42336
42337 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42338
42339         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42340         name (relative to the original working directory) and the file
42341         name component (relative to the temporary working directory).  All
42342         callers changed.
42343         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42344         * lib/mkdir-p.c (make_dir_parents): Likewise.
42345         * lib/mkdir-p.h (make_dir_parents): Likewise.
42346
42347 2006-10-06  Eric Blake  <ebb9@byu.net>
42348
42349         Define several macros for use by the clean-temp module.
42350         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42351         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42352         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42353
42354         * lib/clean-temp.h (close_stream_temp): New declaration.
42355         * lib/clean-temp.c (includes): Pull in headers according to what
42356         other modules are in use.
42357         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42358
42359 2006-10-06  Bruno Haible  <bruno@clisp.org>
42360
42361         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42362         instead of fopen, fwriteerror.
42363
42364 2006-10-06  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42367         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42368         int.
42369         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42370         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42371         Return an error indicator.
42372         Suggested by Eric Blake.
42373
42374 2006-10-06  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42377         Reported by Eric Blake.
42378
42379 2006-10-06  Bruno Haible  <bruno@clisp.org>
42380
42381         * modules/closeout (Description): Mention stderr too.
42382
42383 2006-10-06  Bruno Haible  <bruno@clisp.org>
42384         and Paul Eggert  <eggert@cs.ucla.edu>
42385
42386         * lib/closeout.c (close_stdout): Also close stderr.
42387         * lib/closeout.h: Update comment.
42388
42389 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42390
42391         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42392         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42393         * lib/dirchownmod.c: Include lchown.h.
42394         * lib/lchown.c: Don't include files that lchown.h now includes.
42395         Don't declare chown, since lchown.h now does that.
42396         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42397         (lchown): Define to rpl_chown if lchown is declared but
42398         does not exist.  Declare using a prototype if lchown is not
42399         declared.  Add a copyright notice.
42400         * lib/mkstemp.h: Include <unistd.h>.
42401         * lib/openat.c: Include lchown.h.
42402
42403         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42404         we now test for that separately.
42405         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42406         rather than O_NOFOLLOW, when testing whether it's possible to
42407         avoid a race condition reliably.
42408         * lib/savewd.c (savewd_chdir): Likewise.
42409
42410         Remove macros that are no longer needed now that stdint.h is
42411         reliable.
42412         * lib/fsusage.c (UINTMAX_MAX): Remove.
42413         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42414         * lib/utimecmp.c (SIZE_MAX): Remove.
42415
42416         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42417
42418         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42419         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42420         O_NOATIME works.
42421
42422 2006-10-05  Bruno Haible  <bruno@clisp.org>
42423
42424         * lib/gl_list.h (gl_sortedlist_search_from_to,
42425         gl_sortedlist_indexof_from_to): New declarations.
42426         (gl_list_implementation): New fields sortedlist_search_from_to,
42427         sortedlist_indexof_from_to.
42428         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42429         inline functions.
42430         * lib/gl_list.c (gl_sortedlist_search_from_to,
42431         gl_sortedlist_indexof_from_to): New functions.
42432         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42433         function.
42434         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42435         (gl_array_sortedlist_search_from_to): New function.
42436         (gl_array_list_implementation): Update.
42437         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42438         function.
42439         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42440         (gl_carray_sortedlist_search_from_to): New function.
42441         (gl_carray_list_implementation): Update.
42442         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42443         gl_linked_sortedlist_indexof_from_to): New functions.
42444         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42445         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42446         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42447         gl_tree_sortedlist_indexof_from_to): New functions.
42448         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42449         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42450         Update.
42451         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42452         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42453         Update.
42454
42455 2006-10-05  Bruno Haible  <bruno@clisp.org>
42456
42457         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42458         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42459         (struct gl_list_implementation): Add fields search_from_to,
42460         indexof_from_to. Remove fields search, indexof.
42461         (gl_list_search): Use the search_from_to method.
42462         (gl_list_search_from, gl_list_search_from_to): New functions.
42463         (gl_list_indexof): Use the indexof_from_to method.
42464         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42465         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42466         (gl_list_search_from, gl_list_search_from_to): New functions.
42467         (gl_list_indexof): Use the indexof_from_to method.
42468         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42469         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42470         gl_array_indexof. Add start_index, end_index arguments.
42471         (gl_array_search_from_to): Renamed from gl_array_search. Add
42472         start_index, end_index arguments.
42473         (gl_array_remove, gl_array_list_implementation): Update.
42474         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42475         gl_carray_indexof. Add start_index, end_index arguments.
42476         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42477         start_index, end_index arguments.
42478         (gl_carray_remove, gl_carray_list_implementation): Update.
42479         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42480         gl_linked_search. Add start_index, end_index arguments.
42481         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42482         start_index, end_index arguments.
42483         (gl_linked_remove): Update.
42484         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42485         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42486         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42487         field to 'size_t'.
42488         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42489         gl_tree_search. Add start_index, end_index arguments.
42490         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42491         start_index, end_index arguments.
42492         (gl_tree_remove): Update.
42493         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42494         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42495         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42496         function.
42497         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42498         gl_tree_search. Add start_index, end_index arguments.
42499         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42500         start_index, end_index arguments.
42501         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42502         Update.
42503         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42504
42505 2006-10-05  Bruno Haible  <bruno@clisp.org>
42506
42507         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42508
42509         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42510         fwriteerror_temp): New declarations.
42511         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42512         (descriptors): New variable.
42513         (cleanup): First, close the descriptors.
42514         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42515         fclose_temp, fwriteerror_temp): New functions.
42516
42517 2006-10-04  Jim Meyering  <jim@meyering.net>
42518
42519         * lib/fts.c (fts_open): Tiny comment change.
42520
42521 2006-10-04  Bruno Haible  <bruno@clisp.org>
42522
42523         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42524         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42525         gl_LOCK_BODY.
42526         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42527         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42528         gl_LOCK_EARLY_BODY.
42529         (gl_LOCK): Require gl_LOCK_BODY.
42530
42531 2006-10-04  Bruno Haible  <bruno@clisp.org>
42532
42533         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42534         (gl_oset_search_atleast): New declaration.
42535         (struct gl_oset_implementation): Add field 'search_atleast'.
42536         (gl_oset_search_atleast): New inline function.
42537         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42538         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42539         (gl_array_oset_implementation): Update.
42540         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42541         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42542         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42543
42544 2006-10-04  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42547
42548 2006-10-03  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42551         from gl_avltreehash_list_implementation.
42552
42553 2006-10-03  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/gl_oset.c (gl_oset_add): Fix return type.
42556
42557 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42558
42559         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42560
42561 2006-10-02  Eric Blake  <ebb9@byu.net>
42562
42563         * modules/strnlen (Depends-on): Add extensions.
42564
42565 2006-10-02  Eric Blake  <ebb9@byu.net>
42566
42567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42568         definition in 2.60+.
42569
42570 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42571
42572         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42573         checks.
42574
42575 2006-10-02  Bruno Haible  <bruno@clisp.org>
42576
42577         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42578         to the AUTOMAKE_OPTIONS.
42579         Reported by Jim Meyering.
42580
42581 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42582
42583         Work around bug in Solaris 10 /proc file system:
42584         /proc/self/fd/NNN/.. isn't the parent directory of
42585         the directory whose file descriptor is NNN.  This needs to
42586         be worked around at run time, not compile time, since a
42587         program might be built on Solaris 8, where things work, and
42588         run on Solaris 10.
42589         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42590         to use the following interface instead:
42591         (OPENAT_BUFFER_SIZE): New macro.
42592         (openat_proc_name): New function.
42593         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42594         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42595         Likewise.
42596         * lib/openat-proc.c: New file.
42597         * modules/openat (Files): Add lib/openat-proc.c.
42598         (Depends-on): Add same-inode, stdbool.
42599         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42600
42601 2006-09-29  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42604         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42605         argument. Set stdout_closed before testing for ferror, not after.
42606         (fwriteerror, fwriteerror_no_ebadf): New functions.
42607
42608 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42609
42610         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42611
42612 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42613
42614         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42615         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42616
42617 2006-09-28  Jim Meyering  <jim@meyering.net>
42618
42619         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42620         Include <unistd.h>.
42621
42622 2006-09-28  Bruno Haible  <bruno@clisp.org>
42623
42624         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42625         * modules/linkedhash-list (Depends-on): Likewise.
42626         * modules/rbtreehash-list (Depends-on): Likewise.
42627
42628 2006-09-28  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/strndup.h: Simplify the redefinition of strndup.
42631         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42632         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42633
42634 2006-09-28  Bruno Haible  <bruno@clisp.org>
42635
42636         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42637         * lib/gl_linkedhash_list.c: Likewise.
42638         * lib/gl_rbtreehash_list.c: Likewise.
42639
42640 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42641
42642         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42643         getaddrinfo.
42644
42645         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42646         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42647         it causes <stdio_ext.h> to cause a compile-time error.
42648         Problem reported by Nelson H. F. Beebe.
42649         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42650         of HAVE_DECL___PENDING.
42651
42652         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42653         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42654         declaration.
42655
42656 2006-09-27  Jim Meyering  <jim@meyering.net>
42657
42658         This file could end up with a definition for a function
42659         named __strndup, rather than rpl_strndup on a system with
42660         incomplete weak_alias support.
42661         * lib/strndup.c (strndup): Rename from __strndup.
42662         Remove #defines that used to map __strndup to strndup.
42663         Don't use K&R prototypes.
42664         Remove LIBC-related code, since this file is not sync'd with glibc.
42665         * lib/strndup.h: Revamp, accordingly.
42666         * m4/strndup.m4: Modernize.
42667
42668 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42669
42670         * modules/savewd (Depends-on): Add 'raise'.
42671         * lib/savewd.c: Include <signal.h>, for 'raise'.
42672
42673 2006-09-26  Jim Meyering  <jim@meyering.net>
42674
42675         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42676         when we detect Darwin 8.7.0's acl_get_file bug.
42677         Rearrange to perform the new (below) run-test while $LIBS
42678         contains any acl-related library.  Set USE_ACL at the end.
42679         (gl_ACL_GET_FILE): New function.
42680
42681 2006-09-26  Eric Blake  <ebb9@byu.net>
42682
42683         * lib/verror.c: Include <config.h> unconditionally.
42684
42685 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
42686
42687         * modules/clock-time (Maintainer): Add self.
42688         * modules/getlogin_r (Depends-on): Add extensions.
42689
42690 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42691
42692         * modules/clock-time: New module.
42693         * modules/nanosleep (Depends-on): Add clock-time.
42694         * modules/gethrxtime (Depends-on): Likewise.
42695         * modules/gettime (Depends-on): Likewise.
42696         * modules/settime (Depends-on): Likewise.
42697
42698         * modules/fts-lgpl: Depend on openat.
42699         * modules/mkancesdirs: Depend on savewd.
42700         * modules/mkdir-p: Likewise.
42701
42702 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42703
42704         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
42705
42706         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
42707         `gl_have_arbitrary_file_name_length_limit' to
42708         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
42709         actually works between configure runs.
42710
42711 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42712             Bruno Haible  <bruno@clisp.org>
42713
42714         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
42715
42716 2006-09-25  Jim Meyering  <jim@meyering.net>
42717
42718         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
42719         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
42720
42721 2006-09-25  Eric Blake  <ebb9@byu.net>
42722
42723         * gnulib-tool (func_import, func_create_testdir): Fix typos in
42724         exec's in 2006-09-18 patch when shuffling fds.
42725
42726 2006-09-25  Bruno Haible  <bruno@clisp.org>
42727
42728         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
42729         Reported by Jim Meyering.
42730
42731 2006-09-24  Jim Meyering  <jim@meyering.net>
42732
42733         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
42734         compare a pointer against a literal "0".  That caused failures with
42735         at least HP-UX's hpcc.
42736
42737 2006-09-22  Simon Josefsson  <jas@extundo.com>
42738
42739         * modules/gc-sha1:
42740         * modules/gc-md4:
42741         * modules/gc-hmac-sha1:
42742         * modules/gc-hmac-md5:
42743         * modules/gc-des:
42744         * modules/gc-arcfour: Distribute more files.
42745
42746 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42747
42748         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
42749         (gl_linked_iterator_from_to): Initialize struct completely.
42750         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
42751         (gl_tree_iterator_from_to): Likewise
42752         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
42753         * lib/gl_array_list.c [lint] (gl_array_iterator)
42754         (gl_array_iterator_from_to): Likewise.
42755         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
42756         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
42757         (gl_carray_iterator_from_to): Likewise.
42758
42759         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
42760         * lib/md4.c (md4_process_block): Remove unused variable.
42761         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
42762         parentheses for clarity.
42763
42764 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42765
42766         * modules/bison-i18n (Depends-on): Add gettext.
42767
42768 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42769
42770         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
42771         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42772         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
42773         also add missing comma that caused broken test.
42774         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
42775         stdlib.h, for `abort'.
42776         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
42777         variables.
42778         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
42779         include unistd.h if present, for `rmdir'.
42780         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
42781         variables.
42782         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
42783         in the process include standard headers for prototypes.
42784         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
42785         gets declared on GNU/Linux.
42786         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
42787         unistd.h, for `rmdir'.
42788         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
42789
42790         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
42791         always true.
42792         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
42793
42794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
42795
42796 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42797
42798         * gnulib-tool (func_version): Create output all at once.  This
42799         may help avoid triggering unnecessary SIGPIPEs, and at any
42800         rate it doesn't hurt.
42801
42802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42803             Bruno Haible  <bruno@clisp.org>
42804
42805         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
42806         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
42807         * m4/signed.m4 (bh_C_SIGNED): Likewise.
42808
42809         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
42810         (gl_FUNC_VASPRINTF): Invoke it.
42811
42812 2006-09-22  Bruno Haible  <bruno@clisp.org>
42813
42814         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
42815         getloadavg.c as first argument.
42816
42817 2006-09-22  Bruno Haible  <bruno@clisp.org>
42818
42819         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
42820         at the beginning of the gl_INIT macro.
42821         * modules/getloadavg (configure.ac): Pass $gl_source_base to
42822         gl_GETLOADAVG.
42823
42824 2006-09-22  Bruno Haible  <bruno@clisp.org>
42825
42826         * gnulib-tool (func_create_megatestdir): Don't include the config-h
42827         module.
42828         Suggested by Ralf Wildenhues.
42829
42830 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42831
42832         Import this patch from libc:
42833
42834         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
42835
42836         * lib/regex_internal.c (re_string_reconstruct): Handle
42837         offset < pstr->valid_raw_len && pstr->offsets_needed case.
42838         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
42839         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
42840         re_string_context_at.
42841
42842         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
42843         now requires it.
42844         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
42845         gl_REGEX now does it for us.
42846         (gl_REGEX): Add test taken from
42847         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
42848
42849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
42850         Check that large offsets work.  Modernize Autoconf usages.
42851         Prefer "yes" to mean a good thing rather than a bad.
42852         Don't put "#define mkstemp" in config.h, as this might interfere
42853         with standard system headers that "#define mkstemp mkstemp64".
42854
42855         * modules/mkstemp (Depends-on): Add extensions, so that
42856         mkstemp is visible on some platforms.
42857         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
42858         (Include): Change to "mkstemp.h" from <stdlib.h>.
42859         (Files): Add mkstemp.h.
42860
42861         * lib/mkstemp.h: New file, since some standard headers
42862         #define mkstemp.
42863         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
42864         Include "mkstemp.h".
42865         Make the _LIBC code resemble glibc original more,
42866         e.g., use K&R style.
42867         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
42868         (mkstemp): Remove, since mkstemp.h does this for us.
42869         * lib/stdlib--.h: Include mkstemp.h.
42870
42871         Import this patch from libc:
42872
42873         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42874
42875         * lib/tempname.c (__gen_tempname): Change attempts_min
42876         into a macro.  Use preprocessor to decide how to initialize
42877         attempts [Coverity CID 67].
42878
42879 2006-09-20  Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/mkdtemp.c: Import from libc.
42882         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
42883                 * sysdeps/posix/tempname.c (__gen_tempname): Change
42884                 attempts_min into a macro.  Use preprocessor to decide how to
42885                 initialize attempts [Coverity CID 67].
42886         2001-11-27  Paul Eggert  <eggert@twinsun.com>
42887                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
42888                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
42889
42890 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42891
42892         * gnulib-tool (func_exit): New function, to allow to pass the
42893         exit status portably through the trap.  Use everywhere.
42894         (--help, --version): Signal a write error.
42895         (trap): catch SIGPIPE, for write errors.
42896         Exit at the end of the trap, with the correct exit status.
42897
42898 2006-09-19  Karl Berry  <karl@gnu.org>
42899
42900         * doc/gnulib.texi: note about the license texinfo files.
42901
42902 2006-09-19  Eric Blake  <ebb9@byu.net>
42903
42904         * gnulib-tool: Avoid space-tab.
42905
42906 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42907
42908         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
42909         that prevented coreutils 6.1 from building.  Problem reported
42910         by Petter Reinholdtsen.
42911
42912 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
42913
42914         * gnulib-tool (avoidlist): Fix typo that broke options like
42915         --avoid=lock that are used by coreutils bootstrap.
42916
42917 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
42918
42919         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
42920         more systematically.
42921
42922 2006-09-18  Jim Meyering  <jim@meyering.net>
42923
42924         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
42925
42926 2006-09-18  Bruno Haible  <bruno@clisp.org>
42927
42928         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
42929
42930 2006-09-18  Bruno Haible  <bruno@clisp.org>
42931
42932         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
42933         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
42934         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
42935         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
42936         * m4/gettext.m4: Require autoconf >= 2.52.
42937         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
42938         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
42939         of gl_cv_header_inttypes_h.
42940
42941 2006-09-18  Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/javaversion.c: Include configmake.h.
42944
42945 2006-09-18  Bruno Haible  <bruno@clisp.org>
42946
42947         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
42948         avoid that the while loops be executed in a subshell.
42949
42950 2006-09-18  Bruno Haible  <bruno@clisp.org>
42951
42952         * MODULES.html.sh (func_module): Break long lines.
42953         Suggested by Bruce Korb <bkorb@gnu.org>.
42954
42955 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42956
42957         Speed up by a factor of 1.12.
42958         * gnulib-tool (nl): New variable.
42959         (func_import): Rewrite include directive extraction to only read each
42960         directive once.
42961
42962 2006-09-17  Bruno Haible  <bruno@clisp.org>
42963
42964         * modules/javaversion (Makefile.am): Remove DEFS setting.
42965         (Depends-on): Add configmake, for PKGDATADIR definition.
42966
42967 2006-09-17  Bruno Haible  <bruno@clisp.org>
42968
42969         * gnulib-tool (func_create_testdir): Rewrite all files at once.
42970
42971 2006-09-17  Bruno Haible  <bruno@clisp.org>
42972
42973         * gnulib-tool (func_append): New function, stolen from libtool.m4.
42974         (func_modules_transitive_closure, func_modules_add_dummy,
42975         func_modules_to_filelist, func_import, func_create_testdir,
42976         func_create_megatestdir, ...): Use it wherever possible.
42977         Suggested by Ralf Wildenhues.
42978
42979 2006-09-16  Karl Berry  <karl@gnu.org>
42980
42981         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
42982         to avoid sectioning errors.
42983         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
42984         [ifinfo]: blank line after @center-ed titles.
42985         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
42986         Spell FSF address consistently with others.
42987         (These changes approved by rms.)
42988
42989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42990
42991         Speed up by a factor of 1.61.
42992         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
42993         already checked module names again.
42994
42995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42996
42997         Speed up by a factor of 1.13.
42998         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
42999         for new_files, and the input to func_add_or_update.
43000
43001 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43002
43003         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43004         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43005
43006 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43007
43008         * modules/mkancesdirs (Depends-on): Add fcntl.
43009         * modules/savewd: New file.
43010         * MODULES.html.sh (File system functions): Add savewd.
43011
43012         * modules/configmake (Makefile.am): Add support for the
43013         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43014
43015 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43016
43017         * m4/savewd.m4: New file.
43018
43019 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43020
43021         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43022         (dirchownmod): New arg FD.  All callers changed.
43023         Use FD rather than opening the directory ourself, as opening is
43024         now the caller's responsibility.
43025         * lib/dirchownmod.h: Likewise.
43026         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43027         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43028         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43029         (test_dir): Remove.
43030         (mkancesdirs): Return length of prefix of FILE that has already
43031         been made, or -2 if there is a child doing the work.  Redo
43032         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43033         ".", and treat ".." specially since it might stray back into
43034         already-created areas.  Use a subprocess if necessary.  New arg
43035         WD; all users changed.  MAKE_DIR function should now return 1
43036         if it creates a directory that is not readable.  Return -2 if
43037         a child process is spun off.
43038         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43039         Adjust signature to match code.
43040         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43041         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43042         all users changed.
43043         * lib/savewd.c, lib/savewd.h: New files.
43044
43045 2006-09-15  Jim Meyering  <jim@meyering.net>
43046
43047         * modules/rename-dest-slash: New module.
43048         * MODULES.html.sh (posix_compat): Add it here.
43049
43050         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43051
43052 2006-09-15  Jim Meyering  <jim@meyering.net>
43053
43054         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43055         file.
43056
43057         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43058
43059 2006-09-15  Jim Meyering  <jim@meyering.net>
43060
43061         * lib/rename-dest-slash.c (has_trailing_slash): Use
43062         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43063         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43064         test before testing whether SRC is a directory.
43065         Suggestions from Bruno Haible.
43066
43067         Avoid a warning about an unused variable.
43068         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43069         into the #ifdef block where it's used.
43070
43071         * lib/rename-dest-slash.c: New file.
43072
43073 2006-09-14  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/allocsa.c: Include <config.h> unconditionally.
43076         * lib/asnprintf.c: Likewise.
43077         * lib/asprintf.c: Likewise.
43078         * lib/c-strcasecmp.c: Likewise.
43079         * lib/c-strcasestr.c: Likewise.
43080         * lib/c-strncasecmp.c: Likewise.
43081         * lib/c-strstr.c: Likewise.
43082         * lib/classpath.c: Likewise.
43083         * lib/clean-temp.c: Likewise.
43084         * lib/concatpath.c: Likewise.
43085         * lib/copy-file.c: Likewise.
43086         * lib/csharpcomp.c: Likewise.
43087         * lib/csharpexec.c: Likewise.
43088         * lib/execute.c: Likewise.
43089         * lib/fatal-signal.c: Likewise.
43090         * lib/findprog.c: Likewise.
43091         * lib/fwriteerror.c: Likewise.
43092         * lib/gl_array_list.c: Likewise.
43093         * lib/gl_array_oset.c: Likewise.
43094         * lib/gl_avltree_list.c: Likewise.
43095         * lib/gl_avltree_oset.c: Likewise.
43096         * lib/gl_avltreehash_list.c: Likewise.
43097         * lib/gl_carray_list.c: Likewise.
43098         * lib/gl_linked_list.c: Likewise.
43099         * lib/gl_linkedhash_list.c: Likewise.
43100         * lib/gl_list.c: Likewise.
43101         * lib/gl_oset.c: Likewise.
43102         * lib/gl_rbtree_list.c: Likewise.
43103         * lib/gl_rbtree_oset.c: Likewise.
43104         * lib/gl_rbtreehash_list.c: Likewise.
43105         * lib/imaxabs.c: Likewise.
43106         * lib/imaxdiv.c: Likewise.
43107         * lib/javacomp.c: Likewise.
43108         * lib/javaexec.c: Likewise.
43109         * lib/javaversion.c: Likewise.
43110         * lib/linebreak.c: Likewise.
43111         * lib/localcharset.c: Likewise.
43112         * lib/lock.c: Likewise.
43113         * lib/mbchar.c: Likewise.
43114         * lib/mbswidth.c: Likewise.
43115         * lib/mkdtemp.c: Likewise.
43116         * lib/pipe.c: Likewise.
43117         * lib/printf-args.c: Likewise.
43118         * lib/printf-parse.c: Likewise.
43119         * lib/progname.c: Likewise.
43120         * lib/progreloc.c: Likewise.
43121         * lib/readlink.c: Likewise.
43122         * lib/sh-quote.c: Likewise.
43123         * lib/stpcpy.c: Likewise.
43124         * lib/stpncpy.c: Likewise.
43125         * lib/strcasecmp.c: Likewise.
43126         * lib/strcasestr.c: Likewise.
43127         * lib/strcspn.c: Likewise.
43128         * lib/striconv.c: Likewise.
43129         * lib/strncasecmp.c: Likewise.
43130         * lib/strnlen1.c: Likewise.
43131         * lib/strstr.c: Likewise.
43132         * lib/strtok_r.c: Likewise.
43133         * lib/tls.c: Likewise.
43134         * lib/tmpdir.c: Likewise.
43135         * lib/unicodeio.c: Likewise.
43136         * lib/unsetenv.c: Likewise.
43137         * lib/vasnprintf.c: Likewise.
43138         * lib/vasprintf.c: Likewise.
43139         * lib/wait-process.c: Likewise.
43140         * lib/xallocsa.c: Likewise.
43141         * lib/xsetenv.c: Likewise.
43142         * lib/xstriconv.c: Likewise.
43143
43144 2006-09-13  Simon Josefsson  <jas@extundo.com>
43145
43146         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43147         that internally, suggested by Ralf Wildenhues
43148         <Ralf.Wildenhues@gmx.de>.
43149
43150 2006-09-13  Simon Josefsson  <jas@extundo.com>
43151
43152         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43153         @LIBOBJS@.
43154         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43155
43156 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43157
43158         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43159         longer worry about uses that don't define HAVE_CONFIG_H.
43160         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43161         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43162         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43163         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43164         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43165         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43166         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43167         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43168         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43169         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43170         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43171         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43172         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43173         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43174         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43175         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43176         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43177         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43178         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43179         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43180         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43181         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43182         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43183         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43184         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43185         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43186         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43187         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43188         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43189         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43190         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43191         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43192         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43193         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43194         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43195         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43196         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43197         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43198         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43199         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43200         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43201         Likewise.
43202
43203 2006-09-13  Eric Blake  <ebb9@byu.net>
43204
43205         * lib/getopt.c: Fix typo in last commit.
43206
43207 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43208
43209         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43210         dgettext.
43211
43212 2006-09-12  Jim Meyering  <jim@meyering.net>
43213
43214         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43215         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43216         Reported by Nelson H. F. Beebe.
43217
43218 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43219
43220         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43221         program_invocation_name and program_invocation_short_name are
43222         initialized.
43223         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43224         and program_invocation_short_name to argp.h, so they are visible
43225         to user programs.
43226         * lib/argp.h: Likewise
43227
43228 2006-09-10  Bruno Haible  <bruno@clisp.org>
43229
43230         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43231         m4/inttypes_h.m4, m4/uintmax_t.m4.
43232
43233 2006-09-10  Bruno Haible  <bruno@clisp.org>
43234
43235         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43236         gl_AC_TYPE_UINTMAX_T.
43237
43238 2006-09-10  Bruno Haible  <bruno@clisp.org>
43239
43240         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43241
43242 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43243
43244         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43245         convention.  Text proposed by Bruno Haible.
43246         (struct argp_option): Document the use of N_() wrappers.
43247
43248         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43249         '\v', and translate the two parts separately, instead of feeding
43250         the whole string to gettext.  This allows to exclude
43251         '\v' from the strings visible to the translator by writing doc
43252         strings as N_("..") "\v" N_("..").
43253
43254 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43255
43256         * config/srclist.txt: Undo latest change; the bug was fixed.
43257
43258 2006-09-09  Bruno Haible  <bruno@clisp.org>
43259
43260         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43261         assignments if building a library without libtool.
43262         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43263         in func_emit_lib_Makefile_am.
43264         (func_import): When building a static library libfoo.a, arrange to
43265         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43266         (func_create_testdir): Likewise.
43267         * modules/gc (configure.ac, Makefile.am): If building statically,
43268         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43269         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43270         * modules/striconv (configure.ac, Makefile.am): Likewise.
43271         Based on a suggestion by Ralf Wildenhues.
43272
43273 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43274
43275         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43276         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43277         Also:
43278
43279         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43280         Add year_2050_test to catch glibc bug 2821
43281         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43282
43283         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43284         Prefer #ifdef to #if.
43285
43286         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43287         Return from 'main' instead of calling 'exit'.
43288
43289 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43290
43291         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43292         returned the maximum time_t value rather than (time_t) -1.
43293         Problem originally reported by William Bardwell
43294         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43295
43296         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43297         Moved to here ...
43298         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43299         ... from here.
43300
43301 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43302
43303         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43304         2821 is fixed.
43305
43306 2006-09-08  Jim Meyering  <jim@meyering.net>
43307
43308         Don't make generated files read-only.  That would bother too many
43309         people.  However, do retain the ability to work when targets are
43310         read-only: remove the destination and temporary files before writing
43311         them (when generated via sed or echo), or by using the -f option for
43312         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43313         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43314         * modules/byteswap, modules/configmake, modules/fcntl:
43315         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43316         * modules/localcharset, modules/netinet_in, modules/poll:
43317         * modules/stdbool, modules/stdint, modules/sys_select:
43318         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43319
43320 2006-09-08  Jim Meyering  <jim@meyering.net>
43321
43322         Avoid new build failure on FreeBSD 6.0.
43323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43324         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43325         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43326
43327 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43328
43329         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43330
43331 2006-09-07  Jim Meyering  <jim@meyering.net>
43332
43333         Fix global typo in last change: use chmod u-w, not chmod u-x.
43334         Spotted by Paul Eggert and Bruce Korb.
43335         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43336         * modules/byteswap, modules/configmake, modules/fcntl:
43337         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43338         * modules/localcharset, modules/netinet_in, modules/poll:
43339         * modules/stdbool, modules/stdint, modules/sys_select:
43340         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43341
43342 2006-09-06  Jim Meyering  <jim@meyering.net>
43343
43344         Make generated files be read-only.
43345         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43346         Ensure that each generated file is now read-only.
43347         * modules/argz: Likewise.
43348         * modules/arpa_inet: Likewise.
43349         * modules/byteswap: Likewise.
43350         * modules/configmake: Likewise.
43351         * modules/fcntl: Likewise.
43352         * modules/fnmatch: Likewise.
43353         * modules/getopt: Likewise.
43354         * modules/glob: Likewise.
43355         * modules/inttypes: Likewise.
43356         * modules/netinet_in: Likewise.
43357         * modules/poll: Likewise.
43358         * modules/stdbool: Likewise.
43359         * modules/stdint: Likewise.
43360         * modules/sys_select: Likewise.
43361         * modules/sys_socket: Likewise.
43362         * modules/sys_stat: Likewise.
43363         * modules/sysexits: Likewise.
43364         * modules/localcharset: Same as above, but continue using temporary
43365         file named "t-$@" (why different?) rather than the "$@-t" used
43366         everywhere else.
43367
43368         * modules/sysexits (Makefile.am): Replace literal occurrences
43369         of "sysexit.h" more readable, and more consistent, "$@".
43370
43371 2006-09-06  Bruno Haible  <bruno@clisp.org>
43372
43373         * modules/striconv: New file.
43374         * modules/xstriconv: New file.
43375         * MODULES.html.sh (Internationalization functions): Add striconv,
43376         xstriconv.
43377
43378 2006-09-06  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43381         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43382         not using libtool correctly.
43383
43384 2006-09-06  Bruno Haible  <bruno@clisp.org>
43385
43386         * lib/striconv.h: New file.
43387         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43388         iconvstring.c.
43389         * lib/xstriconv.h: New file.
43390         * lib/xstriconv.c: New file.
43391
43392 2006-09-06  Bruno Haible  <bruno@clisp.org>
43393
43394         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43395         lib_..._LDFLAGS.
43396
43397 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43398
43399         * lib/argz_.h: Sync from Libtool.
43400
43401         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43402                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43403
43404         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43405
43406 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43407
43408         * modules/trim: New file.
43409
43410 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43411
43412         * lib/trim.h: New file.
43413         * lib/trim.c: New file.
43414
43415 2006-09-05  Bruno Haible  <bruno@clisp.org>
43416
43417         * MODULES.html.sh (String handling): Add trim.
43418
43419 2006-09-04  Karl Berry  <karl@gnu.org>
43420
43421         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43422         until next release.
43423
43424 2006-09-03  Bruno Haible  <bruno@clisp.org>
43425
43426         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43427         correctly.
43428
43429 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43430
43431         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43432         not gl_GETLOADAVG.  Omit unneeded semicolons.
43433         Problems reported by Ralf Wildenhues in
43434         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43435         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43436         at the end, which is the usual gnulib style.
43437
43438         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43439         of doing all the work ourselves.
43440         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43441         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43442
43443 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43446         Problem reported by Ralf Wildenhues in
43447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43448
43449         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43450         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43451
43452 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43453
43454         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43455         yesterday's patch by changing test -n to test -z.
43456
43457 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43458
43459         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43460         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43461         the former is now obsolescent.
43462
43463         * modules/chdir-long (Depends-on): Add fcntl.
43464
43465 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43466
43467         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43468         obsolescent, and programs should use gnulib instead.
43469         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43470         but with prefixes changed.
43471
43472 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43473
43474         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43475         or stdbool.h, because they might not exist while configuring.
43476
43477         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43478         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43479         does that for us.
43480         (O_DIRECTORY): Remove.
43481
43482 2006-08-31  Eric Blake  <ebb9@byu.net>
43483
43484         * gnulib-tool: Don't let emacs change spaces to TAB.
43485
43486 2006-08-31  Bruno Haible  <bruno@clisp.org>
43487
43488         * gnulib-tool: When calling func_import more than once, do it in a
43489         subshell.
43490         Reported by Eric Blake <ebb9@byu.net>.
43491
43492 2006-08-31  Bruno Haible  <bruno@clisp.org>
43493
43494         * gnulib-tool (nl): Remove variable.
43495         (sed_transform_lib_file): Use more robust test for config-h module.
43496         (func_import): Fix typo in 2006-08-25 patch.
43497
43498 2006-08-31  Bruno Haible  <bruno@clisp.org>
43499
43500         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43501         specified, augment Makefile.am variables instead of assigning them.
43502
43503 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43504
43505         Work around a bug in both the Linux and SunOS 64-bit kernels:
43506         nanosleep mishandles sleeps for longer than 2**31 seconds.
43507         Problem reported by Frank v Waveren in
43508         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43510         Check for nanosleep bug.
43511         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43512
43513 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43514
43515         Work around a bug in both the Linux and SunOS 64-bit kernels:
43516         nanosleep mishandles sleeps for longer than 2**31 seconds.
43517         Problem reported by Frank v Waveren in
43518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43519         * lib/nanosleep.c (BILLION): New constant.
43520         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43521         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43522         implementation.
43523
43524 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43525
43526         * modules/nanosleep (Depends-on): Add gettime.
43527
43528 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43529         and Simon Josefsson  <jas@extundo.com>
43530         and Oskar Liljeblad  <oskar@osk.mine.nu>
43531
43532         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43533         * gnulib-tool (func_import): New license type 'unmodifiable license
43534         text'.
43535         * modules/fdl: Use it.  Longer description.
43536         * module/gpl, module/lgpl: New files.
43537
43538 2006-08-30  Jim Meyering  <jim@meyering.net>
43539
43540         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43541         shadowing the parameter.
43542
43543 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43544
43545         Sync from Libtool:
43546
43547         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43548
43549         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43550         sharing with gnulib.  Report by Eric Blake.
43551
43552 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43553
43554         * modules/isapipe: New file.
43555         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43556
43557 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43558
43559         * modules/configmake (Makefile.am): Add a comment, and omit
43560         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43561         by Bruno Haible.
43562
43563 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43564
43565         * m4/isapipe.m4: New file.
43566
43567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43568
43569         * lib/isapipe.c, lib/isapipe.h: New files.
43570
43571 2006-08-29  Jim Meyering  <jim@meyering.net>
43572
43573         * modules/configmake (Makefile.am): Make configmake.h depend on
43574         Makefile.  Otherwise, a stale configmake.h could hang around.
43575
43576 2006-08-29  Eric Blake  <ebb9@byu.net>
43577
43578         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43579         resolution of upstream bug 3044.
43580
43581 2006-08-29  Bruno Haible  <bruno@clisp.org>
43582
43583         * modules/localcharset (Depends-on): Add configmake.
43584         (Makefile.am): Remove setting of LIBDIR through DEFS.
43585
43586 2006-08-29  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43589         defined.
43590
43591 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43592
43593         * modules/fcntl: New file.
43594         * modules/chdir-safer (Depends-on): Add fcntl.
43595         * modules/fts: Likewise.
43596         * modules/mkdir-p: Likewise.
43597
43598         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43599         This undoes the most recent change, since we're now addressing the
43600         problem in a different way.
43601
43602         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43603         into output, since the output might be called Makefile.am even
43604         if $makefile_name is something different.
43605         (func_import): Use $makefile_am rather than
43606         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43607         empty.
43608
43609         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43610
43611 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43612
43613         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43614         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43615         recent change to stdint.m4, since we're now addressing the problem in a
43616         different way.
43617
43618 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43619
43620         * m4/fcntl_h.m4: New file.
43621
43622 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43623
43624         * lib/fcntl_.h: New file.
43625         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43626         the fcntl module.
43627         * lib/dirchownmod.c: Likewise.
43628         * lib/fts.c: Likewise.
43629
43630         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43631         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43632         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43633         just before including <inttypes.h>, to avoid circular inclusion.
43634
43635 2006-08-28  Jim Meyering  <jim@meyering.net>
43636
43637         * doc/visibility.texi: Actually read and correct the grammar of the
43638         sentence affected by yesterday's change.
43639
43640 2006-08-28  Eric Blake  <ebb9@byu.net>
43641
43642         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43643         needs wrapper.
43644
43645 2006-08-28  Eric Blake  <ebb9@byu.net>
43646
43647         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43648
43649 2006-08-28  Eric Blake  <ebb9@byu.net>
43650
43651         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43652
43653 2006-08-28  Bruno Haible  <bruno@clisp.org>
43654
43655         * modules/c-strstr: New file, from GNU gettext.
43656         * MODULES.html.sh (String handling): Add c-strstr.
43657
43658 2006-08-28  Bruno Haible  <bruno@clisp.org>
43659
43660         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43661         macros.
43662         Reported by Eric Blake.
43663
43664 2006-08-28  Bruno Haible  <bruno@clisp.org>
43665
43666         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43667         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43668         * lib/vasprintf.c: Include errno.h, limits.h.
43669         (EOVERFLOW): New fallback definition.
43670         (vasprintf): Test here whether the string length is > INT_MAX.
43671         * lib/vsnprintf.c: Include errno.h, limits.h.
43672         (EOVERFLOW): New fallback definition.
43673         (vsnprintf): Fix bug when generated string was too long for the buffer.
43674         Test here whether the string length is > INT_MAX.
43675
43676 2006-08-28  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/inttypes_.h (SCNX*): Remove definitions.
43679         Reported by Eric Blake.
43680
43681 2006-08-28  Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/c-strstr.h: New file, from GNU gettext.
43684         * lib/c-strstr.c: New file, from GNU gettext.
43685
43686 2006-08-28  Bruno Haible  <bruno@clisp.org>
43687
43688         * gnulib-tool: Reorder some statements.
43689
43690 2006-08-28  Bruno Haible  <bruno@clisp.org>
43691
43692         * gnulib-tool: New option --makefile-name.
43693         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
43694         $makefile_name.
43695         (func_import): Write $makefile_name to the cache file, and read it from
43696         there unless explicitly specified. Use $makefile_name as file name
43697         instead of Makefile.am. Adjust the recommendations accordingly.
43698
43699 2006-08-28  Bruno Haible  <bruno@clisp.org>
43700
43701         * gnulib-tool (func_verify_module): Check against misapplying patch.
43702
43703 2006-08-28  Bruno Haible  <bruno@clisp.org>
43704
43705         * gnulib-tool (func_relativize, func_relconcat): New functions.
43706         Give an error if --local-dir is given with --update.
43707         Remove trailing slashes from $local_gnulib_dir.
43708         (func_import): Store the relativized $local_gnulib_dir in
43709         gnulib-cache.m4, and read it from there if not specified explicitly.
43710
43711 2006-08-28  Bruno Haible  <bruno@clisp.org>
43712
43713         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
43714         is the current directory. Respect also $local_gnulib_dir.
43715
43716 2006-08-28  Bruno Haible  <bruno@clisp.org>
43717             Simon Josefsson  <jas@extundo.com>
43718
43719         BeOS portability.
43720         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
43721
43722 2006-08-27  Jim Meyering  <jim@meyering.net>
43723
43724         * doc/visibility.texi: Remove duplicate word: "pointer".
43725
43726 2006-08-26  Bruno Haible  <bruno@clisp.org>
43727
43728         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
43729         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
43730         (Makefile.am): Create inttypes.h from inttypes_.h.
43731         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
43732
43733         * modules/imaxabs: New file.
43734
43735         * modules/imaxdiv: New file.
43736
43737 2006-08-26  Bruno Haible  <bruno@clisp.org>
43738
43739         * m4/inttypes.m4: New file.
43740         * m4/_inttypes_h.m4: Remove file.
43741         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
43742         PRI_MACROS_BROKEN.
43743         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
43744
43745         * m4/imaxabs.m4: New file.
43746
43747         * m4/imaxdiv.m4: New file.
43748
43749 2006-08-26  Bruno Haible  <bruno@clisp.org>
43750
43751         * lib/inttypes_.h: New file.
43752         * lib/inttypes.h: Remove file.
43753         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
43754
43755         * lib/imaxabs.c: New file.
43756
43757         * lib/imaxdiv.c: New file.
43758
43759 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43760
43761         New config-h module, so that "make" output needn't be cluttered
43762         by -DHAVE_CONFIG_H.
43763         * MODULES.html.sh (Support for building libraries and executables):
43764         Add config-h.
43765         * modules/config-h: New file.
43766         * gnulib-tool (nl, sed_transform_lib_file): New vars.
43767         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
43768         the config-h module is used.
43769
43770         New configmake module, so that "make" output needn't be cluttered
43771         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
43772         * MODULES.html.sh (Support for building libraries and executables):
43773         Add configmake.
43774         * modules/configmake: New file.
43775
43776 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
43777
43778         * m4/config-h.m4: New file.
43779
43780 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43781
43782         * config/srclist.txt: Add elisp-comp.
43783
43784 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
43785
43786         * MODULES.html.sh (Support for building libraries and executables):
43787         Add elisp-comp.
43788         * build-aux/elisp-comp: New file.
43789         * modules/elisp-comp: New file.
43790
43791 2006-08-24  Bruno Haible  <bruno@clisp.org>
43792
43793         * gnulib-tool (func_create_testdir): Use non-default values of
43794         sourcebase and m4base.
43795
43796 2006-08-24  Bruno Haible  <bruno@clisp.org>
43797
43798         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
43799         HTML structure.
43800
43801 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
43802
43803         * modules/openat (Depends-on): Add lchown.
43804
43805 2006-08-23  Bruno Haible  <bruno@clisp.org>
43806
43807         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
43808         of gl_LOCK_EARLY instead of gl_LOCK.
43809
43810 2006-08-23  Bruno Haible  <bruno@clisp.org>
43811
43812         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
43813         on OSF/1 to no.
43814         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
43815
43816 2006-08-23  Bruno Haible  <bruno@clisp.org>
43817
43818         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
43819         as unusable.
43820
43821         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
43822         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
43823         (gl_LOCK): New macro.
43824
43825 2006-08-22  Simon Josefsson  <jas@extundo.com>
43826
43827         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
43828         to md5 module.
43829
43830 2006-08-22  Simon Josefsson  <jas@extundo.com>
43831
43832         * MODULES.html.sh: Add "Support for maintaining and release
43833         projects".
43834
43835         * build-aux/gnupload: New file, from coreutils.
43836
43837 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43838
43839         Avoid the need for AC_LIBSOURCES in m4 macros.
43840         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
43841         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
43842         * modules/check-version (EXTRA_DIST): Add check-version.h.
43843         * modules/crc (EXTRA_DIST): Add crc.h.
43844         * modules/des (EXTRA_DIST): Add des.h.
43845         * modules/gc (EXTRA_DIST): Add gc.h.
43846         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
43847         * modules/getline (EXTRA_DIST): Add getline.h.
43848         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
43849         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
43850         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
43851         * modules/md2 (EXTRA_DIST): Add md2.h.
43852         * modules/md4 (EXTRA_DIST): Add md4.h.
43853         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
43854         * modules/read-file (EXTRA_DIST): Add read-file.h.
43855         * modules/readline (EXTRA_DIST): Add readline.h.
43856         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
43857         rijndael-api-fst.h.
43858
43859 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43860
43861         * m4/rijndael.m4 (gl_ARCFOUR):
43862         * m4/arctwo.m4 (gl_ARCTWO):
43863         * m4/check-version.m4 (gl_CHECK_VERSION):
43864         * m4/crc.m4 (gl_CRC):
43865         * m4/des.m4 (gl_DES):
43866         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
43867         * m4/gc.m4 (gl_GC):
43868         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
43869         * m4/getline.m4 (gl_FUNC_GETLINE):
43870         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
43871         * m4/hmac-md5.m4 (gl_HMAC_MD5):
43872         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
43873         * m4/md2.m4 (gl_MD2):
43874         * m4/md4.m4 (gl_MD4):
43875         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
43876         * m4/read-file.m4 (gl_FUNC_READ_FILE):
43877         * m4/readline.m4 (gl_FUNC_READLINE):
43878         * m4/rijndael.m4 (gl_RIJNDAEL):
43879         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43880         to get the necessary .h files and whatnot.
43881
43882 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
43883
43884         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
43885         gnulib rather than the other way around.
43886         * config/srclistvars.sh (COREUTILS): Remove.
43887
43888 2006-08-22  Jim Meyering  <jim@meyering.net>
43889
43890         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
43891
43892         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
43893
43894 2006-08-22  Eric Blake  <ebb9@byu.net>
43895
43896         * modules/regexprops-generic: New file.
43897         * MODULES.html.sh (Support for building documentation): List it.
43898
43899 2006-08-22  Eric Blake  <ebb9@byu.net>
43900
43901         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
43902         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43903         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
43904         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
43905
43906 2006-08-22  Bruno Haible  <bruno@clisp.org>
43907
43908         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
43909         and lib_LTLIBRARIES like the other lib_* variables.
43910
43911 2006-08-22  Bruno Haible  <bruno@clisp.org>
43912
43913         * build-aux/x-to-1.in: New file, from GNU gettext.
43914
43915 2006-08-22  Bruno Haible  <bruno@clisp.org>
43916
43917         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
43918         <utmpx.h> exists.
43919
43920 2006-08-22  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
43923         <utmpx.h> exists.
43924
43925 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43926
43927         BeOS portability.
43928         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
43929         exist.
43930         Problem reported by Bruno Haible.
43931
43932 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43933
43934         Avoid the need for AC_LIBSOURCES in m4 macros.
43935         * modules/acl (EXTRA_DIST): Add acl.h.
43936         * modules/argmatch (Files): Add m4/argmatch.m4.
43937         (configure.ac): Add gl_ARGMATCH.
43938         (EXTRA_DIST): Renamed from lib_SOURCES, for
43939         consistency with the other modules.  Remove argmatch.c.
43940         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
43941         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
43942         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
43943         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
43944         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
43945         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
43946         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
43947         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
43948         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
43949         * modules/closeout (EXTRA_DIST): Add closeout.h.
43950         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
43951         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
43952         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
43953         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
43954         dirname.h; remove basename.c and stripslash.c.
43955         * modules/exclude (EXTRA_DIST): Add exclude.h.
43956         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
43957         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
43958         * modules/file-type (EXTRA_DIST): Add file-type.h.
43959         * modules/filemode (EXTRA_DIST): Add filemode.h.
43960         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
43961         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43962         * modules/fpending (EXTRA_DIST): Add __fpending.h.
43963         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
43964         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
43965         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
43966         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
43967         * modules/getdate (EXTRA_DIST): Add getdate.c.
43968         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
43969         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
43970         * modules/getpass (EXTRA_DIST): Add getpass.h.
43971         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
43972         * modules/group-member (EXTRA_DIST): Add group-member.h.
43973         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
43974         * modules/hash (EXTRA_DIST): Add hash.h.
43975         * modules/human (EXTRA_DIST): Add human.h.
43976         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
43977         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
43978         * modules/lchown (EXTRA_DIST): Add lchown.h.
43979         * modules/long-options (EXTRA_DIST): Add long-options.h.
43980         * modules/lstat (EXTRA_DIST): Add lstat.h.
43981         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
43982         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
43983         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
43984         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
43985         * modules/memxor (EXTRA_DIST): Add memxor.h.
43986         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
43987         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
43988         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
43989         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
43990         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
43991         * modules/physmem (EXTRA_DIST): Add physmem.h.
43992         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
43993         * modules/posixver (EXTRA_DIST): Add posixver.h.
43994         * modules/quote (EXTRA_DIST): Add quote.h.
43995         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
43996         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
43997         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
43998         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
43999         regex_internal.h regexec.c.
44000         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44001         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44002         * modules/same (EXTRA_DIST): Add same.h.
44003         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44004         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44005         * modules/savedir (EXTRA_DIST): Add savedir.h.
44006         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44007         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44008         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44009         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44010         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44011         * modules/strdup (EXTRA_DIST): Add strdup.h.
44012         * modules/strftime (EXTRA_DIST): Add strftime.h.
44013         * modules/strndup (EXTRA_DIST): Add strndup.h.
44014         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44015         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44016         * modules/time_r (EXTRA_DIST): Add time_r.h.
44017         * modules/timespec (EXTRA_DIST): Add timespec.h.
44018         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44019         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44020         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44021         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44022         * modules/userspec (EXTRA_DIST): Add userspec.h.
44023         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44024         * modules/utimens (EXTRA_DIST): Add utimens.h.
44025         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44026         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44027         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44028         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44029         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44030         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44031         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44032         * modules/yesno (EXTRA_DIST): Add yesno.h.
44033
44034 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44037
44038         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44039         * m4/dev-ino.m4, same-inode.m4: Remove.
44040
44041         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44042         * m4/acl.m4 (AC_FUNC_ACL):
44043         * m4/backupfile.m4 (gl_BACKUPFILE):
44044         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44045         * m4/canon-host.m4 (gl_CANON_HOST):
44046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44048         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44049         * m4/cloexec.m4 (gl_CLOEXEC):
44050         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44051         * m4/closeout.m4 (gl_CLOSEOUT):
44052         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44053         * m4/dirname.m4 (gl_DIRNAME):
44054         * m4/exclude.m4 (gl_EXCLUDE):
44055         * m4/exitfail.m4 (gl_EXITFAIL):
44056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44057         * m4/file-type.m4 (gl_FILE_TYPE):
44058         * m4/filemode.m4 (gl_FILEMODE):
44059         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44060         * m4/fpending.m4 (gl_FUNC_FPENDING):
44061         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44062         * m4/fts.m4 (gl_FUNC_FTS):
44063         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44064         * m4/getdate.m4 (gl_GETDATE):
44065         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44066         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44067         * m4/getpass.m4 (gl_FUNC_GETPASS):
44068         * m4/gettime.m4 (gl_GETTIME):
44069         * m4/getugroups.m4 (gl_GETUGROUPS):
44070         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44071         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44072         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44073         * m4/hash.m4 (gl_HASH):
44074         * m4/idcache.m4 (gl_IDCACHE):
44075         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44076         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44077         * m4/long-options.m4 (gl_LONG_OPTIONS):
44078         * m4/lstat.m4 (gl_FUNC_LSTAT):
44079         * m4/md5.m4 (gl_MD5):
44080         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44081         * m4/memcoll.m4 (gl_MEMCOLL):
44082         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44083         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44084         * m4/memxor.m4 (gl_MEMXOR):
44085         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44086         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44087         * m4/modechange.m4 (gl_MODECHANGE):
44088         * m4/mountlist.m4 (gl_MOUNTLIST):
44089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44090         * m4/openat.m4 (gl_FUNC_OPENAT):
44091         * m4/pathmax.m4 (gl_PATHMAX):
44092         * m4/physmem.m4 (gl_PHYSMEM):
44093         * m4/posixtm.m4 (gl_POSIXTM):
44094         * m4/posixver.m4 (gl_POSIXVER):
44095         * m4/quote.m4 (gl_QUOTE):
44096         * m4/quotearg.m4 (gl_QUOTEARG):
44097         * m4/readtokens.m4 (gl_READTOKENS):
44098         * m4/readutmp.m4 (gl_READUTMP):
44099         * m4/regex.m4 (gl_REGEX):
44100         * m4/safe-read.m4 (gl_SAFE_READ):
44101         * m4/safe-write.m4 (gl_SAFE_WRITE):
44102         * m4/same.m4 (gl_SAME):
44103         * m4/save-cwd.m4 (gl_SAVE_CWD):
44104         * m4/savedir.m4 (gl_SAVEDIR):
44105         * m4/settime.m4 (gl_SETTIME):
44106         * m4/sha1.m4 (gl_SHA1):
44107         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44108         * m4/stat-macros.m4 (gl_STAT_MACROS):
44109         * m4/stat-time.m4 (gl_STAT_TIME):
44110         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44111         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44112         * m4/strdup.m4 (gl_FUNC_STRDUP):
44113         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44114         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44115         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44116         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44117         * m4/time_r.m4 (gl_TIME_R):
44118         * m4/timespec.m4 (gl_TIMESPEC):
44119         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44120         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44121         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44122         * m4/userspec.m4 (gl_USERSPEC):
44123         * m4/utimecmp.m4 (gl_UTIMECMP):
44124         * m4/utimens.m4 (gl_UTIMENS):
44125         * m4/xalloc.m4 (gl_XALLOC):
44126         * m4/xgetcwd.m4 (gl_XGETCWD):
44127         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44128         * m4/xreadlink.m4 (gl_XREADLINK):
44129         * m4/xstrtod.m4 (gl_XSTRTOD):
44130         * m4/yesno.m4 (gl_YESNO):
44131         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44132         to get the necessary .h files and whatnot.
44133
44134 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44135             Bruno Haible  <bruno@clisp.org>
44136
44137         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44138         /bin/sh understanding of '!' conditional negation.
44139
44140 2006-08-21  Jim Meyering  <jim@meyering.net>
44141
44142         * modules/openat (Depends-on): Really alphabetize.
44143
44144         * modules/acl (Depends-on): Add error and quote.
44145
44146         * check-module (find_included_lib_files): Add at-func.c to the
44147         ok-to-include-more-than-once white list.
44148
44149         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44150
44151 2006-08-21  Bruno Haible  <bruno@clisp.org>
44152
44153         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44154         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44155         Reported by Martin Lambers <marlam@marlam.de>.
44156
44157 2006-08-21  Bruno Haible  <bruno@clisp.org>
44158
44159         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44160         specify an installation location, don't emit a noinst_LIBRARIES or
44161         noinst_LTLIBRARIES assignment.
44162
44163 2006-08-21  Bruno Haible  <bruno@clisp.org>
44164
44165         BeOS portability.
44166         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44167         BeOS has mbrtowc() but no <wctype.h>.
44168
44169 2006-08-21  Bruno Haible  <bruno@clisp.org>
44170
44171         BeOS portability.
44172         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44173         exist.
44174
44175 2006-08-21  Bruno Haible  <bruno@clisp.org>
44176
44177         BeOS portability.
44178         * lib/mbchar.h: Include <wctype.h> only if it exists.
44179
44180 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44181
44182         Remove files that are no longer needed by their respective modules.
44183         * m4/obstack.m4: Remove.
44184         * m4/strerror_r.m4: Remove.
44185         * m4/uint32_t.m4: Remove.
44186         * m4/uintptr_t.m4: Remove.
44187         * m4/ullong_max.m4: Remove.
44188         * m4/xstrtoimax.m4: Remove.
44189         * m4/xstrtoumax.m4: Remove.
44190
44191         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44192         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44193         dependencies now capture this.
44194
44195         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44196         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44197         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44198         * m4/human.m4 (gl_HUMAN): Likewise.
44199         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44200         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44201
44202         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44203
44204         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44205         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44206         stdint.
44207         * m4/human.m4 (gl_HUMAN): Likewise.
44208         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44209         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44210         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44211         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44212         * m4/xstrtol (gl_XSTRTOL): Likewise.
44213
44214         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44215         AC_TYPE_LONG_LONG_INT.
44216         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44217         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44218         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44219         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44220
44221         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44222         on stdbool.
44223
44224         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44225         (gl_PREREQ_XSTRTOUL): Remove.
44226
44227         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44228
44229         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44230         mode.
44231
44232 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44233
44234         Add and change modules to make it easier for coreutils to use
44235         gnulib-tool.
44236         * modules/backupfile (Files): Remove m4/d-ino.m4.
44237         (Depends-on): Add d-ino.
44238         * modules/cycle-check (Depends-on): Add stdint.
44239         (lib_SOURCES): Add cycle-check.h.
44240         * modules/d-ino: New module.
44241         * modules/d-type: New module.
44242         * modules/error (Files): Remove m4/strerror_r.m4.
44243         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44244         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44245         m4/inttypes_h.m4, m4/uintmax_t.m4.
44246         (Depends-on): Add stdint.
44247         (lib_SOURCES): Add fsusage.h.
44248         * modules/getcwd (Files): Remove d-ino.m4.
44249         (Depends-on): Add d-ino.
44250         * modules/getndelim2 (Depends-on): Add stdint.
44251         * modules/glob (Files): Remove m4/d-type.m4.
44252         (Depends-on): Add d-type.
44253         * modules/host-os: New module.
44254         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44255         m4/inttypes_h.m4, m4/uintmax_t.m4.
44256         * Depends-on: Add stdint.
44257         (lib_SOURCES): Add human.h.
44258         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44259         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44260         m4/uintmax_t.m4, m4/ulonglong.m4.
44261         (Depends-on): Add stdint.
44262         (EXTRA_DIST): Add inttostr.h.
44263         * modules/lchmod: New module.
44264         * modules/link-follow: New module.
44265         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44266         (Depends-on): Add lchmod.
44267         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44268         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44269         (Depends-on): Add stdint.
44270         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44271         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44272         (Depends-on): Add stdint.
44273         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44274         * modules/perl: New module.
44275         * modules/regex (Depends-on): Add stdint.
44276         * modules/rmdir-errno: New module.
44277         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44278         m4/intmax_t.m4.
44279         (Depends-on): Add stdint.
44280         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44281         m4/uintmax_t.m4.
44282         (Depends-on): Add stdint.
44283         * modules/unlink-busy: New module.
44284         * modules/utimecmp (Depends-on): Add stdint.
44285         * modules/uptime: New module.
44286         * modules/winsz-ioctl: New module.
44287         * modules/winsz-termios: New module.
44288         * modules/xnanosleep (Depends-on): Add nanosleep.
44289         * modules/ullong_max: Remove.
44290         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44291         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44292         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44293         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44294         (Depends-on): Add inttypes.
44295         (lib_SOURCES): Add xstrtol.h.
44296         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44297         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44298         * MODULES.html.sh: Move 'assert' into the assert section.
44299         Move 'dummy' into the linking section.
44300         Remove ullong_max.
44301         Add section for compatibility checks for POSIX:2001 functions,
44302         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44303         winsz-ioctl, and winsz-termios into it.
44304         Add lchmod.
44305         Add top-level Misc section and put host-os, perl, and uptime
44306         into it.
44307
44308 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44311         now assume the stdint module.  Do not include inttypes.h.
44312         * lib/fsusage.h: Likewise.
44313         * lib/getndelim2.c: Likewise.
44314         * lib/human.h: Likewise.
44315         * lib/inttostr.h: Likewise.
44316         * lib/obstack.c: Likewise.
44317         * lib/regex_internal.h: Likewise.
44318         * lib/tempname.c: Likewise.
44319         * lib/utimecmp.c: Likewise.
44320         * lib/xstrtol.h: Likewise.
44321
44322         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44323
44324         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44325         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44326         * lib/xtime.h: Likewise.
44327
44328 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44329
44330         * modules/openat (Files): Add lib/fchmodat.c.
44331         Fixes problem reported by Jay Youngman.
44332
44333 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44336         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44337
44338 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44339             Bruno Haible  <bruno@clisp.org>
44340
44341         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44342         and is a script that invokes bison. Tighten the code. Add comments.
44343
44344 2006-08-18  Jim Meyering  <jim@meyering.net>
44345
44346         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44347         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44348         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44349         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44350
44351 2006-08-18  Bruno Haible  <bruno@clisp.org>
44352
44353         * modules/bison-i18n: New file.
44354         * MODULES.html.sh (Internationalization functions): Add it.
44355
44356 2006-08-18  Bruno Haible  <bruno@clisp.org>
44357
44358         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44359         sys/statvfs.h. When getmntinfo was found, check its declaration and
44360         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44361
44362 2006-08-18  Bruno Haible  <bruno@clisp.org>
44363
44364         * m4/bison-i18n.m4: New file, from bison.
44365
44366 2006-08-18  Bruno Haible  <bruno@clisp.org>
44367
44368         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44369         (ME_DUMMY): Treat "kernfs" as a dummy.
44370         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44371
44372 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44373
44374         Update from coreutils.
44375
44376         2006-08-15  Jim Meyering  <jim@meyering.net>
44377
44378         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44379
44380         2006-01-17  Jim Meyering  <jim@meyering.net>
44381
44382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44383
44384         2006-01-11  Jim Meyering  <jim@meyering.net>
44385
44386         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44387         Check for the lchmod function.
44388
44389 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44390
44391         Update from coreutils.
44392
44393         * lib/__fpending.h: Add copyright notice.
44394         * lib/fprintftime.h: Likewise.
44395         * lib/savedir.c: Use (C) in copyright notice.
44396         * lib/savedir.h: Likewise.
44397
44398         2006-08-15  Jim Meyering  <jim@meyering.net>
44399
44400         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44401         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44402         in support of the EXPECTED_ERRNO macro.
44403         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44404         definitions.  Instead, define the appropriate symbols and include
44405         "at-func.c".
44406         * lib/mkdirat.c (mkdirat): Likewise.
44407         * lib/fchmodat.c (fchmodat): Likewise.
44408         (ENOSYS): Remove definition.
44409         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44410         it.  Don't include "unistd--.h" -- it wasn't ever used.
44411
44412         2006-01-17  Jim Meyering  <jim@meyering.net>
44413
44414         Rewrite fts.c not to change the current working directory,
44415         by using openat, fstatat, fdopendir, etc..
44416
44417         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44418         (HAVE_OPENAT_SUPPORT): Define.
44419         [_LIBC] (fchdir): Don't undef or define; no longer used.
44420         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44421         Now, this `function' always succeeds, and consumes its file descriptor
44422         parameter -- so callers must not close such FDs.  Update callers.
44423         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44424         (diropen): Add parameter, SP.  Adjust all callers.
44425         Implement using diropen_fd, rather than open.
44426         (fts_open): Initialize new member, fts_cwd_fd.
44427         Remove fts_rft-setting code.
44428         (fts_close): Close fts_cwd_fd, if necessary.
44429         (__opendir2): Define in terms of opendir or opendirat,
44430         depending on whether the FST_NOCHDIR flag is set.
44431         (fts_build): Since fts_safe_changedir consumes its FD, and since
44432         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44433         and close the dup'd file descriptor upon failure.
44434         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44435         (fts_safe_changedir): Tweak semantics to reflect that this function
44436         now calls cwd_advance_fd and hence consumes its FD argument.
44437         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44438         [struct FTS] (fts_rft): Remove now-unused member.
44439         [struct FTS] (fts_cycle.state): Improve comment.
44440
44441         * lib/openat.c (openat_needs_fchdir): New function.
44442         * lib/openat.h (openat_needs_fchdir): Declare it.
44443
44444 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44447         Problem and fix reported by Pádraig Brady in
44448         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44449
44450 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44453
44454 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44455
44456         * lib/memcoll.c (memcoll): Optimize for the common case where the
44457         arguments are bytewise equal.
44458
44459 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         * doc/regexprops-generic.texi: Add a copyright notice.
44462
44463 2006-08-15  Bruno Haible  <bruno@clisp.org>
44464
44465         * modules/tmpdir (License): Change to LGPL.
44466
44467 2006-08-15  Bruno Haible  <bruno@clisp.org>
44468
44469         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44470         module.
44471
44472 2006-08-14  Simon Josefsson  <jas@extundo.com>
44473
44474         * config/srclist.txt: Add gnupload.
44475
44476 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         Change copyright notice from LGPL 2 to GPL 2, since that's the
44479         standard form used in the gnulib repository.
44480         * tests/test-lock.c: Likewise.
44481         * tests/test-stdint.c: Likewise.
44482         * tests/test-tls.c: Likewise.
44483
44484         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44485         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44486         Add copyright notice.
44487
44488         * check-module: Add copyright notice.  Output a copyright
44489         notice if "--version" is specified.
44490         * modules/COPYING: New file.
44491         * tests/test-getaddrinfo.c: Add copyright notice.
44492         * tests/test-verify.c: Likewise.
44493
44494 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44495
44496         Change copyright notice from LGPL 2 to GPL 2, since that's the
44497         standard form used in the gnulib repository.
44498         * lib/lock.c: LGPL -> GPL.
44499         * lib/lock.h: Likewise.
44500         * lib/strnlen1.c: Likewise.
44501         * lib/strnlen1.h: Likewise.
44502         * lib/tls.c: Likewise.
44503         * lib/tls.h: Likewise.
44504         * lib/tmpdir.c: Likewise.
44505
44506         * lib/TODO: Remove; this belongs only in coreutils.
44507
44508 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44509
44510         Add copyright notices to long-enough files that lack them, since
44511         otherwise the files aren't clearly free.  Use the same notice that
44512         getdate.texi already uses.
44513         * doc/alloca-opt.texi: Add copyright notice.
44514         * doc/alloca.texi: Likewise.
44515         * doc/ctime.texi: Likewise.
44516         * doc/functions.texi: Likewise.
44517         * doc/gcd.texi: Likewise.
44518         * doc/gnulib-tool.texi: Likewise.
44519         * doc/inet_ntoa.texi: Likewise.
44520         * doc/visibility.texi: Likewise.
44521
44522         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44523         * doc/quote.texi: Add copyright notice.
44524
44525         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44526         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44527         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44528         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44529         is now obsolete, and give a pointer to the Sun list.
44530         Add copyright notice.
44531
44532 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         * config/srclistvars.sh: Add copyright notice.
44535
44536 2006-08-14  Eric Blake  <ebb9@byu.net>
44537
44538         Import the following change from libc:
44539
44540         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44541
44542         Upstream bug 2997.
44543         * lib/misc/error.c: Add space between program name and message if file
44544         name is missing.
44545
44546 2006-08-12  Karl Berry  <karl@gnu.org>
44547
44548         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44549         remove, these originate in gnulib now.
44550
44551 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44552
44553         * doc/Makefile (standards.info standards.html standards.dvi):
44554         Also depend on make-stds.texi.
44555
44556 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44557
44558         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44559         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44560
44561         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44562         in wchar_t.  Problem reported by Eric Blake.
44563
44564         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44565         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44566         Also, help the compiler to keep LEN in a register.
44567
44568 2006-08-11  Eric Blake  <ebb9@byu.net>
44569
44570         * users.txt: Sort.  Add tar.
44571
44572 2006-08-11  Bruno Haible  <bruno@clisp.org>
44573
44574         * users.txt: New file.
44575
44576 2006-08-11  Bruno Haible  <bruno@clisp.org>
44577
44578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44579         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44580
44581 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44582
44583         * modules/snprintf (Depends-on): Remove minmax.
44584         (Maintainer): Add self and Bruno.
44585
44586 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44587
44588         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44589         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44590         (EOVERFLOW): Define if the system does not.
44591         Do not include "minmax.h"; it wasn't used.
44592         (snprintf): Don't assume size_t promotes to an unsigned type.
44593         Fix bug when generated string was too long for the buffer: the
44594         buffer's contents are supposed to be the initial prefix of the
44595         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44596         exceeds INT_MAX; do the check ourselves.
44597
44598         Import the following changes from libc:
44599
44600         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44601
44602         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44603         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44604         set wc to the byte which couldn't be converted.
44605         (re_string_reconstruct): Don't clear valid_raw_len before calling
44606         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44607         tip_context using re_string_context_at.
44608
44609         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44610
44611         * lib/posix/regex.h: g++ still cannot handled [restrict].
44612
44613         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44614
44615         * lib/posix/regex.h: Remove special handling for VMS.
44616
44617 2006-08-10  Jim Meyering  <jim@meyering.net>
44618
44619         * modules/same-inode: New module.
44620         * modules/dev-ino: New module.
44621         * modules/cycle-check: Depend on these modules, rather than simply
44622         including their .h files.
44623         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44624         required via m4/cycle-check.m4.
44625         * modules/same: Depend on new same-inode module, rather than
44626         including same-inode.h.
44627         * modules/chdir-safer: New file.
44628
44629         * modules/chown (Depends-on): Add stat-macros.
44630
44631 2006-08-10  Jim Meyering  <jim@meyering.net>
44632
44633         * m4/cycle-check.m4: New file.
44634         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44635         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44636
44637 2006-08-10  Eric Blake  <ebb9@byu.net>
44638
44639         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44640         in from original proposal.
44641
44642 2006-08-10  Eric Blake  <ebb9@byu.net>
44643         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44644
44645         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44646         namespace.
44647
44648 2006-08-10  Bruno Haible  <bruno@clisp.org>
44649
44650         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44651         as well.
44652
44653 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44654
44655         Sync from coreutils.
44656
44657         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44658
44659         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44660         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44661
44662 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44663
44664         * modules/restrict: Remove; no longer needed now that we assume
44665         Autoconf 2.59 or later.
44666         * MODULES.html.sh: Remove 'restrict'.
44667         * modules/argp (Depends-on): Remove 'restrict'.
44668         * modules/base64 (Depends-on): Likewise.
44669         * modules/gc (Depends-on): Likewise.
44670         * modules/getaddrinfo (Depends-on): Likewise.
44671         * modules/glob (Depends-on): Likewise.
44672         * modules/inet_ntop (Depends-on): Likewise.
44673         * modules/inet_pton (Depends-on): Likewise.
44674         * modules/memxor (Depends-on): Likewise.
44675         * modules/regex (Depends-on): Likewise.
44676         * modules/strtok_r (Depends-on): Likewise.
44677         * modules/time_r (Depends-on): Likewise.
44678
44679 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44680
44681         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
44682         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
44683         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44684         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
44685         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
44686         * m4/memxor.m4 (gl_MEMXOR): Likewise.
44687         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
44688         gl_C_RESTRICT replaced by AC_C_RESTRICT.
44689
44690         Merge from coreutils.
44691         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
44692         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
44693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44694         * m4/time_r.m4 (gl_TIME_R): Likewise.
44695
44696 2006-08-09  Karl Berry  <karl@gnu.org>
44697
44698         * config/srclist.txt: no more gettext-tools, per Bruno.
44699
44700 2006-08-08  Eric Blake  <ebb9@byu.net>
44701
44702         * modules/verror: New module.
44703         * MODULES.html.sh: Document it.
44704
44705 2006-08-08  Eric Blake  <ebb9@byu.net>
44706
44707         * lib/verror.h, lib/verror.c: New files.
44708
44709 2006-08-08  Eric Blake  <ebb9@byu.net>
44710
44711         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
44712         verror_at_line output complies with GNU Coding Standards even when
44713         file is NULL.
44714
44715 2006-08-07  Bruno Haible  <bruno@clisp.org>
44716
44717         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
44718         versions of AIX.
44719         Reported by Ralf Wildenhues.
44720
44721 2006-08-07  Bruno Haible  <bruno@clisp.org>
44722
44723         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
44724         in an AC_DEFUN. Needed so that the autoconf snippets can use
44725         AC_REQUIRE.
44726
44727 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44728
44729         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44730         Initialize pkgdata_DATA.
44731         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
44732         overriding it.
44733
44734 2006-08-06  Eric Blake  <ebb9@byu.net>
44735
44736         * lib/error.h: Fold in some upstream changes from glibc.
44737         * lib/error.c: Likewise.
44738
44739 2006-08-04  Bruno Haible  <bruno@clisp.org>
44740
44741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44742         Make the mostlyclean-local rule depend on mostlyclean-generic.
44743         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
44744
44745 2006-07-31  Bruno Haible  <bruno@clisp.org>
44746
44747         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
44748         <stdlib.h>, <string.h>.
44749
44750 2006-07-30  Bruno Haible  <bruno@clisp.org>
44751
44752         * modules/readlink (License): Change to LGPL.
44753
44754 2006-07-30  Bruno Haible  <bruno@clisp.org>
44755
44756         * modules/javaversion (Makefile.am): Distribute javaversion.java and
44757         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
44758         set PKGDATADIR to point to it.
44759
44760 2006-07-30  Bruno Haible  <bruno@clisp.org>
44761
44762         * modules/csharpexec (configure.ac): Comment out macro invocation.
44763         * modules/javaexec (configure.ac): Likewise.
44764         * modules/javacomp-script (configure.ac): Likewise.
44765
44766         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
44767
44768 2006-07-30  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
44771         linked-list.
44772
44773 2006-07-30  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
44776
44777 2006-07-30  Bruno Haible  <bruno@clisp.org>
44778
44779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44780         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
44781         get removed.
44782
44783 2006-07-29  Bruno Haible  <bruno@clisp.org>
44784
44785         Make it possible for gnulib-tool to work with locally modified or
44786         augmented gnulib repositories.
44787         * gnulib-tool (func_usage): Document --local-dir option.
44788         (local_gnulib_dir): New variable.
44789         Handle --local-dir option.
44790         (func_lookup_file): New function.
44791         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
44792         (func_get_description, func_get_filelist, func_get_description,
44793         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
44794         func_get_automake_snippet, func_get_include_directive,
44795         func_get_license, func_get_maintainer): Use func_lookup_file.
44796         (func_import, func_create_testdir): Use func_lookup_file.
44797
44798 2006-07-29  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/setenv (Depends-on): Add unistd.
44801
44802 2006-07-29  Bruno Haible  <bruno@clisp.org>
44803
44804         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
44805
44806 2006-07-29  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
44809
44810 2006-07-29  Bruno Haible  <bruno@clisp.org>
44811
44812         * gnulib-tool (import, update): If there is no Makefile.am, look at
44813         aclocal.m4, instead of bailing out.
44814
44815 2006-07-29  Bruno Haible  <bruno@clisp.org>
44816
44817         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
44818         Categorize the options by when they are useful.
44819
44820 2006-07-29  Bruno Haible  <bruno@clisp.org>
44821
44822         * gnulib-tool (func_usage): Document option --no-libtool.
44823         Handle option --no-libtool.
44824         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
44825         for changed semantics of $libtool variable.
44826         (func_import): Likewise. If libtool is not used, show this through
44827         an option --no-libtool.
44828         (func_create_testdir): Update.
44829
44830 2006-07-29  Bruno Haible  <bruno@clisp.org>
44831
44832         * gnulib-tool (func_import): Extend error message about missing
44833         --doc-base.
44834
44835 2006-07-29  Bruno Haible  <bruno@clisp.org>
44836
44837         * gnulib-tool (func_import): Don't create the $docbase directory if
44838         there is no file to store there.
44839
44840 2006-07-29  Bruno Haible  <bruno@clisp.org>
44841
44842         * gnulib-tool (autoconf_minversion): If a --dir option is given and
44843         relevant, look for configure.ac there, not in the current directory.
44844         Also use a simple search for AC_PREREQ, not "autoconf --trace".
44845
44846 2006-07-29  Bruno Haible  <bruno@clisp.org>
44847
44848         * gnulib-tool (SORT): New variable.
44849         (func_usage): Undocument --assume-autoconf option.
44850         Remove --assume-autoconf option handling.
44851         (autoconf_minversion): Determine from the contents of configure.ac.
44852         (func_import): Remove autoconf_minversion handling.
44853         Suggested by Eric Blake.
44854
44855 2006-07-29  Bruno Haible  <bruno@clisp.org>
44856
44857         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
44858
44859 2006-07-29  Bruno Haible  <bruno@clisp.org>
44860
44861         * config/srclist.txt (*setenv.[ch]): Remove rules.
44862
44863 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44864
44865         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
44866
44867 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44868
44869         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
44870         arpa/inet.h.
44871
44872 2006-07-28  Simon Josefsson  <jas@extundo.com>
44873
44874         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
44875         * modules/inet_pton (Depends-on): Likewise.
44876
44877 2006-07-28  Simon Josefsson  <jas@extundo.com>
44878
44879         * m4/netinet_in_h.m4: New file.
44880
44881 2006-07-28  Simon Josefsson  <jas@extundo.com>
44882
44883         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
44884         #include's.
44885
44886 2006-07-28  Simon Josefsson  <jas@extundo.com>
44887
44888         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
44889         #include's.
44890
44891 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
44892
44893         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
44894         setgid on directories only if they set these bits.
44895         * lib/modechange.h: Remove obsolete comment about masks.
44896
44897 2006-07-28  Eric Blake  <ebb9@byu.net>
44898
44899         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
44900         macro expansion.
44901
44902 2006-07-28  Bruno Haible  <bruno@clisp.org>
44903
44904         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
44905
44906 2006-07-28  Bruno Haible  <bruno@clisp.org>
44907
44908         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
44909
44910 2006-07-28  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44913         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
44914         Define fallbacks.
44915         Avoids link error on FreeBSD 4.x.
44916         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44917
44918         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
44919         encoding.
44920         * lib/mbswidth.c (iswcntrl): Likewise.
44921
44922 2006-07-27  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
44925         test.
44926
44927 2006-07-27  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
44930         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
44931         defined.
44932
44933 2006-07-26  Eric Blake  <ebb9@byu.net>
44934
44935         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
44936
44937 2006-07-26  Eric Blake  <ebb9@byu.net>
44938
44939         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
44940         like mingw that lack mkstemp.
44941         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
44942         avoid compilation warning on mingw.
44943
44944 2006-07-26  Bruno Haible  <bruno@clisp.org>
44945
44946         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
44947         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
44948         INT_FAST*_MIN, INTPTR_MIN.
44949
44950 2006-07-25  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/version-etc (Depends-on): Add stdarg.
44953
44954 2006-07-25  Bruno Haible  <bruno@clisp.org>
44955
44956         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
44957         complex commands.
44958
44959 2006-07-25  Bruno Haible  <bruno@clisp.org>
44960
44961         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
44962         defined in <stdarg.h> or config.h.
44963
44964 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44965
44966         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
44967         (gl_STDIO_SAFER): Remove.
44968
44969 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
44970
44971         * MODULES.html.sh (File stream based Input/Output):
44972         Add fopen-safer, tmpfile-safer; remove stdio-safer.
44973         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
44974         * modules/fopen-safer, modules/tmpfile-safer: New files.
44975         * modules/stdio-safer: Remove.
44976
44977 2006-07-24  Bruno Haible  <bruno@clisp.org>
44978
44979         * modules/tmpdir: New file.
44980         * MODULES.html.sh (File system functions): Add it.
44981
44982 2006-07-24  Bruno Haible  <bruno@clisp.org>
44983
44984         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
44985         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
44986
44987 2006-07-24  Bruno Haible  <bruno@clisp.org>
44988
44989         * modules/clean-temp: New file.
44990
44991 2006-07-24  Bruno Haible  <bruno@clisp.org>
44992
44993         * m4/tmpdir.m4: New file, from GNU gettext.
44994
44995 2006-07-24  Bruno Haible  <bruno@clisp.org>
44996
44997         * lib/tmpdir.h: New file, from GNU gettext.
44998         * lib/tmpdir.c: New file, from GNU gettext.
44999
45000 2006-07-24  Bruno Haible  <bruno@clisp.org>
45001
45002         * lib/clean-temp.h: New file, from GNU gettext.
45003         * lib/clean-temp.c: New file, from GNU gettext.
45004
45005 2006-07-23  Eric Blake  <ebb9@byu.net>
45006
45007         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45008         (Depends-on): Add binary-io.
45009
45010 2006-07-23  Eric Blake  <ebb9@byu.net>
45011
45012         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45013
45014 2006-07-23  Eric Blake  <ebb9@byu.net>
45015
45016         * lib/tmpfile-safer.c: New file.
45017         * lib/stdio-safer.h (fopen_safer): Add prototype.
45018         * lib/stdio--.h (tmpfile): Make safer.
45019
45020 2006-07-23  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45023         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45024         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45025         gl_linked_remove_at): Use it.
45026
45027 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45028         and Simon Josefsson <jas@extundo.com>
45029
45030         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45031
45032         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45033
45034 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45035
45036         * modules/close-stream: New file.
45037         * modules/closeout (Description): Make it clear that it exits
45038         with a diagnostic on error.
45039         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45040         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45041
45042 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45043
45044         * m4/close-stream.m4: New file.
45045
45046 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45047
45048         * lib/close-stream.c, lib/close-stream.h: New files.
45049
45050 2006-07-22  Bruno Haible  <bruno@clisp.org>
45051
45052         Merge from GNU gettext 0.15.
45053
45054         2006-05-01  Bruno Haible  <bruno@clisp.org>
45055
45056                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45057
45058         2006-07-22  Bruno Haible  <bruno@clisp.org>
45059
45060                 * modules/javaversion: New file.
45061                 * MODULES.html.sh (Java): Add javaversion.
45062
45063         2006-03-12  Bruno Haible  <bruno@clisp.org>
45064
45065                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45066
45067         2005-12-04  Bruno Haible  <bruno@clisp.org>
45068
45069                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45070                 (untested).
45071
45072         2006-06-21  Bruno Haible  <bruno@clisp.org>
45073
45074                 Avoid warnings from recent versions of mcs.
45075                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45076                 -o, -L, -r any more. Use options documented since mcs-1.0
45077                 instead. Similarly for -g.
45078
45079         2005-12-04  Bruno Haible  <bruno@clisp.org>
45080
45081                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45082                 .resources, not .resource.
45083
45084         2005-07-09  Bruno Haible  <bruno@clisp.org>
45085
45086                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45087                 add a .dll suffix.
45088                 Reported by Mark Junker <mjscod@gmx.de>.
45089
45090         2006-07-22  Bruno Haible  <bruno@clisp.org>
45091
45092                 * modules/gettext: Upgrade to gettext-0.15.
45093                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45094                 m4/visibility.m4.
45095                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45096
45097 2006-07-22  Bruno Haible  <bruno@clisp.org>
45098
45099         Merge from GNU gettext 0.15.
45100
45101         2006-03-25  Bruno Haible  <bruno@clisp.org>
45102
45103                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45104
45105         2006-07-21  Bruno Haible  <bruno@clisp.org>
45106
45107                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45108                 "1.1".
45109
45110         2006-05-09  Bruno Haible  <bruno@clisp.org>
45111
45112                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45113                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45114                 for the conftestver execution.
45115
45116         2006-05-01  Bruno Haible  <bruno@clisp.org>
45117
45118                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45119                 optional target-version argument. Verify that the compiler
45120                 groks source of the specified source-version, or add -source
45121                 option as necessary. Verify that the compiler produces
45122                 bytecode in the specified target-version, or add -target and
45123                 -source options as necessary. Make the result of the test
45124                 available as variable CONF_JAVAC. Also log error output in
45125                 config.log.
45126
45127         2006-03-11  Bruno Haible  <bruno@clisp.org>
45128
45129                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45130
45131         2006-05-09  Bruno Haible  <bruno@clisp.org>
45132
45133                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45134                 CLASSPATH_SEPARATOR to a semicolon.
45135
45136         2006-03-12  Bruno Haible  <bruno@clisp.org>
45137
45138                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45139                 available as variable CONF_JAVA, for subsequent autoconf
45140                 tests. Also log error output in config.log.
45141
45142         2006-07-19  Bruno Haible  <bruno@clisp.org>
45143
45144                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45145                 that getline works on glibc2 systems. Needed to avoid trouble
45146                 in relocatable.c.
45147                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45148
45149         2005-12-04  Bruno Haible  <bruno@clisp.org>
45150
45151                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45152                 launcher (untested).
45153
45154         2005-12-04  Bruno Haible  <bruno@clisp.org>
45155
45156                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45157
45158         2006-07-22  Bruno Haible  <bruno@clisp.org>
45159
45160                 * gettext.m4: Update from GNU gettext-0.15.
45161                 * nls.m4: Likewise.
45162                 * po.m4: Likewise.
45163                 * inttypes-pri.m4: Likewise.
45164                 * inttypes-h.m4: Renamed from inttypes.m4.
45165                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45166
45167 2006-07-22  Bruno Haible  <bruno@clisp.org>
45168
45169         Merge from GNU gettext 0.15.
45170
45171         2005-07-05  Bruno Haible  <bruno@clisp.org>
45172
45173                 * printf-args.c (printf_fetchargs): Work around broken
45174                 definition of wint_t on mingw.
45175
45176         2005-02-12  Bruno Haible  <bruno@clisp.org>
45177
45178                 * xallocsa.h: Add extern "C" for C++.
45179
45180         2006-05-17  Bruno Haible  <bruno@clisp.org>
45181
45182                 Cygwin portability.
45183                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45184
45185         2006-04-30  Bruno Haible  <bruno@clisp.org>
45186
45187                 * progreloc.c: Include <mach-o/dyld.h> if available.
45188                 (find_executable): Use _NSGetExecutablePath when possible.
45189
45190         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45191
45192                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45193                 function.
45194
45195         2005-12-29  Bruno Haible  <bruno@clisp.org>
45196
45197                 * progreloc.c (set_program_name_and_installdir): Fix
45198                 compilation error.
45199
45200         2005-12-04  Bruno Haible  <bruno@clisp.org>
45201
45202                 Cygwin portability.
45203                 * progreloc.c: Include <windows.h> also on Cygwin.
45204                 (find_executable): Add support for Cygwin.
45205                 (set_program_name_and_installdir): Handle also platforms with
45206                 nonempty EXEEXT.
45207
45208         2006-07-11  Bruno Haible  <bruno@clisp.org>
45209
45210                 * javacomp.c: Fix a comment.
45211                 Reported by Jim Meyering.
45212
45213         2006-04-30  Bruno Haible  <bruno@clisp.org>
45214
45215                 * javacomp.h (compile_java_class): Add source_version,
45216                 target_version arguments.
45217                 * javacomp.c: Rewritten to choose only a compiler that
45218                 respects the specified source_version and target_version.
45219
45220         2006-06-27  Bruno Haible  <bruno@clisp.org>
45221
45222                 Assume correct S_ISDIR macro.
45223                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45224
45225         2006-07-22  Bruno Haible  <bruno@clisp.org>
45226
45227                 * javaversion.h: New file, from GNU gettext.
45228                 * javaversion.c: New file, from GNU gettext.
45229                 * javaversion.java: New file, from GNU gettext.
45230                 * javaversion.class: New file, from GNU gettext.
45231
45232         2006-05-17  Bruno Haible  <bruno@clisp.org>
45233
45234                 Cygwin portability.
45235                 * javaexec.c (execute_java_class): Test for jview program
45236                 also on Cygwin.
45237
45238         2006-04-09  Bruno Haible  <bruno@clisp.org>
45239
45240                 * fatal-signal.c: Don't include string.h.
45241                 (at_fatal_signal): Use a copying loop instead of memcpy.
45242
45243         2005-12-04  Bruno Haible  <bruno@clisp.org>
45244
45245                 * csharpexec.c: Add support for 'clix' launcher (untested).
45246                 (execute_csharp_using_sscli): New function.
45247                 (execute_csharp_program): Call it.
45248
45249         2006-06-21  Bruno Haible  <bruno@clisp.org>
45250
45251                 Avoid warnings from recent versions of mcs.
45252                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45253                 -o, -L, -r any more. Use options documented since mcs-1.0
45254                 instead. Similarly for -g.
45255
45256         2005-07-09  Bruno Haible  <bruno@clisp.org>
45257
45258                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45259                 add a .dll suffix.
45260                 Reported by Mark Junker <mjscod@gmx.de>.
45261
45262         2006-06-17  Bruno Haible  <bruno@clisp.org>
45263
45264                 * config.charset: Update for NetBSD 3.0.
45265
45266         2006-05-17  Bruno Haible  <bruno@clisp.org>
45267
45268                 Cygwin portability.
45269                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45270
45271         2006-05-16  Bruno Haible  <bruno@clisp.org>
45272
45273                 * localcharset.c [CYGWIN]: Include <windows.h>.
45274                 (get_charset_aliases): For Cygwin, return the same CPxxx
45275                 aliases list as under WIN32.
45276                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45277                 the environment variables. Fall back to GetACP().
45278
45279         2006-04-05  Bruno Haible  <bruno@clisp.org>
45280
45281                 * config.charset: Update Juan Manuel Guerrero's address.
45282
45283         2005-02-12  Bruno Haible  <bruno@clisp.org>
45284
45285                 * allocsa.h: Add extern "C" for C++.
45286
45287         2005-02-10  Bruno Haible  <bruno@clisp.org>
45288
45289                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45290                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45291
45292         2006-07-22  Bruno Haible  <bruno@clisp.org>
45293
45294                 * gettext.h: Update to GNU gettext-0.15.
45295
45296 2006-07-22  Bruno Haible  <bruno@clisp.org>
45297
45298         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45299         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45300         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45301
45302 2006-07-21  Eric Blake  <ebb9@byu.net>
45303
45304         * modules/stdlib-safer: New file.
45305         * MODULES.html.sh (File stream based Input/Output): Add
45306         stdlib-safer.
45307
45308 2006-07-21  Eric Blake  <ebb9@byu.net>
45309
45310         * lib/stdlib-safer.h: New file from coreutils, required by
45311         stdlib--.h.
45312
45313 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45314
45315         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45316
45317 2006-07-20  Bruno Haible  <bruno@clisp.org>
45318
45319         * gnulib-tool: Recognize new option --assume-autoconf.
45320         (autoconf_minversion): New variable.
45321         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45322
45323 2006-07-20  Bruno Haible  <bruno@clisp.org>
45324
45325         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45326
45327 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45328
45329         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45330         Reindent and repaginate.
45331
45332 2006-07-19  Derek Price  <derek@ximbiot.com>
45333
45334         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45335         Correct grammar.
45336
45337 2006-07-17  Bruno Haible  <bruno@clisp.org>
45338
45339         * modules/list: New file.
45340         * modules/array-list: New file.
45341         * modules/carray-list, modules/carray-list-tests: New files.
45342         * modules/linked-list, modules/linked-list-tests: New files.
45343         * modules/avltree-list, modules/avltree-list-tests: New files.
45344         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45345         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45346         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45347         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45348         * modules/oset: New file.
45349         * modules/array-oset: New file.
45350         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45351         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45352         * tests/test-carray_list.c: New file.
45353         * tests/test-linked_list.c: New file.
45354         * tests/test-avltree_list.c: New file.
45355         * tests/test-rbtree_list.c: New file.
45356         * tests/test-linkedhash_list.c: New file.
45357         * tests/test-avltreehash_list.c: New file.
45358         * tests/test-rbtreehash_list.c: New file.
45359         * tests/test-avltree_oset.c: New file.
45360         * tests/test-rbtree_oset.c: New file.
45361         * MODULES.html.sh (Container data structures): New section.
45362
45363 2006-07-17  Bruno Haible  <bruno@clisp.org>
45364
45365         * m4/gl_list.m4: New file.
45366
45367 2006-07-17  Bruno Haible  <bruno@clisp.org>
45368
45369         * lib/gl_list.h: New file.
45370         * lib/gl_list.c: New file.
45371         * lib/gl_array_list.h: New file.
45372         * lib/gl_array_list.c: New file.
45373         * lib/gl_carray_list.h: New file.
45374         * lib/gl_carray_list.c: New file.
45375         * lib/gl_linked_list.h: New file.
45376         * lib/gl_linked_list.c: New file.
45377         * lib/gl_anylinked_list1.h: New file.
45378         * lib/gl_anylinked_list2.h: New file.
45379         * lib/gl_avltree_list.h: New file.
45380         * lib/gl_avltree_list.c: New file.
45381         * lib/gl_anyavltree_list1.h: New file.
45382         * lib/gl_anyavltree_list2.h: New file.
45383         * lib/gl_rbtree_list.h: New file.
45384         * lib/gl_rbtree_list.c: New file.
45385         * lib/gl_anyrbtree_list1.h: New file.
45386         * lib/gl_anyrbtree_list2.h: New file.
45387         * lib/gl_anytree_list1.h: New file.
45388         * lib/gl_anytree_list2.h: New file.
45389         * lib/gl_linkedhash_list.h: New file.
45390         * lib/gl_linkedhash_list.c: New file.
45391         * lib/gl_anyhash_list1.h: New file.
45392         * lib/gl_anyhash_list2.h: New file.
45393         * lib/gl_avltreehash_list.h: New file.
45394         * lib/gl_avltreehash_list.c: New file.
45395         * lib/gl_rbtreehash_list.h: New file.
45396         * lib/gl_rbtreehash_list.c: New file.
45397         * lib/gl_anytreehash_list1.h: New file.
45398         * lib/gl_anytreehash_list2.h: New file.
45399
45400         * lib/gl_oset.h: New file.
45401         * lib/gl_oset.c: New file.
45402         * lib/gl_array_oset.h: New file.
45403         * lib/gl_array_oset.c: New file.
45404         * lib/gl_avltree_oset.h: New file.
45405         * lib/gl_avltree_oset.c: New file.
45406         * lib/gl_rbtree_oset.h: New file.
45407         * lib/gl_rbtree_oset.c: New file.
45408         * lib/gl_anytree_oset.h: New file.
45409
45410 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45411
45412         * m4/mkancesdirs.m4: New file.
45413         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45414         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45415         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45416         it.
45417
45418 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45419
45420         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45421         * lib/mkancesdirs.h: New files.
45422         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45423         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45424         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45425         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45426         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45427         callers changed.  Revamp internals significantly, by not
45428         attempting to create directories that are temporarily more
45429         permissive than the final results.  Do not attempt to use
45430         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45431         This removes some race conditions, fixes some bugs, and simplifies
45432         things.  Use new dirchownmod function to do owner and mode changes.
45433         * lib/mkdir-p.h: Likewise.
45434         * lib/modechange.c (octal_to_mode): New function.
45435         (struct mode_change): New member mentioned.
45436         (make_node_op_equals): New arg mentioned.  All callers changed.
45437         (mode_compile): Keep track of which mode bits the user has explicitly
45438         mentioned.
45439         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45440         New arg PMODE_BITS, to keep track of which mode bits the user
45441         mentioned; it treats S_ISUID and S_ISGID speciall.
45442         All callers changed.
45443         * lib/modechange.h: Likewise.
45444
45445 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45446
45447         * MODULES.html.sh: Add mkancestors.
45448         * modules/mkancesdirs: New module.
45449         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45450         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45451         The chdir-safer and afs files are now orphans; I'll remove them
45452         unless someone speaks up.
45453         Add lib/dirchownmod.c, lib/dirchownmod.h.
45454         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45455         Add lchown, mkancesdirs.
45456         (Maintainer): Add self.
45457
45458 2006-07-15  Karl Berry  <karl@gnu.org>
45459
45460         * gnulib-tool: help message wording/arrangement.
45461
45462 2006-07-14  Simon Josefsson  <jas@extundo.com>
45463
45464         * doc/gnulib.texi (Libtool and Windows): New section.
45465
45466 2006-07-12  Simon Josefsson  <jas@extundo.com>
45467
45468         * modules/gendocs (License): Fix license, approved by Karl.
45469
45470 2006-07-12  Eric Blake  <ebb9@byu.net>
45471
45472         * MODULES.html.sh: Add gendocs.
45473
45474 2006-07-11  Eric Blake  <ebb9@byu.net>
45475
45476         * modules/fdl: New module, to install doc/fdl.texi.
45477         * MODULES.html.sh: Add new section for documentation modules.
45478         * gnulib-tool: Avoid space-tab.
45479         (--doc-base): New option, to manage files from doc.
45480
45481 2006-07-11  Eric Blake  <ebb9@byu.net>
45482
45483         * m4/absolute-header.m4: Fix comments to match recent change.
45484
45485 2006-07-11  Eric Blake  <ebb9@byu.net>
45486
45487         * gnulib-tool: List --doc-base before --tests-base.
45488
45489 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45490
45491         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45492
45493 2006-07-11  Bruno Haible  <bruno@clisp.org>
45494
45495         * README: Mention where to put documentation.
45496
45497 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45498
45499         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45500
45501 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45504         to stdint.m4.
45505
45506 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45509         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45510         "no/such/file/stdint.h" when there is no such file, so that
45511         the resulting C code can be parsed by dodgy compilers.
45512         Problems reported by Bob Proulx.
45513
45514 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45515
45516         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45517         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45518         macros into the GNU _D_EXACT_NAMLEN.
45519         * lib/savedir.c:  Likewise.
45520         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45521
45522 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45523         and Paul Eggert  <eggert@cs.ucla.edu>
45524
45525         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45526         * m4/savedir.m4:
45527         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45528         macros into the GNU _D_EXACT_NAMLEN.
45529
45530 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45531
45532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45533         around the absolute name, to work around a problem with the HP-UX
45534         11.23 native C compiler, reported by Bob Proulx.
45535
45536 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         * doc/maintain.texi, make-stds.texi: Sync from
45539         <http://savannah.gnu.org/projects/gnustandards>.
45540
45541 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45544
45545 2006-07-09  Jim Meyering  <jim@meyering.net>
45546
45547         * m4/glob.m4: Remove a doubled word in a comment.
45548
45549 2006-07-09  Jim Meyering  <jim@meyering.net>
45550
45551         * lib/argp-pv.c: Remove a doubled word in a comment.
45552         * lib/check-version.c (check_version): Likewise.
45553         * lib/javacomp.c (compile_java_class): Likewise.
45554
45555 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45556
45557         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45558         for the benefit of people using Autoconf 2.60.  If you want to
45559         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45560         (or m4/onceonly.m4, if pre-2.57) manually.
45561
45562 2006-07-08  Jim Meyering  <jim@meyering.net>
45563
45564         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45565         comment.
45566         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45567         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45568         comment.
45569
45570 2006-07-08  Jim Meyering  <jim@meyering.net>
45571
45572         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45573
45574 2006-07-07  Simon Josefsson  <jas@extundo.com>
45575
45576         * tests/test-crc.c: Change expected crc value, the test vector
45577         were probably computed using the old broken crc.c?
45578
45579 2006-07-06  Simon Josefsson  <jas@extundo.com>
45580
45581         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45582         now the canonical place for the M4 file).
45583
45584         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45585         from the sys_socket dependency now.
45586
45587         * modules/inet_pton (Files): Ditto.
45588
45589         * modules/inet_ntop (Files): Ditto.
45590
45591 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45592
45593         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45594         not gl_PREREQ_GETUSERSHELL.
45595
45596 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45597
45598         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45599         with only one argument, for Autoconf 2.60.
45600         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45601         expand to nothing, so add a shell command to avoid syntax error.
45602         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45603
45604 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45605
45606         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45607
45608 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45609
45610         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45611         no longer needed.  Check for isblank decl.
45612         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45613         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45614         of existence.
45615
45616 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45617
45618         * lib/getloadavg.c: Use __VMS, not VMS.
45619         * lib/getopt.c: Likewise.
45620         * lib/getpagesize.h: Likewise.
45621         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45622         and probably does not work.
45623
45624 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45625
45626         * lib/.cppi-disable: Add wcwidth.
45627         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45628         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45629         (ISGRAPH): Remove.  All uses changed to isgraph.
45630         (FOLD) [!defined _LIBC]: Remove special case.
45631         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45632         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45633         HAVE_ISBLANK.
45634         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45635         case.
45636
45637 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45638
45639         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45640         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45641         brackets.  Other minor changes to suppress some compiler
45642         warnings.
45643
45644 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45645         and Paul Eggert  <eggert@cs.ucla.edu>
45646
45647         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45648         of invoking obsolescent AC_HEADER_DIRENT macro.
45649         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45650         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45651         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45653         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45654         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45655         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45656         * m4/readdir.m4: Remove; no longer needed.
45657
45658 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45659         and Paul Eggert  <eggert@cs.ucla.edu>
45660
45661         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45662         Don't worry about this obsolete case any more.
45663         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45664         directories.
45665         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45666         worry about this obsolete case any more.
45667         * lib/fts.c: Likewise.
45668         * lib/getcwd.c: Likewise.
45669         * lib/glob.h: Likewise.
45670         * lib/savedir.c: Likewise.
45671
45672 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45673
45674         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45675         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45676         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45677         needed.
45678         All uses removed.
45679         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45680         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45681         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
45682         needed.
45683         * m4/getdate.m4 (gl_GETDATE): Likewise.
45684         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45685         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45686         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45687         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45688         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45689         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45690         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
45691         needed.
45692
45693 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45694
45695         * lib/memcasecmp.c: Include <limits.h>.
45696         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
45697         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
45698         Don't assume isdigit succeeds only on '0' through '9'.
45699
45700 2006-07-05  Eric Blake  <ebb9@byu.net>
45701
45702         * modules/getaddrinfo (Depends-on): Add snprintf.
45703
45704 2006-07-05  Eric Blake  <ebb9@byu.net>
45705
45706         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
45707         to avoid 'header present but could not be compiled' on cygwin.
45708
45709 2006-07-05  Eric Blake  <ebb9@byu.net>
45710
45711         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
45712         missing from netdb.h.
45713         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
45714
45715 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45716
45717         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
45718         no longer needed.
45719         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
45720         * m4/getdate.m4 (gl_GETDATE): Likewise.
45721         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
45722         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
45723         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45724         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45726
45727 2006-07-05  Derek R. Price  <derek@ximbiot.com>
45728
45729         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
45730         All uses of is_space replaced by isspace.
45731         * lib/exit.h: Don't talk about STDC_HEADERS.
45732         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
45733         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
45734         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
45735         replaced by isprint etc.
45736         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
45737         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45738         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
45739         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
45740         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
45741         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
45742
45743 2006-07-05  Bruno Haible  <bruno@clisp.org>
45744
45745         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
45746         the function exists, before testing against AIX.
45747         Reported by Martin Lambers <marlam@marlam.de>.
45748
45749 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45750
45751         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
45752         From Mark D. Baushke.
45753
45754 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
45755
45756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
45757         to the absolute name, not just one, to bypass Sun C 5.8's
45758         "warning: #include of /usr/include/... may be non-portable".
45759
45760 2006-07-04  Eric Blake  <ebb9@byu.net>
45761
45762         * modules/dirname-tests: New test module.
45763         * tests/test-dirname.c: New file, replacing dirname.c
45764         TEST_DIRNAME section that was recently deleted.
45765
45766 2006-07-04  Bruno Haible  <bruno@clisp.org>
45767
45768         Assume ANSI C header files and <ctype.h> functions.
45769         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
45770         (mbsnwidth): Use isprint, iscntrl instead.
45771
45772 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45773
45774         Merge from coreutils.
45775         * MODULES.html.sh: Add xstrtold.
45776         * modules/xstrtold: New file.
45777         * modules/cycle-check (Files): Add lib/same-inode.h.
45778         * modules/dirname (Files): Add m4/double-slash-root.m4.
45779         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
45780         * modules/mkdir-p (Files): Add lib/same-inode.h.
45781         * modules/same (Files): Add lib/same-inode.h.
45782
45783 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45784
45785         * m4/absolute-header.m4: Renamed from full-header-path.m4.
45786         This is to keep the terminology clean; POSIX talks about
45787         "absolute pathnames", not "full pathnames", but the GNU
45788         Coding Standards say to use "path" for something else;
45789         so use "absolute" to keep both sides happy.
45790         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
45791         Set gl_absolute_header, not gl_full_header_path.
45792         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
45793         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
45794         All uses changed.
45795
45796         Merge from coreutils.
45797
45798         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45799
45800         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
45801         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
45802         want to require the building of c-strtod.o.
45803         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
45804         needs -lm directly.
45805         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
45806
45807         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45808
45809         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
45810         --as-needed option if available.  Problem reported by Albert Chin in
45811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
45812         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
45813         cc merely issues a bunch of annoying warnings for --as-needed
45814         (this problem was reported by Bob Proulx).  Also, try linking with
45815         -lm to detect a bug in binutils 2.16 (this problem was reported
45816         by Ralf Wildenhues).
45817
45818         2006-06-18  Jim Meyering  <jim@meyering.net>
45819
45820         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
45821         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
45822         macro.
45823         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
45824         also check for glibc-2.4's abort-inducing bug.
45825
45826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
45827         Low-probability clean-up should be to use rmdir to get rid of
45828         the just-created directory, not unlink.
45829
45830         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
45831         configure fail, and request a bug report to inform us about it.
45832         Add a comment that, barring reports to the contrary, in 2007 we'll
45833         assume ftruncate is universally available.
45834
45835         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45836
45837         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
45838
45839         2006-03-12  Jim Meyering  <jim@meyering.net>
45840
45841         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
45842         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
45843         * m4/same.m4 (gl_SAME): Likewise.
45844         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
45845
45846         2006-03-11  Eric Blake  <ebb9@byu.net>
45847
45848         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
45849         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
45850         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
45851         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
45852
45853 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
45854
45855         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
45856         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
45857         reported by Mark D. Baushke, one in
45858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
45859
45860         Merge from coreutils.
45861
45862         * lib/.cppi-disable: Add stdint_.h.
45863         * lib/.cvsignore: Add stdint.h.
45864
45865         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
45866
45867         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
45868         both double and long double versions.
45869         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
45870         * lib/xstrtold.c: New file.
45871         * lib/xstrtod.h (xstrtold): New decl.
45872
45873         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         * lib/filemode.c (setst): Remove.
45876         (strmode): Rewrite to avoid setst.  This makes the code shorter,
45877         (arguably) clearer, and the generated code is a bit smaller on my
45878         Debian GNU/Linux stable x86 host.
45879
45880         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         * lib/filemode.c: Include "filemode.h" first, to test the interface.
45883         Assume that filemode.h includes sys/types.h and sys/stat.h.
45884         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
45885         (ftypelet): Reorder to put common cases first, for efficiency.
45886         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
45887         to do 'M'.
45888         (strmode): Renamed from mode_string, and now stores 12 bytes instead
45889         of 10, for compatibility with FreeBSD.  All callers changed.
45890         (filemodestring): Now stores 12 bytes instead of 10, and sets file
45891         types that can't be deduced solely from st_mode.  First arg is now a
45892         const pointer.
45893         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
45894         (strmode): Renamed from mode_string.
45895         (filemodestring): New decl.
45896         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
45897         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
45898         needed.
45899         (S_ISPORT, S_ISWHT): New macros, if not already defined.
45900
45901         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
45902
45903         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
45904         fsusage.h now does that.  Include fsusage.h first, to test interface.
45905         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
45906         at most one method (the old code could have generated decls that
45907         didn't conform to C89, not that this was ever exercised).
45908         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
45909
45910         2006-03-19  Jim Meyering  <jim@meyering.net>
45911
45912         Work even in a chroot where d_ino values for entries in "/"
45913         don't match the stat.st_ino values for the same names.
45914         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
45915         number, iterate through all entries again, using lstat instead.
45916         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
45917         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
45918
45919         * lib/getcwd.c (__getcwd): Clarify a comment.
45920         Use memcpy in place of a call to strcpy.
45921
45922         2006-03-12  Jim Meyering  <jim@meyering.net>
45923
45924         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
45925         matches that of the current directory (which we're about to chdir ".."
45926         out of), then save the dev-ino of the parent, instead.
45927
45928         * lib/same-inode.h (SAME_INODE): New file/macro.
45929         * lib/chdir-safer.c (SAME_INODE): Remove definition.
45930         Include "same-inode.h", instead.
45931         * lib/same.c: Likewise.
45932         * lib/cycle-check.h: Include "same-inode.h".
45933         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
45934         * lib/cycle-check.c (SAME_INODE): Remove definition.
45935         * lib/root-dev-ino.h: Include "same-inode.h".
45936
45937         2006-03-11  Eric Blake  <ebb9@byu.net>
45938
45939         * lib/same.c (same_name): s/base_name/last_component/
45940         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
45941         * lib/filenamecat.c (file_name_concat): Likewise.
45942
45943         2006-03-11  Eric Blake  <ebb9@byu.net>,
45944                     Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
45947         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
45948         drive prefix.
45949         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
45950         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
45951         (last_component): New method.
45952         * lib/dirname.c (dir_len): Determine when drive letters need a
45953         subsequent slash.  Preserve // when it is special.
45954         (dir_name): Don't append dot when drive letter is absolute.
45955         [TEST_DIRNAME]: Move into a full-blown gnulib test.
45956         * lib/basename.c (base_name): New semantics - malloc the result.
45957         Preserve // when it is special.  Preserve relative files that look
45958         like drive letters.
45959         (base_len): Preserve // when it is special.
45960         (last_component): New method, similar to old base_name semantics.
45961         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
45962         base_name.  Strip redundant slashes from ///.
45963
45964 2006-07-03  Jim Meyering  <jim@meyering.net>
45965
45966         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
45967         macro is used before the first cycle_check call.
45968
45969 2006-07-03  Eric Blake  <ebb9@byu.net>
45970
45971         * modules/dirname (Depends-on): Add xstrndup.
45972
45973 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45974
45975         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
45976         test cases, so that config.log is a bit easier to follow.
45977
45978 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
45979
45980         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
45981         both are 64 bits, since this seems to be the tradition, and this
45982         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
45983         we ever run into a host that prefers long long to long in this
45984         case, we'll need another configure-time test.  Problem reported by
45985         Jim Meyering.
45986
45987 2006-07-02  Eric Blake  <ebb9@byu.net>
45988
45989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
45990
45991 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45992
45993         * modules/inttypes (Depends-on): No longer depends on stdint.
45994         * modules/stdint (Description): Say more about assumptions.
45995         Say that the fast types might differ.  Say macros are used.
45996         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
45997         (Makefile.am): Revise list of substituted symbols to match
45998         new stdint.m4.
45999         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46000         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46001         * tests/test-stdint.c (verify_same_types)
46002         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46003         the code conforms to C99/C89.
46004         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46005         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46006
46007 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46010         but fix a bug, by requiring at least 64 bits.
46011         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46012         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46013         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46014         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46015
46016         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46017         changes.  Make 2.59 a prerequisite.  Check and substitute for
46018         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46019         inttypes.h.  Do not use special include files; just use the
46020         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46021         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46022         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46023         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46024         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46025         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46026         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46027         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46028         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46029         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46030         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46031         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46032         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46033         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46034         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46035         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46036         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46037         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46038         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46039         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46040         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46041         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46042         not check for things that C99 does not require, e.g., int8_t.  If
46043         a test isn't needed unless <stdint.h> isn't working, and is
46044         unlikely to be needed for any other reason, then don't do it
46045         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46046         size_t, since we assume C89 freestanding at least.  Do not check
46047         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46048         the right thing even if the types are not defined.  Instead use:
46049         (gl_STDINT_TYPE_PROPERTIES): New macro.
46050         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46051         testing whether <sys/types.h> clashes, as Autoconf does this for
46052         us now.  All uses removed.
46053         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46054         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46055         (gl_CHECK_TYPE_SAME):
46056         Remove; no longer needed.
46057         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46058         exists, since we'll return 0 anyway in that case.
46059         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46060
46061 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46062
46063         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46064         possible collision with system files.
46065         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46066         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46067         WCHAR_MIN and WCHAR_MAX in this case.
46068         (<stddef.h>): Do not include; no longer needed.
46069         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46070         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46071         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46072         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46073         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46074         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46075         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46076         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46077         !defined(__c99))]: Include in this case too, since it's harmless
46078         now.
46079         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46080         dangerous to do so.
46081         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46082         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46083         (_STDINT_MIN, _STDINT_MAX): New macros.
46084         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46085         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46086         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46087         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46088         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46089         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46090         macros, not typedefs; this simplifies things quite a bit.
46091         Use long int for all types narrower than int64_t.
46092         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46093         Define in terms of long long int or int64_t or long int,
46094         not int64_t or int32_t.  This saves some compile-time testing.
46095         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46096         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46097         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46098         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46099         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46100         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46101         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46102         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46103         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46104         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46105         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46106         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46107         undef any previous version and define our own version, for
46108         simplicity and consistency with the new macros for types.
46109         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46110         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46111         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46112         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46113         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46114         @WINT_T_SUFFIX@ to keep things simple here.
46115         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46116         Simplify by assuming typical 8/16/32/64 host, since we're
46117         already doing that elsewhere anyway.
46118         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46119         and assume long long int is 64 bits if available.  This
46120         speeds up 'configure'.
46121
46122 2006-07-01  Eric Blake  <ebb9@byu.net>
46123
46124         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46125         Reported by Andreas Buening.
46126
46127 2006-07-01  Eric Blake  <ebb9@byu.net>
46128
46129         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46130
46131 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46132
46133         * lib/getaddrinfo.c: fixed typo
46134
46135 2006-06-29  Jim Meyering  <jim@meyering.net>
46136
46137         * modules/strftime (Maintainer): Add my name, since with the
46138         FPRINTFTIME changes strftime.c has forked from glibc.
46139
46140 2006-06-29  Eric Blake  <ebb9@byu.net>
46141
46142         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46143
46144 2006-06-29  Eric Blake  <ebb9@byu.net>
46145
46146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46147
46148 2006-06-29  Eric Blake  <ebb9@byu.net>
46149
46150         * lib/stat_.h: New file.
46151
46152 2006-06-29  Eric Blake  <ebb9@byu.net>
46153
46154         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46155         unused static function.
46156
46157 2006-06-29  Eric Blake  <ebb9@byu.net>
46158
46159         * doc/functions.texi (Function Portability): Document missing lstat
46160         on mingw.
46161
46162 2006-06-29  Eric Blake  <ebb9@byu.net>
46163
46164         * MODULES.html.sh: Add sys_stat.
46165         * modules/sys_stat: New module.
46166         * modules/mkstemp (Depends-on): Add sys_stat.
46167
46168 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46169
46170         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46171
46172 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46173
46174         * m4/c-bs-a.m4: Removed.
46175
46176 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46177
46178         * lib/strftime.c: Assume strftime() exists.
46179
46180 2006-06-29  Derek Price  <derek@ximbiot.com>
46181
46182         * modules/c-bs-a: Removed - \a is C89.
46183         * MODULES.html.sh: Remove c-bs-a.
46184
46185 2006-06-29  Bruno Haible  <bruno@clisp.org>
46186
46187         * modules/wcwidth (License): Change to LGPL.
46188
46189 2006-06-28  Simon Josefsson  <jas@extundo.com>
46190
46191         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46192         on _WIN32.
46193
46194         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46195         getnameinfo.
46196
46197 2006-06-28  Simon Josefsson  <jas@extundo.com>
46198
46199         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46200
46201 2006-06-28  Simon Josefsson  <jas@extundo.com>
46202
46203         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46204         functions there.  It will succeed on Windows XP, but on Windows
46205         2000 and (presumably) earlier, it will fail, and use the internal
46206         re-implementation.
46207         (use_win32_p): New function.
46208         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46209         Support AI_NUMERICSERV to disable getservbyname.
46210         (getnameinfo): New function, only supports
46211         NI_NUMERICHOST|NI_NUMERICSERV for now.
46212
46213         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46214         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46215         getnameinfo.
46216
46217 2006-06-28  Eric Blake  <ebb9@byu.net>
46218
46219         * modules/wcwidth: New file.
46220         * modules/mbchar (Depends-on): Add wcwidth.
46221         * modules/mbswidth (Depends-on): Add wcwidth.
46222         * MODULES.html.sh: Add wcwidth.
46223
46224 2006-06-28  Eric Blake  <ebb9@byu.net>
46225
46226         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46227         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46228
46229 2006-06-28  Eric Blake  <ebb9@byu.net>
46230
46231         * lib/xvasprintf.h: Fix comments.
46232
46233 2006-06-28  Eric Blake  <ebb9@byu.net>
46234
46235         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46236         * lib/mbswidth.c (wcwidth): Move from here...
46237         * lib/wcwidth.h: ...to this new file.
46238
46239 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46240
46241         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46242
46243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46244         it's obsolete.
46245         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46246
46247 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46248
46249         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46250         Autoconf 2.60 says this stuff was obsolete.
46251
46252 2006-06-28  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46255
46256 2006-06-28  Bruno Haible  <bruno@clisp.org>
46257
46258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46259         gt_TYPE_WCHAR_T.
46260
46261 2006-06-28  Bruno Haible  <bruno@clisp.org>
46262
46263         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46264         declaration for wcwidth.
46265         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46266
46267 2006-06-28  Bruno Haible  <bruno@clisp.org>
46268
46269         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46270         (mkdir): Define using _mkdir.
46271
46272 2006-06-28  Bruno Haible  <bruno@clisp.org>
46273
46274         * lib/getaddrinfo.h: Fix POSIX URL.
46275         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46276         _WIN32.
46277         (use_win32_p): Make static.
46278         (getaddrinfo): Reject service name if it is empty or does not consist
46279         solely of decimal digits, or if its value is > 65535.
46280         (getnameinfo): Remove useless casts.
46281
46282 2006-06-27  Simon Josefsson  <jas@extundo.com>
46283
46284         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46285         Eggert and Martin Lambers.
46286
46287 2006-06-27  Simon Josefsson  <jas@extundo.com>
46288
46289         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46290         Eggert and Martin Lambers.
46291
46292 2006-06-27  Bruno Haible  <bruno@clisp.org>
46293
46294         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46295         result to 0, not to empty.
46296         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46297
46298 2006-06-27  Bruno Haible  <bruno@clisp.org>
46299
46300         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46301
46302 2006-06-26  Simon Josefsson  <jas@extundo.com>
46303
46304         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46305         present.
46306
46307 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46308
46309         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46310         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46311         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46312
46313 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46314
46315         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46316
46317 2006-06-26  Bruno Haible  <bruno@clisp.org>
46318
46319         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46320
46321 2006-06-26  Bruno Haible  <bruno@clisp.org>
46322
46323         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46324
46325 2006-06-26  Bruno Haible  <bruno@clisp.org>
46326
46327         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46328         SGI C compiler in pre-C99 mode.
46329         Suggested by Mark D. Baushke and Larry Jones.
46330
46331 2006-06-26  Bruno Haible  <bruno@clisp.org>
46332
46333         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46334         WCHAR_MAX.
46335         Reported by Mark D. Baushke and Larry Jones.
46336
46337 2006-06-26  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46340         in pre-C99 mode.
46341         Suggested by Mark D. Baushke and Larry Jones.
46342
46343 2006-06-23  Simon Josefsson  <jas@extundo.com>
46344             Bruno Haible  <bruno@clisp.org>
46345
46346         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46347         Emit mostlyclean-local rule.
46348         (func_emit_tests_Makefile_am): Likewise.
46349         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46350
46351 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46352
46353         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46354
46355 2006-06-23  Bruno Haible  <bruno@clisp.org>
46356
46357         * tests/test-stdint.c: Update to match ISO C 99 Technical
46358         Corrigendum 1.
46359
46360 2006-06-23  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46363
46364 2006-06-23  Bruno Haible  <bruno@clisp.org>
46365
46366         * lib/stdint_.h: Treat IRIX like OpenBSD.
46367
46368 2006-06-23  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46371         ISO C 99 Technical Corrigendum 1.
46372
46373 2006-06-22  Simon Josefsson  <jas@extundo.com>
46374
46375         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46376         MinGW.
46377
46378 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46379
46380         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46381         needed.  Some compiler complained about some of them.  Problem reported
46382         by Larry Jones in
46383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46384
46385 2006-06-21  Simon Josefsson  <jas@extundo.com>
46386
46387         * tests/test-getaddrinfo.c: New file.
46388
46389         * modules/getaddrinfo-tests: New file.
46390
46391         * MODULES.html.sh: Add inet_pton.
46392
46393         * modules/inet_pton: New file.
46394
46395 2006-06-21  Simon Josefsson  <jas@extundo.com>
46396
46397         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46398         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46399         of using the (limited) gnulib implementation on Windows XP.
46400
46401         * m4/inet_pton.m4: New file.
46402
46403 2006-06-21  Simon Josefsson  <jas@extundo.com>
46404
46405         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46406         variable.
46407
46408         * lib/socket_.h: Don't define WINVER.
46409
46410         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46411         slightly modified to work in gnulib.
46412
46413 2006-06-21  Simon Josefsson  <jas@extundo.com>
46414
46415         * doc/gnulib.texi (Windows sockets): Add.
46416
46417 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46418
46419         * lib/read-file.c (fread_file): Start with buffer allocation of
46420         0 bytes rather than 1 byte; this simplifies the code.
46421         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46422         code to free buffer and save/restore errno.
46423         (internal_read_file): Remove unused local.
46424
46425 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46426
46427         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46428         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46429         Problem reported by Denis Excoffier in
46430         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46431
46432 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46433
46434         * modules/sys_socket, modules/socklen: Include sys/types since
46435         FreeBSD 4.x's sys/socket.h needs it.
46436
46437 2006-06-19  Simon Josefsson  <jas@extundo.com>
46438
46439         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46440
46441 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46442
46443         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46444
46445 2006-06-19  Bruno Haible  <bruno@clisp.org>
46446
46447         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46448         and FULL_PATH_INTTYPES_H in angle brackets.
46449         Reported by Mark D. Baushke <mdb@gnu.org>.
46450
46451 2006-06-17  Eric Blake  <ebb9@byu.net>
46452
46453         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46454         errno.
46455
46456 2006-06-17  Bruno Haible  <bruno@clisp.org>
46457
46458         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46459         <sys/inttypes.h>.
46460
46461 2006-06-17  Bruno Haible  <bruno@clisp.org>
46462
46463         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46464         whether errno is declared. Assume <errno.h> declares errno.
46465
46466 2006-06-17  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46469
46470 2006-06-17  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46473         problem on Solaris 2.5.1.
46474
46475 2006-06-16  Eric Blake  <ebb9@byu.net>
46476
46477         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46478         * lib/unicodeio.c [!defined errno]: Likewise.
46479         * lib/strtol.c [!defined errno]: Likewise.
46480         * lib/strtod.c [!defined errno]: Likewise.
46481
46482 2006-06-15  Eric Blake  <ebb9@byu.net>
46483
46484         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46485
46486 2006-06-15  Eric Blake  <ebb9@byu.net>
46487
46488         * config/srclist.txt (ssize_t.m4): Lose sync.
46489
46490 2006-06-15  Bruno Haible  <bruno@clisp.org>
46491
46492         * modules/stdint (Files): Include m4/full-header-path.m4,
46493         m4/size_max.m4, m4/wchar_t.m4.
46494         (Makefile.am): Many more substitutions.
46495         * modules/stdint-tests: New file.
46496         * tests/test-stdint.c: New file.
46497
46498 2006-06-15  Bruno Haible  <bruno@clisp.org>
46499
46500         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46501         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46502         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46503         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46504         gl_CHECK_TYPE_SAME): New macros.
46505
46506 2006-06-15  Bruno Haible  <bruno@clisp.org>
46507
46508         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46509
46510 2006-06-15  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/stdint_.h: Rewritten to be fully auto-configured.
46513         Fixes bug on HP-UX/IA64.
46514
46515 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46516
46517         * lib/getdate.y (__attribute__): Don't define if already defined.
46518         Problem reported by Larry Jones.
46519         * lib/utimens.c (__attribute__): Likewise.
46520
46521 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46522
46523         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46524         reported by Andreas Schwab.
46525
46526 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46527             Bruno Haible  <bruno@clisp.org>
46528
46529         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46530         check for the declaration of strnlen and a run test that exposes the
46531         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46532         rpl_strndup.
46533
46534 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46535             Bruno Haible  <bruno@clisp.org>
46536
46537         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46538
46539 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46540
46541         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46542         compile test, for Tru64 4.0D.
46543
46544 2006-05-28  Karl Berry  <karl@gnu.org>
46545
46546         * config/srclist.txt (printf-args.c): lose sync.
46547
46548 2006-05-26  Martin Lambers  <marlam@marlam.de>
46549
46550         * lib/getpass.c: Updates the test for the native W32 API, and adds
46551         missing includes, thus fixing compilation warnings.
46552
46553 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46554
46555         * lib/exclude.c (exclude_fnmatch): New function.
46556         (excluded_file_name): Call exclude_fnmatch.
46557         * lib/exclude.h (excluded_file_name): New prototype
46558
46559 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46560
46561         * lib/tempname.c (small_open, large_open): New macros.
46562         (__open, __open64) [!_LIBC]: Remove.
46563         (__gen_tempname): Use small_open and large_open instead of __open
46564         and __open64.  This fixes a portability bug on HP-UX 11.11i
46565         reported by Simon Wing-Tang in
46566         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46567
46568 2006-05-24  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46571         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46572         Reported by Thorsten Maerz <torte@netztorte.de> via
46573         Aaron Stone <aaron@serendipity.cx>.
46574
46575 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46576
46577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46578         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46579         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46580         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46581         not really conditional on the cache.
46582         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46583
46584 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46585
46586         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46587         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46588         (my_usleep): Don't mishandle maximum value.
46589
46590 2006-05-19  Jim Meyering  <jim@meyering.net>
46591
46592         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46593
46594 2006-05-17  Bruno Haible  <bruno@clisp.org>
46595
46596         Cygwin portability.
46597         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46598
46599 2006-05-17  Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/stdint_.h: Fix recognition of Cygwin.
46602
46603 2006-05-15  Bruno Haible  <bruno@clisp.org>
46604
46605         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46606         on libtool patch by Ralf Wildenhues.
46607
46608 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46609
46610         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46611         test for C99 conformance; (bool) 0.5 is an integer constant
46612         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46613         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46614
46615 2006-05-11  Simon Josefsson  <jas@extundo.com>
46616
46617         * m4/xvasprintf.m4: Fix obvious typo.
46618
46619 2006-05-11  Jim Meyering  <jim@meyering.net>
46620
46621         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46622         James Lemley.
46623
46624 2006-05-10  Simon Josefsson  <jas@extundo.com>
46625
46626         * lib/md4.c: Typo fix, update copyright years.
46627         (K1, K2): Don't use L because it turn computations into 64-bit on
46628         64-bit platforms.
46629
46630 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46633         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46634         unwanted sign propagation, e.g., on hosts with 64-bit int.
46635         There still are some problems with reeelly weird theoretical hosts
46636         (e.g., 33-bit int) but it's not worth worrying about now.
46637         * lib/sha1.c (rol): Likewise.
46638         (K1, K2, K3, K4): Remove unnecessary L suffix.
46639
46640 2006-05-10  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/des.c: Cast to avoid warnings.
46643
46644 2006-05-09  Bruno Haible  <bruno@clisp.org>
46645
46646         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46647         (Depends-on): Depend also on xsize, stdarg.
46648         (configure.ac): Add gl_XVASPRINTF.
46649
46650 2006-05-09  Bruno Haible  <bruno@clisp.org>
46651
46652         * m4/xvasprintf.m4: New file.
46653
46654 2006-05-09  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46657         (EOVERFLOW): Define fallback value.
46658         (xstrcat): New function.
46659         (xvasprintf): Recognize the special case of a string concatenation.
46660
46661 2006-05-08  Eric Blake  <ebb9@byu.net>
46662
46663         * gnulib-tool (func_version): Base copyright year on CVS date.
46664         (func_emit_copyright_notice): New function.
46665         (func_emit_lib_Makefile_am): Use it.
46666         (func_emit_tests_Makefile_am): Likewise.
46667         (func_import): Likewise.
46668
46669 2006-05-08  Bruno Haible  <bruno@clisp.org>
46670
46671         * modules/stdarg: New file.
46672         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46673
46674 2006-05-08  Bruno Haible  <bruno@clisp.org>
46675
46676         * m4/stdarg.m4: New file, from GNU gettext.
46677
46678 2006-05-08  Bruno Haible  <bruno@clisp.org>
46679
46680         * config/srclist.txt (build-aux/config.rpath): different from latest
46681         release.
46682
46683 2006-05-08  Bruno Haible  <bruno@clisp.org>
46684
46685         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
46686
46687 2006-05-05  Jim Meyering  <jim@meyering.net>
46688
46689         * m4/warning.m4: New file, derived from bison's file by the same name.
46690
46691 2006-05-03  Bruno Haible  <bruno@clisp.org>
46692
46693         * lib/stdint_.h: Shorter URL.
46694         * lib/inttypes.h: Likewise.
46695
46696 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46697
46698         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
46699
46700 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46701
46702         * lib/verify.h: Document the internals better.  Most of this change
46703         was written by Bruno Haible.
46704
46705 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
46706
46707         * doc/verify.texi: New file, partly based on a proposal by
46708         Bruno Haible.
46709
46710 2006-05-02  Bruno Haible  <bruno@clisp.org>
46711
46712         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
46713         test from here...
46714         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
46715
46716 2006-04-29  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
46719         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
46720
46721 2006-04-29  Bruno Haible  <bruno@clisp.org>
46722
46723         * gnulib-tool: Make --update option actually work.
46724
46725 2006-04-29  Bruno Haible  <bruno@clisp.org>
46726
46727         * doc/gcd.texi: New file.
46728         * doc/gnulib.texi: Include it.
46729
46730 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46731
46732         * lib/getdate.y (get_date): When adding relative date, start with the
46733         initial time, not with the result of the first mktime call.
46734
46735 2006-04-25  Bruno Haible  <bruno@clisp.org>
46736
46737         * gnulib-tool (func_import): Output the include directives in three
46738         blocks, sorted separately.
46739         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46740
46741 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46742
46743         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
46744         to define main with arguments, for C++.  Reported by Eric Blake.
46745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46746         Prefer 'int main ()' to 'int main (void)', for C++.
46747         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46748         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
46749         for 'main', for C99 and C++.
46750
46751 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46752
46753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
46754         Don't assume that exit status -1 is valid.
46755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46757         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46758         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
46759         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
46760         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
46761         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
46762         functions can be used without declaring them, or that you can
46763         exit with status -1.
46764         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46765
46766 2006-04-24  Karl Berry  <karl@gnu.org>
46767
46768         * config/srclist.txt (longdouble.m4): sync lost.
46769
46770 2006-04-24  Eric Blake  <ebb9@byu.net>
46771
46772         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
46773
46774 2006-04-24  Bruno Haible  <bruno@clisp.org>
46775
46776         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
46777         poll() implementation in AIX.
46778         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46779
46780 2006-04-24  Bruno Haible  <bruno@clisp.org>
46781
46782         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
46783         assigned exactly once.
46784
46785 2006-04-23  Claudio Fontana  <claudio@gnu.org>
46786             Bruno Haible  <bruno@clisp.org>
46787
46788         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
46789         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
46790         for AM_CPPFLAGS.
46791
46792 2006-04-23  Bruno Haible  <bruno@clisp.org>
46793
46794         * modules/copy-file: Depend on unistd.
46795         * modules/execute: Likewise.
46796         * modules/fatal-signal: Likewise.
46797         * modules/findprog: Likewise.
46798         * modules/mkdtemp : Likewise.
46799         * modules/pipe: Likewise.
46800         * modules/wait-process: Likewise.
46801
46802 2006-04-23  Bruno Haible  <bruno@clisp.org>
46803
46804         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
46805         condition was already detected.
46806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46807
46808 2006-04-23  Bruno Haible  <bruno@clisp.org>
46809
46810         * lib/copy-file.c: Include <unistd.h> unconditionally.
46811         * lib/execute.c: Likewise.
46812         * lib/fatal-signal.c: Likewise.
46813         * lib/findprog.c: Likewise.
46814         * lib/mkdtemp.c: Likewise.
46815         * lib/pipe.h: Likewise.
46816         * lib/pipe.c: Likewise.
46817         * lib/wait-process.h: Likewise.
46818
46819 2006-04-23  Bruno Haible  <bruno@clisp.org>
46820
46821         * gnulib-tool (func_usage): Fix --import description. Document
46822         --update.
46823         (func_import): Create temporary file in a temporary directory, if
46824         --dry-run is specified. Silence errors from 'grep' when there are no
46825         m4 files in $m4dir.
46826         (func_create_testdir): Silence errors from 'grep' when there are no
46827         m4 files in $m4dir.
46828         Reported by Karl Berry <karl@freefriends.org>.
46829
46830 2006-04-20  Bruno Haible  <bruno@clisp.org>
46831
46832         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
46833         one argument, so that the code will be portable to Autoconf 2.60.
46834         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
46835         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46836         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
46837
46838 2006-04-19  Derek Price  <derek@ximbiot.com>
46839             Eric Blake  <ebb9@byu.net>
46840
46841         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
46842         rather than "/full/path.h".  Update comment to match.  Shorten &
46843         generalize m4_translit call via AS_TR_CPP.
46844
46845 2006-04-19  Derek Price  <derek@ximbiot.com>
46846             Eric Blake  <ebb9@byu.net>
46847
46848         * lib/inttypes.h: Correct grammar in comment.
46849
46850 2006-04-18  Derek Price  <derek@ximbiot.com>
46851             Paul Eggert  <eggert@cs.ucla.edu>
46852
46853         * modules/inttypes: New file.
46854         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
46855
46856 2006-04-18  Derek Price  <derek@ximbiot.com>
46857             Paul Eggert  <eggert@cs.ucla.edu>
46858
46859         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
46860         New files.
46861
46862 2006-04-18  Derek Price  <derek@ximbiot.com>
46863             Paul Eggert  <eggert@cs.ucla.edu>
46864
46865         * lib/inttypes.h: New file.
46866         * lib/strtoimax.c: Assume <inttypes.h>.
46867
46868 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
46871         isn't mounted.  Problem reported by Kir Kolyshkin.
46872
46873 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
46876         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
46877         Derek R. Price.
46878         * lib/regex.h (RE_DUP_MAX): Update comment to match current
46879         implementation.
46880
46881 2006-04-12  Eric Blake  <ebb9@byu.net>
46882
46883         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
46884         is now done automatically by the corresponding Autoconf macro.
46885
46886 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
46887
46888         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
46889         time_r.h.
46890
46891 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46892
46893         Merge regex changes from libc, removing some of our
46894         POSIX-conformance changes that were rejected and redoing them in a
46895         less-intrusive way.
46896
46897         * lib/regcomp.c (re_compile_internal, init_dfa):
46898         Length arg is now size_t, not Idx.  All uses changed.
46899         (peek_token): Forward decl now says internal_function.
46900         (__re_error_msgid, __re_error_msgid_idx):
46901         Now static rather than extern with attribute_hidden.
46902         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
46903         For some reason libc prefers K&R style defns for external functions.
46904         (regerror) [!defined _LIBC]: Likewise.
46905         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
46906         (seek_collating_symbol_entry, lookup_collation_sequence_value):
46907         (build_range_exp, build_collating_symbol):
46908         Use K&R-style defn.
46909         (re_compile_fastmap): Use '\0' to memset, not 0.
46910         (utf8_sb_map): Make the calculations more obvious.
46911         (init_dfa, parse_bracket_exp, build_charclass_op):
46912         Call calloc and cast result, as glibc does.
46913         (init_word_char, fetch_token, peek_token, peek_token_bracket):
46914         (build_range_exp, build_collating_symbol):
46915         Now internal functions.
46916
46917         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
46918
46919         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
46920         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
46921         Don't depend on VMS; depend on __VMS instead, for POSIX
46922         namespace cleanness.
46923         (regoff_t): Define to ssize_t, not long int.
46924
46925         Remove the REG_ macros named below.  Instead, make the old names
46926         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
46927         __USE_GNU_REGEX.
46928         (REG_BACKSLASH_ESCAPE_IN_LISTS):
46929         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
46930         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
46931         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
46932         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
46933         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
46934         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
46935         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
46936         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
46937         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
46938         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
46939         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
46940         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
46941         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
46942         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
46943         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
46944         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
46945         (REG_NREGS):
46946         Remove.  All uses replaced by the old RE_* names.
46947         (RE_BACKSLASH_ESCAPE_IN_LISTS):
46948         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
46949         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
46950         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
46951         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
46952         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
46953         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
46954         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
46955         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
46956         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
46957         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
46958         Don't bother having these macros be independent of each others'
46959         values, since they no longer exist in the POSIX name space.
46960
46961         Rename the following member names back to their old names,
46962         unless !__USE_GNU_REGEX.  All uses changed back.
46963         (buffer): Renamed from re_buffer.
46964         (allocated): Renamed from re_allocated.
46965         (used): Renamed from re_used.
46966         (syntax): Renamed from re_syntax.
46967         (fastmap): Renamed from re_fastmap.
46968         (translate): Renamed from re_translate.
46969         (can_be_null): Renamed from re_can_be_null.
46970         (regs_allocated): Renamed from re_regs_allocated.
46971         (fastmap_accurate): Renamed from re_fastmap_accurate.
46972         (no_sub): Renamed from re_no_sub.
46973         (not_bol): Renamed from re_not_bol.
46974         (not_eol): Renamed from re_not_eol.
46975         (newline_anchor): Renamed from re_newline_anchor.
46976         (num_regs): Renamed from rm_num_regs.
46977         (start): Renamed from rm_start.
46978         (end): Renamed from rm_end.
46979
46980         (free_state): Move up a bit.
46981
46982         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
46983         #define to be empty.
46984         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
46985         when that is what is intended.
46986         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
46987         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
46988         (MAX): New macro.
46989         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
46990         All uses changed back to re_malloc, etc.  It's now the caller's
46991         responsibility to check for overflow; all callers changed.
46992         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
46993         (re_x2nrealloc): Remove.
46994         (free_state): Remove decl.
46995
46996         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
46997         (re_set_registers, re_exec):
46998         Use K&R-style defn.
46999
47000         2006-01-31  Roland McGrath  <roland@redhat.com>
47001
47002         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47003         Reported by Mike Frysinger <vapier@gentoo.org>.
47004
47005         2006-01-15  Andreas Jaeger  <aj@suse.de>
47006
47007         [BZ #1950]
47008         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47009         build_wcs_upper_buffer change.
47010         (build_wcs_upper_buffer): Change return type.
47011
47012         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47013
47014         * lib/regex_internal.h: Include <stdint.h> if available.
47015
47016         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47017
47018         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47019
47020         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47021
47022         * lib/regcomp.c: Adjust for changed secondary hash function.
47023
47024         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47025
47026         * lib/regex.h: Pretty printing.
47027         Clean up namespace a bit.
47028
47029         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47030
47031         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47032         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47033
47034         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47035                     Ulrich Drepper  <drepper@redhat.com>
47036
47037         [BZ #1302]
47038         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47039         changed.
47040         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47041
47042         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47043
47044         [BZ #281]
47045         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47046         * lib/regcomp.c: Remove unnecessary uses of
47047         unsigned RE_TRANSLATE_TYPE.
47048         * lib/regex_internal.h: Likewise.
47049         * lib/regex_internal.c: Likewise.
47050         * lib/regexec.c: Likewise.
47051         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47052
47053         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47054
47055         * lib/regexec.c (find_recover_state): Remove unnecessary
47056         initialization.
47057         (transit_state_bkref): Make DFA a const pointer.
47058         (get_subexp): Likewise.
47059         (check_arrival): Likewise.
47060         (update_cur_sifted_state): Likewise.
47061         (re_search_internal): Likewise.
47062         (prune_impossible_nodes): Likewise.
47063         (acquire_init_state_context): Likewise.
47064         (proceed_next_node): Likewise.
47065         (set_regs): Likewise.
47066         (free_fail_stack_return): Likewise.
47067         (check_arrival_expand_ecl): Mark DFA parameter as const.
47068         (check_arrival_expand_ecl_sub): Likewise.
47069         (check_subexp_limits): Likewise.
47070         (sub_epsilon_src_nodes):  Likewise.
47071         (add_epsilon_src_nodes):  Likewise.
47072         (merge_state_array): Likewise.
47073         (update_regs): Likewise.
47074         (build_trtable): Likewise.
47075         (sift_states_backward): Mark MCTX parameter as const.
47076         (build_sifted_states): Likewise.
47077         (update_cur_sifted_state): Likewise.
47078         (sift_states_mkref): Likewise.
47079         (check_arrival_expand_ecl): Mark eclosure as const.
47080         (check_dst_limits_calc_pos_1): Likewise.
47081         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47082         pointer.
47083
47084         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47085
47086         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47087         (transit_state_sb): Likewise.
47088         (transit_state_mb): Likewise.
47089         (sift_states_iter_mb): Likewise.
47090         (check_arrival_add_next_nodes): Likewise.
47091         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47092         [_LIBC] (re_search_2_stub): Use mempcpy.
47093
47094         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47095         mbrtowc for very simple UTF-8 case.
47096
47097         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47098         a pointer-to-const.
47099         (re_acquire_state_context): Likewise.
47100         * lib/regex_internal.h: Adjust prototypes.
47101
47102         * lib/regex.c: Prevent using C++ compilers.
47103
47104         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47105         (re_acquire_state_context): Likewise.
47106
47107 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47108
47109         * modules/regex (Depends-on): Add ssize_t.
47110
47111 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47112
47113         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47114         translation table.
47115
47116 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47117
47118         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47119
47120 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47121             Bruno Haible  <bruno@clisp.org>
47122
47123         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47124         <sys/types.h> and <inttypes.h>.
47125
47126 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47127
47128         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47129         `__error_t_defined', so argp.h will not typedef the former.
47130
47131 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47132
47133         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47134         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47135         glibc names.  Even if glibc is changed to conform to POSIX, the
47136         traditional names will be available anyway, since regex depends on
47137         the extensions module.  Also, fix a longstanding typo in the
47138         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47139         reported by Emanuele Giaquinta.  Also, change sense of cached
47140         variable, so that the message makes sense.
47141
47142 2006-03-24  Simon Josefsson  <jas@extundo.com>
47143
47144         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47145         including some doc fixes.
47146         (base64_encode_alloc): Fix +1 bug on allocation failures.
47147
47148 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47149
47150         * lib/base64.c (base64_encode): Do not read past end of array with
47151         unsanitized input on systems with CHAR_BIT > 8.
47152
47153 2006-03-24  Eric Blake  <ebb9@byu.net>
47154
47155         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47156
47157 2006-03-22  Karl Berry  <karl@gnu.org>
47158
47159         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47160         * config/srclistvars.sh (COREUTILS): new var.
47161
47162 2006-03-17  Jim Meyering  <jim@meyering.net>
47163
47164         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47165         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47166
47167 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47168
47169         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47170         no longer needs it.  Instead, check that regoff_t is as least
47171         as wide as ptrdiff_t.
47172
47173         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47174         so that our regex.h stays compatible with the installed regex.
47175         This is helpful for installers who configure --without-included-regex.
47176         Problem reported by Emanuele Giaquinta.
47177
47178 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47179
47180         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47181         Typedef to long int, not to off_, as POSIX will likely change
47182         in that direction.
47183
47184 2006-03-15  Eric Blake  <ebb9@byu.net>
47185
47186         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47187
47188 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47189
47190         * lib/argp-help.c (validate_uparams): Fix typo
47191         * lib/argp-parse.c (argp_default_options): Consistently begin help
47192         messages with a lowercase letter.
47193
47194 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47195
47196         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47197         overrun buffers and shouldn't be used (much as gets shouldn't be
47198         used).
47199         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47200
47201 2006-03-08  Simon Josefsson  <jas@extundo.com>
47202
47203         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47204         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47205
47206 2006-03-08  Simon Josefsson  <jas@extundo.com>
47207
47208         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47209         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47210
47211 2006-03-08  Simon Josefsson  <jas@extundo.com>
47212
47213         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47214         signal that configure disabled the device.
47215
47216 2006-03-08  Simon Josefsson  <jas@extundo.com>
47217
47218         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47219         languages.
47220
47221 2006-03-07  Simon Josefsson  <jas@extundo.com>
47222
47223         * modules/getopt (Depends-on): Add unistd.
47224
47225         * modules/unistd: New file.
47226
47227 2006-03-07  Simon Josefsson  <jas@extundo.com>
47228
47229         * modules/gc-random: New file.
47230
47231 2006-03-07  Simon Josefsson  <jas@extundo.com>
47232
47233         * m4/unistd_h.m4: New file.
47234
47235 2006-03-07  Simon Josefsson  <jas@extundo.com>
47236
47237         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47238         test to be side-effect free by storing the result in the cache
47239         variable gl_cv_lib_readline, and moving the assignment of
47240         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47241         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47242
47243 2006-03-07  Simon Josefsson  <jas@extundo.com>
47244
47245         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47246         error on missing devices (the functions will return an error).
47247
47248         * m4/gc.m4: Move random stuff to gc-random.m4
47249
47250 2006-03-07  Simon Josefsson  <jas@extundo.com>
47251
47252         * lib/unistd_.h: New file.
47253
47254 2006-03-07  Simon Josefsson  <jas@extundo.com>
47255
47256         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47257
47258 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47259
47260         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47261         Problem reported by Juan Manuel Guerrero.
47262
47263 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47266         the unistd module.
47267         * lib/getlogin_r.c: Likewise.
47268         * lib/getlogin_r.h: Likewise.
47269         * lib/glob.c: Likewise.
47270         * lib/pagealign_alloc.c: Likewise.
47271         * lib/unistd_.h: Remove; no longer needed.
47272
47273 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47274
47275         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47276         Add unistd.
47277         * modules/c-stack (Depends-on): Add unistd.
47278         * modules/getlogin_r: Likewise.
47279         * modules/glob: Likewise.
47280         * modules/pagealign_alloc: Likewise.
47281         * modules/unistd (Files): Remove lib/unistd_.h.
47282         (EXTRA_DIST): Remove.
47283         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47284         need unistd_.h.
47285         (MOSTLYCLEANFILES): Remove unistd.h-t.
47286
47287 2006-03-03  Simon Josefsson  <jas@extundo.com>
47288
47289         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47290
47291 2006-03-03  Simon Josefsson  <jas@extundo.com>
47292
47293         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47294         libidn and bison.
47295
47296 2006-03-03  Simon Josefsson  <jas@extundo.com>
47297
47298         * build-aux/maint.mk: Add indent target.
47299
47300 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47301
47302         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47303         our replacement poll.h in any case, to avoid a differing
47304         declaration from a system header.  Seen on AIX.
47305
47306 2006-03-01  Simon Josefsson  <jas@extundo.com>
47307
47308         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47309         <kasal@ucw.cz>.
47310
47311 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47312
47313         * modules/gettime (Depends-on): Add extensions module.
47314         * modules/nanosleep (Depends-on): Likewise.
47315         * modules/settime (Depends-on): Likewise.
47316
47317 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47318
47319         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47320         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47321         pedantically.
47322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47323         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47324
47325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47326         not "==".  Reported by Ralf Wildenhues.
47327
47328 2006-03-01  Karl Berry  <karl@gnu.org>
47329
47330         * doc/Copyright/request-*: new files, synced from gnuorg.
47331
47332 2006-03-01  Karl Berry  <karl@gnu.org>
47333
47334         * config/srclist.txt (Copyright/*): new entries.
47335
47336 2006-02-28  Simon Josefsson  <jas@extundo.com>
47337
47338         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47339
47340 2006-02-27  Simon Josefsson  <jas@extundo.com>
47341
47342         * lib/base64.h: Indent #define's.  From Jim Meyering
47343         <jim@meyering.net>.
47344
47345 2006-02-27  Jim Meyering  <jim@meyering.net>
47346
47347         Revert the change of 2006-02-24, so these files can continue
47348         to be sync'd from gettext.
47349         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47350         of `config.h'.
47351
47352 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * modules/intprops: New file.
47355         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47356         Add intprops.
47357         * modules/getloadavg (Files): Remove lib/intprops.h.
47358         (Depends-on): Add intprops.
47359         * modules/human: Likewise.
47360         * modules/inttostr: Likewise.
47361         * modules/openat: Likewise.
47362         * modules/sig2str: Likewise.
47363         * modules/userspec: Likewise.
47364         * modules/utimecmp: Likewise.
47365         * modules/xnanosleep: Likewise.
47366         * modules/xstrtol: Likewise.
47367
47368 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47369
47370         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47371         * modules/lock-tests (TESTS): Use $(EXEEXT).
47372         * modules/tls-tests: Likewise.
47373         * modules/argp-tests: Likewise.
47374         (check_PROGRAMS): New var, replacing...
47375         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47376
47377 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47378
47379         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47380         `config.h'.
47381
47382 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47383
47384         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47385
47386 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47387
47388         Sync from coreutils.
47389         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47390         gl_CHDIR_SAFER.
47391
47392 2006-02-22  Jim Meyering  <jim@meyering.net>
47393
47394         Sync from coreutils.
47395         * m4/chdir-safer.m4: New file.
47396
47397 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47398
47399         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47400         AT_FDCWD exceeds INT_MAX.
47401         * lib/openat.h (AT_FDCWD): Likewise.
47402
47403 2006-02-17  Eric Blake  <address@hidden>
47404
47405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47406
47407 2006-02-16  Simon Josefsson  <jas@extundo.com>
47408
47409         * modules/getaddrinfo (Depends-on): Add sys_socket.
47410
47411 2006-02-15  Simon Josefsson  <jas@extundo.com>
47412
47413         * build-aux/maint.mk: Add dsyntax-check rule.
47414
47415 2006-02-15  Eric Blake  <ebb9@byu.net>
47416
47417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47418         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47419         'present but cannot compile' warnings on cygwin.
47420         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47421         use ws2tcpip.h if sys/socket.h works.
47422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47423         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47424
47425 2006-02-14  Simon Josefsson  <jas@extundo.com>
47426
47427         * modules/maintainer-makefile (Files): Rename.
47428
47429         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47430         and (the local) Makefile.cfg to maint-cfg.mk.
47431
47432         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47433         to the latter.
47434
47435         * modules/maintainer-makefile: New module.
47436
47437         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47438         severaly stripped to make it possible to build it up from scratch
47439         with reliable tests.
47440
47441         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47442         fixes to permit overriding the default actions when configure and
47443         makefile are not available.
47444
47445 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47446
47447         Sync from coreutils.
47448         * modules/lstat (Depends-on): Don't depend on xalloc.
47449         (License): Change from GPL to LGPL, since this is now simply a
47450         replacement for a libc function.
47451
47452 2006-02-14  Jim Meyering  <jim@meyering.net>
47453
47454         Sync from coreutils.
47455
47456         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47457         failure on deficient systems, and simplify gnulib lgpl dependencies.
47458         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47459         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47460
47461         * lib/xalloc-die.c: Remove unused definition of N_.
47462
47463 2006-02-14  Jim Meyering  <jim@meyering.net>
47464
47465         Sync from coreutils.
47466         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47467         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47468         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47469         double-quote uses of that variable, to accommodate the rare case in
47470         which getmntent is available in none of the libraries checked.  This
47471         happens at least on FreeBSD 5.0.
47472
47473 2006-02-13  Simon Josefsson  <jas@extundo.com>
47474
47475         * gnulib-tool (Usage): Fix --import, from
47476         karl@freefriends.org (Karl Berry).
47477
47478 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47479
47480         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47481
47482 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47483
47484         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47485         "autoupdate" on 2005-12-12.
47486
47487 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47488
47489         * modules/closeout (Depends-on): Remove atexit.
47490
47491 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47492
47493         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47494         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47495
47496 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47499         __EXTENSIONS__ if this causes compilation to fail.  Problem
47500         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47501         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47502
47503 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47506         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47508         All uses changed.
47509
47510 2006-01-26  Simon Josefsson  <jas@extundo.com>
47511
47512         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47513         prototype is visible on mingw32.
47514
47515         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47516         for mingw32.
47517
47518         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47519         mingw32).
47520
47521 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47522
47523         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47524         attempt to open for write; this always fails, at least on POSIX
47525         hosts.  This reinstates the 2006-01-09 change, which was
47526         inadvertently removed.
47527
47528 2006-01-26  Bruno Haible  <bruno@clisp.org>
47529
47530         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47531         Reported by Paul Eggert.
47532
47533 2006-01-26  Bruno Haible  <bruno@clisp.org>
47534             Paul Eggert  <eggert@cs.ucla.edu>
47535
47536         * lib/stdbool_.h (_Bool)
47537         [(! (defined __cplusplus || defined __BEOS__)
47538           && !defined __GNUC__
47539           && !(defined __HP_cc || defined __xlc__
47540                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47541                || defined __sgi))]:
47542         #define to signed char in these cases too; this simplifies
47543         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47544         etc., separately) and makes it more conservative.
47545
47546 2006-01-25  Simon Josefsson  <jas@extundo.com>
47547
47548         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47549         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47550         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47551
47552 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47553
47554         * lib/argp-namefrob.h: Bugfix. Remove stray #
47555
47556 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47557
47558         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47559         so that we test the test.
47560         Check for yet another HP-UX cc bug involving *bool |= bool.
47561
47562 2006-01-25  Karl Berry  <karl@gnu.org>
47563
47564         * config/srclist.txt (vasnprintf.c): sync lost.
47565
47566 2006-01-25  Jim Meyering  <jim@meyering.net>
47567
47568         Sync from the stable (b5) branch of coreutils:
47569
47570         * lib/fts.c (fts_children): Don't let close() clobber errno from
47571         failed fchdir().
47572
47573         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47574         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47575         a dangling symlink.  That can also happen at least for ELOOP.
47576         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47577         FYI, this bug predates the inclusion of fts.c in coreutils.
47578
47579         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47580         in their own block, so pre-c99 compilers don't object.
47581
47582         Avoid the double-free (first in fts_read, second in fts_close) that
47583         would occur when an `active' directory is made inaccessible (e.g.,
47584         via chmod a-x) during a traversal.
47585         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47586         before returning.  Reproduce this failure by
47587         mkdir -p a/b; cd a; chmod a-x . b
47588         Reported by Stavros Passas.
47589
47590 2006-01-25  Jim Meyering  <jim@meyering.net>
47591
47592         * lib/fileblocks.c: Remove more useless parentheses.
47593         * lib/readutmp.h: Likewise.
47594
47595 2006-01-25  Bruno Haible  <bruno@clisp.org>
47596
47597         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47598         warnings.
47599         Reported by Paul Eggert.
47600
47601 2006-01-25  Bruno Haible  <bruno@clisp.org>
47602
47603         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47604         rid of a trap command. For Solaris sh.
47605         Reported by Mark D. Baushke <mdb@gnu.org>.
47606
47607 2006-01-24  Simon Josefsson  <jas@extundo.com>
47608
47609         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47610         Bruno.
47611
47612 2006-01-24  Karl Berry  <karl@gnu.org>
47613
47614         * config/srclist.txt (argp-namefrob.h): sync lost.
47615
47616 2006-01-24  Jim Meyering  <jim@meyering.net>
47617
47618         * modules/openat (Files): Add lib/intprops.h.
47619         From Mark D. Baushke.
47620
47621 2006-01-24  Jim Meyering  <jim@meyering.net>
47622
47623         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47624         Reported by Mark D. Baushke.
47625
47626 2006-01-24  Jim Meyering  <jim@meyering.net>
47627
47628         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47629
47630 2006-01-24  Bruno Haible  <bruno@clisp.org>
47631
47632         * modules/strnlen (Maintainer): Change from glibc to all.
47633
47634 2006-01-24  Bruno Haible  <bruno@clisp.org>
47635
47636         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47637         Patch by Paul Eggert.
47638
47639 2006-01-24  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47642         already has it.
47643         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47644         2005-11-26.
47645
47646         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47647         'signed char' to avoid problems with the built-in _Bool type.
47648         Reported by Paul Eggert on 2005-11-26.
47649
47650 2006-01-24  Bruno Haible  <bruno@clisp.org>
47651
47652         * gnulib-tool (func_import): Avoid constructing complicated sed
47653         expressions inside backquote.
47654         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47655
47656 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47657
47658         These changes imported from libc.
47659         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47660         test and two separate function calls.
47661         * lib/strndup.c (__strndup): Add libc_hidden_def.
47662
47663 2006-01-23  Simon Josefsson  <jas@extundo.com>
47664
47665         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47666         Remove the test_*_SOURCES variable: automake infers it by default.
47667         * modules/tls-tests: Likewise.
47668
47669 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47670
47671         Work around porting bugs reported by Dieter in
47672         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47673         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47674         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47675         Include "getopt.h" first, to check interface.
47676         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47677         !HAVE_DECL_GETENV.
47678         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47679         (__strndup): Revert to K&R-style function dfns, the glibc style.
47680         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47681         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
47682         Include strnlen.h first, to get prototype properly.
47683         (strnlen): Renamed from __strnlen.
47684         Remove weak alias.
47685
47686 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47687
47688         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
47689
47690 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47691
47692         * config/srclist.txt: Adjust to reflect glibc reorganization.
47693         This affects only comments.
47694
47695 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47696
47697          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
47698          Reported by Bruce Korb <bkorb@gnu.org>.
47699
47700 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47701
47702         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
47703         to pacify gcc -Wswitch-default.
47704
47705 2006-01-22  Bruno Haible  <bruno@clisp.org>
47706
47707         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
47708         temporary buffer for sprintf, take into account the precision also
47709         for 'd', 'i', 'u', 'o', 'x', 'X'.
47710
47711 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47712
47713         * modules/argp-tests: New module
47714         * tests/test-argp.c: New file
47715         * tests/test-argp-2.sh: New file
47716
47717 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
47718
47719         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
47720         (__argp_base_name): Removed
47721         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
47722         typo.
47723         (__argp_base_name): Provide macro definition or extern declaration
47724         depending on the configuration
47725
47726 2006-01-20  Simon Josefsson  <jas@extundo.com>
47727
47728         * modules/inet_ntop (Depends-on): Depend on sys_socket.
47729
47730 2006-01-20  Simon Josefsson  <jas@extundo.com>
47731
47732         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
47733
47734 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
47735
47736         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
47737         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
47738         Suggested by Bruno Haible.
47739
47740 2006-01-20  Karl Berry  <karl@gnu.org>
47741
47742         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
47743         until changes propagate, I guess.
47744
47745 2006-01-19  Simon Josefsson  <jas@extundo.com>
47746
47747         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
47748
47749 2006-01-19  Simon Josefsson  <jas@extundo.com>
47750
47751         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
47752
47753 2006-01-19  Simon Josefsson  <jas@extundo.com>
47754
47755         * gnulib-tool: Set check_PROGRAMS.
47756
47757         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47758         modules/des-tests, modules/gc-arcfour-tests,
47759         modules/gc-arctwo-tests, modules/gc-des-tests,
47760         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47761         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47762         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47763         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47764         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47765         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
47766         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
47767         test_*_SOURCES.
47768
47769 2006-01-18  Simon Josefsson  <jas@extundo.com>
47770
47771         * modules/socklen (Depends-on): Depend on sys_socket.
47772
47773 2006-01-18  Simon Josefsson  <jas@extundo.com>
47774
47775         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
47776         modules/des-tests, modules/gc-arcfour-tests,
47777         modules/gc-arctwo-tests, modules/gc-des-tests,
47778         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
47779         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
47780         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
47781         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
47782         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
47783         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
47784         $(EXEEXT) to automake TESTS variable, for mingw32.
47785
47786 2006-01-17  Simon Josefsson  <jas@extundo.com>
47787
47788         * modules/socklen (Include): Need sys/socket.h.
47789
47790 2006-01-17  Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/ssize_t (Include): Add <sys/types.h>.
47793
47794 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
47795
47796         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
47797         it's not portable and it doesn't work with cross-compiles.
47798         Problem reported by Bruno Haible.  Fix missing-$ typo in
47799         'test "gl_cv_ignore_unused_libraries" ...' that prevented
47800         -zignore from being used with Sun's C compiler.
47801
47802 2006-01-12  Simon Josefsson  <jas@extundo.com>
47803
47804         * lib/base64.c: Fix warning, reported by Bruno Haible
47805         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
47806
47807 2006-01-12  Bruno Haible  <bruno@clisp.org>
47808
47809         * modules/ldd: New file.
47810         * build-aux/ldd.sh.in: New file.
47811         * MODULES.html.sh (Support for building libraries and executables): Add
47812         ldd.
47813
47814 2006-01-12  Bruno Haible  <bruno@clisp.org>
47815
47816         * m4/ldd.m4: New file.
47817
47818 2006-01-12  Bruno Haible  <bruno@clisp.org>
47819
47820         * gnulib-tool (func_import, func_create_testdir): Don't go into an
47821         endless loop while replacing $auxdir with build-aux.
47822
47823 2006-01-11  Simon Josefsson  <jas@extundo.com>
47824
47825         * lib/stdint_.h (SIZE_MAX): Add missing (.
47826
47827 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
47828
47829         Sync from coreutils.
47830         * lib/md5.c: Fix commentary typos.
47831         (alignof, UNALIGNED_P): No need for a GCC-specific version.
47832         * lib/md5.h (__attribute__): Remove; unused.
47833         * lib/sha1.c: Fix commentary to match md5 better.
47834         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
47835         so that we don't need to worry about alignment.  All uses changed.
47836         This merges the 2005-10-28 md5 change into sha1.
47837
47838 2006-01-11  Jim Meyering  <jim@meyering.net>
47839
47840         Sync from coreutils.
47841         * lib/md5.c (OP): Fix spacing.
47842
47843 2006-01-11  Bruno Haible  <bruno@clisp.org>
47844
47845         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47846         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
47847         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
47848
47849 2006-01-11  Bruno Haible  <bruno@clisp.org>
47850
47851         Ensure automatic ordering between gl_LOCK and gl_ARGP.
47852         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
47853         the "early" section as well.
47854
47855 2006-01-11  Bruno Haible  <bruno@clisp.org>
47856
47857         Avoid "ar: no archive members specified" error on MacOS X.
47858         * gnulib-tool (func_modules_add_dummy): New function.
47859         (func_import, func_create_testdir): Invoke it.
47860
47861 2006-01-11  Bruno Haible  <bruno@clisp.org>
47862
47863         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
47864         with $auxdir in AC_CONFIG_FILES statements.
47865
47866 2006-01-11  Bruno Haible  <bruno@clisp.org>
47867
47868         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47869         Initialize also noinst_HEADERS to empty.
47870
47871 2006-01-11  Bruno Haible  <bruno@clisp.org>
47872
47873         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
47874         variables.
47875         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
47876         autoreconf.
47877
47878 2006-01-11  Bruno Haible  <bruno@clisp.org>
47879
47880         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
47881         overridable by the user.
47882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47883
47884 2006-01-10  Simon Josefsson  <jas@extundo.com>
47885
47886         * modules/sys_socket: New file.
47887
47888 2006-01-10  Simon Josefsson  <jas@extundo.com>
47889
47890         * m4/sys_socket_h.m4: New file.
47891
47892 2006-01-10  Simon Josefsson  <jas@extundo.com>
47893
47894         * lib/socket_.h: New file.
47895
47896 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47897
47898         * modules/readutmp (Maintainer): Add myself.
47899
47900 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47901
47902         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
47903         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
47904         People who are still concerned with buggy memcmp implementations
47905         can invoke gl_FUNC_MEMCMP themselves.
47906
47907 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47908
47909         * lib/regex_internal.h (BITSET_WORD_BITS):
47910         Work around a bug in 64-bit PGC (before version 6.1-2), where the
47911         preprocessor mishandles large unsigned values as if they were signed.
47912         Problem reported by Claudio Fontana in
47913         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
47914
47915 2006-01-10  Jim Meyering  <jim@meyering.net>
47916
47917         Avoid the double-free (first in fts_read, second in fts_close) that
47918         would occur when an `active' directory is made inaccessible (e.g.,
47919         via chmod a-x) during a traversal.
47920         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47921         before returning.  Reproduce this failure by
47922         mkdir -p a/b; cd a; chmod a-x . b
47923         Reported by Stavros Passas.
47924
47925         Sync from coreutils.
47926         * lib/sha1.c: Tweak grammar in a comment.
47927
47928 2006-01-10  Jim Meyering  <jim@meyering.net>
47929
47930         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
47931         Patch by Joerg Sonnenberger.
47932
47933 2006-01-10  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/readutmp: Depend on module free.
47936         * modules/strtok_r: Depend on module restrict.
47937
47938 2006-01-10  Bruno Haible  <bruno@clisp.org>
47939
47940         * modules/gettext (configure.ac): Add an invocation of
47941         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
47942
47943 2006-01-10  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
47946         Reported by Werner Lemberg <wl@gnu.org>.
47947
47948 2006-01-10  Bruno Haible  <bruno@clisp.org>
47949
47950         * lib/localcharset.c: Update from GNU gettext.
47951
47952 2006-01-10  Bruno Haible  <bruno@clisp.org>
47953
47954         * lib/argp.h (__const): Remove macro. Use const instead.
47955         * lib/argp-fmtstream.h (__const): Likewise.
47956         * lib/glob_.h (__const): Remove macro.
47957         * lib/glob-libc.h: Use const instead of __const.
47958
47959 2006-01-10  Bruno Haible  <bruno@clisp.org>
47960
47961         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
47962         variable.
47963         Needed to avoid an automake error regarding the 'gettext' module.
47964
47965 2006-01-09  Simon Josefsson  <jas@extundo.com>
47966
47967         * modules/inet_ntop (Depends-on): Add restrict.
47968
47969 2006-01-09  Simon Josefsson  <jas@extundo.com>
47970
47971         * modules/gc-rijndael-tests (License): Put under LGPL.
47972
47973         * modules/gc-des-tests (License): Likewise.
47974
47975         * modules/gc-arcfour-tests (License): Likewise.
47976
47977         * modules/gc-arctwo-tests (License): Likewise.
47978
47979         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
47980
47981         * modules/gc-hmac-sha1-tests (Files): Likewise.
47982
47983         * modules/gc-hmac-md5-tests (License): Likewise.
47984
47985         * modules/gc-sha1-tests (License): Likewise.
47986
47987         * modules/gc-md5-tests (License): Likewise.
47988
47989         * modules/gc-md4-tests (License): Likewise.
47990
47991         * modules/gc-md2-tests (License): Likewise.
47992
47993         * modules/gc-tests (License): Likewise.
47994
47995         * modules/des-tests (License): Likewise.
47996
47997         * modules/md4-tests (License): Likewise.
47998
47999         * modules/md2-tests (License): Likewise.
48000
48001 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48002
48003         Sync from coreutils:
48004
48005         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48006         * modules/lib-ignore: New file.
48007         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48008         chdir-safer.m4, lchmod.m4.
48009         * modules/openat: Add mkdirat.c, openat-priv.h.
48010
48011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         Sync from coreutils.
48014         * m4/lib-ignore.m4: New file.
48015         * m4/lchmod.m4: New file.
48016
48017 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         Sync from coreutils.
48020         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48021         for write access: POSIX says that must fail.
48022         * lib/fts.c (diropen): Likewise.
48023         * lib/save-cwd.c (save_cwd): Likewise.
48024         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48025         well, for minor improvements on hosts that lack O_DIRECTORY.
48026         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48027         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48028         Fall back on chown if open failed with EACCES.
48029
48030         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48031         Report an error at compile-time if only a 1-second nominal clock
48032         resolution is found.
48033
48034         * lib/lchmod.h: New file.
48035         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48036         (make_dir_parents): Use lchown rather than chown, and
48037         lchmod rather than chmod.
48038
48039         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48040         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48041         "proc" reported by n0dalus.
48042
48043         * lib/mountlist.c: Include <limits.h>.
48044         (dev_from_mount_options)
48045         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48046         New function.  It no longer assumes "dev=" has the System V meaning
48047         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48048         (read_file_system_list)
48049         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48050         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48051         dev= in that case.
48052
48053         * lib/posixtm.h (PDS_PRE_2000): New macro.
48054         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48055         allow_century.  All usages changed.  Reject dates outside the range
48056         1969-1999 if PDS_PRE_2000 is used.
48057
48058 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48059
48060         Sync from coreutils.
48061         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48062         (Time of day items): Mention the possibility of leap seconds.
48063         Problem reported by Dr. David Alan Gilbert.
48064
48065 2006-01-09  Jim Meyering  <jim@meyering.net>
48066
48067         Sync from coreutils.
48068
48069         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48070
48071         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48072
48073         * lib/modechange.c (mode_compile): Reject an invalid mode string
48074         that starts with an octal digit.  From Andreas Gruenbacher.
48075
48076         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48077         and dup to open_safer and dup_safer, respectively.
48078         (openat_permissive): Fix typo in comment.
48079
48080         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48081         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48082         (_): Remove; no longer needed.
48083         (openat): Renamed from rpl_openat; no need for rpl_openat
48084         since openat.h renames openat for us.
48085         Replace most of the body with a call to openat_permissive,
48086         to avoid duplicate code.
48087         Port to (probably hypothetical) environments were mode_t is
48088         wider than int.
48089         (openat_permissive): Require mode arg, so that we can check
48090         types better.  Put it just after flags.  Change cwd failure
48091         indicator from pointer-to-bool to pointer-to-errno-value.
48092         All callers changed.
48093         Invoke openat_save_fail and/or openat_restore_fail if
48094         cwd_errno is null, so that openat can call us.
48095         (openat_permissive, fdopendir, fstatat, unlinkat):
48096         Simplify errno handling to avoid some duplicate code,
48097         as it's OK to set errno on success.
48098         * lib/openat.h: Revamp code so that function macros depend on
48099         __OPENAT_PREFIX only, not also on AT_FDCWD.
48100         (openat_ro): Remove.  Caller changed to use openat_permissive.
48101         (openat_permissive): Now a macro, if not a function.
48102         (openat_restore_fail, openat_save_fail): Now always functions,
48103         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48104
48105         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48106         and openat.c.
48107         * lib/mkdirat.c: Include openat-priv.h.
48108         Remove definitions of macros defined therein.
48109         * lib/openat.c: Likewise.
48110
48111         * lib/mkdirat.c (mkdirat): New file and function.
48112         * lib/openat.h (mkdirat): Declare.
48113
48114         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48115
48116         * lib/openat.h (openat_permissive): Declare.
48117         (openat_ro): Define.
48118
48119         * lib/openat.c (EXPECTED_ERRNO): New macro.
48120         (openat_permissive): New function -- used in remove.c rewrite.
48121         (all functions): Set errno just before returning, only if there
48122         was an actual failure.
48123         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48124
48125         Emulate openat-family functions using Linux's procfs, if possible.
48126         Idea and some code based on Ulrich Drepper's glibc changes.
48127
48128         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48129         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48130         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48131         before falling back on save_cwd and restore_cwd.
48132         (fdopendir, fstatat, unlinkat): Likewise.
48133
48134         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48135         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48136
48137         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48138         as second argument to va_arg.  Otherwise, some versions of gcc
48139         warn that `if this code is reached, the program will abort'.
48140
48141 2006-01-09  Jim Meyering  <jim@meyering.net>
48142
48143         Sync from coreutils.
48144         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48145         Require openat-priv.h.
48146
48147 2006-01-09  Bruno Haible  <bruno@clisp.org>
48148
48149         * modules/strnlen (Include): Use strnlen.h.
48150
48151 2006-01-09  Bruno Haible  <bruno@clisp.org>
48152
48153         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48154
48155 2006-01-09  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/sysexit_.h (EX_OK): New macro.
48158         Suggested by Martin Lambers <marlam@marlam.de>.
48159
48160 2006-01-09  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48163         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48164
48165 2006-01-09  Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48168         numbers.
48169
48170 2006-01-09  Bruno Haible  <bruno@clisp.org>
48171
48172         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48173         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48174         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48175         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48176
48177 2006-01-09  Bruno Haible  <bruno@clisp.org>
48178
48179         * build-aux/javacomp.sh.in: New file, moved from lib/.
48180         * modules/javacomp-script (Files): Update.
48181         (configure.ac): Add AC_CONFIG_FILES invocation.
48182         (EXTRA_DIST): Remove variable.
48183
48184         * build-aux/javaexec.sh.in: New file, moved from lib/.
48185         * modules/javaexec (Files): Update.
48186         (configure.ac): Add AC_CONFIG_FILES invocation.
48187         (EXTRA_DIST): Remove javaexec.sh.in.
48188
48189         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48190         * modules/csharpcomp-script (Files): Update.
48191         (configure.ac): Add AC_CONFIG_FILES invocation.
48192         (EXTRA_DIST): Remove variable.
48193
48194         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48195         * modules/csharpexec (Files): Update.
48196         (configure.ac): Add AC_CONFIG_FILES invocation.
48197         (EXTRA_DIST): Remove csharpexec.sh.in.
48198
48199 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48200
48201         Sync from coreutils.
48202
48203         Add POSIX ACL support
48204         * lib/acl.h (copy_acl, set_acl): Add declarations.
48205         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48206         systems other than Linux.
48207         (chmod_or_fchmod): New function: use fchmod when possible,
48208         and chmod otherwise.
48209         (file_has_acl): Add a POSIX ACL implementation, with a
48210         Linux-specific subcase.
48211         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48212         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48213         acls are unsupported.
48214         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48215         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48216         are unsupported.
48217
48218 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48219
48220         Sync from coreutils.
48221         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48222
48223 2006-01-07  Bruno Haible  <bruno@clisp.org>
48224
48225         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48226         gl_EARLY.
48227
48228 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48229
48230         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48231         Problem reported for Mingw by Mark Junker.
48232
48233 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48234
48235         * README: Gnulib normally doesn't generate a tarball.
48236
48237 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48238
48239         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48240         long int, not int, for nanosecond counts, so that people who are
48241         used to POSIX struct timespec won't be surprised.  Reported by Jim
48242         Meyering.
48243
48244 2005-12-28  Bruno Haible  <bruno@clisp.org>
48245
48246         * build-aux/config.rpath: Update from GNU gettext.
48247
48248 2005-12-16  Jim Meyering  <jim@meyering.net>
48249
48250         * modules/fprintftime: New module.
48251         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48252
48253 2005-12-16  Jim Meyering  <jim@meyering.net>
48254
48255         * m4/fprintftime.m4: New file.
48256
48257 2005-12-16  Jim Meyering  <jim@meyering.net>
48258
48259         * lib/fprintftime.c, lib/fprintftime.h: New files.
48260
48261 2005-12-15  Simon Josefsson  <jas@extundo.com>
48262
48263         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48264         new m4/socklen.m4.
48265
48266 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48267
48268         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48269         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48270
48271 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48272
48273         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48274         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48275         struct uparams is valid. Fall back to the default values if it is
48276         not.
48277
48278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48279
48280         * modules/argp (Files): Add argp-pin.c
48281         (Depends-on): dirname
48282         (lib_SOURCES): Add argp-pin.c
48283
48284 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48285
48286         * m4/argp.m4:  Check if program_invocation_name and
48287         program_invocation_short_name are declared and define appropriate
48288         macros if they are not.
48289
48290 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48291
48292         * lib/argp-help.c (__argp_base_name): New function
48293         (__argp_short_program_name): Rewrite using __argp_base_name
48294         * lib/argp-namefrob.h: Define program_invocation_name and
48295         program_invocation_short_name if requested
48296         (__argp_base_name): Add prototype
48297         * lib/argp-parse.c (argp_def): Use gettext wrappers
48298         (argp_default_parser): Use __argp_base_name
48299         * lib/argp-pin.c: New file. Defines program_invocation_name and
48300         program_invocation_short_name on systems that lack them.
48301
48302 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48303
48304         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48305         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48306         porting problem reported by Georg Schwarz in
48307         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48308
48309 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48312         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48313         porting problem reported by Georg Schwarz in
48314         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48315
48316 2005-12-05  Bruno Haible  <bruno@clisp.org>
48317
48318         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48319         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48320         Reported by Mark Junker <mjscod@gmx.de>.
48321
48322 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48325         Use implementation from Albert Chin, with some
48326         comments/corrections by Stepan Kasal and myself.
48327
48328 2005-12-02  Bruno Haible  <bruno@clisp.org>
48329
48330         * gnulib-tool (func_import): Accept GPLed build tool modules when
48331         --lgpl is given.
48332         * modules/csharpcomp-script: New file.
48333         * modules/csharpcomp: Depend on it.
48334         * modules/javacomp-script: New file.
48335         * modules/javacomp: Depend on it.
48336         Suggested by Simon Josefsson.
48337
48338 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48339
48340         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48341         statement, to work around an HP-UX 10.20 compiler bug reported by
48342         Peter O'Gorman.
48343
48344 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48345
48346         * modules/savedir (Depends-on): Add openat.
48347
48348 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48349
48350         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48351         (uintmax_t) [defined uintmax_t]: Do not declare.
48352         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48353         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48354         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48355         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48356         sake of portability to weird hosts that C allows (though we don't
48357         know of any practical examples).
48358
48359         * lib/savedir.h (fdsavedir): New decl.
48360         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48361         contains most of the former guts of savedir.
48362         (savedir): Use savedirstream.
48363         Include "openat.h".
48364
48365 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48366
48367         * modules/obstack (Files): Add m4/ulonglong.m4.
48368         Problem reported by Davide Angelocola.
48369
48370 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48371
48372         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48373         coreutils no longer futzes with rounding modes.
48374
48375 2005-11-14  Jim Meyering  <jim@meyering.net>
48376
48377         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48378         replacement of mkstemp.
48379
48380 2005-11-10  Simon Josefsson  <jas@extundo.com>
48381
48382         * lib/readline.c: Remove EOL.
48383
48384 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * modules/gethrxtime (Depends-on): Add gettime.
48387
48388 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48389
48390         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48391         or gettimeofday; no longer needed.
48392
48393 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48396         time business.
48397         (gethrxtime) [! (HAVE_NANOUPTIME
48398         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48399         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48400         our own approximation.
48401
48402 2005-11-08  Eric Blake  <ebb9@byu.net>
48403
48404         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48405
48406 2005-11-08  Eric Blake  <ebb9@byu.net>
48407
48408         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48409
48410 2005-11-04  Bruno Haible  <bruno@clisp.org>
48411
48412         * gnulib-tool: Implement --update mode.
48413
48414 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48415
48416         Fix porting problem reported by Theodoros V. Kalamatianos.
48417         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48418         Don't assume that futimes failing means we must fail.
48419
48420 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48421
48422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48423         variables to suggest the intended function of the PATH_MAX check.
48424
48425 2005-10-30  Kean Johnston  <jkj@sco.com>
48426
48427         Trivial changes to support SCO systems.
48428         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48429         as PATH_MAX.
48430         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48431         where __ptr is null when no I/O is pending.
48432
48433 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48436         leave errno alone.  Problem reported by Dmitry V. Levin.
48437
48438 2005-10-28  Simon Josefsson  <jas@extundo.com>
48439
48440         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48441         Test more.
48442
48443         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48444
48445         * modules/md2, modules/md2-tests: New files.
48446
48447 2005-10-28  Simon Josefsson  <jas@extundo.com>
48448
48449         * m4/inet_ntop.m4: More tests.
48450
48451         * m4/gc-md2.m4, md2.m4: New file.
48452
48453 2005-10-28  Simon Josefsson  <jas@extundo.com>
48454
48455         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48456         "restrict" keywords, as per POSIX.  Protect the function
48457         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48458         Don't use K&R prototypes.  Check the sprintf return values.
48459         Re-define EAFNOSUPPORT if not present.  Indent.
48460
48461         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48462         suggested by Bruno Haible <bruno@clisp.org>.
48463
48464         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48465
48466         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48467
48468         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48469         libgcrypt).
48470
48471         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48472
48473         * lib/md2.h, lib/md2.c: New files.
48474
48475 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48476
48477         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48478         errno alone.  Problem reported by Frederic Jolliton.
48479
48480 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48481
48482         * modules/verify (License): Change from GPL to LGPL.  This is a
48483         tiny module and there are apparently near-equivalents that are
48484         under the BSD license.
48485
48486 2005-10-24  Simon Josefsson  <jas@extundo.com>
48487
48488         * modules/sha1: Relicense to LGPL.
48489
48490 2005-10-24  Simon Josefsson  <jas@extundo.com>
48491
48492         * lib/md4.h: Shrink buffer size, now that we changed the type.
48493
48494 2005-10-23  Simon Josefsson  <jas@extundo.com>
48495
48496         * gnulib-tool (func_import): Fix --tests-base.
48497
48498 2005-10-22  Simon Josefsson  <jas@extundo.com>
48499
48500         * modules/arcfour (Depends-on): Need stdint.
48501
48502 2005-10-22  Simon Josefsson  <jas@extundo.com>
48503
48504         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48505         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48506
48507 2005-10-22  Simon Josefsson  <jas@extundo.com>
48508
48509         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48510         suggested by Bruno Haible <bruno@clisp.org>.
48511
48512 2005-10-22  Simon Josefsson  <jas@extundo.com>
48513
48514         * lib/crc.h: Include stddef.h, for size_t.
48515
48516 2005-10-22  Simon Josefsson  <jas@extundo.com>
48517
48518         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48519         arcfour_context struct (simplify test vector testing in GNU
48520         Shishi).
48521
48522 2005-10-21  Simon Josefsson  <jas@extundo.com>
48523
48524         * modules/des, modules/des-tests: New files.
48525
48526         * modules/gc-des, modules/gc-des-tests: New files.
48527
48528         * tests/test-des.c, tests/test-gc-des.c: New file.
48529
48530 2005-10-21  Simon Josefsson  <jas@extundo.com>
48531
48532         * modules/arctwo, modules/arctwo-tests: New files.
48533
48534         * tests/test-arctwo.c: New file.
48535
48536         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48537
48538         * tests/test-gc-arctwo.c: New file.
48539
48540 2005-10-21  Simon Josefsson  <jas@extundo.com>
48541
48542         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48543         Bruno Haible <bruno@clisp.org>.
48544
48545         * m4/gc-des.m4: New file.
48546
48547 2005-10-21  Simon Josefsson  <jas@extundo.com>
48548
48549         * m4/arctwo.m4: New file.
48550
48551         * m4/gc-arctwo.m4: New file.
48552
48553 2005-10-21  Simon Josefsson  <jas@extundo.com>
48554
48555         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48556         block.
48557
48558 2005-10-21  Simon Josefsson  <jas@extundo.com>
48559
48560         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48561         <bruno@clisp.org>.
48562
48563         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48564
48565         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48566         Bruno Haible <bruno@clisp.org>.
48567
48568         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48569         <bruno@clisp.org>.
48570
48571 2005-10-21  Simon Josefsson  <jas@extundo.com>
48572
48573         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48574
48575 2005-10-21  Simon Josefsson  <jas@extundo.com>
48576
48577         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48578
48579 2005-10-21  Simon Josefsson  <jas@extundo.com>
48580
48581         * lib/des.h, lib/des.c: New files.
48582
48583         * lib/gc-gnulib.c: Support DES.c
48584
48585 2005-10-21  Simon Josefsson  <jas@extundo.com>
48586
48587         * lib/arctwo.h, lib/arctwo.c: New files.
48588
48589         * lib/gc-gnulib.c: Support ARCTWO.
48590
48591 2005-10-21  Simon Josefsson  <jas@extundo.com>
48592
48593         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48594         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48595
48596 2005-10-21  Simon Josefsson  <jas@extundo.com>
48597
48598         * gnulib-tool (func_import, func_create_testdir): Define automake
48599         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48600         Makefile.am snippet),
48601         suggested by Bruno Haible <bruno@clisp.org>.
48602
48603         * modules/gc (Makefile.am): Use it.
48604
48605 2005-10-21  Bruno Haible  <bruno@clisp.org>
48606
48607         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48608         patch.
48609
48610 2005-10-19  Simon Josefsson  <jas@extundo.com>
48611
48612         * tests/test-gc-rijndael.c: New file.
48613
48614         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48615
48616 2005-10-19  Simon Josefsson  <jas@extundo.com>
48617
48618         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48619         interface too.
48620
48621 2005-10-19  Simon Josefsson  <jas@extundo.com>
48622
48623         * tests/test-gc-arcfour.c: New file.
48624
48625         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48626
48627 2005-10-19  Simon Josefsson  <jas@extundo.com>
48628
48629         * modules/gc-md4, modules/gc-md4-tests: New file.
48630
48631         * tests/test-gc-md4.c: New file.
48632
48633 2005-10-19  Simon Josefsson  <jas@extundo.com>
48634
48635         * m4/gc-md4.m4: New file.
48636
48637 2005-10-19  Simon Josefsson  <jas@extundo.com>
48638
48639         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48640         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48641         <kasal@ucw.cz>.
48642
48643 2005-10-19  Simon Josefsson  <jas@extundo.com>
48644
48645         * m4/gc-arcfour.m4: New file.
48646
48647         * m4/gc-rijndael.m4: New file.
48648
48649 2005-10-19  Simon Josefsson  <jas@extundo.com>
48650
48651         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48652
48653 2005-10-19  Simon Josefsson  <jas@extundo.com>
48654
48655         * lib/gc-gnulib.c: Support ARCFOUR.
48656
48657 2005-10-19  Simon Josefsson  <jas@extundo.com>
48658
48659         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48660         support.
48661
48662         * lib/gc.h: Add ECB enum type.
48663
48664         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48665
48666 2005-10-18  Simon Josefsson  <jas@extundo.com>
48667
48668         * tests/test-md5.c: New file.
48669
48670         * modules/md5-tests: New file.
48671
48672 2005-10-18  Simon Josefsson  <jas@extundo.com>
48673
48674         * tests/test-md4.c: New file.
48675
48676         * modules/md4, modules/md4-tests: New files.
48677
48678 2005-10-18  Simon Josefsson  <jas@extundo.com>
48679
48680         * m4/md4.m4: New file.
48681
48682 2005-10-18  Simon Josefsson  <jas@extundo.com>
48683
48684         * lib/md4.h, lib/md4.c: New files, based on md5.?.
48685
48686 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
48687
48688         * gnulib-tool (func_create_testdir): Omit the second check whether
48689         BUILT_SOURCES in nonempty.
48690
48691 2005-10-17  Simon Josefsson  <jas@extundo.com>
48692
48693         * tests/test-rijndael.c: New file.
48694
48695 2005-10-17  Simon Josefsson  <jas@extundo.com>
48696
48697         * modules/sha1: Depend on stdint instead of md5.
48698
48699         * modules/md5: Depend on stdint, remove uint32_t.
48700
48701 2005-10-17  Simon Josefsson  <jas@extundo.com>
48702
48703         * modules/gc-sha1-tests: New file.
48704
48705         * tests/test-gc-sha1.c: New file.
48706
48707 2005-10-17  Simon Josefsson  <jas@extundo.com>
48708
48709         * m4/md5.m4: Remove call to uint32_t.m4.
48710
48711 2005-10-17  Simon Josefsson  <jas@extundo.com>
48712
48713         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
48714
48715         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
48716         md5.h.
48717
48718         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
48719
48720         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
48721
48722 2005-10-17  Simon Josefsson  <jas@extundo.com>
48723
48724         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
48725
48726 2005-10-17  Simon Josefsson  <jas@extundo.com>
48727
48728         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
48729
48730 2005-10-17  Simon Josefsson  <jas@extundo.com>
48731
48732         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
48733
48734         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
48735
48736 2005-10-17  Bruno Haible  <bruno@clisp.org>
48737
48738         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
48739         that it can also be used in a test.
48740
48741 2005-10-16  Bruno Haible  <bruno@clisp.org>
48742
48743         * gnulib-tool (func_emit_tests_Makefile_am): Also define
48744         TESTS_ENVIRONMENT, so that individual tests can augment it.
48745
48746         * gnulib-tool (func_create_testdir): Use an intermediate target for
48747         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
48748         macros, like $(ALLOCA_H), which cannot be passed through the command
48749         line.
48750
48751 2005-10-15  Simon Josefsson  <jas@extundo.com>
48752
48753         * modules/rijndael-tests: New file.
48754
48755         * modules/rijndael: New file.
48756
48757 2005-10-15  Simon Josefsson  <jas@extundo.com>
48758
48759         * m4/rijndael.m4: New file.
48760
48761 2005-10-15  Simon Josefsson  <jas@extundo.com>
48762
48763         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
48764
48765         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
48766
48767 2005-10-14  Simon Josefsson  <jas@extundo.com>
48768
48769         * tests/test-arcfour.c: New file.
48770
48771         * modules/arcfour, modules/arcfour-tests: New files.
48772
48773 2005-10-14  Simon Josefsson  <jas@extundo.com>
48774
48775         * m4/arcfour.m4: New file.
48776
48777 2005-10-14  Simon Josefsson  <jas@extundo.com>
48778
48779         * lib/arcfour.h, lib/arcfour.c: New files.
48780
48781 2005-10-14  Roland McGrath  <roland@redhat.com>
48782
48783         Import from libc.  [BZ #1331]
48784         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
48785         macro argument.
48786         Reported by Matej Vela <vela@debian.org>.
48787
48788 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
48791         include <wchar.h>; no longer needed.
48792
48793 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
48796
48797 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
48798         and  Ulrich Drepper  <drepper@redhat.com>
48799
48800         Import from libc.
48801         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
48802         instead of inline stream orientation test and two separate
48803         function calls.  Pay no attention to USE_IN_LIBIO.
48804
48805 2005-10-13  Simon Josefsson  <jas@extundo.com>
48806
48807         * modules/gc-hmac-md5-tests: New file.
48808
48809         * tests/test-gc-hmac-sha1.c: New file.
48810
48811         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
48812
48813         * modules/gc-hmac-md5-tests: New file.
48814
48815         * tests/test-gc-md5.c: New file.
48816
48817         * modules/gc-md5-tests: New file.
48818
48819 2005-10-13  Simon Josefsson  <jas@extundo.com>
48820
48821         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
48822         Move memory allocation outside of loop.
48823
48824 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48825
48826         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
48827         intermediate directory is in a read-only file system.  Problem
48828         reported by Eric Blake.
48829
48830 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
48831
48832         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
48833
48834 2005-10-12  Simon Josefsson  <jas@extundo.com>
48835
48836         * tests/test-hmac-sha1.c: New file.
48837
48838         * modules/hmac-sha1-tests: New file.
48839
48840         * modules/hmac-sha1: New file.
48841
48842 2005-10-12  Simon Josefsson  <jas@extundo.com>
48843
48844         * modules/gc-sha1: New file.
48845
48846 2005-10-12  Simon Josefsson  <jas@extundo.com>
48847
48848         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
48849
48850         * tests/test-gc-pbkdf2-sha1.c: New file.
48851
48852 2005-10-12  Simon Josefsson  <jas@extundo.com>
48853
48854         * modules/gc-md5, modules/gc-hmac-md5: New files.
48855
48856         * modules/gc (Files): Remove md5, memxor and hmac files.
48857
48858 2005-10-12  Simon Josefsson  <jas@extundo.com>
48859
48860         * m4/gc-pbkdf2-sha1.m4: New file.
48861
48862         * m4/gc-hmac-sha1.m4: New file.
48863
48864         * m4/gc-sha1: New file.
48865
48866         * m4/hmac-sha1.m4: New file.
48867
48868 2005-10-12  Simon Josefsson  <jas@extundo.com>
48869
48870         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
48871
48872         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
48873
48874 2005-10-12  Simon Josefsson  <jas@extundo.com>
48875
48876         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
48877         suggested by Bruno Haible <bruno@clisp.org>.
48878
48879 2005-10-12  Simon Josefsson  <jas@extundo.com>
48880
48881         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
48882
48883 2005-10-12  Simon Josefsson  <jas@extundo.com>
48884
48885         * lib/gc-pbkdf2-sha1.c: New file.
48886
48887         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
48888
48889 2005-10-12  Simon Josefsson  <jas@extundo.com>
48890
48891         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
48892
48893         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
48894
48895 2005-10-12  Simon Josefsson  <jas@extundo.com>
48896
48897         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
48898         GC_USE_HMAC_MD5, respectively.
48899
48900         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
48901         (gc_md5): Fix typo.
48902
48903         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
48904
48905         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
48906
48907         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
48908
48909 2005-10-12  Bruno Haible  <bruno@clisp.org>
48910
48911         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
48912         Reported by Stepan Kasal <kasal@ucw.cz>.
48913
48914 2005-10-11  Simon Josefsson  <jas@extundo.com>
48915
48916         * tests/test-crc.c: New file.
48917
48918         * modules/crc, modules/crc-tests: New files.
48919
48920 2005-10-11  Simon Josefsson  <jas@extundo.com>
48921
48922         * m4/crc.m4: New file.
48923
48924 2005-10-11  Simon Josefsson  <jas@extundo.com>
48925
48926         * lib/gc.h: Add gc_hash and gc_hash_buffer.
48927
48928         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
48929
48930         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
48931
48932 2005-10-11  Simon Josefsson  <jas@extundo.com>
48933
48934         * lib/crc.h, lib/crc.c: New files.
48935
48936         * lib/gc.h (gc_hash_buffer): Add doc.
48937
48938 2005-10-11  Bruno Haible  <bruno@clisp.org>
48939
48940         * modules/c-strcasestr: New file.
48941         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
48942
48943 2005-10-11  Bruno Haible  <bruno@clisp.org>
48944
48945         * modules/c-strcase: New file.
48946         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
48947
48948 2005-10-11  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/strcasecmp.c: Include limits.h.
48951         (strcasecmp): Avoid integer overflow on exotic platforms.
48952         * lib/strncasecmp.c: Include limits.h.
48953         (strncasecmp): Avoid integer overflow on exotic platforms.
48954         Reported by Paul Eggert.
48955
48956 2005-10-11  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/c-strcasestr.h: New file, from GNU gettext.
48959         * lib/c-strcasestr.c: New file, from GNU gettext.
48960
48961 2005-10-11  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/c-strcase.h: New file, from GNU gettext.
48964         * lib/c-strcasecmp.c: New file, from GNU gettext.
48965         * lib/c-strncasecmp.c: New file, from GNU gettext.
48966
48967 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * modules/mempcpy (License): GPL -> LGPL.
48970         * modules/strchrnul (License): Likewise.
48971         * modules/sysexits (License): Likewise.
48972
48973 2005-10-08  Simon Josefsson  <jas@extundo.com>
48974
48975         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
48976
48977 2005-10-07  Simon Josefsson  <jas@extundo.com>
48978
48979         * m4/memxor.m4: Remove gl_C_RESTRICT call.
48980
48981 2005-10-06  Simon Josefsson  <jas@extundo.com>
48982
48983         * tests/test-hmac-md5.c: New file.
48984
48985         * modules/hmac-md5-tests: New file.
48986
48987         * modules/hmac-md5: New file.
48988
48989 2005-10-06  Simon Josefsson  <jas@extundo.com>
48990
48991         * m4/hmac-md5.m4: New file.
48992
48993         * m4/memxor.m4: Require gl_C_RESTRICT.
48994
48995 2005-10-06  Simon Josefsson  <jas@extundo.com>
48996
48997         * lib/memxor.c (memxor): Avoid casts and warnings.
48998
48999 2005-10-06  Simon Josefsson  <jas@extundo.com>
49000
49001         * lib/hmac-md5.c: New file.
49002
49003         * lib/hmac.h: New file.
49004
49005 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49006
49007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49008         promotes to int, not unsigned int, to catch the AIX 5.3
49009         compiler bug.
49010
49011 2005-10-05  Simon Josefsson  <jas@extundo.com>
49012
49013         * modules/memxor: New file.
49014
49015         * modules/iconv (Files): Move config.rpath to havelib, it is used
49016         there.
49017
49018         * modules/havelib (Files): Add config.rpath.
49019
49020 2005-10-05  Simon Josefsson  <jas@extundo.com>
49021
49022         * m4/memxor.m4: New file.
49023
49024 2005-10-05  Simon Josefsson  <jas@extundo.com>
49025
49026         * lib/memxor.c (memxor): Fix compiler error.
49027
49028         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49029         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49030
49031         * lib/memxor.h, lib/memxor.c: New files.
49032
49033         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49034         we assume all systems have it, suggested by Jim Meyering
49035         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49036         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49037         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49038         same reasons.
49039
49040 2005-10-05  Simon Josefsson  <jas@extundo.com>
49041
49042         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49043
49044 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49045
49046         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49047         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49048         needed, since the source code now assumes these .h files.
49049
49050 2005-10-05  Derek Price  <derek@ximbiot.com>
49051
49052         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49053
49054 2005-10-05  Bruno Haible  <bruno@clisp.org>
49055
49056         * modules/stdint (License): Change to LGPL.
49057
49058 2005-10-04  Simon Josefsson  <jas@extundo.com>
49059
49060         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49061         D. Baushke" <mdb@gnu.org>.
49062
49063 2005-10-04  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/verify.h (verify_true): Provide alternative definition for C++.
49066
49067 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49068
49069         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49070         (SSIZE_MAX): New macro, if not already defined.
49071         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49072         than 2 GiB.
49073
49074 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49075
49076         Sync from coreutils.
49077         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49078         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49079         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49080         ULLONG_MAX doesn't work with 2.7.2.1.
49081
49082 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49083
49084         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49085         From Ben Pfaff.
49086
49087         * modules/exclude (Depends-on): Depend on verify.
49088         * modules/strtoimax (Depends-on): Likewise.
49089         * modules/utimecmp (Depends-on): Likewise.
49090
49091 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49092
49093         * lib/exclude.c: Include verify.h.
49094         (verify): Remove.  All callers changed to use verify.h's version.
49095         * lib/strtoimax.c: Likewise.
49096         * lib/utimecmp.c: Likewis.e
49097
49098         Sync from coreutils.
49099         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49100         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49101         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49102         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49103         bother returning ENOSYS if settimeofday or stime fails; just let
49104         them return whatever errno they want to return.
49105         * lib/utimens.c: Include unistd.h, for dup2.
49106         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49107         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49108
49109 2005-10-02  Jim Meyering  <jim@meyering.net>
49110
49111         Sync from coreutils.
49112         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49113         from glibc-2.2.5 that fails for read-only files.
49114
49115 2005-10-02  Jim Meyering  <jim@meyering.net>
49116
49117         Sync from coreutils.
49118         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49119         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49120         `#if HAVE_CONFIG_H'.
49121         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49122         Remove AT_FDCWD test.
49123         Do not consume the fd unless successful.
49124         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49125         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49126         block, so that we don't even try to compile it if settimeofday is
49127         available.  This works around a compilation failure on OSF1 V5.1,
49128         due to stime requiring a `long int*' while tv_sec is `int'.
49129
49130 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49131
49132         Sync from coreutils.
49133         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49134         against `yes', rather than just testing for nonempty.
49135
49136 2005-10-01  Simon Josefsson  <jas@extundo.com>
49137
49138         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49139         and Darwin.
49140
49141         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49142         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49143         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49144         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49145         Check if struct addrinfo is declared.
49146
49147 2005-10-01  Simon Josefsson  <jas@extundo.com>
49148
49149         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49150         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49151         AI_* and EAI_* definitions.  Protect function declarations.
49152
49153 2005-10-01  Jim Meyering  <jim@meyering.net>
49154
49155         Sync from coreutils.
49156
49157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49158         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49159         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49161         in the inet and nsl libraries.  Required on Solaris 5.7.
49162
49163 2005-10-01  Jim Meyering  <jim@meyering.net>
49164
49165         Sync from coreutils.
49166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49167         in the inet and nsl libraries.  Required on Solaris 5.7.
49168
49169 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49170
49171         * lib/getdelim.c (getdelim): Remove unused variables.
49172
49173 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49176         so that the code works even with ancient cpp.  Portability problem
49177         with GCC 2.7.2.1 reported by Thomas M.Ott.
49178
49179 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49180
49181         * modules/regex (Depends-on): Add strcase.
49182
49183         * modules/gethostname (Licence): Change from GPL to LGPL, since
49184         gethostname.c is a trivial implementation of a standard library
49185         function.
49186         * modules/poll (License): Change from GPL to LGPL, since it's
49187         derived from LGPL code.
49188
49189 2005-09-27  Jim Meyering  <jim@meyering.net>
49190
49191         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49192         HAVE_CONFIG_H.
49193
49194         * lib/intprops.h (signed_type_or_expr__): Define.
49195         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49196         for unsigned types.
49197
49198 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49199
49200         * lib/verify.h (verify_expr): Remove, replacing with:
49201         (verify_true): New macro that returns true instead of void.
49202         (verify_type__): Remove.
49203         (verify): Use verify_true rather than verify_type__.
49204
49205 2005-09-26  Bruno Haible  <bruno@clisp.org>
49206
49207         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49208         is necessary.
49209         (lib_SOURCES): Remove mbchar.c.
49210         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49211         (Files): Add m4/mbrtowc.m4.
49212         * modules/mbiter: Likewise.
49213         * modules/mbuiter: Likewise.
49214
49215 2005-09-26  Bruno Haible  <bruno@clisp.org>
49216
49217         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49218         compile mbchar.c if they are not both present.
49219         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49220         * m4/mbiter.m4 (gl_MBITER): Likewise.
49221         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49222         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49223         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49224
49225 2005-09-25  Jim Meyering  <jim@meyering.net>
49226
49227         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49228         also uses socklen_t.
49229
49230 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * lib/utimens.c (ENOSYS): Define if not already defined.
49233         (futimens): Support having a null PATH if the file descriptor
49234         is nonnegative.
49235
49236         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49237         Remove.
49238         (__attribute): Define to empty unless GCC 3.1 or later.
49239         This works around a core dump on OpenBSD 3.4, which has GCC
49240         2.95.3, which dumps core when given __attribute__(()).  It also
49241         simplifies other tests, since we really don't want to bother with
49242         worrying about which ancient version of GCC supported what.
49243         Original problem reported by Yoann Vandoorselaere, with part of
49244         the fix suggested by Derek Price.
49245
49246 2005-09-24  Jim Meyering  <jim@meyering.net>
49247
49248         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49249         so we can once again use a positive bitfield width of 1 -- now we
49250         don't have to explain why we were using a bitfield width of 2.
49251
49252 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49253
49254         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49255         and similarly for the other external symbols.  Problem reported
49256         by James Gallager.
49257
49258         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49259         bug reported by Jim Meyering.
49260
49261         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49263         not needed, since socklen is a prerequisite module.
49264
49265 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49266
49267         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49268         Problem reported by Eric Blake.
49269         (getaddrinfo): Initialize se so that it's not garbage.
49270         Redo internal storage allocation so that it doesn't make unportable
49271         assumptions about alignment.
49272         Fix a memory leak.
49273
49274         * lib/utimens.c (futimens): Use futimesat if available.
49275         Prefer it to futimes since it doesn't have the futimes bug.
49276
49277         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49278         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49279         Instead, declare a function that returns a pointer to an array,
49280         and use verify_type__ to declare the size of the array.
49281         Problem and germ of a solution reported by Bruno Haible.
49282         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49283         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49284
49285 2005-09-23  Jim Meyering  <jim@meyering.net>
49286
49287         Sync from coreutils.
49288         Correct build failure (socklen_t not defined) on at least
49289         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49290         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49291
49292 2005-09-23  Jim Meyering  <jim@meyering.net>
49293
49294         * modules/getaddrinfo (Depends-on): Add socklen.
49295
49296 2005-09-23  Bruno Haible  <bruno@clisp.org>
49297
49298         * tests/test-verify.c: New file.
49299
49300 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         Sync from coreutils.
49303
49304         * modules/argmatch (Depends-on): Add verify.
49305         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49306         unistd-safer.
49307         * modules/save-cwd (Depends-on): Likewise.
49308
49309         * modules/openat (Files): Add lib/openat-die.c.
49310         (Depends-on): Remove error, exitfail.
49311         Add dirname.
49312
49313         * modules/verify: New file.
49314         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49315         with "verify" module.
49316
49317 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49318
49319         Sync from coreutils.
49320
49321         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49322         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49323         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49324         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49325         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49326         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49327         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49328         Don't bother checking for string.h, stdlib.h, unistd.h.
49329         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49330         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49331         module's job.
49332         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49333         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49334
49335         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49336         (gl_GETDATE): Use it.
49337
49338         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49339
49340 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49341
49342         Sync from coreutils.
49343
49344         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49345         stat-time.h.
49346         * lib/argmatch.h: Include verify.h
49347         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49348         (ARGMATCH_ASSERT): Remove; unused.
49349         * lib/canonicalize.c: Assume STDC_HEADERS.
49350         * lib/exclude.c: Include "strcase.h".
49351         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49352         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49353         and stdio-safer.h.
49354         (getusershell): Call fopen, not fopen_safer.
49355         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49356         Do not include unistd-safer.h.
49357         (save_cwd): Don't call fd_safer; no longer needed
49358         now that we include fcntl--.h.
49359
49360         * lib/getdate.y (relative_time): New type.
49361         (RELATIVE_TIME_0): New constant.
49362         (parser_control): Use relative_time instead of doing it ourselves.
49363         (%union): Add new relative_time rel member.
49364         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49365         Now typeless.
49366         (relunit, relunit_snumber): Now of type rel.
49367         (zone, rel, relunit, get_date): Adjust to above changes.
49368
49369         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49370         Do not include unistd-safer.h.
49371         (getloadavg): Don't call fd_safer; no longer needed
49372         now that we include fcntl--.h.
49373
49374         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49375         (make_dir_parents): Treat ENOSYS like EEXIST.
49376
49377         Improve quality of diagnostics on restore_cwd failure.
49378         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49379         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49380         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49381         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49382         each time through the loop.  Do not diagnose restore_cwd failure;
49383         that is the caller's job (and perhaps the caller does not care).
49384
49385         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49386         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49387         If the file already exists but is not a directory, don't bother
49388         to try to make its parents.
49389         Close potential file descriptor leak if we can't chdir("/") (!).
49390         Don't always return true if chdir($PWD) fails; return true only
49391         if the requested action was done successfully (except for the
49392         chdir($PWD)).
49393         Don't log final directory unless we actually made it.
49394         Refactor to avoid duplicate code to fix up permissions.
49395         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49396
49397         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49398         to make it a bit faster and (I hope) clearer.
49399         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49400         Fix bug in formats like %2N.
49401
49402         * lib/verify.h: New file.
49403
49404 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49405
49406         Sync from coreutils.
49407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49408
49409 2005-09-22  Jim Meyering  <jim@meyering.net>
49410
49411         Sync from coreutils.
49412
49413         * m4/lstat.m4 (gl_FUNC_LSTAT):
49414         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49415         Remove obsolete comment.
49416         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49417         * m4/xstrtod.m4: Likewise.
49418
49419         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49420
49421 2005-09-22  Jim Meyering  <jim@meyering.net>
49422
49423         Sync from coreutils.
49424
49425         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49426
49427         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49428         the .tm_year member, since otherwise gcc-4.0 would now warn about
49429         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49430
49431         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49432         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49433
49434         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49435         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49436         when run in a time zone for which daylight savings time is in effect
49437         for the starting date.
49438
49439         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49440         stop us from restricting permissions of just-created absolute-named
49441         directories.
49442         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49443         to restore initial working directory.
49444         * lib/mkdir-p.c (make_dir_parents): New parameter:
49445         different_working_dir, to tell caller if/when we change the working
49446         directory and are unable to return to the initial one.
49447         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49448         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49449         `return false'.  This fixes a bug introduced on 2004-07-30.
49450
49451         * lib/openat.c (fdopendir): Be sure to close the supplied
49452         file descriptor before returning.  This makes our replacement
49453         implementation a little closer to Solaris's, where fdopendir
49454         ties the file descriptor to the returned DIR* pointer.
49455         * lib/openat.c (unlinkat): New function.
49456         * lib/openat.h (unlinkat): Add prototype.
49457         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49458         (openat_restore_fail): Rename from openat_restore_die.
49459         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49460
49461         Provide an alternative to exiting immediately upon save_cwd or
49462         restore_cwd failure.  Now, an application can arrange e.g.,
49463         to perform a longjump in that case.
49464         * lib/openat.c: Include dirname.h.
49465         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49466         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49467         and openat_restore_die rather than calling error directly.
49468         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49469
49470         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49471         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49472         define.
49473
49474         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49475         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49476                             int utc, int nanoseconds);
49477         Background:
49478         date should not have to allocate a megabyte of virtual memory to
49479         handle a format argument like +%1048575T.  When implemented with
49480         strftime, it must allocate such a buffer, use strftime to fill it
49481         in, print it, then free it.
49482         With fprintftime, it simply prints everything and exits.
49483         With no need for memory allocation, that's one fewer way to fail.
49484         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49485         optional field width, not before, so we accept %9:z, not %:9z.
49486         (my_strftime): Be sure to use L_('x') for literals.
49487
49488         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49489         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49490         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49491         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49492         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49493         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49494         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49495         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49496         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49497         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49498         * lib/xgethostname.c, lib/xreadlink.c:
49499         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49500
49501         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49502         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49503         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49504         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49505         and don't include <sys/file.h>).
49506
49507 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49508
49509         Sync from coreutils.
49510
49511         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49512         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49513         [!LDAV_DONE]: Avoid unused variable warning.
49514
49515 2005-09-21  Bruno Haible  <bruno@clisp.org>
49516
49517         * lib/unicodeio.h (unicode_to_mb): New declaration.
49518
49519 2005-09-20  Derek Price  <derek@ximbiot.com>
49520
49521         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49522         getaddrinfo.h.
49523
49524 2005-09-20  Bruno Haible  <bruno@clisp.org>
49525
49526         * gnulib-tool: Remove trailing slashes from the values specified for
49527         --source-base, --m4-base, --tests-base, --aux-dir.
49528         Suggested by Simon Josefsson <jas@extundo.com>.
49529
49530 2005-09-20  Bruno Haible  <bruno@clisp.org>
49531
49532         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49533         func_modules_to_filelist, func_import, func_create_testdir): Make all
49534         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49535         change when gnulib-tool is invoked in a different locale.
49536
49537 2005-09-19  Simon Josefsson  <jas@extundo.com>
49538
49539         * m4/socklen.m4: Fix typo.
49540
49541 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49542
49543         Use a consistent style for including <config.h>.
49544         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49545         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49546         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49547         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49548         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49549         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49550         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49551         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49552         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49553         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49554         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49555         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49556         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49557         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49558         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49559         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49560         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49561         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49562         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49563         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49564         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49565         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49566         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49567         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49568         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49569         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49570         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49571         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49572         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49573         lib/xstrtoumax.c, lib/yesno.c:
49574         Standardize inclusion of config.h.
49575         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49576         lib/inttostr.h:  Removed inclusion of config.h from header files.
49577         * lib/inttostr.c:  Adjusted in-tree users.
49578         * lib/timespec.h: Remove superfluous warning to include config.h.
49579         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49580         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49581         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49582         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49583         config.h with HAVE_CONFIG_H.
49584
49585 2005-09-19  Jim Meyering  <jim@meyering.net>
49586
49587         * modules/pathmax (License): Change to LGPL.
49588
49589 2005-09-19  Derek Price  <derek@ximbiot.com>
49590
49591         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49592
49593 2005-09-19  Bruno Haible  <bruno@clisp.org>
49594
49595         * gnulib-tool (import): Provide default for --tests-base.
49596
49597 2005-09-19  Bruno Haible  <bruno@clisp.org>
49598
49599         * doc/quote.texi: New file, extracted from gnulib.texi.
49600         * doc/ctime.texi: New file, extracted from gnulib.texi.
49601         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49602         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49603         * doc/gnulib.texi: Include them.
49604
49605 2005-09-18  Bruno Haible  <bruno@clisp.org>
49606
49607         Portability fix.
49608         * gnulib-tool (func_readlink): New function.
49609         (func_ln_if_changed): Use it.
49610
49611 2005-09-18  Bruno Haible  <bruno@clisp.org>
49612
49613         * gnulib-tool: Support --with-tests also with --import.
49614         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49615         (func_import): Use variables $testsbase and $inctests. Emit a
49616         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49617         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49618         SUBDIRS += $testsdir.
49619         (func_create_testdir): Update.
49620
49621 2005-09-18  Bruno Haible  <bruno@clisp.org>
49622
49623         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49624         instead of $dry_run.
49625         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49626         (func_ln_if_changed): Don't handle dry-run here.
49627         (func_import): In dry-run mode, detect more precisely which actions
49628         would be performed, and don't use "...ing" verbs.
49629
49630 2005-09-18  Bruno Haible  <bruno@clisp.org>
49631
49632         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49633         (func_import): Use join on two temporary files instead of three nested
49634         loops, in order to determine which files are new or old.
49635
49636 2005-09-18  Bruno Haible  <bruno@clisp.org>
49637
49638         * gnulib-tool (func_import): Comment out code that spits out the
49639         new files with --dry-run.
49640
49641 2005-09-18  Bruno Haible  <bruno@clisp.org>
49642
49643         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49644
49645 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49646
49647         * lib/stat-time.h: New file.
49648         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49649         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49650         in a different way.
49651         (timespec_cmp): New function.
49652         * lib/utimecmp.c: Include stat-time.h.
49653         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49654         members exist, not on the obsolescent ST_MTIM_NSEC.
49655         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49656
49657 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49660
49661 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49662
49663         * MODULES.html.sh (File system functions): Add stat-time.
49664         * modules/stat-time: New file.
49665         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49666         is now done in a different way, by the stat-time module.
49667         * modules/utimecmp (Depends-on): Add stat-time.
49668
49669 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49670
49671         * m4/st_mtim.m4: Remove.  Superseded by...
49672         * m4/stat-time.m4: New file.
49673         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49674         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49675
49676 2005-09-15  Derek Price  <derek@ximbiot.com>
49677
49678         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49679
49680 2005-09-15  Derek Price  <derek@ximbiot.com>
49681
49682         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
49683         * lib/regex_internal.c: Ditto, using this...
49684         (__GNUC_PREREQ): ...new macro.
49685         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
49686         using...
49687         (__GNUC_PREREQ): ...this new macro.
49688
49689         * lib/strstr.h: Include string.h. Define strstr as a macro here.
49690
49691 2005-09-15  Derek Price  <derek@ximbiot.com>
49692             Paul Eggert  <eggert@cs.ucla.edu>
49693
49694         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
49695         changes, consolidating in...
49696         * lib/regex_internal.h: ...this file.
49697
49698 2005-09-13  Jim Meyering  <jim@meyering.net>
49699
49700         * lib/canon-host.c: Filter through gnu indent and reword comments
49701         slightly.
49702         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
49703
49704 2005-09-13  Derek Price  <derek@ximbiot.com>
49705
49706         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
49707         failure.
49708         Reported by Jim Meyering  <jim@meyering.net>.
49709
49710 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49711
49712         * lib/base64.c: Typo.
49713         (base64_encode): Put b64str in initialized data section.
49714
49715 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         Merge glibc and coreutils changes into gnulib, plus a few
49718         extra fixes.
49719         * lib/md5.c: Use #error rather than a string.
49720         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
49721         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
49722         (__attribute__): Define to empty for non recent-GCC.
49723         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
49724         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
49725         Renamed from their non-__ counterparts, with new macros replacing
49726         them if not _LIBC.  Add __THROW attribute.
49727         (rol): Remove.
49728         (struct md5_ctx): Align buffer if using GCC.
49729         * lib/sha1.h (struct sha1_ctx): Likewise.
49730         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
49731         The old name was backwards.
49732         (NOTSWAP): Remove; not used.
49733         (rol): New macro, moved here from md5.h.
49734         (sha1_process_block): Remove a FIXME that doesn't make sense.
49735
49736 2005-09-12  Derek Price  <derek@ximbiot.com>
49737
49738         Return usable errors from canon-host.
49739         * lib/canon-host.h: New file.
49740         * lib/canon-host.c (canon_host): Wrap...
49741         (canon_host_r): ...this new function, which now relies exclusively on
49742         getaddrinfo.
49743         (ch_strerror): New function.
49744         (last_cherror): New global.
49745         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
49746         interface.
49747         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
49748         void *.
49749         (freeaddrinfo): Free ai->ai_canonname when set.
49750
49751 2005-09-12  Derek Price  <derek@ximbiot.com>
49752
49753         Make canon-host require getaddrinfo.
49754         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
49755         AC_LIBSOURCE canon-host.h.  Call...
49756         (gl_PREREQ_CANON_HOST): ...this new function, which requires
49757         gl_GETADDRINFO.
49758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
49759
49760 2005-09-12  Derek Price  <derek@ximbiot.com>
49761
49762         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
49763         LGPL.
49764         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
49765
49766 2005-09-12  Derek Price  <derek@ximbiot.com>
49767
49768         * lib/gai_strerror.c: Include config.h when available.  Include
49769         getaddrinfo.h before other headers to test interface.
49770         Reported by Larry Jones <lawrence.jones@ugs.com>.
49771
49772 2005-09-12  Derek Price  <derek@ximbiot.com>
49773             Paul Eggert  <eggert@cs.ucla.edu>
49774
49775         * modules/glob (Files): Add glob-libc.h.
49776
49777 2005-09-12  Derek Price  <derek@ximbiot.com>
49778             Paul Eggert  <eggert@cs.ucla.edu>
49779
49780         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
49781         glob_.h, glob-libc.h.
49782         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
49783
49784 2005-09-12  Derek Price  <derek@ximbiot.com>
49785             Paul Eggert  <eggert@cs.ucla.edu>
49786
49787         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
49788         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
49789         protecting things that should be done only in gnulib contexts.
49790         * lib/glob_.h: New file, containing only the glob things needed for
49791         gnulib.
49792         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
49793         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
49794         (glob, globfree, glob_pattern_p): Now defined simply in terms of
49795         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
49796         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
49797         and to respect the namespace rules better.
49798
49799 2005-09-08  Simon Josefsson  <jas@extundo.com>
49800
49801         * modules/socklen: New file.
49802
49803 2005-09-08  Simon Josefsson  <jas@extundo.com>
49804
49805         * m4/socklen.m4: New file.
49806
49807 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49808
49809         * modules/utimens (Files): Add m4/utimbuf.m4, since
49810         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
49811         Reported by Sergey Poznyakoff.
49812
49813 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
49816         definitions, since that's the preferred style in glibc.
49817         Fix a minor spacing issue, and update copyright notice to match
49818         glibc's.
49819
49820 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49821
49822         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
49823
49824 2005-09-06  Simon Josefsson  <jas@extundo.com>
49825
49826         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
49827         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
49828
49829 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
49832         warning.
49833
49834 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49835
49836         * config/srclist.txt: Add glibc bug 1302.
49837
49838 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49839
49840         Change bitset word type from unsigned int to unsigned long int,
49841         as this has better performance on typical 64-bit hosts.
49842         Port bitset code to hosts with unusual word sizes.
49843         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
49844         (build_collating_symbol):
49845         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
49846         argument is a bitset.  This is merely a style issue, but it makes
49847         it clearer that an entire array is expected.
49848         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
49849         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
49850         Port to the case where bitset_word is not the same as unsigned int.
49851         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49852         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
49853         Likewise.
49854         * lib/regexec.c (check_dst_limits_calc_pos_1,
49855         check_subexp_matching_top):
49856         (build_trtable, group_nodes_into_DFAstates):
49857         Likewise.
49858         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
49859         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
49860         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
49861         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
49862         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
49863         * lib/regcomp.c (optimize_subexps, lower_subexp):
49864         Work even if bitset_word has holes in its bitwise representation.
49865         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
49866         * lib/regexec.c (check_dst_limits_calc_pos_1,
49867         check_subexp_matching_top):
49868         Likewise.
49869         * lib/regex_internal.c (re_string_reconstruct):
49870         Don't assume UCHAR_MAX == 255.
49871         * lib/regex_internal.h (bitset_set_all): Likewise.
49872         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
49873         All uses changed.
49874         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
49875         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
49876         All uses changed.
49877         (BITSET_WORD_MAX): New macro.
49878         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
49879         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
49880         (bitset_empty, bitset_copy):
49881         Prefer sizeof (bitset) to multiplying it out ourselves.
49882         (bitset_not_merge): Remove; unused.
49883         (bitset_contain): Return bool, not unsigned int with one bit on.
49884         All callers changed.
49885         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
49886         alignment than re_node_set; do this by defining a new internal
49887         type struct dests_alloc and using it to allocate memory.
49888
49889 2005-09-05  Bruno Haible  <bruno@clisp.org>
49890
49891         * gnulib-tool (func_import): Fix comparison in handling of symbolic
49892         links.
49893
49894 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
49895
49896         * modules/size_max (Makefile.am): Add size_max.h
49897
49898 2005-09-04  Derek Price  <derek@ximbiot.com>
49899
49900         * gnulib-tool (func_import): Fix reversed $symbolic logic.
49901
49902 2005-09-03  Simon Josefsson  <jas@extundo.com>
49903
49904         * gnulib-tool: Fix typo.
49905
49906 2005-09-03  Simon Josefsson  <jas@extundo.com>
49907
49908         * config/srclist.txt: Add glibc bug 1293.
49909
49910 2005-09-03  Derek Price  <derek@ximbiot.com>
49911
49912         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
49913         From Larry Jones <lawrence.jones@ugs.com>.
49914
49915 2005-09-02  Simon Josefsson  <jas@extundo.com>
49916
49917         * modules/socklen: New file.
49918
49919 2005-09-02  Simon Josefsson  <jas@extundo.com>
49920
49921         * modules/havelib: New module.
49922
49923         * modules/gettext, modules/iconv, modules/lock, modules/readline:
49924         Use havelib.
49925
49926 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49927
49928         Check for arithmetic overflow when calculating sizes, to prevent
49929         some buffer-overflow issues.  These patches are conservative, in the
49930         sense that when I couldn't determine whether an overflow was possible,
49931         I inserted a run-time check.
49932         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
49933         macros.
49934         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
49935         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
49936         (re_xnrealloc, re_x2nrealloc): New inline functions.
49937         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
49938         parse_bracket_exp):
49939         (build_equiv_class, build_charclass): Check for arithmetic overflow
49940         in size expression calculations.
49941         * lib/regex_internal.c (re_string_realloc_buffers):
49942         (build_wcs_upper_buffer, re_node_set_add_intersect):
49943         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
49944         (re_dfa_add_node, register_state): Likewise.
49945         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
49946         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
49947         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
49948         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
49949
49950 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49951
49952         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49953         m4/ulonglong.m4.  Problem reported by Martin Lambers.
49954
49955 2005-09-02  Bruno Haible  <bruno@clisp.org>
49956
49957         Support for lib vs. lib64 distinction on biarch platforms.
49958         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
49959         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
49960         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
49961
49962 2005-09-02  Bruno Haible  <bruno@clisp.org>
49963
49964         * gnulib-tool (import): In the other first-use case, provide defaults
49965         as well.
49966
49967 2005-09-02  Bruno Haible  <bruno@clisp.org>
49968
49969         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
49970         patches not yet found in the latest gettext release.
49971
49972 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
49975         to avoid a collision with bits/local_lim.h in glibc.
49976         All uses changed.  Problem reported by Dmitry V. Levin in
49977         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
49978
49979         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
49980         bugs in int versus size_t comparisons.
49981         (re_string_context_at): Fix bug where the code assumed that
49982         Idx is signed.
49983
49984         Use bool where appropriate.
49985         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
49986         All callers changed.
49987         (calc_eclosure_iter): Likewise, for ROOT arg.
49988         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
49989         (build_charclass_op): Likewise, for NON_MATCH arg.
49990         * lib/regex_internal.c (re_string_allocate, re_string_construct):
49991         (re_string_construct_common): Likewise, for ICASE arg.
49992         * lib/regexec.c (re_search_2_stub, re_search_stub):
49993         Likewise, for RET_LEN arg.
49994         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
49995         (set_regs): Likewise, for FL_BACKTRACK arg.
49996         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
49997         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
49998         (calc_eclosure_iter, parse_bracket_exp):
49999         Use bool for internal variables that are booleans.
50000         * lib/regexec.c (re_search_internal, check_matching,
50001         proceed_next_node):
50002         (set_regs, build_sifted_states, sift_states_bkref):
50003         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50004         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50005         (find_collation_sequence_value):
50006         Likewise.
50007         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50008         (re_node_set_compare):
50009         Return bool, not int. All callers changed.
50010         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50011         (build_trtable, check_node_accept): Likewise.
50012         * lib/regex_internal.h: Include stdbool.h.
50013
50014         Fix bugs uncovered when converting to bool.
50015         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50016         failure instead of charging ahead blindly.
50017         * lib/regex_internal.c (register_state): Likewise.
50018         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50019         for freeing internal storage.
50020         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50021         bitset pieces used as boolean, to avoid undefined behavior
50022         on hosts that do int overflow checking.
50023
50024 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50025
50026         * config/srclist.txt: Add glibc bugs 1285-1287.
50027
50028 2005-09-01  Jim Meyering  <jim@meyering.net>
50029
50030         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50031         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50032         Require gl_STAT_MACROS, too.
50033
50034 2005-09-01  Bruno Haible  <bruno@clisp.org>
50035
50036         * gnulib-tool (import): In the first-use case, provide defaults.
50037
50038 2005-09-01  Bruno Haible  <bruno@clisp.org>
50039
50040         * gnulib-tool (func_import): Remove the .tmp files.
50041
50042 2005-09-01  Bruno Haible  <bruno@clisp.org>
50043
50044         * gnulib-tool (func_import): Fix handling of symbolic links.
50045
50046 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50047
50048         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50049         old glibc regex code mishandles strings longer than 2**31 bytes.
50050         This patch fixes this when the regex code is used in gnulib
50051         (i.e., outside glibc).
50052
50053         This patch should not affect the use of the regex code inside
50054         glibc.  No doubt this problem also needs to be handled for glibc
50055         as well, but the result will be an incompatible change to the
50056         glibc ABI, and the old ABI will have to be supported too.  That
50057         can be the the subject for another patch.
50058
50059         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50060         governing whether the rest of this patch is active.  By default,
50061         the macro is disabled and the patch has no effect.
50062         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50063         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50064         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50065         (re_match_2, re_set_registers): Use the new types.
50066         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50067         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50068         New macros.
50069         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50070         (re_string_context_at, bin_tree_t, re_dfastate_t):
50071         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50072         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50073         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50074         (re_string_char_size_at, re_string_wchar_at):
50075         (re_string_elem_size_at):
50076         Use the new types and macros to port to 64-bit hosts.
50077         Use unsigned types for internal values, so that the code
50078         mostly works even for arrays larger than SSIZE_MAX.
50079         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50080         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50081         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50082         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50083         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50084         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50085         (calc_inveclosure, parse_dup_op, build_range_exp):
50086         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50087         (fetch_number, create_token_tree, mark_opt_subexp):
50088         Likewise.
50089         * lib/regex_internal.c (re_string_construct_common,
50090         create_ci_newstate):
50091         (create_cd_newstate, re_string_allocate, re_string_construct):
50092         (re_string_realloc_buffers, build_wcs_upper_buffer):
50093         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50094         (re_string_reconstruct, re_string_peek_byte_case):
50095         (re_string_fetch_byte_case, re_string_context_at):
50096         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50097         (re_node_set_init_copy, re_node_set_add_intersect):
50098         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50099         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50100         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50101         (re_acquire_state, re_acquire_state_context, register_state):
50102         Likewise.
50103         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50104         search_cur_bkref_entry):
50105         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50106         (re_search_internal, re_search_2_stub, re_search_stub)
50107         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50108         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50109         (update_cur_sifted_state, check_dst_limits):
50110         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50111         (check_subexp_limits, sift_states_bkref, merge_state_array):
50112         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50113         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50114         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50115         (expand_bkref_cache, check_node_accept_bytes):
50116         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50117         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50118         (acquire_init_state_context, check_halt_node_context):
50119         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50120         (sift_states_backward, clean_state_log_if_needed):
50121         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50122         (find_recover_state, transit_state_sb, transit_state_mb):
50123         (transit_state_bkref, build_trtable, match_ctx_clean):
50124         Likewise.
50125         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50126         to work around an assumption that REG_MISSING is negative.
50127
50128         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50129         (seek_collating_symbol_entry) [defined _LIBC]:
50130         (lookup_collation_sequence_value) [defined _LIBC]:
50131         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50132         Use prototypes rather than old-style function definitions.
50133         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50134         (transit_state_sb) [0]:
50135         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50136
50137         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50138         rm_eo.
50139
50140         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50141         (optimize_subexps, lower_subexp):
50142         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50143         since the signed shift might overflow.  Use 1u<<31 instead.
50144         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50145         Likewise.
50146         * lib/regexec.c (check_dst_limits_calc_pos_1,
50147         check_subexp_matching_top): Likewise.
50148
50149         * lib/regcomp.c (optimize_subexps, lower_subexp):
50150         Use CHAR_BIT rather than 8, for clarity.
50151         * lib/regexec.c (check_dst_limits_calc_pos_1):
50152         (check_subexp_matching_top): Likewise.
50153         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50154         have to worry about portability issues when shifting it left.
50155         Remove no-longer-needed test for table_size > 0.
50156         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50157         in a word, as the resulting behavior is undefined.
50158         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50159         in one case, a <= should have been an <, and in another case the
50160         whole test was missing.
50161         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50162         the standard name CHAR_BIT.
50163         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50164         this is not true on one's complement and signed-magnitude hosts.
50165
50166         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50167         next_last_offset.
50168         (struct re_dfa_t): Remove unused member states_alloc.
50169         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50170
50171 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50174         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50175         and large-file glibc and in 32-bit large-file Solaris.
50176
50177 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50180         lengths fit in regoff_t; this isn't true if regoff_t is the same
50181         width as size_t.
50182         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50183         (= START + RANGE) instead of RANGE.  This avoids overflow
50184         problems when regoff_t is the same width as size_t.
50185         All callers changed.
50186         (re_search_2_stub): Check for overflow when adding the
50187         sizes of the two strings.
50188         (re_search_stub): Check for overflow when adding START
50189         to RANGE; if it occurs, substitute the extreme value.
50190
50191 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50192
50193         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50194
50195 2005-08-31  Jim Meyering  <jim@meyering.net>
50196
50197         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50198         a pointer-to-const.
50199         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50200         (register_state): Likewise.
50201         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50202         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50203         (group_nodes_into_DFAstates): Likewise.
50204
50205 2005-08-31  Jim Meyering  <jim@meyering.net>
50206
50207         * check-module: Add a FIXME comment.
50208
50209 2005-08-31  Eric Blake  <ebb9@byu.net>
50210
50211         * modules/unistd-safer (Files): Add unistd--.h.
50212         * modules/stdio-safer (Files): Add stdio--.h.
50213
50214 2005-08-31  Derek Price  <derek@ximbiot.com>
50215
50216         * lib/getdelim.c (getdelim): Return EOF on EOF.
50217         Reported by Larry Jones <lawrence.jones@ugs.com>.
50218
50219 2005-08-31  Bruno Haible  <bruno@clisp.org>
50220
50221         Avoid unnecessary diffs in the generated lib/Makefile.am.
50222         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50223         the generated files.
50224         (func_import): Don't set cmd.
50225
50226 2005-08-31  Bruno Haible  <bruno@clisp.org>
50227
50228         * lib/strstr.c: Include <stddef.h>, for NULL.
50229         * lib/strcasestr.c: Likewise.
50230         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50231
50232 2005-08-31  Bruno Haible  <bruno@clisp.org>
50233
50234         * gnulib-tool: New option --macro-prefix.
50235         (func_import): Use macro_prefix.
50236         (import): Handle option --macro-prefix.
50237
50238 2005-08-31  Bruno Haible  <bruno@clisp.org>
50239
50240         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50241         Also use new variables cached_lgpl, cached_libtool.
50242
50243 2005-08-31  Bruno Haible  <bruno@clisp.org>
50244
50245         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50246         always instantiating them.
50247
50248 2005-08-31  Bruno Haible  <bruno@clisp.org>
50249
50250         * gnulib-tool (func_import): Read the previous cached settings
50251         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50252         earlier added by gnulib but are now dropped. Warn when a gnulib file
50253         overwrites a non-gnulib file.
50254
50255 2005-08-31  Bruno Haible  <bruno@clisp.org>
50256
50257         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50258         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50259         projects that don't keep autogenerated files in CVS. Put into
50260         actioncmd only the specified modules, not the transitive closure.
50261
50262 2005-08-31  Bruno Haible  <bruno@clisp.org>
50263
50264         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50265         Create directories that shall be filled.
50266         (import): Don't look for gl_* macros in configure.ac. Recurse across
50267         all directories containing a gnulib-cache.m4 files, if meaningful.
50268
50269 2005-08-31  Bruno Haible  <bruno@clisp.org>
50270
50271         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50272         (import): Set seen_libtool when we see gl_LIBTOOL.
50273
50274 2005-08-31  Bruno Haible  <bruno@clisp.org>
50275
50276         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50277         declaration macro definitions from generated gnulib.m4.
50278
50279 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50280
50281         * lib/iconvme.h: Add prototype for iconv_alloc.
50282
50283 2005-08-29  Simon Josefsson  <jas@extundo.com>
50284
50285         * lib/iconvme.c: Fix errno.
50286
50287 2005-08-29  Bruno Haible  <bruno@clisp.org>
50288
50289         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50290         that it works when the directory contains spaces.
50291
50292 2005-08-29  Bruno Haible  <bruno@clisp.org>
50293
50294         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50295
50296 2005-08-29  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50299         Emit more advice.
50300
50301 2005-08-29  Bruno Haible  <bruno@clisp.org>
50302         and Stepan Kasal  <kasal@ucw.cz>
50303
50304         * check-module: If more parameters are given, check each of them
50305         separately; add more exceptions, as noted by Jim Meyering.
50306         (check_module): New procedure.
50307         (%exempt_header): Now contains all exceptions.
50308
50309 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50310
50311         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50312
50313 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50314
50315         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50316
50317 2005-08-28  Bruno Haible  <bruno@clisp.org>
50318
50319         * m4/gnulib-tool.m4: New file.
50320
50321 2005-08-27  Jim Meyering  <jim@meyering.net>
50322
50323         * modules/unistd-safer (Files): Add pipe-safer.c.
50324         * modules/fcntl-safer (Files): Add creat-safer.c.
50325
50326 2005-08-27  Jim Meyering  <jim@meyering.net>
50327
50328         * m4/stdlib-safer.m4: New file.  From coreutils.
50329         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50330         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50331         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50332         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50333         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50334
50335 2005-08-27  Jim Meyering  <jim@meyering.net>
50336
50337         * lib/fopen-safer.c: Merge minor changes from coreutils.
50338         * lib/dup-safer.c: Likewise.
50339         * lib/fd-safer.c: Likewise.
50340
50341         Merge from coreutils.
50342         * lib/stdio--.h: New file.
50343         * lib/stdlib--.h: New file.
50344         * lib/mkstemp-safer.c: New file.
50345
50346         GNU tar needs these.
50347         * lib/pipe-safer.c: New file.
50348         * lib/creat-safer.c: New file.
50349         * lib/fcntl--.h (creat): Define to creat_safer.
50350         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50351         * lib/unistd--.h (pipe): Define to pipe_safer.
50352         * lib/unistd-safer.h: Declare pipe_safer.
50353
50354 2005-08-26  Simon Josefsson  <jas@extundo.com>
50355
50356         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50357         Haible <bruno@clisp.org>.
50358
50359 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * lib/regex_internal.h: Remove all references to
50362         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50363         or better.
50364         (bitset_not, bitset_merge, bitset_not_merge):
50365         (bitset_mask, re_string_allocate, re_string_construct):
50366         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50367         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50368         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50369         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50370         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50371         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50372         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50373         (re_acquire_state_context):
50374         Remove unnecessary forward decls.
50375         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50376         Put __attribute at function definition,
50377         now that the function decl has been removed.
50378         * lib/regex_internal.c (re_string_peek_byte_case):
50379         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50380         Likewise.
50381
50382 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50383
50384         * m4/regex.m4: Add AC_PREREQ(2.50).
50385         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50386
50387 2005-08-25  Simon Josefsson  <jas@extundo.com>
50388
50389         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50390         __fsetlocking.
50391
50392 2005-08-25  Simon Josefsson  <jas@extundo.com>
50393
50394         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50395         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50396         GLIBC specific code.
50397
50398 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50399
50400         Make regex safe for g++.  This fixes one real bug (an "err"
50401         that should have been "*err").  g++ problem reported by
50402         Sam Steingold.
50403         * lib/regex_internal.h (re_calloc): New macro, consistent with
50404         re_malloc etc.  All callers of calloc changed to use re_calloc.
50405         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50406         not int.  All callers changed.
50407         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50408         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50409         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50410         (find_recover_state): Change "err" to "*err"; this fixes what
50411         appears to be a real bug.
50412         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50413         versus int.
50414
50415 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         * modules/regex (Depends-on): Add malloc, since the code
50418         assumes that !malloc(0) means failure.
50419
50420 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50421
50422         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50423
50424         alloca modernization/simplification for regex.
50425         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50426         needs to be at the start of the file, and can be moved into
50427         regex_internal.h and simplified.
50428         * lib/regex_internal.h: Include <alloca.h>.
50429         (__libc_use_alloca) [!defined _LIBC]: New macro.
50430         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50431         now works outside glibc.
50432
50433 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50434
50435         * config/srclist.txt: Add glibc bugs 1241, 1245.
50436
50437 2005-08-25  Jim Meyering  <jim@meyering.net>
50438
50439         * lib/open-safer.c: Include <config.h>.
50440         Otherwise, we'd lose LARGEFILE support in any file using
50441         e.g. "fcntl--.h"
50442
50443 2005-08-25  Bruno Haible  <bruno@clisp.org>
50444
50445         * m4/minmax.m4: Require autoconf 2.52.
50446         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50447         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50448         alternatives of translit over the alphabet.
50449         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50450
50451 2005-08-24  Simon Josefsson  <jas@extundo.com>
50452
50453         * tests/test-getpass.c: New file.
50454
50455 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50458         for GNU regex features.
50459
50460 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50461
50462         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50463         * lib/regex.h (regerror): Likewise.
50464
50465         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50466         requires this.  (The code never needed it.)
50467
50468         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50469         All uses of recently-renamed identifiers changed to use the new,
50470         POSIX-compliant names.  The code will build and run just fine
50471         without these changes, but it's better to eat our own dog food
50472         and use the standard-conforming names.
50473
50474         * lib/regex.h: Fix a multitude of POSIX name space violations.
50475         These changes have an effect only for programs that define
50476         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50477         do not change anything for programs compiled in the normal way.
50478         Also, there is no effect on the ABI.
50479
50480         (_REGEX_SOURCE): New macro.
50481         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50482         defined and _GNU_SOURCE is not; this fixes a name space violation.
50483
50484         Rename the following macros to obey POSIX requirements.
50485         The old names are still visible as macros if _REGEX_SOURCE is defined.
50486         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50487         RE_BACKSLASH_ESCAPE_IN_LISTS.
50488         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50489         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50490         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50491         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50492         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50493         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50494         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50495         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50496         (REG_INTERVALS): renamed from RE_INTERVALS.
50497         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50498         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50499         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50500         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50501         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50502         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50503         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50504         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50505         RE_UNMATCHED_RIGHT_PAREN_ORD.
50506         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50507         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50508         (REG_DEBUG): renamed from RE_DEBUG.
50509         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50510         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50511         unusual, since we can't clash with the POSIX REG_ICASE.
50512         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50513         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50514         (REG_NO_SUB): renamed from RE_NO_SUB.
50515         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50516         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50517         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50518         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50519         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50520         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50521         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50522         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50523         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50524         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50525         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50526         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50527         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50528         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50529         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50530         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50531         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50532         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50533         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50534         (REG_FIXED): Renamed from REGS_FIXED.
50535         (REG_NREGS): Renamed from RE_NREGS.
50536
50537         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50538         of other REG_* macros, since POSIX says the user is allowed to
50539         #undef these macros selectively.
50540
50541         (reg_errcode_t): Update comment stating what other tables need
50542         to be consistent.
50543
50544         Rename the following enum values to obey POSIX requirements.
50545         The old names are still visible as macros.
50546         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50547         is not defined, since GNU is supposed to be a superset of POSIX as
50548         much as possible, and since we want reg_errcode_t to be a signed
50549         type for implementation consistency.
50550         (_REG_NOERROR): Renamed from REG_NOERROR.
50551         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50552         (_REG_BADPAT): Renamed from REG_BADPAT.
50553         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50554         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50555         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50556         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50557         (_REG_EBRACK): Renamed from REG_EBRACK.
50558         (_REG_EPAREN): Renamed from REG_EPAREN.
50559         (_REG_EBRACE): Renamed from REG_EBRACE.
50560         (_REG_BADBR): Renamed from REG_BADBR.
50561         (_REG_ERANGE): Renamed from REG_ERANGE.
50562         (_REG_ESPACE): Renamed from REG_ESPACE.
50563         (_REG_BADRPT): Renamed from REG_BADRPT.
50564         (_REG_EEND): Renamed from REG_EEND.
50565         (_REG_ESIZE): Renamed from REG_ESIZE.
50566         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50567         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50568         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50569         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50570         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50571
50572         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50573         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50574         changed.  But support the old name if the new one is not defined
50575         and if _REGEX_SOURCE.
50576
50577         Change the following member names in struct re_pattern_buffer.
50578         The old names are still supported if !_REGEX_SOURCE.
50579         The new names are always supported, regardless of _REGEX_SOURCE.
50580         (re_buffer): Renamed from buffer.
50581         (re_allocated): Renamed from allocated.
50582         (re_used): Renamed from used.
50583         (re_syntax): Renamed from syntax.
50584         (re_fastmap): Renamed from fastmap.
50585         (re_translate): Renamed from translate.
50586         (re_can_be_null): Renamed from can_be_null.
50587         (re_regs_allocated): Renamed from regs_allocated.
50588         (re_fastmap_accurate): Renamed from fastmap_accurate.
50589         (re_no_sub): Renamed from no_sub.
50590         (re_not_bol): Renamed from not_bol.
50591         (re_not_eol): Renamed from not_eol.
50592         (re_newline_anchor): Renamed from newline_anchor.
50593
50594         Change the following member names in struct re_registers.
50595         The old names are still supported if !_REGEX_SOURCE.
50596         The new names are always supported, regardless of _REGEX_SOURCE.
50597         (rm_num_regs): Renamed from num_regs.
50598         (rm_start): Renamed from start.
50599         (rm_end): Renamed from end.
50600
50601         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50602         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50603         Prepend __ to parameter names.
50604
50605         Undo yesterday's changes.
50606
50607 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50610         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50611         lib/regex.c.
50612
50613 2005-08-24  Jim Meyering  <jim@meyering.net>
50614
50615         Sync from coreutils.
50616         * m4/fcntl-safer.m4: New file.
50617
50618         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50619         and object files for this module.
50620
50621 2005-08-24  Jim Meyering  <jim@meyering.net>
50622
50623         Sync from coreutils.
50624         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50625
50626 2005-08-24  Jim Meyering  <jim@meyering.net>
50627
50628         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50629         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50630
50631 2005-08-24  Jim Meyering  <jim@meyering.net>
50632
50633         * modules/fcntl-safer: New module.
50634         * modules/fts (Depends-on): Add fcntl-safer.
50635         * MODULES.html.sh (File descriptor based Input/Output):
50636         Add fcntl-safer.
50637
50638 2005-08-24  Bruno Haible  <bruno@clisp.org>
50639
50640         Support for unit test modules.
50641         * modules/README: Mention tests modules.
50642         * modules/TEMPLATE-TESTS: New file.
50643         * gnulib-tool: New options --extract-tests-module, --with-tests and
50644         --tests-base (unused for the moment).
50645         (testsbase, inctests): New variables.
50646         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50647         (func_verify_module): Exclude TEMPLATE-TESTS.
50648         (func_verify_nontests_module, func_verify_tests_module): New functions.
50649         (func_get_dependencies): Add implicit dependency for tests modules.
50650         (func_get_tests_module): New function.
50651         (func_modules_transitive_closure): When --with-tests was specified,
50652         include the unit tests as well, unless explicitly avoided.
50653         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50654         (func_emit_tests_Makefile_am): New function.
50655         (func_create_testdir): When --with-tests was specified, emit a
50656         tests/ directory.
50657         * MODULES.html.sh (Future developments): Update.
50658
50659 2005-08-24  Bruno Haible  <bruno@clisp.org>
50660
50661         * modules/tls-tests: New file.
50662         * tests/test-tls.c: New file, from GNU gettext.
50663
50664 2005-08-24  Bruno Haible  <bruno@clisp.org>
50665
50666         * modules/lock-tests: New file.
50667         * tests/test-lock.c: New file, from GNU gettext.
50668
50669 2005-08-24  Bruno Haible  <bruno@clisp.org>
50670
50671         * lib/lock.h: Add multiple inclusion guard.
50672         * lib/tls.h: Add multiple inclusion guard.
50673
50674 2005-08-24  Bruno Haible  <bruno@clisp.org>
50675
50676         * gnulib-tool: Add support for the --aux-dir option to
50677         --create-testdir, --create-megatestdir, --test, --megatest.
50678         (func_create_testdir, func_create_megatestdir): Optionally emit a
50679         AC_CONFIG_AUX_DIR directive.
50680         (create-testdir, create-megatestdir, test, megatest): Provide a
50681         default value for $auxdir.
50682
50683 2005-08-24  Bruno Haible  <bruno@clisp.org>
50684
50685         * gnulib-tool (import): Use compound statement instead of subshell
50686         where possible.
50687
50688 2005-08-24  Bruno Haible  <bruno@clisp.org>
50689
50690         * gnulib-tool (import): Change --aux-dir default to "build-aux".
50691
50692 2005-08-24  Bruno Haible  <bruno@clisp.org>
50693
50694         * gnulib-tool (func_version): Update.
50695
50696 2005-08-24  Bruno Haible  <bruno@clisp.org>
50697
50698         * gnulib-tool (func_import, func_create_testdir,
50699         func_create_megatestdir): Quote all autoconf macro arguments.
50700
50701 2005-08-24  Bruno Haible  <bruno@clisp.org>
50702
50703         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
50704         option --force, because --force causes the aclocal.m4 of each
50705         subdirectory to be newer than the corresponding config.h.in.
50706
50707 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50708
50709         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
50710         All contents moved to gl_REGEX.
50711         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
50712         assume that it does.
50713
50714 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50715
50716         * lib/regex.h (REG_NOSYS)
50717         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
50718         Define, since POSIX requires it as of 2001.
50719         (_REG_ENOSYS)
50720         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
50721         New private symbol, used to keep the enum signed in all cases.
50722         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
50723         Youngman in
50724         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
50725
50726         * lib/regex_internal.c (re_string_skip_chars, register_state):
50727         (calc_state_hash):
50728         Remove forward decls; no longer needed now that we use prototypes.
50729         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
50730         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
50731         (clean_state_log_if_needed): Likewise.
50732
50733 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50734
50735         * config/srclist.txt: Add glibc bugs 1231-1233.
50736
50737 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50738
50739         Fix problems reported by Sam Steingold in
50740         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
50741         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
50742         assumed that reg_errcode_t is a signed type, which is not
50743         necessarily true if _XOPEN_SOURCE is not defined.
50744         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
50745         since some compilers warn about it otherwise.
50746
50747 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
50750         (init_word_char, create_initial_state, duplicate_node_closure):
50751         (fetch_token, peek_token_bracket, build_range_exp):
50752         (build_collating_symbol): Remove forward decls; no longer needed
50753         now that we use prototypes.
50754
50755         * lib/regcomp.c:
50756         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
50757         (re_compile_fastmap_iter, regcomp, regerror, regfree):
50758         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
50759         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
50760         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
50761         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
50762         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
50763         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
50764         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
50765         (build_range_exp, build_collating_symbol, parse_bracket_exp):
50766         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
50767         (build_charclass, build_charclass_op, fetch_number, create_tree):
50768         (create_token_tree, mark_opt_subexp, duplicate_tree):
50769         Use prototypes rather than old-style definitions.
50770
50771         * lib/regex_internal.c:
50772         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
50773         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
50774         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50775         (re_string_reconstruct, re_string_peek_byte_case):
50776         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
50777         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50778         (re_node_set_init_copy, re_node_set_add_intersect):
50779         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50780         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50781         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50782         (re_acquire_state, re_acquire_state_context, register_state):
50783         (create_ci_newstate, create_cd_newstate, free_state):
50784         Likewise.
50785         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
50786         re_search_2):
50787         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
50788         (re_search_internal, prune_impossible_nodes):
50789         (acquire_init_state_context, check_matching, static):
50790         (check_halt_node_context, check_halt_state_context, proceed_next_node):
50791         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
50792         (update_regs, sift_states_backward, build_sifted_states):
50793         (clean_state_log_if_needed, merge_state_array):
50794         (update_cur_sifted_state, add_epsilon_src_nodes):
50795         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
50796         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
50797         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
50798         (find_recover_state, check_subexp_matching_top, transit_state_mb):
50799         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
50800         (check_arrival, check_arrival_add_next_nodes):
50801         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50802         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50803         (check_node_accept_bytes, check_node_accept, extend_buffers):
50804         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
50805         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
50806         (sift_ctx_init):
50807         Likewise.
50808
50809         * lib/regex_internal.h:
50810         (re_string_allocate, re_string_construct, re_string_reconstruct):
50811         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
50812         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
50813         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
50814         (re_string_context_at, re_string_peek_byte_case):
50815         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
50816         is defined, since we now use prototypes always.
50817
50818         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
50819         C89 or better.  All uses removed.
50820
50821 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50822
50823         * config/srclist.txt: Add glibc bugs 1220-1227.
50824
50825 2005-08-20  Jim Meyering  <jim@meyering.net>
50826
50827         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
50828         of unused local, dfa.
50829
50830 2005-08-20  Bruno Haible  <bruno@clisp.org>
50831
50832         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
50833
50834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50835
50836         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
50837         (re_node_set_insert_last, re_dfa_add_node):
50838         Rename local variables to avoid GCC shadowing warnings.
50839
50840 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50841
50842         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
50843         [defined lint]: Suppress bogus uninitialized-variable warnings.
50844
50845         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
50846         and let the caller return REG_ESPACE if out of space.  This
50847         removes an uninitialied-variable warning with GCC 4.0.1, and also
50848         avoids taking the address of a local variable.  All callers
50849         changed.
50850
50851 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50852
50853         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
50854         $LIBCSRC/posix/regexec.c.
50855         Add glibc bug 1217 for regcomp.c.
50856
50857 2005-08-19  Jim Meyering  <jim@meyering.net>
50858
50859         * lib/regexec.c (proceed_next_node): Redo local variables to
50860         avoid GCC shadowing warnings.
50861
50862 2005-08-18  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/strstr.c (strstr): Fix return value in multibyte case.
50865         * lib/strcasestr.c (strcasestr): Likewise.
50866
50867 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
50870
50871 2005-08-17  Jim Meyering  <jim@meyering.net>
50872
50873         Make the %s format (seconds since the epoch) work for a negative
50874         number and when used with a zero-padded field width, e.g. %015s.
50875
50876         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
50877         label so that it precedes the code to set `digits'.  Otherwise,
50878         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
50879         print `00-22'.  Now, it prints `-0022', as it should.
50880
50881 2005-08-17  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/strstr (Files): Add m4/mbrtowc.m4.
50884         (Depends-on): Add mbuiter.
50885
50886 2005-08-17  Bruno Haible  <bruno@clisp.org>
50887
50888         * modules/strcasestr: New file.
50889         * MODULES.html.sh (String handling, based on ANSI C 89): Add
50890         strcasestr.
50891
50892 2005-08-17  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
50895
50896 2005-08-17  Bruno Haible  <bruno@clisp.org>
50897
50898         * modules/mbuiter: New file.
50899         * MODULES.html.sh (Extended multibyte and wide character utilities):
50900         Add mbuiter.
50901
50902 2005-08-17  Bruno Haible  <bruno@clisp.org>
50903
50904         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
50905         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
50906
50907 2005-08-17  Bruno Haible  <bruno@clisp.org>
50908
50909         * m4/strcasestr.m4: New file.
50910
50911 2005-08-17  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
50914         * lib/strstr.c: Completely rewritten, with multibyte locale support.
50915
50916 2005-08-17  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/strcasestr.h: New file.
50919         * lib/strcasestr.c: New file.
50920
50921 2005-08-17  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/strcasecmp.c: Use mbuiter.h.
50924
50925 2005-08-17  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/mbuiter.h: New file.
50928
50929 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
50932         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
50933         and gl_GETOPT are both invoked via different paths (as happens
50934         with GNU tar CVS because it uses both argp and getopt), the former
50935         wins.
50936
50937 2005-08-16  Bruno Haible  <bruno@clisp.org>
50938
50939         * modules/tls: New file.
50940         * MODULES.html.sh (Multithreading): Add tls.
50941
50942 2005-08-16  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/strnlen1: New file.
50945         * MODULES.html.sh (String handling): Add strnlen1.
50946
50947 2005-08-16  Bruno Haible  <bruno@clisp.org>
50948
50949         * modules/strcase (Files): Add m4/mbrtowc.m4.
50950         (Depends-on): Add strnlen1, mbchar.
50951
50952 2005-08-16  Bruno Haible  <bruno@clisp.org>
50953
50954         * modules/mbiter: New file.
50955         * MODULES.html.sh (Extended multibyte and wide character utilities):
50956         Add mbiter.
50957
50958 2005-08-16  Bruno Haible  <bruno@clisp.org>
50959
50960         * modules/mbfile: New file.
50961         * MODULES.html.sh (Extended multibyte and wide character utilities):
50962         Add mbfile.
50963
50964 2005-08-16  Bruno Haible  <bruno@clisp.org>
50965
50966         * modules/mbchar: New file.
50967         * MODULES.html.sh (Extended multibyte and wide character utilities):
50968         New section.
50969
50970 2005-08-16  Bruno Haible  <bruno@clisp.org>
50971
50972         * m4/tls.m4: New file, from GNU gettext.
50973
50974 2005-08-16  Bruno Haible  <bruno@clisp.org>
50975
50976         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
50977         always.
50978         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
50979
50980 2005-08-16  Bruno Haible  <bruno@clisp.org>
50981
50982         * m4/mbiter.m4: New file.
50983
50984 2005-08-16  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/mbfile.m4: New file.
50987
50988 2005-08-16  Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/mbchar.m4: New file.
50991
50992 2005-08-16  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/tls.h: New file, from GNU gettext.
50995         * lib/tls.c: New file, from GNU gettext.
50996
50997 2005-08-16  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/strnlen1.h: New file.
51000         * lib/strnlen1.c: New file.
51001
51002 2005-08-16  Bruno Haible  <bruno@clisp.org>
51003
51004         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51005         (mbi_init): Update.
51006         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51007         NUL byte, not after it.
51008
51009 2005-08-16  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/strcase.h (strcasecmp): Add note in comments.
51012         * lib/strncasecmp.c: Use code from strcasecmp.c.
51013         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51014         (strcasecmp): Work correctly in multibyte locales.
51015
51016 2005-08-16  Bruno Haible  <bruno@clisp.org>
51017
51018         * lib/mbiter.h: New file.
51019
51020 2005-08-16  Bruno Haible  <bruno@clisp.org>
51021
51022         * lib/mbfile.h: New file.
51023
51024 2005-08-16  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/mbchar.h: New file.
51027         * lib/mbchar.c: New file.
51028
51029 2005-08-16  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51032         the valid ones. Makes the comparison operations transitive:
51033         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51034         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51035
51036 2005-08-15  Simon Josefsson  <jas@extundo.com>
51037
51038         * modules/ssize_t (License): Change to 'unlimited'.
51039
51040         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51041
51042 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51043
51044         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51045         Add comments for each pending glibc patch.
51046
51047 2005-08-15  Bruno Haible  <bruno@clisp.org>
51048
51049         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51050         __cplusplus is defined.
51051
51052 2005-08-14  Jim Meyering  <jim@meyering.net>
51053
51054         Sync from coreutils.
51055
51056         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51057         Use the hash-table-based cycle-detection code not just when
51058         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51059         Reported by James Youngman in
51060         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51061         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51062         FTS_TIGHT_CYCLE_CHECK.
51063         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51064         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51065         once again.
51066         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51067         * lib/fts.c (fd_safer): Remove decl.
51068         Include fcntl--.h rather than unistd-safer.h
51069         (fts_safe_changedir): Don't call fd_safer; no longer needed
51070         now that we include fcntl--.h.
51071
51072 2005-08-12  Simon Josefsson  <jas@extundo.com>
51073
51074         * modules/getndelim2: Use ssize_t module.
51075         * modules/getnline: Likewise.
51076         * modules/safe-read: Likewise.
51077         * modules/xreadlink: Likewise.
51078
51079         * modules/ssize_t: New file.
51080
51081 2005-08-12  Simon Josefsson  <jas@extundo.com>
51082
51083         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51084
51085 2005-08-12  Simon Josefsson  <jas@extundo.com>
51086
51087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51088         ssize_t.
51089
51090 2005-08-12  Simon Josefsson  <jas@extundo.com>
51091
51092         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51093         readline, getdelim and check_version.
51094         (Support for systems lacking ISO C 99: Sizes of integer types):
51095         Add size_max.
51096
51097 2005-08-12  Bruno Haible  <bruno@clisp.org>
51098
51099         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51100
51101 2005-08-11  Simon Josefsson  <jas@extundo.com>
51102
51103         * modules/readline: New file.
51104
51105         * modules/strnlen (Files): Add strnlen.h.
51106
51107 2005-08-11  Simon Josefsson  <jas@extundo.com>
51108
51109         * m4/readline.m4: New file.
51110
51111 2005-08-11  Simon Josefsson  <jas@extundo.com>
51112
51113         * lib/readline.h, readline.c: New file.
51114
51115 2005-08-11  Simon Josefsson  <jas@extundo.com>
51116
51117         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51118         gl_AVOID.
51119
51120 2005-08-11  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51123
51124 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51125
51126         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51127
51128 2005-08-10  Simon Josefsson  <jas@extundo.com>
51129
51130         * tests/test-iconvme.c: New file.
51131
51132 2005-08-10  Simon Josefsson  <jas@extundo.com>
51133
51134         * m4/strnlen.m4: New file.
51135
51136         * m4/strndup.m4: Don't check for strnlen declaration, done in
51137         strnlen.m4.
51138
51139 2005-08-10  Simon Josefsson  <jas@extundo.com>
51140
51141         * lib/strndup.c: Use strnlen.h.
51142
51143         * lib/strnlen.h: New file.
51144
51145 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51146
51147         * README: Typos.
51148
51149 2005-08-02  Simon Josefsson  <jas@extundo.com>
51150
51151         * modules/readline: New file.
51152
51153 2005-08-02  Simon Josefsson  <jas@extundo.com>
51154
51155         * modules/getdelim: New file.
51156
51157         * modules/getline: Rewrite, don't use getndelim2.
51158
51159 2005-08-02  Simon Josefsson  <jas@extundo.com>
51160
51161         * m4/getline.m4: Separate out getdelim stuff into separate module.
51162
51163         * m4/getdelim.m4: New file.
51164
51165 2005-08-02  Simon Josefsson  <jas@extundo.com>
51166
51167         * lib/getline.h, getline.c: Rewrite.
51168
51169         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51170
51171 2005-07-31  Bruno Haible  <bruno@clisp.org>
51172
51173         * lib/lock.h (gl_lock_initializer): New macro.
51174         (gl_lock_define_initialized): Use it.
51175         (gl_rwlock_initializer): New macro.
51176         (gl_rwlock_define_initialized): Use it.
51177         (gl_recursive_lock_initializer): New macro.
51178         (gl_recursive_lock_define_initialized): Use it.
51179
51180 2005-07-30  Karl Berry  <karl@gnu.org>
51181
51182         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51183         Report from Ben Pfaff, regarding getopt.
51184
51185 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51186
51187         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51188         normal way.
51189         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51190         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51191         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51192         (gl_GETOPT): Use the new macros.  Most of the implementation
51193         is moved to the new macros.  This is for programs like Emacs
51194         that don't want all the functionality of gl_GETOPT.
51195
51196 2005-07-26  Bruno Haible  <bruno@clisp.org>
51197
51198         * m4/lock.m4: Update from GNU gettext.
51199
51200 2005-07-26  Bruno Haible  <bruno@clisp.org>
51201
51202         * lib/lock.h: Update from GNU gettext.
51203         * lib/lock.c: Update from GNU gettext.
51204
51205 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51206
51207         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51208         obsolescent AC_TRY_RUN.  Include the default includes files, for
51209         'exit'.
51210
51211 2005-07-24  Bruno Haible  <bruno@clisp.org>
51212
51213         * modules/visibility: New file.
51214         * MODULES.html.sh (Misc): Add visibility.
51215
51216 2005-07-24  Bruno Haible  <bruno@clisp.org>
51217
51218         * m4/visibility.m4: New file.
51219
51220 2005-07-24  Bruno Haible  <bruno@clisp.org>
51221
51222         * doc/visibility.texi: New file.
51223
51224 2005-07-22  Bruno Haible  <bruno@clisp.org>
51225
51226         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51227         $(ALLOCA_H), redundant through BUILT_SOURCES.
51228         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51229         redundant through BUILT_SOURCES.
51230         * modules/byteswap (Makefile.am): Remove explicit dependency on
51231         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51232         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51233         $(FNMATCH_H), redundant through BUILT_SOURCES.
51234         * modules/getopt (Makefile.am): Remove explicit dependency on
51235         $(GETOPT_H), redundant through BUILT_SOURCES.
51236         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51237         redundant through BUILT_SOURCES.
51238         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51239         redundant through BUILT_SOURCES.
51240         * modules/stdbool (Makefile.am): Remove explicit dependency on
51241         $(STDBOOL_H), redundant through BUILT_SOURCES.
51242         * modules/stdint (Makefile.am): Remove explicit dependency on
51243         $(STDINT_H), redundant through BUILT_SOURCES.
51244         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51245         Remove explicit dependency on $(SYSEXITS_H).
51246         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51247
51248 2005-07-18  Simon Josefsson  <jas@extundo.com>
51249
51250         * lib/check-version.c (check_version): Accept identical versions too.
51251
51252 2005-07-18  Bruno Haible  <bruno@clisp.org>
51253
51254         * modules/lock: New file.
51255         * MODULES.html.sh (Multithreading): New section.
51256
51257 2005-07-18  Bruno Haible  <bruno@clisp.org>
51258
51259         * m4/lock.m4: New file, from GNU gettext.
51260
51261 2005-07-18  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/lock.h: New file, from GNU gettext.
51264         * lib/lock.c: New file, from GNU gettext.
51265
51266 2005-07-18  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/lock.h (gl_once_t): New type.
51269         (gl_once_define, gl_once): New macros.
51270         * lib/lock.c (fresh_once): New variable.
51271         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51272         functions.
51273
51274 2005-07-16  Simon Josefsson  <jas@extundo.com>
51275
51276         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51277         workaround, suggested by Bruno.
51278
51279 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         * modules/xalloc (Depends-on): Add xalloc-die.
51282         * modules/xvasprintf (Depends-on): Add xalloc-die.
51283
51284 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51287         with a minor change.
51288
51289 2005-07-15  Bruno Haible  <bruno@clisp.org>
51290
51291         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51292         When using lib/poll.c, define poll as rpl_poll.
51293
51294 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51295
51296         * modules/argp (Depends-on): Remove unlocked-io.
51297
51298 2005-07-14  Derek Price  <derek@ximbiot.com>
51299
51300         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51301         for glob symlink bug.
51302
51303 2005-07-14  Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51306         Instead, test for *_unlocked function declarations directly.
51307
51308 2005-07-11  Simon Josefsson  <jas@extundo.com>
51309
51310         * modules/size_max: New file.
51311
51312         * modules/xsize: Depend on size_max module for size_max.m4.
51313
51314 2005-07-11  Simon Josefsson  <jas@extundo.com>
51315
51316         * lib/size_max.h: New file.
51317
51318 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51321         copyright symbol and the year.
51322         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51323         (version_etc_va): Use parameterized copyright notice.
51324         Reword to conform to the current GNU coding standards.
51325
51326 2005-07-11  Karl Berry  <karl@gnu.org>
51327
51328         * doc/gnulib.texi (Quoting): new node.
51329         (Initial import): more info, from Patrice.
51330
51331 2005-07-11  Bruno Haible  <bruno@clisp.org>
51332
51333         * gnulib-tool (func_usage): Document option --avoid.
51334         (Command line options): Handle --avoid.
51335         (func_acceptable): New function.
51336         (func_modules_transitive_closure): Use it.
51337
51338 2005-07-11  Bruno Haible  <bruno@clisp.org>
51339
51340         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51341         Reported by Jim Meyering.
51342
51343 2005-07-10  Bruno Haible  <bruno@clisp.org>
51344
51345         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51346         Needed when size_t is smaller than 'unsigned int'.
51347         Reported by Paul Eggert.
51348
51349 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51350
51351         * modules/argp (Depends-on): Add unlocked-io
51352
51353 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51354
51355         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51356         block of defines.
51357
51358 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51359
51360         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51361         fix now.
51362
51363 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51364         and Paul Eggert  <eggert@cs.ucla.edu>
51365
51366         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51367         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51368
51369 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         * modules/regex (Files): Add lib/regex_internal.c,
51372         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51373         (Depends-on): Add extensions.
51374         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51375
51376 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51377
51378         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51379         pathconf.
51380         * m4/same.m4 (gl_SAME): Likewise.
51381         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51382
51383         * m4/regex.m4: Adjust to new libc regex implementation.
51384         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51385         all the .c and .h parts of (the new) regex.
51386         Quote the m4 stuff better.
51387         Check for RE_ICASE bug of old gnulib.
51388         Check for REG_STARTEND of recent libc.
51389         Rename local variables from jm_* to gl_*.
51390         Quote operand of "test -f".
51391         Say "recent enough" version of libc, not "version 2".
51392         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51393         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51394         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51395         Remove check for btowc, isascii.
51396         Require AM_LANGINFO_CODESET.
51397
51398 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51399
51400         * lib/regex.c, regex.h: Sync from libc.
51401         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51402         * lib/regexec.c:
51403         New files, synced from libc, except that regex_internal.h
51404         currently has a small porting fix.
51405
51406 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51409         regex_internal.c, regexec.c.
51410         Add regex_internal.h too, but as a comment, since the libc version
51411         is currently broken in gnulib mode.
51412
51413 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         Support programs like Emacs that use gnulib but not gettext.
51416         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51417         * modules/gettext-h: New file.
51418         * modules/gettext (Files): Remove lib/gettext.h.
51419         (Depends-on): Add gettext-h.
51420         (Makefile.am): Remove lib_SOURCES.
51421         * modules/argmatch, modules/c-stack, modules/closeout:
51422         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51423         * modules/execute, modules/file-type, modules/getaddrinfo:
51424         * modules/getopt, modules/human, modules/javacomp:
51425         * modules/javaexec, modules/mkdir-p, modules/obstack:
51426         * modules/openat, modules/pagealign_alloc, modules/pipe:
51427         * modules/quotearg, modules/regex, modules/rpmatch:
51428         * modules/unicodeio, modules/userspec, modules/version-etc:
51429         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51430         * modules/xsetenv:
51431         Depend on gettext-h, not gettext.
51432
51433 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * gnulib-tool (func_import): Add support for 'public domain' license.
51436         * modules/alloca, modules/atexit, modules/memmove:
51437         Now public domain, not GPL.
51438         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51439         * modules/realloc, modules/strerror, modules/strtod:
51440         Now LGPL, not GPL.
51441
51442 2005-07-05  Bruno Haible  <bruno@clisp.org>
51443
51444         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51445         autoconf CVS. Needed for mingw.
51446
51447 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51448
51449         Remove the dependency of the strftime module on the tzset module.
51450         * modules/strftime (Depends-on): Remove dependency on tzset.
51451
51452 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         Remove the dependency of the strftime module on the tzset module.
51455         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51456         gl_FUNC_TZSET_CLOBBER.
51457
51458 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         Remove the dependency of the strftime module on the tzset module.
51461         * lib/strftime.c (my_strftime)
51462         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51463         Copy the input structure, to work around some of the bug with
51464         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51465         Solaris releases, you should also use the tzset module, but we won't
51466         require it as a dependency any more since we don't want LGPLed code
51467         to depend on GPLed code.
51468
51469 2005-07-02  Jim Meyering  <jim@meyering.net>
51470
51471         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51472         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51473         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51474         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51475
51476 2005-07-02  Jim Meyering  <jim@meyering.net>
51477
51478         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51479
51480 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51481
51482         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51483         declares only 'struct timespec;' (!).
51484
51485 2005-07-01  Jim Meyering  <jim@meyering.net>
51486
51487         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51488         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51489         * lib/save-cwd.c, tempname.c:
51490         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51491         and don't include <sys/file.h>).
51492
51493 2005-06-29  Jim Meyering  <jim@meyering.net>
51494
51495         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51496         type name.  Use the variable name instead.
51497         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51498         Likewise.
51499
51500 2005-06-28  Simon Josefsson  <jas@extundo.com>
51501
51502         * modules/check-version (Files): Add check-version.m4.
51503
51504 2005-06-28  Simon Josefsson  <jas@extundo.com>
51505
51506         * m4/check-version.m4: New file, suggested by Jim Meyering
51507         <jim@meyering.net>.
51508
51509 2005-06-28  Simon Josefsson  <jas@extundo.com>
51510
51511         * lib/check-version.h, lib/check-version.c: New files.
51512
51513 2005-06-28  Simon Josefsson  <jas@extundo.com>
51514
51515         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51516         collision with global variable.  Better indentation.  Don't
51517         increment buffer pointer beyond buffer end.  Based on comments
51518         from Paul Eggert <eggert@cs.ucla.edu>.
51519
51520         * lib/base64.h: Indent.
51521
51522 2005-06-28  Simon Josefsson  <jas@extundo.com>
51523
51524         * doc/gnulib.texi (Library version handling): New section.
51525
51526 2005-06-28  Jim Meyering  <jim@meyering.net>
51527
51528         * check-module (find_included_lib_files): Hard-code another
51529         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51530         but modules/fts-lgpl (correctly) does not list those files.
51531
51532         * modules/canonicalize (Files): Add lib/pathmax.h.
51533
51534 2005-06-25  Simon Josefsson  <jas@extundo.com>
51535
51536         * modules/check-version: New file.
51537
51538 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51539
51540         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51541         initializer of struct addrinfo, as an indication that we don't
51542         care how many members the structure has.
51543
51544 2005-06-24  Derek Price  <derek@ximbiot.com>
51545         and Bruno Haible  <bruno@clisp.org>
51546
51547         Remove stat module & update lstat.
51548         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51549         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51550         * m4/stat.m4: Remove this file.
51551
51552 2005-06-24  Derek Price  <derek@ximbiot.com>
51553         and Bruno Haible  <bruno@clisp.org>
51554
51555         Remove stat module & update lstat.
51556         * lib/stat.c: Remove this file...
51557         (slash_aware_lstat): ...moving this content and its support...
51558         * lib/lstat.c (rpl_lstat): ...into here.
51559         * lib/lstat.h: New file.
51560
51561 2005-06-24  Derek Price  <derek@ximbiot.com>
51562         and Bruno Haible  <bruno@clisp.org>
51563
51564         Remove stat module & update lstat.
51565         * config/srclist.txt (libc sources): Remove stat.
51566
51567 2005-06-24  Derek Price  <derek@ximbiot.com>
51568         and Bruno Haible  <bruno@clisp.org>
51569
51570         Remove stat module & update lstat.
51571         * MODULES.html.sh (stat): Remove.
51572         * MODULES.html: Regenerated.
51573         * modules/lstat (Description): Correct function name.
51574         (Files): Add "lstat.h".
51575         (Depends-on): Remove stat, add xalloc, stat-macros.
51576         * modules/stat: Remove this file.
51577         (Include): Add "lstat.h", remove <sys/stat.h>.
51578
51579 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51582         (ranged_convert): Don't save conversion in a temporary struct.
51583         This causes a warning with GCC 4.0.0, and anyway in the typical
51584         case it's not worth the extra 100 bytes or so of code.
51585         (ranged_convert, __mktime_internal): When calling a function via a
51586         pointer P, use P () rather than (*P) (), as we now assume C89 or
51587         better.
51588
51589 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51592         "who -r" failed to give output.  Problem reported by Tim Waugh.
51593
51594         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51595         (xcalloc): Use it to avoid needless tests.
51596         Problem reported by Jim Meyering.
51597
51598 2005-06-20  Derek Price  <derek@ximbiot.com>
51599
51600         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51601         unnecessary for Autoconfs > 2.59c.
51602
51603 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51604
51605         * lib/argp.h (__option_is_short): Check upper limit of
51606         __key. Isprint() requires its argument to have the value
51607         of an unsigned char or EOF.
51608
51609 2005-06-16  Jim Meyering  <jim@meyering.net>
51610
51611         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51612         when either N or S is zero.
51613
51614 2005-06-16  Derek Price  <derek@ximbiot.com>
51615
51616         * m4/bison.m4: Declare YACC & YFLAGS precious.
51617
51618 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51619
51620         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51621         multibyte string or pattern, fall back on unibyte matching.
51622         Problem reported by James Youngman.
51623
51624 2005-06-08  Bruno Haible  <bruno@clisp.org>
51625
51626         * modules/csharpcomp: New file.
51627         * MODULES.html.sh (C#): Add csharpcomp.
51628
51629 2005-06-08  Bruno Haible  <bruno@clisp.org>
51630
51631         * m4/csharpcomp.m4: New file, from GNU gettext.
51632
51633 2005-06-08  Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/csharpcomp.h: New file, from GNU gettext.
51636         * lib/csharpcomp.c: New file, from GNU gettext.
51637         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51638
51639 2005-06-08  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51642         warning on mingw.
51643
51644 2005-06-07  Derek Price  <derek@ximbiot.com>
51645
51646         Sync from CVS.
51647         * lib/glob_.h: Indent nested #ifdef.
51648
51649 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         Sync from coreutils.
51652         Use "file name" when talking about file names, instead of "filename"
51653         or "path", as per the GNU coding standards.
51654         * lib/mkdir-p.c: Renamed from makepath.c.
51655         (make_dir_parents): Renamed from make_path.  All callers changed.
51656         * lib/mkdir-p.h: Likewise.  All includers changed.
51657         * lib/filenamecat.c: Renamed from path-concat.c.
51658         (file_name_concat): Renamed from path_concat.  All callers changed.
51659         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51660         * lib/filenamecat.h: Likewise.  All includers changed.
51661         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51662         in comments or local variable names.
51663         * lib/basename.c: Likewise.
51664         * lib/canonicalize.c, canonicalize.h: Likewise.
51665         * lib/dirname.c, dirname.h: Likewise.
51666         * lib/euidaccess.c: Likewise.
51667         * lib/exclude.c: Likewise
51668         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51669         * lib/fsusage.c, fsuage.h: Likewise.
51670         * lib/fts.c, fts_.h: Likewise.
51671         * lib/getcwd.c: Likewise.
51672         * lib/getloadavg.c: Likewise.
51673         * lib/mkstemp.c: Likewise.
51674         * lib/mountlist.c, mountlist.h: Likewise.
51675         * lib/openat.c, openat.h: Likewise.
51676         * lib/readlink-stub.c: Likewise.
51677         * lib/readutmp.c, readutmp.h: Likewise.
51678         * lib/rename.c: Likewise.
51679         * lib/rmdir.c: Likewise.
51680         * lib/same.c: Likewise.
51681         * lib/savedir.c: Likewise.
51682         * lib/stripslash.c: Likewise.
51683         * lib/tempname.c: Likewise.
51684         * lib/xreadlink.c: Likewise.
51685         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
51686         All uses changed.
51687         * lib/exclude.h: Likewise.
51688
51689         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
51690         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51691         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
51692         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51693         * lib/pathmax.h: Include <limits.h> unconditionally, since other
51694         files have been getting away with it for years (MORE/BSD 4.3
51695         is extinct now).
51696         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
51697         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
51698
51699         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
51700         Define to 256, not 255, as per modern POSIX.
51701
51702 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51703
51704         Sync from coreutils.
51705         Use "file name" when talking about file names, instead of "filename"
51706         or "path", as per the GNU coding standards.
51707         * MODULES.html.sh: mkdir-p renamed from makepath.
51708         filenamecat renamed from path-concat.
51709         * modules/filenamecat: Renamed from modules/path-concat.
51710         (Files): filenamecat.h and filenamecat.c renamed from
51711         path-concat.h and path-concat.c.
51712         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
51713         (Include): filenamecat.h, not path-concat.h.
51714         * modules/mkdir-p: Renamed from modules/makepath.
51715         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
51716         makepath.c.
51717         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
51718         (Include): mkdir-p.h, not makepath.h.
51719
51720 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         Sync from coreutils.
51723         * m4/mkdir-p.m4: Renamed from makepath.m4.
51724         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
51725         Rename files from makepath.c to mkdir-p.c, and from
51726         makepath.h to mkdir-p.h.
51727         * m4/filenamecat.m4: Renamed from path-concat.m4.
51728         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
51729         Rename files from path-concat.c to filenamecat.c,
51730         and from path-concat.h to filenamecat.h.
51731         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
51732         "file name" in local variables or comments.
51733         * m4/rename.m4: Likewise.
51734
51735 2005-06-01  Bruno Haible  <bruno@clisp.org>
51736
51737         * modules/csharpexec: New file.
51738         * MODULES.html.sh (C#): New section.
51739
51740 2005-06-01  Bruno Haible  <bruno@clisp.org>
51741
51742         * m4/csharp.m4: New file, from GNU gettext.
51743         * m4/csharpexec.m4: New file, from GNU gettext.
51744
51745 2005-06-01  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/csharpexec.h: New file, from GNU gettext.
51748         * lib/csharpexec.c: New file, from GNU gettext.
51749         * lib/csharpexec.sh.in: New file, from GNU gettext.
51750
51751 2005-05-31  Derek Price  <derek@ximbiot.com>
51752             Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         Sync from cvs.
51755         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51756
51757 2005-05-31  Derek Price  <derek@ximbiot.com>
51758             Paul Eggert  <eggert@cs.ucla.edu>
51759
51760         Sync from cvs.
51761         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
51762
51763 2005-05-29  Derek Price  <derek@ximbiot.com>
51764
51765         * config/srclist.txt (glob_.h, glob.c): Add these files.
51766
51767 2005-05-29  Derek Price  <derek@ximbiot.com>
51768
51769         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
51770         * modules/glob: New file.
51771         * modules/getlogin_r: Add link to POSIX spec in description.
51772
51773 2005-05-29  Derek Price  <derek@ximbiot.com>
51774             Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * m4/glob.m4: New file.
51777
51778 2005-05-29  Derek Price  <derek@ximbiot.com>
51779             Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * lib/glob_.h, lib/glob.c: New files.
51782
51783 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * modules/fts (Files): Remove m4/inttypes-pri.m4.
51786         * modules/fts-lgpl (Depends-on): Remove gettext.
51787
51788 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51789
51790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
51791         and don't require gt_INTTYPES_PRI.
51792
51793 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
51796
51797         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
51798         the configuration hassle isn't worth it.
51799         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
51800         (LONGEST_MODIFIER, PRIuMAX): Remove.
51801
51802 2005-05-27  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/getlogin_r.h: Remove second include of <stddef.h>.
51805
51806 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
51809         _POSIX_PTHREAD_SEMANTICS for Solaris.
51810
51811 2005-05-25  Derek Price  <derek@ximbiot.com>
51812
51813         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
51814
51815 2005-05-25  Derek Price  <derek@ximbiot.com>
51816             Paul Eggert  <eggert@cs.ucla.edu>
51817
51818         * modules/getlogin_r, m4/getlogin_r.m4: New files.
51819         * lib/getlogin_r.c, getlogin_r.h: New files.
51820
51821 2005-05-25  Bruno Haible  <bruno@clisp.org>
51822             Derek Price  <derek@ximbiot.com>
51823
51824         * lib/getlogin_r.h: Simplify API documentation.
51825
51826 2005-05-23  Derek Price  <derek@ximbiot.com>
51827
51828         * modules/minmax (Files): Add m4/minmax.m4.
51829         (configure.ac): Add gl_MINMAX.
51830
51831 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
51834         so that unistd-safer.h (GPL'ed code) need not be included.
51835
51836 2005-05-22  Bruno Haible  <bruno@clisp.org>
51837
51838         * m4/minmax.m4: New file.
51839         Based on a patch by Derek Price <derek@ximbiot.com>.
51840
51841 2005-05-22  Bruno Haible  <bruno@clisp.org>
51842
51843         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
51844         (INT64_MIN): Fix definition.
51845         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
51846
51847         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
51848         NEED_SIGNED_INT_TYPES.
51849
51850         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
51851         HAVE_SYSTEM_INTTYPES.
51852
51853 2005-05-22  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
51856         Also include <sys/param.h> if it defines MIN, MAX.
51857         Based on a patch by Derek Price <derek@ximbiot.com>.
51858
51859 2005-05-21  Jim Meyering  <jim@meyering.net>
51860
51861         * modules/fts (Files): Add m4/inttypes-pri.m4.
51862         (Depends-on): Add lstat and remove gettext.  Alphabetize.
51863
51864 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         New fts module.
51867         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
51868         (setup_dir, free_dir): New functions.
51869         (enter_dir, leave_dir): Define trivial
51870         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
51871         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
51872         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
51873         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
51874         Move to fts-cycle.c.
51875         (fts_open): Use setup_dir.
51876         (fts_close): Use free_dir.
51877         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
51878         This adds a label and some gotos, but the alternatives were messier.
51879         Check for memory allocation failure when entering a dir.
51880         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
51881         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
51882         (FTS): New member fts_cycle, that is a union that contains the
51883         old active_dir_ht and cycle_state.  All uses changed to mention
51884         fts_cycle.ht and fts_cycle.state.
51885         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
51886         fts.c, with the following changes:
51887         (setup_dir, free_dir): New functions.
51888         (enter_dir): Now returns bool.  Return true if successful, false
51889         if memory exhausted.  All callers changed.
51890         Do not bother partly cleaning up on
51891         memory allocation failure; that is free_dir's job.
51892         However, free ad if hash_insert fails, to avoid memory leak.
51893         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
51894         fts->fts_options to see which union member to use.
51895
51896 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51897
51898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
51899         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
51900
51901 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51902
51903         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
51904
51905 2005-05-20  Jim Meyering  <jim@meyering.net>
51906
51907         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
51908         Now a macro, to pacify GCC.
51909
51910 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51911
51912         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
51913         of -1.
51914
51915 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
51916
51917         * lib/chown.c (rpl_chown): Return -1 on failure.
51918
51919 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51920
51921         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
51922         Don't check for stddef.h.
51923         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
51924         don't use its results.
51925         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
51926         since we include them unconditionally.  Don't require
51927         AM_STDBOOL_H, since stdbool is a prerequisite.
51928         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
51929         since we assume C89 or better.
51930         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
51931         as we don't use their results.
51932         Don't check for fchdir, memmove, memset, strrchr, as we use
51933         them unconditionally.
51934         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
51935         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
51936
51937 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
51938
51939         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
51940         Include <stddef.h> unconditionally, since we assume C89 now.
51941         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
51942         * lib/fts.c: Include fts_.h first, to check interface.
51943         Do not include intprops.h; no longer needed.
51944         Include cycle-check.h and hash.h, since fts_.h no longer does.
51945         Remove unnecessary casts of closedir to void.
51946         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
51947         decide whether to decrement nlinks.
51948         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
51949         (FTS): Use struct hash_table * instead of Hash_table, so that
51950         we no longer need to include hash.h here.
51951
51952 2005-05-18  Jim Meyering  <jim@meyering.net>
51953
51954         * modules/dirfd (License): Change to LGPL.  Most of the code
51955         is already in the public domain.
51956
51957 2005-05-18  Jim Meyering  <jim@meyering.net>
51958
51959         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
51960         Reported by Yoann Vandoorselaere.
51961
51962 2005-05-17  Jim Meyering  <jim@meyering.net>
51963
51964         * m4/fts.m4: New file, from coreutils.
51965
51966 2005-05-17  Jim Meyering  <jim@meyering.net>
51967
51968         * lib/fts.c, lib/fts_.h: New files, from coreutils.
51969
51970 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51971
51972         Sync from coreutils.
51973         * m4/unlinkdir.m4: New file.
51974
51975 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         Sync from coreutils.
51978         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
51979         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
51980         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
51981         White space changes only.
51982         * lib/makepath.c (make_path): Port to hosts where leading "//" is
51983         special.
51984         * lib/yesno.c: Include getline.h, not ctype.h.
51985         (yesno): Don't remove leading white space; POSIX doesn't allow it.
51986         Use getline to remove arbitrary restriction on response length.
51987
51988 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         * config/srclist-update: Spell out "Street" in FSF postal
51991         mail address; this is the style the FSF seems to prefer.
51992
51993         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
51994         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
51995         this updates FSF postal mail address.
51996
51997         Sync from coreutils.
51998         * modules/unlinkdir: New file.
51999         * modules/yesno (Depends-on): Add getline.
52000         * MODULES.html.sh (File system functions): Add unlinkdir.
52001
52002 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52003
52004         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52005         lib/strsep.h:
52006         Change the initial comment to refer to GPL, not LGPL.
52007         gnulib-tool will change it to LGPL as needed.
52008
52009         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52010         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52011         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52012         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52013         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52014         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52015         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52016         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52017         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52018         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52019         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52020         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52021         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52022         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52023         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52024         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52025         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52026         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52027         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52028         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52029         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52030         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52031         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52032         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52033         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52034         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52035         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52036         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52037         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52038         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52039         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52040         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52041         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52042         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52043         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52044         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52045         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52046         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52047         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52048         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52049         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52050         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52051         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52052         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52053         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52054         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52055         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52056         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52057         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52058         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52059         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52060         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52061         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52062         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52063         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52064         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52065         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52066         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52067         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52068         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52069         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52070         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52071         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52072         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52073         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52074         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52075         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52076         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52077         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52078         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52079         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52080         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52081         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52082         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52083         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52084         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52085         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52086         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52087         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52088         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52089         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52090         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52091         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52092         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52093         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52094         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52095         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52096         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52097         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52098         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52099         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52100         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52101         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52102         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52103         lib/yesno.c, lib/yesno.h:
52104         Update FSF postal mail address.
52105
52106 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52109         tests/test-memmem.c, tests/test-stpncpy.c:
52110         Update FSF postal mail address.
52111
52112 2005-05-13  Bruno Haible  <bruno@clisp.org>
52113
52114         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52115         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52116         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52117         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52118         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52119         Add support for 64-bit integers in the MSVC compiler.
52120
52121 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52122
52123         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52124
52125 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52126
52127         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52128
52129 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * doc/getdate.texi (General date syntax): Don't say that date
52132         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52133         Problem reported by Nic Ferrier.
52134
52135 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52136
52137         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52138         specified in ai_socktype. Fix invalid ai_protocol
52139         check. ai_protocol is usually set to 0 or depending on
52140         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52141         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52142         ai_socktype / ai_protocol in the returned addrinfo structure.
52143
52144 2005-05-10  Simon Josefsson  <jas@extundo.com>
52145
52146         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52147         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52148
52149 2005-05-10  Karl Berry  <karl@gnu.org>
52150
52151         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52152         (from http://www.gnu.org/licenses).
52153         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52154         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52155         fdl.texi suffices.
52156
52157 2005-05-10  Karl Berry  <karl@gnu.org>
52158
52159         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52160         (COPYING.DOC): remove.
52161
52162         * config/srclist-update: new FSF address.
52163
52164 2005-05-10  Derek Price  <derek@ximbiot.com>
52165
52166         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52167         possible.
52168
52169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52170             Bruno Haible  <bruno@clisp.org>
52171
52172         * modules/inet_ntop: New file.
52173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52174         inet_ntop.
52175
52176 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52177             Bruno Haible  <bruno@clisp.org>
52178
52179         * m4/inet_ntop.m4: New file.
52180
52181 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52182             Bruno Haible  <bruno@clisp.org>
52183
52184         * lib/inet_ntop.h: New file.
52185         * lib/inet_ntop.c: New file, from glibc with modifications.
52186
52187 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * modules/time_r (License): Change to LGPL.
52190         * modules/extensions (License): Change to LGPL.  Actually,
52191         the license is more permissive than that, but currently gnulib-tool
52192         doesn't know how to handle more-permissive licenses.
52193
52194         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52195         Problem reported by Dave Love.
52196
52197 2005-05-08  Jim Meyering  <jim@meyering.net>
52198
52199         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52200         blank.
52201
52202 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * modules/argmatch (Depends-on): Add stdbool.
52205         * modules/backupfile (Depends-on): Likewise.
52206         * modules/chdir-long (Depends-on): Likewise.
52207         * modules/closeout (Depends-on): Likewise.
52208         * modules/cycle-check (Depends-on): Likewise.
52209         * modules/dirname (Depends-on): Likewise.
52210         * modules/fnmatch (Depends-on): Likewise.
52211         * modules/fsusage (Depends-on): Likewise.
52212         * modules/fwriteerror (Depends-on): Likewise.
52213         * modules/getcwd (Depends-on): Likewise.
52214         * modules/getloadavg (Depends-on): Likewise.
52215         * modules/hard-locale (Depends-on): Likewise.
52216         * modules/makepath (Depends-on): Likewise.
52217         * modules/mountlist (Depends-on): Likewise.
52218         * modules/nanosleep (Depends-on): Likewise.
52219         * modules/posixtm (Depends-on): Likewise.
52220         * modules/quotearg (Depends-on): Likewise.
52221         * modules/readtokens (Depends-on): Likewise.
52222         * modules/readtokens0 (Depends-on): Likewise.
52223         * modules/readutmp (Depends-on): Likewise.
52224         * modules/save-cwd (Depends-on): Likewise.
52225         * modules/strftime (Depends-on): Likewise.
52226         * modules/userspec (Depends-on): Likewise.
52227         * modules/utimecmp (Depends-on): Likewise.
52228         * modules/xgetcwd (Depends-on): Likewise.
52229         * modules/xnanosleep (Depends-on): Likewise.
52230         * modules/xstrtod (Depends-on): Likewise.
52231         * modules/yesno (Depends-on): Likewise.
52232
52233 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52234
52235         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52236         needless checks.
52237
52238 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52239
52240         Merge from coreutils.  Among other things,
52241         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52242         * lib/fd-safer.c: New file.
52243         * lib/fcntl-safer.h, open-safer.c: Remove.
52244         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52245         * lib/dup-safer.c: Include unistd-safer.h first.
52246         Don't include errno.h.
52247         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52248         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52249         * lib/file-type.c: Rely on file-type.h change.
52250         * lib/getloadavg.c: Include unistd-safer.h.
52251         (getloadavg): Use safer open.
52252         * lib/getusershell.c: Include "stdio-safer.h".
52253         (getusershell): Use safer fopen.
52254         * lib/long-options.c (long_options): Use NULL rather than 0.
52255         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52256         'free'.
52257         * lib/modechange.c: Likewise.
52258         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52259         (MODE_DONE): New constant.
52260         (struct mode_change): Remove 'next' member.
52261         (make_node_op_equals): New function; like the old one of the
52262         same name, except it allocates an array.
52263         (mode_compile, mode_create_from_ref): Use it.
52264         (mode_compile): Allocate result as an array, not a linked list.
52265         Parse octal string ourself, so that we catch mistakes like "+0".
52266         (mode_adjust): Arg is an array, not a linked list.
52267         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52268         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52269         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52270         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52271         Remove.  This is now stat-macros.h's job.
52272         (talloc): Remove.  All callers replaced by xalloc, so that
52273         our invokers don't have to worry about reporting memory failures.
52274         (make_node_op_equals): Remove.
52275         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52276         New constants.
52277         (struct mode_change): Moved here from modechange.h.
52278         (mode_append_entry): Remove.
52279         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52280         apps to have incorrect behavior.  Use simpler algorithm for head
52281         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52282         Detect more invalid usages rather than having somewhat-random behavior.
52283         Don't insert an "a=" action, as that leads to incorrect behavior.
52284         (mode_compile, mode_create_from_ref): Return NULL on error instead
52285         of an enum, since now there's only one way to have an error.  All
52286         callers changed.
52287         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52288         at the correct time.  Simplify calculation of "+u" and its ilk.
52289         Don't mishandle "+X".
52290         (mode_free): Remove "register" and localize decls.
52291         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52292         (struct mode_change): Move to modechange.c; callers don't
52293         need to see this stuff.
52294         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52295         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52296         (mode_change, mode_adjust): Reflect the new signatures noted above.
52297         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52298         that might redefine system include files.
52299         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52300         (my_usleep): Use NULL rather than (void *) 0.
52301         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52302         Use siginterrupt to specify that system calls should be interrupted.
52303         (rpl_nanosleep): Move initialization of suspended closer to call of
52304         my_usleep.
52305         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52306         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52307         (desirable_utmp_entry): New function.
52308         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52309         using x2nrealloc, to simplify logic.
52310         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52311         size calculation.  Do not assume utmp file is a regular file.
52312         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52313         (READ_UTMP_CHECK_PIDS): New constant.
52314         * lib/save-cwd.c: Include unistd-safer.h.
52315         (save_cwd): Use fd_safer.
52316         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52317         [!_LIBC] Include "stat-macros.h" instead.
52318         * lib/unistd-safer.h (fd_safer): New decl.
52319
52320 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * modules/getloadavg (Depends-on): Add unistd-safer.
52323         * modules/getusershell (Depends-on): Add stdio-safer.
52324         * modules/lstat (Depends-on): Remove xalloc.
52325         * modules/mkstemp (Depends-on): Add stat-macros.
52326         * modules/modechange (Depends-on): Remove xstrtol.
52327         Add stat-macros, xalloc.
52328         * modules/save-cwd (Depends-on): Add unistd-safer.
52329         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52330         * modules/unistd-safer (Files): Add lib/fd-safer.c
52331         (Makefile.am): Remove lib_SOURCES.
52332
52333         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52334         Remove fcntl-safer; unistd-safer supersedes it.
52335
52336 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52339         AC_HEADER_STAT.
52340         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52341         (gl_PREREQ_CHOWN): Remove.
52342         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52343         it.  Don't require AC_HEADER_STAT.
52344         (gl_PREREQ_LSTAT): Remove.
52345         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52346         Don't require AC_HEADER_STAT.
52347         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52348         (gl_PREREQ_RMDIR): Remove.
52349         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52350         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52351         the stat-macros module a prerequisite.
52352         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52353         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52354         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52355         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52356         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52357         variable names.
52358         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52359         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52360         variable prefixes.
52361         * m4/fcntl-safer.m4: Remove.
52362         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52363         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52364         Invoke gl_PREREQ_FD_SAFER.
52365         (gl_PREREQ_FD_SAFER): New macro.
52366         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52367         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52368         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52369         Remove duplicate call to AC_LIBOBJ(readutmp).
52370         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52371
52372         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52373         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52374
52375 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * MODULES.html.sh (Misc): Add byteswap.
52378
52379 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52380
52381         * modules/getcwd (Depends-on): Add extensions.
52382         * modules/openat (Depends-on): Likewise.
52383
52384 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52385
52386         * modules/byteswap: New file.
52387
52388 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52389
52390         * m4/byteswap.m4: New file.
52391
52392 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52393
52394         * lib/byteswap_.h: New file.
52395
52396 2005-04-25  Karl Berry  <karl@gnu.org>
52397
52398         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52399
52400 2005-04-25  Albert Chin  <china@thewrittenword.com>
52401
52402         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52403         Toolkit C bug.
52404
52405 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52406
52407         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52408         (func_ln_if_changed) Remove forcibly for no error message
52409         in case file does not exist.
52410
52411 2005-04-19  Simon Josefsson  <jas@extundo.com>
52412
52413         * gnulib-tool (Options): Make --symlink mean --symbolic.
52414
52415 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52416
52417         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52418
52419 2005-04-16  Simon Josefsson  <jas@extundo.com>
52420
52421         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52422
52423 2005-04-15  Simon Josefsson  <jas@extundo.com>
52424
52425         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52426
52427 2005-04-15  Simon Josefsson  <jas@extundo.com>
52428
52429         * gnulib-tool: Rename --symlink to --symbolic.
52430
52431 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52432
52433         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52434         symbolic links to files instead of copying/moving.  Add --aux-dir,
52435         specifying directory relative --dir where auxiliary build tools
52436         are placed.
52437
52438 2005-04-14  Bruno Haible  <bruno@clisp.org>
52439
52440         * modules/allocsa (License): Change to LGPL.
52441         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52442
52443 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52444
52445         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52446         that "UTC +1 second" continues to work.  Problem reported
52447         by Dmitry V. Levin.
52448         (relunit_snumber): New rule.
52449         (relunit): Use it.
52450
52451 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         * lib/getdate.y (universal_time_zone_table): New constant.
52454         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52455         universal_time_zone_table.
52456         (lookup_zone): Prefer universal_time_zone_table to
52457         local_time_zone_table, so that "GMT" time stamps are allowed in
52458         London during the summer.  Problem reported by Ian Abbott.
52459
52460 2005-04-12  Jim Meyering  <jim@meyering.net>
52461
52462         * lib/human.c (humblock): Set *options even when returning due to
52463         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52464         warning from gcc-4.
52465
52466 2005-04-09  Jim Meyering  <jim@meyering.net>
52467
52468         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52469         -Wuninitialized: initialize tm0.tm_year.
52470
52471 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52474         count, since there's no maximum.  All uses changed.
52475         Add member dsts_seen.
52476         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52477         not being INT_MAX.
52478         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52479         Use pc_rels_seen to decide whther a date is absolute.
52480
52481         * lib/getdate.y (number): Don't overwrite year.
52482         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52483         check.
52484
52485 2005-04-02  Simon Josefsson  <jas@extundo.com>
52486
52487         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52488         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52489
52490 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52491
52492         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52493         where no absolute path name can be longer than PATH_MAX.
52494
52495 2005-03-27  Jim Meyering  <jim@meyering.net>
52496
52497         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52498
52499 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52502         "one's complement" -> "ones' complement" in comment, as per Knuth.
52503         "value of type" -> "type or expression" in comment.
52504         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52505
52506 2005-03-26  Jim Meyering  <jim@meyering.net>
52507
52508         Comment nits.
52509         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52510         Correct typos: s/or/of/.
52511
52512 2005-03-26  Jim Meyering  <jim@meyering.net>
52513
52514         * modules/check-include-files: Move to ../ and rename to...
52515         * check-module: ...this.
52516
52517 2005-03-25  Jim Meyering  <jim@meyering.net>
52518
52519         * modules/xvasprintf (Files): Add xalloc.h.
52520
52521 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * modules/gettext (Files): config/config.rpath ->
52524         build-aux/config.rpath
52525         * modules/iconv (Files): Likewise.
52526         Problem reported by Oskar Liljeblad.
52527
52528 2005-03-23  Jim Meyering  <jim@meyering.net>
52529
52530         * modules/check-include-files: New script to check for
52531         missing dependencies, multiple includes, etc.
52532
52533         * modules/c-strtold (Depends-on): Add xalloc.
52534         * modules/c-strtod (Depends-on): Add xalloc.
52535         * modules/hash (Depends-on): Add xalloc.
52536         (Files): Remove lib/xalloc.h.
52537
52538         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52539         * modules/userspec (Files): Add lib/inttostr.h.
52540
52541 2005-03-23  Jim Meyering  <jim@meyering.net>
52542
52543         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52544
52545 2005-03-22  Jim Meyering  <jim@meyering.net>
52546
52547         * modules/stat-macros: New module.
52548         * modules/canonicalize, modules/euidaccess, modules/file-type,
52549         * modules/filemode, modules/lchown, modules/makepath,
52550         * modules/rmdir, modules/stat: Depend on new stat-macros module
52551         rather than listing lib/stat-macros.h manually.
52552         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52553
52554 2005-03-22  Jim Meyering  <jim@meyering.net>
52555
52556         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52557
52558 2005-03-22  Bruno Haible  <bruno@clisp.org>
52559
52560         * config/srclist.txt: Replace target directory 'config' with
52561         'build-aux'.
52562         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52563         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52564         ../build-aux/.
52565
52566 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52567
52568         * modules/chdir-long (Depends-on): Add mempcpy.
52569
52570         * modules/acl, modules/backupfile, modules/c-strtod,
52571         modules/c-strtold, modules/canon-host, modules/canonicalize,
52572         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52573         modules/exclude, modules/exitfail, modules/file-type,
52574         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52575         modules/getdate, modules/getline, modules/getpagesize,
52576         modules/getpass, modules/getugroups, modules/group-member,
52577         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52578         modules/inttostr, modules/long-options, modules/makepath,
52579         modules/md5, modules/memcasecmp, modules/memcoll,
52580         modules/modechange, modules/mountlist, modules/path-concat,
52581         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52582         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52583         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52584         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52585         modules/strftime, modules/strndup, modules/strverscmp,
52586         modules/timespec, modules/unlocked-io, modules/userspec,
52587         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52588         modules/yesno:
52589         Remove lib_SOURCES line from Makefile.am section, as this is now
52590         done automatically by the corresponding Autoconf macro.
52591
52592 2005-03-21  Jim Meyering  <jim@meyering.net>
52593
52594         Changes imported from coreutils.
52595
52596         * lib/cycle-check.c: Don't include xalloc.h.
52597
52598         * lib/path-concat.c: Don't include assert.h.
52599         (path_concat): Remove assertion that would have triggered
52600         for ABASE starting with more than one slash.
52601         Reported by Andreas Schwab.
52602
52603         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52604         properly when ABASE is an absolute file name.
52605         Correct the description of this function.
52606         Include <assert.h>.
52607         Add an assertion and a test driver.
52608         This fixes a bug introduced on 2004-07-02.
52609         Andreas Schwab reported the resulting failure of cp --parents:
52610         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52611
52612 2005-03-21  Jim Meyering  <jim@meyering.net>
52613
52614         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52615         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52616
52617 2005-03-21  Jim Meyering  <jim@meyering.net>
52618         and  Paul Eggert  <eggert@cs.ucla.edu>
52619
52620         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52621         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52622         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52623         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52624         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52625         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52626         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52627         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52628         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52629         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52630         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52631         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52632         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52633         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52634         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52635         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52636         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52637         for these modules.
52638
52639 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52642         (which shouldn't happen), generate nothing instead of returning 0
52643         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52644
52645 2005-03-16  Bruno Haible  <bruno@clisp.org>
52646
52647         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52648         HAVE_LONGLONG_64BIT.
52649
52650 2005-03-16  Bruno Haible  <bruno@clisp.org>
52651
52652         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52653         HAVE_LONGLONG_64BIT.
52654
52655 2005-03-16  Bruno Haible  <bruno@clisp.org>
52656
52657         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52658         HAVE_LONGLONG_64BIT.
52659
52660 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52663         reliably distinguish strftime failure from empty output on POSIX
52664         hosts.
52665
52666 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52667
52668         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52669         (iconv_string): Don't guess a size-zero buffer, as that might cause
52670         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52671         result would be 'too large', where 'too large' is (heuristically)
52672         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52673         overflow concerns.  This will prevent some unwanted malloc failures
52674         when the inputs are very large.
52675
52676 2005-03-15  Karl Berry  <karl@gnu.org>
52677
52678         * config/srclist.txt (config.rpath): from gettext.
52679         * config/config.rpath: update.
52680
52681 2005-03-15  Bruno Haible  <bruno@clisp.org>
52682
52683         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
52684         to 'negate'.
52685
52686         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
52687         variable.
52688
52689         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
52690         results.
52691
52692 2005-03-14  Simon Josefsson  <jas@extundo.com>
52693
52694         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
52695         <fx@gnu.org>.
52696
52697 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
52698
52699         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
52700         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
52701         intprops.h.
52702         * lib/strtol.c: Likewise.
52703
52704 2005-03-14  Jim Meyering  <jim@meyering.net>
52705
52706         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
52707         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
52708         to be nonzero so that we (and caller) can detect the difference
52709         between a valid zero-length expansion and an error return, even
52710         when the underlying strftime fails before writing anything into
52711         that location.
52712
52713 2005-03-14  Bruno Haible  <bruno@clisp.org>
52714
52715         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
52716         Update from GNU gettext 0.14.3.
52717
52718 2005-03-10  Jim Meyering  <jim@meyering.net>
52719
52720         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
52721
52722 2005-03-10  Jim Meyering  <jim@meyering.net>
52723
52724         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
52725         so that this module works on systems without fchdir.
52726
52727 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         Factor int-properties macros into a single file, except for
52730         glibc-related files.
52731         * lib/intprops.h: New file.
52732         * lib/getloadavg.c: Include it instead of limits.h.
52733         (INT_STRLEN_BOUND): Remove.
52734         * lib/human.c: Include intprops.h.
52735         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
52736         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
52737         302/1000.
52738         * lib/inttostr.h: Include intprops.h instead of limits.h.
52739         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
52740         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
52741         for consistency with intprops.h.
52742         (time_t_is_integer, twos_complement_arithmetic): Use them.
52743         * lib/sig2str.h: Include <signal.h>, intprops.h.
52744         (INT_STRLEN_BOUND): Remove.
52745         * lib/strftime.c (TYPE_SIGNED): Remove.
52746         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
52747         * lib/strtol.c: Adjust comments to match intprops.h.
52748         * lib/userspec.c: Include intprops.h.
52749         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
52750         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
52751         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
52752         instead of rolling our own expressions.
52753         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
52754
52755         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
52756         instead of int.
52757         (my_strftime): Do not mishandle years close to INT_MAX, by doing
52758         the right thing even if adding 1900 would overflow.  Similarly
52759         for tm_mon + 1 and tm_yday + 1.
52760         Make %Y always equivalent to %C%y, and similarly for %G and %g.
52761         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
52762         (DO_SIGNED_NUMBER): New macro.
52763         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
52764
52765 2005-03-07  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
52768
52769 2005-03-07  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
52772
52773 2005-03-04  Derek R. Price  <derek@ximbiot.com>
52774
52775         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
52776         (func_import): Only replace files via --import when they have actually
52777         changed.
52778
52779 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52780
52781         * m4/mmap-anon.m4: New file.
52782         * m4/pagealign_alloc.m4: New file.
52783
52784 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52785             Bruno Haible  <bruno@clisp.org>
52786
52787         * modules/pagealign_alloc: New file.
52788         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
52789
52790 2005-03-03  Derek R. Price  <derek@ximbiot.com>
52791             Bruno Haible  <bruno@clisp.org>
52792
52793         * lib/pagealign_alloc.h: New file.
52794         * lib/pagealign_alloc.c: New file.
52795
52796 2005-03-03  Bruno Haible  <bruno@clisp.org>
52797
52798         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
52799         Use an all-permissive copyright notice, recommended by RMS.
52800
52801 2005-03-02  Bruno Haible  <bruno@clisp.org>
52802
52803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
52804         of AIX, the replacement has to be done only after <string.h> is
52805         included, therefore not in config.h. stpncpy.h does the replacement,
52806         and stpncpy.c uses it.
52807
52808 2005-03-02  Bruno Haible  <bruno@clisp.org>
52809
52810         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
52811         stpncpy.c uses it.
52812
52813 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
52816         The workaround isn't strictly needed for POSIX conformance, and
52817         it's too much of a pain to configure and maintain.  We'll ask
52818         people to fix their kernels instead.
52819         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
52820         (NANOSLEEP_BUG_WORKAROUND): Remove.
52821         (xnanosleep): Remove the workaround.
52822
52823 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52824
52825         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
52826         Reported by Derek Price.
52827         (Include): Add "timespec.h".
52828
52829         * modules/xnanosleep (Depends-on): Remove gethrxtime.
52830
52831 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
52834         to detect nanosleep bug.
52835
52836 2005-03-01  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
52839
52840 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52841
52842         * modules/gethrxtime: New file.
52843         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
52844         (Depends-on): Add gethrxtime.
52845         (configure.ac): Add gl_XNANOSLEEP.
52846         (Makefile.am): Remove lib_SOURCES line.
52847
52848 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52849
52850         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
52851         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
52852
52853 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
52856         * lib/timespec.h (gettime): Return void, since it always
52857         succeeds now.  All uses changed.
52858         * lib/gettime.c (gettime) Likewise.
52859         [HAVE_NANOTIME]: Prefer nanotime.
52860         Assume gettimeofday succeeds, as POSIX requires.
52861         Assime time () succeeds, since other code already does.
52862         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
52863         (timespec_subtract): Remove.
52864         (NANOSLEEP_BUG_WORKAROUND): New constant.
52865         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
52866         things considerably.  Use it only on GNU/Linux hosts, since the
52867         workaround shouldn't be needed elsewhere.
52868
52869 2005-02-24  Bruno Haible  <bruno@clisp.org>
52870
52871         * modules/gettext (Files): Add m4/glibc2.m4.
52872
52873 2005-02-24  Bruno Haible  <bruno@clisp.org>
52874
52875         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
52876         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
52877         * m4/progtest.m4:
52878         Update from GNU gettext 0.14.2.
52879         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
52880
52881 2005-02-24  Bruno Haible  <bruno@clisp.org>
52882
52883         * lib/localcharset.c: Update from GNU gettext 0.14.2.
52884         * lib/config.charset: Update from GNU gettext 0.14.2.
52885
52886 2005-02-24  Bruno Haible  <bruno@clisp.org>
52887
52888         * lib/gettext.h: Update from GNU gettext 0.14.2.
52889
52890 2005-02-23  Simon Josefsson  <jas@extundo.com>
52891
52892         * m4/iconvme.m4: New file.
52893
52894 2005-02-23  Jim Meyering  <jim@meyering.net>
52895
52896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
52897         change.
52898         Thanks to Bruno Haible for catching it.
52899
52900 2005-02-22  Simon Josefsson  <jas@extundo.com>
52901
52902         * modules/iconvme: New file.
52903
52904         * MODULES.html.sh: Add iconvme.
52905
52906 2005-02-22  Simon Josefsson  <jas@extundo.com>
52907
52908         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
52909
52910 2005-02-22  Simon Josefsson  <jas@extundo.com>
52911
52912         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
52913
52914 2005-02-22  Jim Meyering  <jim@meyering.net>
52915
52916         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
52917         s/ifndef/ifdef/.
52918
52919 2005-02-20  Neil Conway  <neilc@samurai.com>
52920
52921         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
52922         returned by OSX/Darwin if the specified buffer is not large
52923         enough for the hostname.
52924
52925 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52926
52927         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
52928         pass it to _help, otherwise the latter coredumps trying to
52929         dereference state.root_argp.
52930
52931 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * modules/chdir-long (Depends-on): Add memrchr.
52934         * modules/memrchr (Files): Add lib/memrchr.h.
52935         (Include): "memrchr.h".
52936
52937 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52938
52939         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
52940
52941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * lib/memrchr.h: New file.
52944         * lib/chdir-long.c: Include it.
52945         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
52946         Don't bother including stddef.h.
52947
52948 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52949
52950         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
52951         inclusion.
52952         Include <sys/types.h>, for dev_t.
52953         (ME_DUMMY, ME_REMOTE): Move from here....
52954         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
52955         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
52956         Dmitry V. Levin.
52957         Include mountlist.h first, to test the interface.
52958
52959 2005-01-29  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/progname.c (program_name): Initialize.
52962         Needed when linking statically on MacOS X.
52963
52964 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         Sync from coreutils.
52967         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
52968         (Depends-on): Add c-strtod.
52969         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
52970
52971 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         Sync from coreutils.
52974         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
52975
52976         Remove files that are specific to coreutils.
52977         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
52978
52979 2005-01-28  Bruno Haible  <bruno@clisp.org>
52980
52981         * modules/javacomp: New file.
52982         * MODULES.html.sh (Java): Add javacomp.
52983
52984 2005-01-28  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/javacomp.m4: New file, from GNU gettext.
52987
52988 2005-01-28  Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/javacomp.sh.in: New file, from GNU gettext.
52991         * lib/javacomp.h: New file, from GNU gettext.
52992         * lib/javacomp.c: New file, from GNU gettext.
52993
52994 2005-01-26  Simon Josefsson  <jas@extundo.com>
52995
52996         * lib/gai_strerror.c: Use GPL in header.
52997
52998 2005-01-26  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/javaexec: New file.
53001         * MODULES.html.sh (Java): Add javaexec.
53002
53003 2005-01-26  Bruno Haible  <bruno@clisp.org>
53004
53005         * m4/javaexec.m4: New file, from GNU gettext.
53006
53007 2005-01-26  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/javaexec.sh.in: New file, from GNU gettext.
53010         * lib/javaexec.h: New file, from GNU gettext.
53011         * lib/javaexec.c: New file, from GNU gettext.
53012
53013 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53014
53015         * modules/lchown (Depends-on): Remove lchown.h
53016
53017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53018
53019         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53020         must be defined if the header file was not found, in order
53021         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53022
53023 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53024
53025         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53026         initializers for struct pentry_state.
53027         (__argp_error): Check return value of __asprintf
53028         (__argp_failure): Translate error message
53029
53030         * lib/argp-parse.c: Removed braces around the expansion of N_()
53031
53032 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53033
53034         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53035         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53036         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53037         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53038         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53039         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53040         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53041         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53042         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53043         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53044         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53045         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53046         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53047         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53048         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53049         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53050         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53051         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53052         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53053         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53054         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53055         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53056         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53057         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53058         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53059         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53060         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53061         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53062         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53063         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53064         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53065         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53066         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53067         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53068         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53069         Use an all-permissive copyright notice, recommended by RMS.
53070
53071 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53072
53073         * modules/chdir-long (Depends-on): Remove mempcpy.
53074
53075 2005-01-21  Jim Meyering  <jim@meyering.net>
53076
53077         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53078         same value as for Solaris 9.
53079
53080         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53081         component length.  This included changing the parameter to be
53082         of type `char *' rather than `char const *'.
53083         * lib/chdir-long.h (chdir_long): Update prototype.
53084
53085         * lib/openat.c (fdopendir, fstatat): New functions.
53086         * lib/openat.h: Include headers required for use of DIR and struct
53087         stat.
53088         [AT_SYMLINK_NOFOLLOW]: Define.
53089         (fdopendir, fstatat): Add prototypes.
53090
53091 2005-01-21  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/classpath: New file.
53094         * MODULES.html.sh (Java): Add classpath.
53095
53096 2005-01-21  Bruno Haible  <bruno@clisp.org>
53097
53098         * lib/classpath.h: New file, from GNU gettext.
53099         * lib/classpath.c: New file, from GNU gettext.
53100
53101 2005-01-20  Simon Josefsson  <jas@extundo.com>
53102
53103         * modules/version-etc-fsf: New file.
53104
53105 2005-01-20  Simon Josefsson  <jas@extundo.com>
53106
53107         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53108         * lib/version-etc.c: Remove version_etc_copyright.
53109         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53110         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53111
53112 2005-01-20  Simon Josefsson  <jas@extundo.com>
53113
53114         * lib/base64.h (isbase64): Add.
53115
53116         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53117         using a unsigned prototype, don't inline.
53118         (base64_decode): Use it.
53119
53120 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53123         it.
53124
53125 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * lib/save-cwd.c (save_cwd): Remove code to support the case
53128         where fchdir is missing or flaky.
53129
53130 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53133
53134 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53137         AC_LIBSOURCES now does this.
53138         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53139         with new ullong_max module.
53140
53141 2005-01-19  Bruno Haible  <bruno@clisp.org>
53142
53143         * modules/sh-quote: New file.
53144         * MODULES.html.sh (Executing programs): Add sh-quote.
53145
53146 2005-01-19  Bruno Haible  <bruno@clisp.org>
53147
53148         * lib/sh-quote.h: New file, from GNU gettext.
53149         * lib/sh-quote.c: New file, from GNU gettext.
53150
53151 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         Merge from coreutils.
53154         * m4/ullong_max.m4: New file.
53155         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53156         (gl_MACROS): Assume localeconv exists.
53157
53158 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         Merge changes from coreutils, as described below in several
53161         changelogs dated today.
53162
53163         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53164         (O_DIRECTORY): Remove; not needed here, since "." must be
53165         a directory.  All uses removed.
53166         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53167         universal on Suns, and we also need to test for IRIX.
53168         Revamp code to use 'if' rather than '#if'.
53169         Avoid unnecessary comparison of cwd->desc to 0.
53170
53171         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53172         for known valid error numbers rather than observed invalid ones.
53173
53174 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53175
53176         * modules/ullong_max: New file.
53177
53178         * modules/chdir-long, modules/openat: New files.
53179         * modules/save-cwd (Depends-on): Depend on chdir-long.
53180         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53181
53182 2005-01-18  Jim Meyering  <jim@meyering.net>
53183
53184         Merge from coreutils.
53185         * m4/chdir-long.m4, m4/openat.m4: New files.
53186         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53187         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53188         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53189         is sane and DOES follow symlinks.  Besides, testing 20 different
53190         systems found no broken chown implementations.
53191         Prompted by a change in rsync's copy of this macro.
53192         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53193
53194         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53195
53196         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53197         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53198         NULL-means-set-to-current-time semantics.
53199         Remove temporary file immediately, rather than waiting
53200         for configure's at-exit trap code to do it.
53201
53202 2005-01-18  Jim Meyering  <jim@meyering.net>
53203
53204         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53205
53206         * lib/utimens.c (futimens): Account for the fact that futimes
53207         can also fail with errno == ENOSYS or errno == ENOENT.
53208         Patch from Dmitry V. Levin.
53209
53210         Change the name of the robust chdir function from chdir to chdir_long.
53211         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53212         (restore_cwd): Use chdir_long, not chdir.
53213         * lib/chdir-long.c: Renamed from chdir.c.
53214         * lib/chdir-long.h: Renamed from chdir.h.
53215         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53216         Hurd.
53217
53218 2005-01-18  Bruno Haible  <bruno@clisp.org>
53219
53220         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53221         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53222         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53223         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53224         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53225         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53226         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53227         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53228         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53229         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53230         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53231         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53232         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53233         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53234         Use an all-permissive copyright notice, recommended by RMS.
53235
53236 2005-01-18  Bob Proulx  <bob@proulx.com>
53237
53238         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53239         simplify offsetof() macro construct to avoid compile failure with
53240         native HP-UX 11.0 ANSI C compiler.
53241
53242 2005-01-17  Bruno Haible  <bruno@clisp.org>
53243
53244         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53245         redundant because stpncpy.m4 takes care of it.
53246
53247 2005-01-17  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53250
53251 2005-01-17  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53254         used.
53255
53256 2005-01-17  Bruno Haible  <bruno@clisp.org>
53257
53258         * lib/fwriteerror.h (fwriteerror): Change specification to include
53259         fclose.
53260         * lib/fwriteerror.c: Include <stdbool.h>.
53261         (fwriteerror): At the end, close the file stream. Record whether
53262         stdout was already closed.
53263
53264 2005-01-17  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/execute.c (environ): Declare if needed.
53267         * lib/pipe.c (environ): Likewise.
53268         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53269
53270 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53271
53272         * modules/argp: Depend on vsnprintf
53273
53274 2005-01-10  Jim Meyering  <jim@meyering.net>
53275
53276         * modules/closeout (Depends-on): Add atexit.
53277
53278 2005-01-06  Bruno Haible  <bruno@clisp.org>
53279
53280         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53281
53282 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53283
53284         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53285         definitions to be after all include files, to avoid collisions.
53286         Problem reported by Bob Proulx.
53287
53288 2005-01-04  Jim Meyering  <jim@meyering.net>
53289
53290         Changes imported from coreutils.
53291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53292         as the mkstemp template, use a temporary directory and an
53293         8.3-friendly template to avoid trouble on systems like DJGPP.
53294         Reported by Juan M. Guerrero via Stepan Kasal.
53295         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53296         close. Remove the temporary directory right away, rather than waiting
53297         for configure's at-exit trap code to do it.
53298         Suggestion from Stepan Kasal.
53299
53300 2005-01-01  Simon Josefsson  <jas@extundo.com>
53301
53302         * gnulib-tool: Print #include directives when --import'ing.
53303
53304 2004-12-28  Simon Josefsson  <jas@extundo.com>
53305
53306         * tests/test-base64.c: Include required header files.  Remove
53307         unused variables.
53308
53309 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53310
53311         * modules/error (Depends-on): Remove gettext.
53312
53313 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53314
53315         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53316         not needed.  This removes a dependency on the gettext module.
53317         [defined _LIBC]: Do not include <libintl.h>; not needed.
53318
53319 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53320
53321         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53322         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53323
53324 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53327         HAVE_DECL_STRTOLD.
53328
53329 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * modules/getdate (Depends-on): Remove alloca-opt.
53332
53333 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53334
53335         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53336
53337 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         * lib/argp-parse.c: Include <stddef.h>.
53340         (alignof, alignto): New macros.
53341         (parser_init): Don't assume that void * is aligned sufficiently
53342         for struct option.
53343
53344         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53345         need to extend the stack.
53346         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53347         large.
53348
53349 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53350
53351         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53352
53353 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53356         (2004-10-24) change.  Apparently this was a false alarm.
53357
53358         * modules/getdate: Depend on alloca-opt, not alloca.
53359
53360 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53363         Remove now-obsolete comment about AIX.
53364         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53365         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53366         (YYMAXDEPTH): New macro.
53367
53368 2004-12-18  Simon Josefsson  <jas@extundo.com>
53369
53370         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53371
53372 2004-12-18  Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53375
53376 2004-12-18  Bruno Haible  <bruno@clisp.org>
53377
53378         * lib/fatal-signal.c (fatal_signals): Make non-const.
53379         (init_fatal_signals): New function.
53380         (uninstall_handlers, install_handlers): Ignore signals that were set to
53381         SIG_IGN.
53382         (at_fatal_signal): Call init_fatal_signals.
53383         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53384         SIG_IGN.
53385         Reported by Paul Eggert.
53386
53387 2004-12-18  Bruno Haible  <bruno@clisp.org>
53388
53389         * doc/alloca.texi: New file.
53390         * doc/alloca-opt.texi: New file.
53391
53392 2004-12-17  Jim Meyering  <jim@meyering.net>
53393
53394         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53395         Otherwise, install-sh could exit with improper exit status when
53396         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53397
53398 2004-12-16  Simon Josefsson  <jas@extundo.com>
53399
53400         * tests/test-base64.c: Add license.
53401
53402 2004-12-15  Stepan Kasal  <address@hidden>
53403
53404         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53405
53406 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53407
53408         * modules/getcwd (Files): Add m4/d-ino.m4.
53409         Suggested by Mark D. Baushke.
53410
53411 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * lib/getdate.y (textint): New member "negative".
53414         (time_zone_hhmm): New function.
53415         Expect 14 shift-reduce conflicts, not 13.
53416         (o_colon_minutes): New rule.
53417         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53418         (yylex): Set the "negative" member of signed numbers.
53419
53420 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * doc/getdate.texi (Time of day items, Time zone items):
53423         Describe new formats +00:00, UTC+00:00.
53424
53425 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53428         spurious "-l"s.  Problem reported by Stepan Kasal.
53429
53430 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53433         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53434
53435 2004-12-04  Simon Josefsson  <jas@extundo.com>
53436
53437         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53438         Vandoorselaere <yoann@prelude-ids.org>.
53439
53440 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         Changes imported from coreutils.
53443         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53444         exist.
53445         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53446
53447 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53448
53449         Changes imported from coreutils.
53450         * lib/hard-locale.c: Assume <locale.h> exists.
53451         Include "strdup.h".
53452         (GLIBC_VERSION): New macro.
53453         (hard_locale): Assume setlocale exists.
53454         Rewrite to avoid #ifdef.
53455         Use strdup rather than malloc + strcpy.
53456         * lib/human.c: Assume <locale.h> exists.
53457         (human_readable): Assume localeconv exists.
53458
53459 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53460
53461         * modules/hard-locale (Depends-on): Add strdup.
53462
53463 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53464
53465         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53466         convert T2, not T.  (Imported from libc.)
53467
53468 2004-11-30  Simon Josefsson  <jas@extundo.com>
53469
53470         * modules/restrict (License): Change to LGPL.
53471
53472 2004-11-30  Simon Josefsson  <jas@extundo.com>
53473
53474         * m4/restrict.m4: Add copyright and copying conditions.
53475
53476 2004-11-30  Simon Josefsson  <jas@extundo.com>
53477
53478         * m4/base64.m4: New file.
53479
53480 2004-11-30  Simon Josefsson  <jas@extundo.com>
53481
53482         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53483         base64.
53484
53485         * tests/test-base64.c: New file.
53486
53487         * modules/base64: New file.
53488
53489 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53492         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53493
53494         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53495
53496 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53497
53498         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53499         (__getcwd.c): Don't restore errno; glibc doesn't.
53500         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53501         first, falling back to our code only if its results look suspicious.
53502         Ensure that the resulting buffer is only as large as necessary.
53503
53504         * lib/readutmp.c: Include readutmp.h first.
53505         Include <errno.h>, since readutmp.h no longer does that.
53506         * lib/readutmp.h: Don't include <errno.h>,
53507         <sys/param.h>, <time.h>; not needed to establish interface.
53508         (errno): Remove decl.
53509         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53510         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53511         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53512
53513 2004-11-28  Simon Josefsson  <jas@extundo.com>
53514
53515         * lib/base64.h, base64.c: New file.
53516
53517 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53520
53521 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53524         (Depends-on): Remove pathmax, same.  Add mempcpy.
53525         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53526         (Makefile.am): Append getcwd.h to lib_SOURCES.
53527         (Include): Add getcwd.h.
53528         (Maintainer): Change from Jim Meyering to "all, glibc",
53529         since getdate now uses intended-for-glibc code.
53530         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53531         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53532
53533 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53536         HP's ANSI C compiler.
53537         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53538         Declaring int functions causes warnings on some modern systems and
53539         shouldn't be needed to compile on ancient ones.
53540         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53541         defined.
53542
53543         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53544         with the following changes.
53545         (__set_errno): Parenthesize properly.
53546         Include <stdbool.h>.
53547         (MIN, MAX, MATCHING_INO): New macros.
53548         (__getcwd): Define with prototype, not K&R form.
53549         Use heuristics to allocate default buffer on stack if possible.
53550         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53551         behavior, and to avoid the PATH_MAX limit when computing
53552         ../../../../...
53553         Use MATCHING_INO to compare inode number to file.
53554         Check for arithmetic overflow in size calculations.
53555         Fix bug in reallocation of dot array that caused getcwd to fail
53556         on directories nested deeper than 75.
53557         Be more careful about saving errno on error.
53558         Do not use realloc; use only free+malloc, as this is a bit
53559         more flexible and avoids a needless copy operation.
53560         Do not inspect st_dev and st_ino for symbolic links; POSIX
53561         doesn't specify the latter.
53562         Check for closedir errors.
53563         Avoid needless casts.
53564         Use "#ifdef weak_alias" around weak_alias, to be like other
53565         glibc code.
53566         The following changes to getcwd.c have effect only when used in
53567         gnulib; they have no effect inside glibc proper.
53568         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53569         as alloca isn't used.
53570         (alloca, __alloca): Likewise.
53571         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53572         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53573         unconditionally, as gnulib assumes C89 or better.
53574         Do not include <sys/param.h>.
53575         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53576         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53577         better.
53578         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53579         Include <dirent.h> in a way that is compatible with modern Autoconf.
53580         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53581         New macros, if not already defined.
53582         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53583         Use "_LIBC", not "defined _LIBC", for consistency.
53584         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53585         a mempcpy module.
53586         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53587         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53588         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53589         credit only to Jim Meyering and adjust the copyright dates.
53590         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53591         <stdlib.h>, <unistd.h>, "pathmax.h".
53592         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53593         (INITIAL_BUFFER_SIZE): Remove.
53594         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53595
53596 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53597
53598         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53599         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53600         Use the _ONCE methods, for efficiency.
53601         Check for fcntl.h.  In test program, include <errno.h>
53602         and <fcntl.h> if available.  Remove old K&R cruft from
53603         test program.  Check for common errors in GNU/Linux,
53604         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53605         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53606         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53607         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53608         name accordingly.
53609         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53610         accommodate new getcwd.c.
53611         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53612         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53613         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53614         that's all we need now.
53615
53616 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53617
53618         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53619         argp-parse.c depends on getopt internals, that means we should
53620         always use our getopt, to be on the safe side.
53621         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53622         order not to spoil the result of an eventual previous invocation
53623         of gl_GETOPT_SUBSTITUTE.
53624
53625 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53626
53627         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53628         redefinition warnings. To avoid them, include the defines
53629         in `#if !defined __need_getopt ... #endif'. The only place
53630         where __getopt_argv_const is used is in definitions
53631         of getopt_long and getopt_long_only below, which are as well
53632         protected by `#ifndef __need_getopt'.
53633         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53634         __need_getopt after including <stdio.h> and <unistd.h> These
53635         headers might have defined it.
53636
53637 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53640
53641 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53644         (futimens): New function, which uses futimes if available.
53645         (futimens, utimens): Support timespec==NULL, with same semantics
53646         as utime and utimens.
53647         * lib/utimens.h (futimens): New decl.
53648
53649 2004-11-23  Jim Meyering  <jim@meyering.net>
53650
53651         * lib/getopt_.h: Remove trailing blanks.
53652
53653 2004-11-23  Jim Meyering  <jim@meyering.net>
53654
53655         * lib/__fpending.c: Add comment.
53656
53657 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53658
53659         * modules/canonicalize (Depends-on): Add xreadlink.
53660         Problem reported by James Youngman.
53661
53662 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53665         New macros.
53666         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53667         optopt): Use them instead of invoking ## directly; otherwise, the
53668         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53669
53670 2004-11-19  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/strtok_r.c: Move comments from here...
53673         * lib/strtok_r.h: ... to here.
53674
53675 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53678         implementations that mishandle size_t overflow.
53679
53680 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
53683         might fail.  Problem reported by Yoann Vandoorselaere.
53684         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
53685         implementations that mishandle size_t overflow.
53686
53687 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53688
53689         * modules/canon-host (Depends-on): Add strdup.
53690
53691 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53692
53693         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
53694
53695 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         * lib/canon-host.c: Include "strdup.h".
53698         (canon_host): Use getaddrinfo if available, so that IPv6 works.
53699         Use strdup instead of malloc/strcpy to duplicate strings.
53700
53701         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
53702         (human_space_before_unit): New constant.
53703         * lib/human.c (human_readable): Support it.
53704
53705         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
53706         (xgetcwd): Set errno correctly when failing.
53707         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
53708         the failure is actually due to a PATH_MAX problem.
53709
53710         Further getopt changes to make it more likely that glibc will
53711         buy the changes back.
53712         * lib/getopt.c (POSIXLY_CORRECT): New constant.
53713         (getopt): Use it, so to preserve glibc semantic
53714         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
53715         when compiling for libc.
53716         * lib/getopt_.h (__getopt_argv_const): Bring it back.
53717         (getopt_long, getopt_long_only): Use it.
53718
53719         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53720         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
53721         (getopt): Argv is now char * const *, as per standard.
53722         (_getopt_internal_r, _getopt_internal): Argv is now char **,
53723         not char *__getopt_argv_const *.
53724         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53725         _getopt_long_only_r): Likewise.
53726         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
53727         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53728         _getopt_long_r, _getopt_long_only_r): Likewise.
53729         * lib/getopt_.h (__getopt_argv_const): Remove.
53730         (getopt): Argv is now char * const *, as per standard.
53731
53732         * lib/getdate.y (tORDINAL): New token.
53733         (day, relunit): Allow it for relative times.
53734         (relative_time_table): Use tORDINAL for ordinals.
53735
53736 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53737
53738         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
53739         Document that "second" isn't allowed as an ordinal number.
53740
53741 2004-11-16  Jim Meyering  <jim@meyering.net>
53742
53743         * modules/closeout (Depends-on): Add fpending.
53744
53745 2004-11-15  Jim Meyering  <jim@meyering.net>
53746
53747         * lib/closeout.c: Include "__fpending.h" once again.
53748         Include <stdbool.h>.
53749         (close_stdout): Don't fail just because stdout was closed initially,
53750         since some programs don't write to stdout in the normal course of
53751         operation (other than --version and --help), and we don't want this
53752         function to make e.g. `touch file >&-' fail.
53753         But do fail if it was closed and someone has tried to write to it.
53754         E.g., `printf foo >&-' must fail.
53755
53756 2004-11-13  Jim Meyering  <jim@meyering.net>
53757
53758         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
53759
53760 2004-11-12  Simon Josefsson  <jas@extundo.com>
53761
53762         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
53763         small doc fix is still pending.
53764
53765 2004-11-11  Simon Josefsson  <jas@extundo.com>
53766
53767         * modules/strtok_r: New file.
53768
53769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53770         strtok_r.
53771
53772 2004-11-11  Simon Josefsson  <jas@extundo.com>
53773
53774         * m4/strtok_r.m4: New file.
53775
53776         * m4/getopt.m4: Replace opterr.
53777
53778 2004-11-11  Simon Josefsson  <jas@extundo.com>
53779
53780         * lib/strtok_r.h, strtok_r.c: New file.
53781
53782 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53783
53784         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
53785         of replacing opterr, getopt, etc.  This should handle the
53786         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
53787
53788 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
53791         we can stop lying to compilers about the constness of argv when we
53792         are compiled outside glibc.
53793         (getopt, getopt_long, getopt_long_only): Use it.
53794         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
53795         _getopt_internal, getopt): Likewise.
53796         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
53797         _getopt_long_only_r): Likewise.
53798         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
53799         _getopt_long_r, _getopt_long_only_r): Likewise.
53800
53801         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
53802         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
53803         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
53804         the other external symbols.
53805         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
53806         declaration, since the above renaming now works around collisions.
53807
53808 2004-11-11  Jim Meyering  <jim@meyering.net>
53809
53810         * lib/linebreak.c: Remove trailing blanks.
53811         * lib/alloca_.h: Likewise.
53812         * lib/acosl.c: Likewise.
53813         * lib/euidaccess.c: Likewise.
53814         * lib/allocsa.h: Likewise.
53815
53816 2004-11-10  Simon Josefsson  <jas@extundo.com>
53817
53818         * m4/getaddrinfo.m4: New file.
53819
53820 2004-11-10  Simon Josefsson  <jas@extundo.com>
53821
53822         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
53823
53824 2004-11-10  Simon Josefsson  <jas@extundo.com>
53825
53826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53827         getaddrinfo.
53828
53829         * modules/getaddrinfo: New file.
53830
53831 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53832
53833         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
53834
53835 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
53836
53837         * lib/mktime.c (SHR): New macro, which is a portable
53838         substitute for >> that should work even on Crays.
53839         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
53840         Problem reported by Mark D. Baushke in
53841         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
53842         * lib/getdate.y (SHR): Likewise.
53843         (tm_diff): Use it.
53844         * lib/strftime.c (SHR): Likewise.
53845         (tm_diff): Use it.
53846         * lib/quotearg.c (struct quoting_options): Use unsigned int for
53847         quote_these_too, so that right shifts are well defined.  All uses
53848         changed.
53849
53850 2004-11-10  Jim Meyering  <jim@meyering.net>
53851
53852         Ensure that no close failure goes unreported.
53853         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
53854         return early when it seems there's nothing to flush.
53855         Don't include __fpending.h.
53856
53857 2004-11-10  Jim Meyering  <jim@meyering.net>
53858
53859         * modules/closeout (Depends-on): Remove fpending.
53860
53861 2004-11-10  Jim Meyering  <jim@meyering.net>
53862
53863         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
53864
53865 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
53868         gl_FUNC_STRFTIME.
53869         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
53870         and AC_REQUIRE when possible, to avoid duplicate checks.
53871         Check for <wchar.h>.
53872
53873 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
53874
53875         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
53876
53877 2004-11-09  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/sockpfaf.m4: New file.
53880
53881 2004-11-05  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
53884         Reported by Mark D. Baushke <mdb@cvshome.org>.
53885
53886 2004-11-04  Bruno Haible  <bruno@clisp.org>
53887
53888         2004-09-11  Bruno Haible  <bruno@clisp.org>
53889                 * allocsa.valgrind: New file.
53890         2004-02-06  Bruno Haible  <bruno@clisp.org>
53891                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
53892                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
53893                 Reported by Christopher Seip <chris.seip@hp.com>.
53894
53895 2004-11-04  Bruno Haible  <bruno@clisp.org>
53896
53897         * modules/allocsa (Files): Add lib/allocsa.valgrind.
53898         (Makefile.am): Distribute it.
53899
53900 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
53901
53902         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
53903         with errno == ERANGE if the buffer is too small.
53904         Problem reported by Mark D. Baushke.
53905
53906 2004-11-03  Albert Chin  <china@thewrittenword.com>
53907             Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
53910         equivalent, substitute $ac_type for equivalent type rather than
53911         blindly using uint32_t *always* which won't work if uint32_t is not
53912         available.  Define _UINT32_T to work around typedef of uint32_t if
53913         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
53914         2.5.1.
53915
53916 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         * m4/jm-macros.m4: Sync from coreutils.
53919         (gl_MACROS): Check for mbrlen, for pathchk.
53920         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
53921
53922 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * lib/xreadlink.c (MAXSIZE): New macro.
53925         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
53926         size does not exceed MAXSIZE.  Avoid cast.
53927         As suggested by Mark D. Baushke in
53928         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
53929         if readlink fails with buffer size just under MAXSIZE, try again
53930         with MAXSIZE.
53931
53932 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
53933
53934         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
53935
53936 2004-11-02  Derek R. Price  <derek@ximbiot.com>
53937         and  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
53940         (get_date): Overparenthesize to avoid GCC warning.
53941
53942 2004-11-02  Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
53945         returns void.
53946
53947 2004-11-02  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
53950         function returns void.
53951
53952 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53953
53954         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
53955         fflush_unlocked, flockfile, funlockfile, funlockfile,
53956         fputs_unlocked, putc_unlocked.
53957
53958 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53961         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
53962         already declared.
53963
53964 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * modules/getdate (Files): Add doc/getdate.texi.
53967         (Depends-on): Add setenv, xalloc.
53968
53969 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * lib/getdate.y: Add support for TZ="foo" within a date string.
53972         Fix some bugs near time_t boundaries.  Reject dates with
53973         out-of-range components, e.g., "Sept 31".
53974         Include <stdlib.h>, "setenv.h", "xalloc.h".
53975         (ISDIGIT_LOCALE): Remove; unused.
53976         Note that the TZ and time functions used here are not reentrant.
53977         (mktime_ok, get_tz): New functions.
53978         (TZBUFSIZE): New constant.
53979         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
53980         This requires that we sometimes generate our own TZ="XXX..." setting.
53981
53982 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
53983
53984         * doc/getdate.texi: New file, from coreutils with modifications for
53985         the new TZ parsing.
53986
53987 2004-10-27  Derek R. Price  <derek@ximbiot.com>
53988
53989         * lib/mktime.c (not_equal_tm): Remove redundant check.
53990
53991 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * modules/regex (lib_SOURCES): Add regex.c.
53994         Reported by James Youngman in
53995         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
53996
53997 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         * lib/getdate.y: Use Bison 1.875 features, and some minor
54000         code cleanups.  This change does not affect semantics.
54001         Don't include <stdlib.h>; no longer needed.
54002         Don't include unlocked-io.h; only the "#if TEST" code uses
54003         stdio, and performance isn't crucial there.
54004         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54005         Bison 1.875 features as described below.
54006         All uses of "PC." replaced by "pc->".
54007         (YYSTYPE): Add a forward declaration.
54008         (yylex, yyerror): Use full prototypes in forward decls.
54009         Use "%pure-parser" rather than obsolescent "%pure_parser".
54010         Use %parse-param and %lex-param instead of obsolescent
54011         YYPARSE_PARAM and YYLEX_PARAM.
54012         (meridian_table, month_and_day_table, time_units_table,
54013         relative_time_table, time_zone_table, military_table,
54014         lookup_zone, lookup_word, get_date):
54015         Use NULL instead of 0 where appropriate.
54016         (to_hour): Avoid abort (), to avoid a dependency on
54017         stdlib.h.
54018         (yyerror, yylex): Now accepts parser_control * arg.
54019         (main) [TEST]: Use '\0' rather than 0 for char.
54020
54021 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54024
54025 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54028         It's now the caller's responsibility to handle the case where
54029         !HAVE_GETPAGESIZE && !defined getpagesize.
54030
54031         * lib/mktime.c (leapyear): Arg is long int, not int.
54032
54033 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54036
54037 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54038
54039         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54040         missing.  Problem reported by James Youngman.
54041
54042 2004-10-16  Simon Josefsson  <jas@extundo.com>
54043
54044         * gnulib-tool: Fix comments.  Fix parse problem.
54045         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54046
54047 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54050         implementation of getopt_long.  Problem reported by Alexander Taler in:
54051         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54052
54053 2004-10-15  Bruno Haible  <bruno@clisp.org>
54054
54055         * gnulib-tool: Untabify. Initialize supplied_libname.
54056         (func_usage): More homogenous output.
54057         (func_modules_transitive_closure, func_modules_to_filelist,
54058         func_emit_lib_Makefile_am): New functions.
54059         (func_import): New function, extracted from big case statement. Use
54060         func_get_license, func_modules_transitive_closure,
54061         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54062         opt_lgpl. Don't use test -a, as it's not portable.
54063         (func_create_testdir): Use func_modules_transitive_closure,
54064         func_modules_to_filelist, func_emit_lib_Makefile_am.
54065
54066 2004-10-15  Bruno Haible  <bruno@clisp.org>
54067
54068         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54069
54070 2004-10-15  Bruno Haible  <bruno@clisp.org>
54071
54072         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54073         the portions belonging to each module.
54074         Suggested by Derek Robert Price <derek@ximbiot.com>.
54075
54076 2004-10-12  Simon Josefsson  <jas@extundo.com>
54077
54078         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54079         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54080         to real functions.
54081
54082 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54083
54084         * modules/vsnprintf: New file.
54085
54086 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54087
54088         * m4/vsnprintf.m4: New file.
54089
54090 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54091
54092         * lib/vsnprintf.h: New file.
54093         * lib/vsnprintf.c: New file.
54094
54095 2004-10-11  Bruno Haible  <bruno@clisp.org>
54096
54097         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54098         vsnprintf.
54099
54100 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54103
54104 2004-10-07  Bruno Haible  <bruno@clisp.org>
54105
54106         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54107         fits into the provided buffer.
54108
54109 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54110
54111         * lib/diacrit.c, diacrit.h: Add GPL notice.
54112
54113         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54114         notice.
54115         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54116         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54117         This avoids a potential constant-folding bug.
54118
54119 2004-10-05  Bruno Haible  <bruno@clisp.org>
54120
54121         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54122         for the declaration of strsep.
54123
54124 2004-10-05  Bruno Haible  <bruno@clisp.org>
54125
54126         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54127
54128 2004-10-04  Simon Josefsson  <jas@extundo.com>
54129
54130         * modules/memmem: New file.
54131         * tests/test-memmem.c: New file.
54132         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54133
54134 2004-10-04  Simon Josefsson  <jas@extundo.com>
54135
54136         * m4/memmem.m4: New file.
54137
54138 2004-10-04  Simon Josefsson  <jas@extundo.com>
54139
54140         * lib/memmem.h: New file.
54141         * lib/memmem.c: New file, taken from glibc.
54142
54143 2004-10-04  Simon Josefsson  <jas@extundo.com>
54144
54145         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54146         '#ifdef USE_UNLOCKED_IO'.
54147
54148 2004-10-04  Simon Josefsson  <jas@extundo.com>
54149
54150         * config/srclist.txt: Add memmem from glibc.
54151
54152 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54153
54154         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54155
54156         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54157         modules/exclude, modules/getdate, modules/getline,
54158         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54159         modules/getusershell, modules/linebuffer, modules/md5,
54160         modules/mountlist, modules/posixtm, modules/readtokens,
54161         modules/readutmp, modules/regex, modules/sha1,
54162         modules/version-etc, modules/yesno:
54163         Remove dependency on unlocked-io.
54164
54165 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54168
54169         * m4/unlocked-io.m4: Add copyright notice.
54170         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54171
54172 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54175         * lib/xmalloc.c (xmemdup): Likewise.
54176         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54177         XFREE): Remove these long-obsolescent macros.
54178         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54179         * lib/xstrdup.c: Remove.
54180
54181         * lib/regex.c (re_comp): Cast gettext return value to char *,
54182         Problem reported by Martin Neitzel via Mark D. Baushke.
54183
54184 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54185
54186         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54187         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54188         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54189         regex.c, sha1.c, version-etc.c, yesno.c:
54190         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54191         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54192         the includer's responsibility.
54193
54194         Sync from coreutils.
54195
54196         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54197         points to the start of a string, as the C Standard says the
54198         resulting behavior is undefined.
54199
54200         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54201         simple -> simple_backups, numbered_existing ->
54202         numbered_existing_backups, numbered -> numbered_backups
54203         to avoid shadowing problems.  All uses changed.
54204         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54205         * lib/backupfile.c (check_extension, numbered_backup):
54206         Rename locals to avoid shadowing 'basename'.
54207         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54208         once.
54209
54210         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54211         * lib/.cvsignore: Add getopt.h.
54212
54213 2004-10-04  Bruno Haible  <bruno@clisp.org>
54214
54215         * modules/README: New file.
54216         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54217         not a module.
54218
54219 2004-10-02  Jim Meyering  <jim@meyering.net>
54220
54221         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54222
54223 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54224
54225         * modules/strsep: New file.
54226
54227 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54228
54229         * m4/strsep.m4: New file.
54230
54231 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54232
54233         * lib/strsep.h: New file.
54234         * lib/strsep.c: New file.
54235
54236 2004-10-01  Simon Josefsson  <jas@extundo.com>
54237
54238         * lib/snprintf.c (snprintf): Handle size==0.
54239
54240 2004-10-01  Simon Josefsson  <jas@extundo.com>
54241             Bruno Haible  <bruno@clisp.org>
54242
54243         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54244         (snprintf): Declare 'args'.
54245
54246 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54247
54248         * lib/snprintf.c: Remove comments as to why each header is needed.
54249
54250 2004-10-01  Bruno Haible  <bruno@clisp.org>
54251
54252         * MODULES.html.sh: Add strsep.
54253
54254 2004-09-30  Simon Josefsson  <jas@extundo.com>
54255
54256         * modules/snprintf: New file.
54257
54258 2004-09-30  Simon Josefsson  <jas@extundo.com>
54259
54260         * m4/snprintf.m4: New file.
54261
54262 2004-09-30  Simon Josefsson  <jas@extundo.com>
54263
54264         * lib/snprintf.h, lib/snprintf.c: New files.
54265
54266 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54267
54268         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54269         (hol_entry_help): Never translate an empty string.
54270         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54271         * lib/argp.h (OPTION_NO_TRANS): New option.
54272
54273 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         * modules/argp (Maintainer): Replace Simon Josefsson
54276         by Sergey Poznyakoff.
54277
54278 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54281         changes merged back into glibc.
54282
54283 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54286
54287 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54288
54289         * lib/xvasprintf.c: Include xalloc.h.
54290         (xvasprintf): Use xalloc_die, not xmalloc_die.
54291
54292 2004-09-29  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/alloca-opt: New file, derived from modules/alloca.
54295         * modules/allocsa: Depend on alloca-opt instead of alloca.
54296         * modules/setenv: Likewise.
54297         * modules/vasnprintf: Likewise.
54298         * MODULES.html.sh: Add alloca-opt.
54299
54300 2004-09-28  Simon Josefsson  <jas@extundo.com>
54301
54302         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54303         LGPL, and to replace license template from GPL to LGPL.
54304
54305 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54306
54307         * modules/dummy: Change license to LGPL.
54308
54309 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54310
54311         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54312
54313 2004-09-24  Simon Josefsson  <jas@extundo.com>
54314
54315         * modules/minmax (License): Change from GPL to LGPL.
54316
54317 2004-09-23  Simon Josefsson  <jas@extundo.com>
54318
54319         * gnulib-tool (--import): Typo.
54320
54321 2004-09-23  Simon Josefsson  <jas@extundo.com>
54322
54323         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54324
54325 2004-09-22  Bruno Haible  <bruno@clisp.org>
54326
54327         * modules/*: Add 'License' field.
54328         * gnulib-tool: Accept --extract-license option.
54329         (func_get_license): New function.
54330
54331 2004-09-21  Bruno Haible  <bruno@clisp.org>
54332
54333         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54334         Reported by Simon Josefsson.
54335
54336 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54339         gl_AC_TYPE_LONG_LONG.
54340
54341 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54344
54345 2004-09-18  Simon Josefsson  <jas@extundo.com>
54346         and  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54349         calls with autoreconf.  Define GL_LIB.
54350
54351 2004-09-14  Karl Berry  <karl@gnu.org>
54352
54353         * config/srclist.txt: unsync setenv.c, sigh.
54354
54355 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54358         Problem reported by Bruno Haible in:
54359         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54360
54361 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * config/srclist.txt: Comment out argp-pvh.c.
54364
54365 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54366
54367         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54368         in case some system header has #define'd it.  Problem reported by
54369         Soeren D. Schulze in
54370         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54371
54372 2004-09-09  Karl Berry  <karl@gnu.org>
54373
54374         * regex.[ch]: delete from the root.  These were supposed to be
54375                 synced with emacs cvs, but this has not happened for about
54376                 a year, and anyway nothing else uses emacs regex.[ch].
54377                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54378                 lib/regex[.ch] is untouched.
54379
54380 2004-09-09  Bruno Haible  <bruno@clisp.org>
54381
54382         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54383
54384 2004-09-09  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54387         modifications.
54388         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54389
54390 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54391
54392         * modules/xvasprintf: New file.
54393         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54394
54395 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54396
54397         * lib/xvasprintf.h: New file.
54398         * lib/xvasprintf.c: New file.
54399         * lib/xasprintf.c: New file.
54400
54401 2004-09-08  Bruno Haible  <bruno@clisp.org>
54402
54403         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54404
54405 2004-09-08  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54408         length is > INT_MAX.
54409         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54410         more.
54411
54412 2004-09-08  Bruno Haible  <bruno@clisp.org>
54413
54414         * lib/stdint_.h: New file, taken from GNU clisp.
54415
54416 2004-09-08  Bruno Haible  <bruno@clisp.org>
54417             Oskar Liljeblad  <oskar@osk.mine.nu>
54418
54419         * modules/stdint: New file.
54420         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54421
54422 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54423
54424         Import from coreutils.
54425         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54426         strings on unbounded length.  alloca's performance benefits aren't
54427         that important here.
54428         (V_STRDUP): Remove.
54429         (parse_with_separator): New function, with most of the internals
54430         of the old parse_user_spec.  Allow user to omit both user and group,
54431         for compatibility with FreeBSD.
54432         Clone only the user name, not the entire spec.
54433         Do not set *uid, *gid unless entirely successful.
54434         Avoid memory leak in some failing cases.
54435         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54436         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54437         (parse_user_spec): Rewrite to use parse_with_separator.
54438
54439 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * modules/userspec: Don't depend on alloca.
54442
54443 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54446
54447 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54450         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54451         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54452
54453 2004-08-16  Simon Josefsson  <jas@extundo.com>
54454
54455         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54456         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54457         Add --dry-run for --import.
54458         Let user provided command line parameters override configure.ac
54459         settings.
54460
54461 2004-08-12  Simon Josefsson  <jas@extundo.com>
54462
54463         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54464         as discussed with Paul Eggert in threads rooted at
54465         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54466         and
54467         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54468         Before, the test was empty, and relied on ELIDE_CODE in source
54469         code.)
54470         (gl_PREREQ_GETOPT): New macro.
54471         (gl_GETOPT): Use them.
54472
54473 2004-08-12  Simon Josefsson  <jas@extundo.com>
54474
54475         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54476         * lib/getopt_.h: Renamed from getopt.h.
54477
54478 2004-08-12  Simon Josefsson  <jas@extundo.com>
54479
54480         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54481         Change default library name from libfoo to libgnu.
54482         Now, if you have a configure.ac that says:
54483                 gl_SOURCE_BASE(gl)
54484                 gl_M4_BASE(gl/m4)
54485                 gl_MODULES(error getopt etcetera)
54486                 gl_INIT
54487         you can import all you need by running:
54488                 ../gnulib/gnulib-tool --import
54489
54490         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54491         (Makefile.am): Rewrite, use logic from argz.
54492         (Include): Use <getopt.h> instead of "getopt.h".
54493
54494 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54495
54496         * modules/argp (Files): Add m4/unlocked-io.m4.
54497         (Depends-on): Add extensions.
54498
54499 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54500
54501         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54502         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54503         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54504         Check for program_invocation_name, program_invocation_short_name,
54505         flockfile, funlockfile, features.h, _getopt_long_only_r.
54506
54507 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54510         its complicated substitute.
54511         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54512         and program_invocation_name.
54513         (__argp_basename) [!_LIBC]: Remove; the only use was
54514         replaced by its body.
54515         (__argp_short_program_name): Change condition from
54516         !defined __argp_short_program_name to
54517         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54518         to match argp-namefrob.h.
54519         (__argp_failure): Don't assume strerror_r returns char *.
54520         * lib/argp-parse.c (N_): Define unconditionally.
54521         (argp_default_options): Fill out initializers with 0 to avoid
54522         gcc warnings.
54523
54524 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54527         getopt1.c.
54528
54529 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         Merge from coreutils.
54532
54533         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54534
54535         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54536         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54537
54538 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54539
54540         Merge from coreutils.
54541
54542         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54543         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54544         for Reliant Unix 5.43.
54545
54546         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54547         (union fooround): Use uintmax_t, not long int.
54548         The rest is a merge from libc:
54549         [defined _LIBC]: Include <shlib-compat.h>.
54550         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54551
54552         * lib/settime.c (settime): Recode to avoid warning with
54553         Sun Forte C 6U2.
54554
54555         * lib/strverscmp.c: Convert to UTF-8.
54556
54557 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54560         m4/uintmax_t.m4.
54561
54562 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         * modules/xalloc-die: New file.
54565         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54566
54567         * modules/md5 (Files): Add m4/uint32_t.m4.
54568         * modules/sha1: Renamed from modules/sha.
54569         (Files):
54570         Rename lib/sha.h to lib/sha1.h.
54571         Rename lib/sha.c to lib/sha1.c.
54572         Rename m4/sha.m4 to m4/sha1.m4.
54573         (lib_SOURCES): Likewise.
54574         (configure.ac): Rename gl_SHA to gl_SHA1.
54575         (Include): sha.h -> sha1.h.
54576
54577 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54578
54579         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54580         * m4/sha1.m4: Renamed from sha.m4.
54581         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54582
54583 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * lib/obstack.h (obstack_empty_p):
54586         Don't assume that chunk->contents is suitably aligned.
54587         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54588         Likewise. Problem reported by Benno in
54589         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54590
54591         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54592         readable.  This could be improved further but it'd take some work.
54593
54594 2004-08-08  Simon Josefsson  <jas@extundo.com>
54595
54596         * modules/xgethostname (Depends-on): Remove exit and error (not
54597         used).
54598
54599         * modules/getpass-gnu: Add getpass.h.
54600         (Depends-on): Add stdbool.
54601         * modules/getpass: Add getpass.h.
54602
54603 2004-08-08  Simon Josefsson  <jas@extundo.com>
54604
54605         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54606         Check getpass declaration.
54607
54608 2004-08-08  Simon Josefsson  <jas@extundo.com>
54609
54610         * lib/xgethostname.c: Don't include error.h (not used).
54611
54612         * lib/getpass.h: Add.
54613         * lib/getpass.c: Include getpass.h first.
54614
54615 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * lib/xalloc-die.c: New file.
54618         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54619         All uses removed.
54620         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54621         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54622         xalloc-die.c.
54623         (_, N_, xalloc_die): Move to xalloc-die.c.
54624         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54625         so that we needn't mess with xalloc_msg_memory_exhausted.
54626
54627         * lib/sha1.h: Renamed from sha.h.
54628         (SHA1_H): Renamed from _SHA_H.
54629         (sha1_ctx): Renamed from sha_ctx.
54630         (sha1_init_ctx): Renamed from sha_init_ctx.
54631         (sha1_process_block): Renamed from sha_process_block.
54632         (sha1_process_bytes): Renamed from sha_process_bytes.
54633         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54634         (sha1_read_ctx): Renamed from sha_read_ctx.
54635         (sha1_stream): Renamed from sha_stream.
54636         (sha1_buffer): Renamed from sha_buffer.
54637         * lib/sha1.c: Likewise; renamed from sha.c.
54638         Do not include <sys/types.h>.
54639         Include <stddef.h> rather than <stdlib.h>.
54640
54641 2004-08-08  Bruno Haible  <bruno@clisp.org>
54642
54643         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54644         FILESYSTEM_PREFIX_LEN.
54645         * lib/progreloc.c: Likewise.
54646         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54647
54648 2004-08-06  Simon Josefsson  <jas@extundo.com>
54649
54650         * modules/progname (Depends-on): Don't depend on stdbool.
54651
54652 2004-08-06  Simon Josefsson  <jas@extundo.com>
54653
54654         * modules/getsubopt: New file.
54655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54656         getsubopt.
54657
54658 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         More merge from coreutils.
54661
54662         * m4/utimens.m4, m4/utimecmp.m4: New files.
54663         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54664         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54665         prereq.m4, sha.m4: Import changes from coreutils.
54666
54667 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54668
54669         More merge from coreutils.
54670         * modules/raise, modules/readtokens0, modules/utimens:
54671         * modules/utimecmp, module/xnanosleep: New files.
54672         * modules/strftime: Add lib/strftime.h.
54673         Change include from <time.h> to "strftime.h".
54674         * modules/yesno: Add lib/yesno.h.
54675         * modules/backupfile: Remove lib/addext.c.
54676         * modules/euidaccess: Add stat-macros.h.
54677         * modules/canonicalize, modules/euidaccess,
54678         modules/filemode, modules/lchown, modules/makepath,
54679         modules/rmdir, modules/stat: Likewise.
54680
54681 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54682
54683         Merge from tar.
54684         * lib/argp-help.c (make_hol, hol_append): Don't assume that
54685         SIZE_MAX is a valid preprocessor constant.
54686         (__argp_basename): Change from "#ifndef _LIBC"
54687         to "#ifndef __argp_short_program_name", so that
54688         we don't compile these functions for tar.
54689
54690         More merges from coreutils.
54691         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
54692         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
54693         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
54694         * lib/addext.c: Remove; no longer needed.
54695         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
54696         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
54697         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
54698         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
54699         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
54700         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
54701         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
54702         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
54703         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
54704         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
54705         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
54706         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
54707         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
54708         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
54709         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
54710         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
54711         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
54712         Import changes from coreutils.
54713
54714 2004-08-05  Simon Josefsson  <jas@extundo.com>
54715
54716         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
54717
54718 2004-08-05  Simon Josefsson  <jas@extundo.com>
54719
54720         * m4/getsubopt.m4: New file.
54721
54722 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54723
54724         Merge from coreutils.
54725
54726         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
54727         * m4/getcwd-path-max.m4: New files.
54728
54729         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
54730         FILESYSTEM_PREFIX_LEN ->
54731         FILE_SYSTEM_PREFIX_LEN.
54732         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
54733         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
54734         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
54735         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
54736
54737         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
54738         prerequisite modules now handle the DOS stuff.
54739         Don't check for unistd.h.
54740
54741 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         Merge from coreutils.
54744
54745         * lib/.gdb-history: Remove; this doesn't belong here.
54746
54747         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
54748         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
54749         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
54750         * lib/getcwd.c: New files.
54751
54752         * lib/dirname.h: Include <stdbool.h>.
54753         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
54754         for consistency with POSIX terminology.  All uses changed.
54755         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
54756         (strip_trailing_slashes): Use bool for booleans.
54757         * lib/stripslash.c (strip_trailing_slashes): Likewise.
54758
54759         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
54760         sometimes returns a positive errno value even when it succeeds.
54761         (print_errno_message) [!LIBC]: Fall back on strerror if
54762         __strerror_r fails.
54763
54764         * lib/path-concat.c (mempcpy): Don't define if a system header defines
54765         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
54766         (longest_relative_suffix): New function.
54767         (path_concat): Use it.  Assume first argument is not NULL.
54768         Port to DOS.  Omit redundant separators.
54769         Report an error instead of returning NULL.
54770         Use mempcpy instead of memcpy.
54771         (xpath_concat): Remove: not declared or used.
54772
54773         * lib/same.h: Include <stdbool.h>
54774         (same_name): Return bool, not int.
54775         * lib/same.c (same_name): Likewise.
54776         (errno): Don't declare; we assume C89 or better now.
54777
54778         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
54779         if not already defined.
54780
54781         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
54782         * lib/dup-safer.c (errno): Likewise.
54783
54784 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         Merge from coreutils.
54787         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
54788         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
54789         * modules/path-concat: Don't depend on strdup.
54790
54791 2004-08-03  Simon Josefsson  <jas@extundo.com>
54792
54793         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
54794         * lib/progname.h: Don't include stdbool.h.
54795
54796 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54797
54798         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
54799         * MODULES.html.sh (func_all_modules): Remove fatal.
54800
54801 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
54804
54805 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
54808         working.
54809
54810 2004-08-02  Simon Josefsson  <jas@extundo.com>
54811
54812         * lib/getsubopt.h: New file, with comments from Bruno Haible.
54813         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
54814         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
54815
54816 2004-08-01  Simon Josefsson  <jas@extundo.com>
54817
54818         * lib/xgetdomainname.c: Include stdlib.h, for free().
54819
54820 2004-07-19  Bruno Haible  <bruno@clisp.org>
54821
54822         * MODULES.html.sh (func_all_modules): Add dummy.
54823
54824 2004-07-16  Simon Josefsson  <jas@extundo.com>
54825
54826         * modules/dummy: New file.
54827
54828 2004-07-16  Simon Josefsson  <jas@extundo.com>
54829
54830         * lib/dummy.c: New file.
54831
54832 2004-07-16  Bruno Haible  <bruno@clisp.org>
54833
54834         * lib/backupfile.h: Add extern "C" for C++.
54835         * lib/closeout.h: Likewise.
54836         * lib/copy-file.h: Likewise.
54837         * lib/findprog.h: Likewise.
54838         * lib/full-write.h: Likewise.
54839         * lib/pathname.h: Likewise.
54840         * lib/progname.h: Likewise.
54841         * lib/stpcpy.h: Likewise.
54842         * lib/stpncpy.h: Likewise.
54843         * lib/strcase.h: Likewise.
54844         * lib/strstr.h: Likewise.
54845         * lib/xalloc.h: Likewise.
54846
54847         * lib/mbswidth.h: Add extern "C" for C++.
54848         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
54849
54850 2004-07-13  Robert Millan  <robertmh@gnu.org>
54851
54852         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
54853
54854 2004-07-09  Simon Josefsson  <jas@extundo.com>
54855
54856         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
54857         failed without this.)
54858
54859 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * modules/chown (Files): Add lib/fchown-stub.c, since
54862         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
54863
54864 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
54865
54866         * lib/fchown-stub.c: New file.
54867
54868 2004-06-24  Jim Meyering  <jim@meyering.net>
54869
54870         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
54871
54872 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * modules/argz: Omit "#include".
54875
54876         * MODULES.html.sh (func_all_modules): Add calloc, to match
54877         2004-06-01 addition of calloc module.
54878
54879 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54880
54881         * m4/argz.m4: New file, which is autoupdated from libtool.
54882
54883 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
54886         libtool.
54887
54888 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54889
54890         * config/srclist-update: Don't insist on "USA." before the
54891         close-comment, as libtool omits the period and puts the */ on a
54892         separate line.
54893         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
54894         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
54895
54896 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
54897
54898         * modules/argz: New file.
54899         * MODULES.html.sh (func_all_modules): Add argz.
54900
54901 2004-06-12  Jim Meyering  <jim@meyering.net>
54902         and  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * modules/hash (Files): Add lib/xalloc.h.
54905         * modules/pipe (Depends-on): Add wait-process.
54906         * modules/stat (Depends-on): Add xalloc.
54907         * modules/userspec (Files): Add lib/userspec.h.
54908         * modules/xstrto
54909
54910         Upgrade from gettext-0.13.
54911         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
54912         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
54913         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
54914
54915 2004-06-10  Jim Meyering  <jim@meyering.net>
54916
54917         * lib/calloc.c: New file.
54918
54919 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54920
54921         * lib/getdate.y (yylex): Allow space between sign and number.
54922         Problem reported by Dan Jacobson.
54923
54924 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54925
54926         Merge from coreutils CVS.
54927
54928         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
54929         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
54930         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
54931         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
54932         xstrtol.m4: Fix copyright date and/or serial number.
54933
54934         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
54935         See if we need an fchown replacement.
54936         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
54937         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
54938         and use the replacement function if we detect either defect.
54939
54940         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
54941         gl_UTIMECMP.
54942
54943 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
54944         and  Jim Meyering  <jim@meyering.net>
54945
54946         Merge from coreutils CVS.
54947
54948         * lib/stat-macros.h: New file, with contents from file-type.h
54949         and coreutils' system.h.
54950         * lib/file-type.c: Include "stat-macros.h".
54951         * lib/file-type.h (file_type): Move all macro definitions to new file,
54952         stat-macros.h.
54953
54954         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
54955         Wrap old code with this conditional.
54956         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
54957         function that does not dereference symlinks.
54958         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
54959
54960         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
54961         dependency problems.
54962         (xreadlink): Accept new arg SIZE, for efficiency.
54963         All decls and uses changed.
54964         * lib/xreadlink.h: Include <stddef.h>, for size_t.
54965
54966         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
54967         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
54968
54969         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
54970         sysexits.h.
54971
54972 2004-06-01  Jim Meyering  <jim@meyering.net>
54973
54974         * m4/calloc.m4: New file.
54975
54976 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
54979         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
54980         Also, fix a typo in a diagnostic.
54981
54982 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54983
54984         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
54985         or AC_FUNC_REALLOC.
54986
54987 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
54990         macros to be defined.
54991         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
54992         the allocator returns NULL because the requested size is zero.
54993
54994 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
54997         var.  Add comment explaining why libc still defines it.  This
54998         merges the following patch from glibc:
54999         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55000
55001 2004-05-20  Andreas Schwab  <schwab@suse.de>
55002
55003         * m4/free.m4: Replace free if it not known to work, not the other
55004         way round.
55005
55006 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55009         present in glibc since revision 1.1 of this file.
55010         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55011         obstack_alignment_mask, obstack_alloc, obstack_base,
55012         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55013         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55014         obstack_grow0, obstack_init, obstack_int_grow,
55015         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55016         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55017         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55018         nonexistent functions.
55019
55020 2004-05-18  Karl Berry  <karl@gnu.org>
55021
55022         * config/srclist.txt: break link for vasnprintf.c.
55023
55024 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55025
55026         Port obstack to the AS/400, where pointers are 16 bytes wide and
55027         you cannot cast an integer to a valid pointer.  This patch is
55028         currently waiting to be integrated into glibc; see
55029         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55030
55031         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55032         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55033         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55034         (struct obstack): temp member is now a union of a pointer and
55035         an integer, instead of an integer.  All integer uses changed.
55036         This does not affect the physical layout of struct obstack,
55037         except on hosts (like the AS/400) where the size or alignment of
55038         void * is greater than that of ptrdiff_t.
55039         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55040         __STDC__)]: Store temporary in pointer member of union, not
55041         integer member.
55042         * lib/obstack.c: Include <stddef.h>, for offsetof.
55043         (struct fooalign): Remove; it doesn't need a name.
55044         (union fooround): Change double to long double, and add void *.
55045         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55046         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55047         not a macro.  Hence the values are always int; so remove all
55048         casts-to-int in uses.
55049
55050 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55051
55052         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55053         we can get this patch merged into glibc.
55054
55055 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55056             Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         * m4/argp: Depend on alloca.
55059
55060 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55061             Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55064         freecoding.
55065
55066 2004-05-17  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55069         precision that consists of a '.' followed by an empty digit string.
55070         Patch by Tor Lillqvist <tml@iki.fi>.
55071
55072 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55073
55074         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55075         for backward compatibility with older code.  We need our own
55076         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55077         it under some other name, and our alloca.h will define it.
55078
55079 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55080             Derek Price  <derek@ximbiot.com>
55081
55082         * lib/alloca.c: Include <alloca.h>, to get our interface.
55083         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55084         include <alloca.h> first.  Use C89 prototype for alloca; this
55085         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55086         Use #elif for simplicity, since we can assume C89 now.
55087         Don't try to source the system alloca.h since it will not be found
55088         and to prevent recursively including its replacement.
55089         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55090         * lib/regex.c: Likewise.
55091
55092 2004-05-16  Derek Price  <derek@ximbiot.com>
55093             Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         getline cleanup.  This changes the getndelim2 API: both order of
55096         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55097         no delimiter).
55098
55099         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55100         interface does that.
55101         (getline): Always use getdelim, so that we don't have two
55102         copies of this code.
55103         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55104         if available.
55105         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55106         (GETNDELIM2_MAXIMUM): New macro.
55107         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55108         instead of the old practice of delim2==0.  All callers changed.
55109         Return -1 on overflow, instead of returning junk.
55110         Do not set *linesize unless allocation succeeds.
55111         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55112         that we include sys/types.h.
55113         * lib/getnline.h: Likewise.
55114         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55115         (getndelim2): Reorder arguments.
55116         * lib/getnline.c (getnline, getndelim):
55117         Don't discard the NMAX argument.
55118         (getnline): Invoke getndelim, to avoid code duplication.
55119         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55120         of (size_t) -1 by callers of the getnline family.
55121
55122 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55125         Check for gettimeofday.
55126         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55127         Check for settimeofday, stime.
55128
55129 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * lib/nanosleep.c (suspended): Change its type from int to
55132         sig_atomic_t volatile.
55133         (first_call): Make it private to rpl_nanosleep, and have it
55134         be zero initially as that's a bit faster.
55135         (my_usleep): Round up fractional times instead of truncating them,
55136         as this is the usual meaning for 'sleep'.
55137
55138         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55139         doesn't work.
55140         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55141         (ENOSYS): Define if not defined.
55142         (settime): Fall back on stime if it exists and settimeofday fails.
55143         But don't bother with fallbacks if a method fails with errno == EPERM.
55144
55145 2004-05-11  Jim Meyering  <jim@meyering.net>
55146
55147         Prior to this change, the save_cwd caller required read access to the
55148         current directory on most systems (ones with the fchdir function).
55149
55150         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55151         fails, try write-only, and finally, resort to using xgetcwd.
55152
55153 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55154
55155         * lib/obstack.c, obstack.h: Import changes from libc.
55156
55157 2004-04-28  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55160         also implicitly appends .exe to executables.
55161         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55162         accepts Windows pathnames.
55163         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55164         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55165         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55166         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55167         Reported by Derek Robert Price <derek@ximbiot.com>.
55168
55169 2004-04-21  Karl Berry  <karl@gnu.org>
55170
55171         * config/srclist.txt (localcharset.c): break sync.
55172
55173 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55174
55175         * m4/host-os.m4: Add a copyright notice.
55176
55177 2004-04-20  Jim Meyering  <jim@meyering.net>
55178
55179         Change UTILS_ to gl_ in AC_DEFINE'd names.
55180         Change utils_- and jm_-prefixed variables, too.
55181         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55182         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55184
55185         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55186         Don't emit trailing blanks.
55187         Also rename jm_-prefixed variables to have gl_ prefix.
55188
55189         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55190         Also rename jm_-prefixed variables to have gl_ prefix.
55191
55192         * m4/jm-macros.m4: Reflect the renamings.
55193         * m4/prereq.m4: Likewise.
55194
55195 2004-04-20  Jim Meyering  <jim@meyering.net>
55196
55197         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55198         memory.
55199
55200 2004-04-20  Jim Meyering  <jim@meyering.net>
55201             Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55204         memory when realloc fails.
55205
55206 2004-04-19  Jim Meyering  <jim@meyering.net>
55207
55208         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55209         now that readutmp.c may call `free (0)'.
55210
55211 2004-04-19  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55214         * m4/inttypes_h.m4: Likewise.
55215         * m4/stdint_h.m4: Likewise.
55216         * m4/intmax_t.m4: Likewise.
55217         * m4/uintmax_t.m4: Likewise.
55218
55219 2004-04-18  Jim Meyering  <jim@meyering.net>
55220
55221         * m4/prereq.m4: Don't forbid jm_ prefix.
55222
55223         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55224         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55225         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55226         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55227         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55228         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55229         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55230         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55231         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55232         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55233         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55234         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55235         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55236         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55237         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55238         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55239         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55240         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55241         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55242
55243 2004-04-18  Jim Meyering  <jim@meyering.net>
55244
55245         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55246         failure, don't leak memory and do call END_UTMP_ENT.
55247
55248 2004-04-16  Jim Meyering  <jim@meyering.net>
55249
55250         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55251         coreutils' stat program.
55252         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55253
55254 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55255
55256         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55257         C89.
55258         (CHAR_BIT): Remove, since we assume C89.
55259         Include <stdint.h> if available, as per current Autoconf CVS advice.
55260
55261 2004-03-31  Jim Meyering  <jim@meyering.net>
55262
55263         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55264         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55265         * m4/xalloc.m4: Likewise.
55266
55267 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55268
55269         Merge from coreutils.
55270
55271         * m4/inttostr.m4: New file.
55272         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55273         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55274         Require gl_CLOCK_TIME.
55275         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55276
55277 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55278
55279         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55280         not bool, to be more consistent with Unix conventions.
55281         Suggested by Bruno Haible.
55282
55283         Merge from coreutils.
55284
55285         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55286         * lib/umaxtostr.c: New files.
55287
55288         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55289         the usual <time.h> dance.
55290         (get_date): Change signature to support fractional time stamps.
55291         All callers changed.
55292         * lib/getdate.y: Include "getdate.h" first, as we can now
55293         assume C89 and don't need to worry about 'const'.
55294         Similarly, include "unlocked-io.h" near start, not in middle.
55295         Include <limits.h>.
55296         (textint.value): Use long int rather than int.
55297         (textint.digits): Use size_t rather than int.
55298         (BILLION, LOG10_BILLION): New constants.
55299         (parser_control): New member rel_ns.  Members day_ordinal,
55300         time_zone, month, day, hour, minutes, rel_year, rel_month,
55301         rel_day, rel_hour, rel_minutes, rel_seconds
55302         are now long int, not int.  Member seconds is now struct timespec,
55303         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55304         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55305         not int.
55306         (%union.intval): Now long int, not int.
55307         New member timespec.
55308         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55309         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55310         (spec): Now is a timespec or an item list.
55311         (timespec, items): New nonterminals.
55312         (time, rel, relunit, number, get_date):
55313         Add support for fractional seconds.
55314         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55315         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55316         (to_hour): First arg is now long int, not int.
55317         (to_year): Returns long int, not int.
55318         Don't treat year -70 like 70.
55319         (tm_diff): Returns long int, not int.
55320         (lookup_word): Use bool instead of int when appropriate.
55321         (yylex): Use size_t for count, not int.
55322         Detect overflow when parsing large integer constants.
55323         Add support for fractions.
55324         (get_date): Make pointers 'const' if possible.
55325         Use more-portable code to detect integer overflow.
55326         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55327         Don't use ctime; it's not reliable if the year has >4 digits.
55328
55329         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55330         This is for compatibility with BSD.
55331
55332         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55333         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55334         From coreutils' system.h.
55335
55336         * lib/userspec.c: Don't include "posixver.h".
55337         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55338         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55339         compatible extension.  Simplify code by removing a boolean int
55340         that was always nonzero if a string was nonnull.
55341
55342 2004-03-30  Jim Meyering  <jim@meyering.net>
55343
55344         Merge from coreutils.
55345
55346         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55347         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55348         on some systems one must include <grp.h> before it.
55349         Reported by Christian Krackowizer.
55350
55351 2004-03-30  Jim Meyering  <jim@meyering.net>
55352
55353         Merge from coreutils.
55354
55355         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55356
55357         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55358         an empty input stream.
55359
55360         * lib/readtokens.c: Include <stdbool.h>.
55361         (readtoken): Use `size_t' rather than int/long.
55362         All callers adjusted.
55363         Use `bool' rather than `int' where appropriate.
55364         Use memset rather than an explicit loop.
55365         Use x2nrealloc rather than xrealloc.
55366         Allow the use of `\0' as a delimiter.
55367         (readtokens): Likewise.
55368         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55369
55370 2004-03-30  Jim Meyering  <jim@meyering.net>
55371
55372         * m4/realloc.m4: Remove file, since now it does no more than
55373         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55374         the `configure.ac' section of module/realloc.
55375         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55376
55377 2004-03-30  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55380         nonnull.
55381
55382 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55383
55384         Merge changes to getloadavg.c from coreutils and Emacs.
55385
55386         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55387         Define to an expression, not to the empty string.
55388         Include cloexec.h and xalloc.h.
55389         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55390         Use set_cloexec_flag rather than rolling our own.
55391         * lib/cloexec.c, lib/cloexec.h: New files.
55392
55393 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55394
55395         * m4/cloexec.m4: New file.
55396
55397 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55398
55399         * lib/getopt.h: Sync with libc CVS.
55400
55401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55402             Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55405         mbswidth.
55406
55407 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55408             Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/mbswidth.h: Include <wchar.h> only if
55411         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55412         <wchar.h>.
55413         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55414
55415 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55416
55417         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55418         Sync with libc CVS.
55419         * lib/getopt_int.h: New file, also synced from libc.
55420
55421 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55422
55423         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55424         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55425         Bring back getopt.c, getopt.h, getopt1.c.
55426
55427 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55428
55429         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55430         All uses changed.  Check for sa_sigaction member; this fixes
55431         a bug first reported by Jason Andrade in
55432         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55433
55434 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55435
55436         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55437         '#if' expressions.  Unlike the code it replaces, it does not
55438         depend on (defined _SC_PAGESIZE).  However, it does depend on
55439         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55440         first reported by Jason Andrade in
55441         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55442
55443 2004-02-25  Simon Josefsson  <jas@extundo.com>
55444
55445         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55446
55447 2004-02-25  Simon Josefsson  <jas@extundo.com>
55448
55449         * lib/strdup.h: New file.
55450         * lib/strdup.c: Include it.
55451         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55452         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55453
55454 2004-02-23  Karl Berry  <karl@gnu.org>
55455
55456         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55457         (from fencepost.gnu.org:/gd/gnuorg).
55458
55459 2004-02-23  Karl Berry  <karl@gnu.org>
55460
55461         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55462         * config/srclist.txt: add maintain/standards documents.
55463
55464 2004-02-18  Bruno Haible  <bruno@clisp.org>
55465
55466         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55467         Reported by Derek Robert Price <derek@ximbiot.com>.
55468
55469 2004-02-16  Karl Berry  <karl@gnu.org>
55470
55471         * config/mkinstalldirs, install-sh: update from automake.
55472
55473 2004-02-06  Karl Berry  <karl@gnu.org>
55474
55475         * m4/po.m4: update from gettext 0.14.1.
55476
55477 2004-02-06  Karl Berry  <karl@gnu.org>
55478
55479         * lib/config.charset: update from gettext 0.14.1.
55480
55481 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55482
55483         Add comments and code, prompted by suggestions from Bruno Haible
55484         for sh-quote.
55485         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55486         describing the enum quoting_style values.
55487         * lib/quotearg.c (quotearg_alloc): New function.
55488         (quotearg_buffer_restyled): Treat lone { and } as special.
55489         Treat = as special.  Work around bug with older shells
55490         that "see" a '\' that is really the 2nd byte of a multibyte char.
55491         Quote empty string with shell_quoting_style.
55492
55493 2004-02-03  Bruno Haible  <bruno@clisp.org>
55494
55495         * m4/pipe.m4: New file, from GNU gettext.
55496
55497 2004-02-03  Bruno Haible  <bruno@clisp.org>
55498
55499         * lib/pipe.h: New file, from GNU gettext.
55500         * lib/pipe.c: New file, from GNU gettext.
55501
55502 2004-01-27  Bruno Haible  <bruno@clisp.org>
55503
55504         * m4/execute.m4: New file, from GNU gettext.
55505
55506 2004-01-27  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/execute.h: New file, from GNU gettext.
55509         * lib/execute.c: New file, from GNU gettext.
55510         * lib/w32spawn.h: New file, from GNU gettext.
55511
55512 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55513
55514         Merge from diffutils.
55515
55516         * lib/file-type.c (file_type): Add typed memory objects.
55517         * lib/file-type.h (S_TYPEISTMO): New macro.
55518
55519         * lib/c-stack.h (c_stack_action): Remove argv argument.
55520         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55521         (die): Don't calculate message unless segv_action returns.
55522         (get_stack_location, min_address_from_argv, max_address_from_argv,
55523         volatile stack_base, volatile_stack_size): Remove.
55524         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55525         that every segmentation violation is a stack overflow.  (Ouch!)
55526         See Debian bug 136249 (still outstanding) for more info about why
55527         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55528
55529 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55530
55531         Exit-status fix from coreutils.
55532
55533         Use exit_failure consistently in place of EXIT_FAILURE,
55534         so that program exit statuses are consistent on failure.
55535
55536         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55537         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55538         * lib/argmatch.h: Comment fix to match the above.
55539         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55540         Now a macro referring to exit_failure, instead of a separate
55541         variable.  Include "exitfail.h" to get it.
55542         * lib/xstrtol.h: Include "exitfail.h".
55543         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55544
55545         * lib/long-options.c (parse_long_options): Use prototype
55546         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55547         for clarity.
55548
55549 2004-01-21  Jim Meyering  <jim@meyering.net>
55550
55551         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55552         so as not to conflict with a different-sized __mktime_internal
55553         function in GNU libc.
55554         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55555         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55556
55557 2004-01-20  Karl Berry  <karl@gnu.org>
55558
55559         * config/config.guess: update from config.
55560
55561         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55562
55563 2004-01-20  Bruno Haible  <bruno@clisp.org>
55564
55565         Safer stack allocation.
55566         * lib/setenv.c: Include allocsa.h.
55567         (alloca): Remove fallback definition.
55568         (freea): Remove macro.
55569         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55570         instead of freea.
55571
55572 2004-01-20  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/eealloc.m4: New file, from GNU gettext.
55575
55576 2004-01-20  Bruno Haible  <bruno@clisp.org>
55577
55578         * m4/allocsa.m4: New file, from GNU gettext.
55579
55580 2004-01-20  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/xallocsa.h: New file, from GNU gettext.
55583         * lib/xallocsa.c: New file, from GNU gettext.
55584
55585 2004-01-20  Bruno Haible  <bruno@clisp.org>
55586
55587         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55588
55589 2004-01-20  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55592         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55593         specially.
55594
55595 2004-01-20  Bruno Haible  <bruno@clisp.org>
55596
55597         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55598         patch.
55599
55600 2004-01-20  Bruno Haible  <bruno@clisp.org>
55601
55602         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55603
55604 2004-01-20  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/eealloc.h: New file.
55607
55608 2004-01-20  Bruno Haible  <bruno@clisp.org>
55609
55610         * lib/binary-io.h: Avoid warnings on Cygwin.
55611
55612 2004-01-20  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/allocsa.h: New file, from GNU gettext.
55615         * lib/allocsa.c: New file, from GNU gettext.
55616
55617 2004-01-18  Karl Berry  <karl@gnu.org>
55618
55619         * doc/gpl.texi, doc/lgpl.texi: new files.
55620
55621 2004-01-18  Karl Berry  <karl@gnu.org>
55622
55623         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55624         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55625
55626 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55627
55628         Merge from coreutils.
55629
55630         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55631         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55632         (gl_DEFAULT_POSIX2_VERSION): Move
55633         the documentation from 'configure' into 'config.hin',
55634         so that 'configure --help' isn't burdened by it and
55635         we don't have to worry about its formatting there.
55636         Reword the documentation so that it's more succinct
55637         and can be run together into a single paragraph.
55638         * m4/same.m4 (gl_SAME): Check for pathconf.
55639
55640 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55641
55642         Merge from coreutils.
55643
55644         * lib/posixver.c: Include posixver.h.
55645
55646         * lib/same.c: Include <stdbool.h>, <limits.h>.
55647         (_POSIX_NAME_MAX): Define if not defined.
55648         (MIN): New macro.
55649         (same_name): If file names are silently truncated, report
55650         that the file names are the same if they are the same after
55651         the silent truncation.
55652
55653         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55654         conversion function.
55655         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55656         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55657         longer needed.
55658
55659 2004-01-15  Jim Meyering  <jim@meyering.net>
55660
55661         Merge from coreutils.
55662
55663         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55664         if no library is required.
55665         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55666         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55667         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55668         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55669         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55670         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55671         value, $ac_cv_search_crypt, if it's "none required".
55672         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55673         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55674         not gl_FUNC_GETLOADAVG.
55675         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55676         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55677
55678 2004-01-15  Jim Meyering  <jim@meyering.net>
55679
55680         Merge from coreutils.
55681
55682         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
55683         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
55684         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
55685
55686         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
55687         optional configure-time default.
55688
55689         * lib/version-etc.c (version_etc_copyright): Update copyright date.
55690
55691         * lib/xreadlink.c (xreadlink): Correct outdated comment.
55692
55693 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
55694
55695         Merge from coreutils.
55696
55697         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
55698         value, $ac_cv_search_nanosleep, if it's "none required".
55699
55700 2004-01-14  Paul Eggert  <eggert@twinsun.com>
55701
55702         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
55703         with like-named macro in fnmatch.c.
55704         (EXT): Use an internal constant instead.
55705
55706         Merge fnmatch patches from glibc.
55707         * lib/fnmatch.c (mbsinit): Remove define.
55708         Add libc_hidden_ver (__fnmatch, fnmatch).
55709         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
55710         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
55711
55712 2004-01-14  Karl Berry  <karl@gnu.org>
55713
55714         * config/install-sh: update from automake.
55715
55716 2004-01-13  Karl Berry  <karl@gnu.org>
55717
55718         * config/install-sh: update from automake.
55719
55720 2004-01-09  Karl Berry  <karl@gnu.org>
55721
55722         * config/install-sh: update from automake.
55723
55724 2004-01-05  Karl Berry  <karl@gnu.org>
55725
55726         * config/config.{sub,guess}: update from config.
55727
55728 2003-12-31  Karl Berry  <karl@gnu.org>
55729
55730         * config/depcomp: update from automake.
55731
55732 2003-12-14  Karl Berry  <karl@gnu.org>
55733
55734         * lib/config.charset: update from gettext-runtime.
55735
55736 2003-12-03  Paul Eggert  <eggert@twinsun.com>
55737
55738         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
55739         Bug reported by Alfred M. Szmidt.
55740
55741 2003-12-03  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/gettext.m4: Upgrade from gettext-0.13.
55744         * m4/po.m4: Upgrade from gettext-0.13.
55745         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
55746         * m4/intmax.m4: New file, from gettext-0.13.
55747         * m4/printf-posix.m4: New file, from gettext-0.13.
55748
55749 2003-11-29  Karl Berry  <karl@gnu.org>
55750
55751         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
55752
55753 2003-11-25  Paul Eggert  <eggert@twinsun.com>
55754             Bruno Haible  <bruno@clisp.org>
55755
55756         * lib/printf-parse.h: Don't include sys/types.h.
55757         (ARG_NONE): New macro.
55758         (char_directive): Change type of *arg_index fields to size_t.
55759         * lib/printf-parse.c: Don't include sys/types.h.
55760         (SSIZE_MAX): Remove macro.
55761         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
55762         Remove unnecessary overflow check.
55763         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
55764         fields.
55765
55766 2003-11-25  Bruno Haible  <bruno@clisp.org>
55767
55768         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
55769
55770 2003-11-25  Bruno Haible  <bruno@clisp.org>
55771
55772         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
55773         gt_TYPE_SSIZE_T.
55774
55775 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55776
55777         * modules/alloca: Remove dependency on xalloc.
55778
55779 2003-11-24  Paul Eggert  <eggert@twinsun.com>
55780
55781         * lib/alloca.c: Remove dependency on xalloc module.
55782         (xalloc_die): Remove.
55783         (memory_full) [!defined emacs]: New macro.
55784         [!defined emacs]: Don't include xalloc.h.
55785         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
55786         address arithmetic overflows.  Change datatypes a bit to avoid
55787         unnecessary casts.
55788
55789 2003-11-22  Jim Meyering  <jim@meyering.net>
55790
55791         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
55792         s/size/size_t/.
55793
55794 2003-11-21  Karl Berry  <karl@gnu.org>
55795
55796         * config/config.{sub,guess}: update from config.
55797
55798 2003-11-18  Karl Berry  <karl@gnu.org>
55799
55800         * config/config.{sub,guess}: update from config.
55801
55802         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
55803
55804 2003-11-17  Paul Eggert  <eggert@twinsun.com>
55805
55806         * README: Mention that S+T cannot overflow if S is the size of
55807         an existing object and T is sufficiently small.
55808
55809 2003-11-17  Jim Meyering  <jim@meyering.net>
55810
55811         On systems without utime and without a utimes function capable of
55812         dealing with a NULL struct utimbuf* argument, this utime replacement
55813         could -- in unusual circumstances -- leak a file descriptor.
55814         * lib/utime.c: Include <unistd.h> and <errno.h>.
55815         (utime_null): Be sure to close `fd' and to preserve errno.
55816         Reported by Geoff Collyer via Arnold Robbins.
55817
55818 2003-11-17  Bruno Haible  <bruno@clisp.org>
55819
55820         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
55821         (Depends-on): Add xsize.
55822
55823 2003-11-17  Bruno Haible  <bruno@clisp.org>
55824
55825         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
55826
55827 2003-11-17  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/vasnprintf.c (alloca): Remove fallback definition.
55830         (freea): Remove definition.
55831         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
55832         Reported by Paul Eggert.
55833
55834 2003-11-16  Paul Eggert  <eggert@twinsun.com>
55835             Bruno Haible  <bruno@clisp.org>
55836
55837         Protect against address arithmetic overflow.
55838         * lib/printf-args.h: Include stddef.h.
55839         (arguments): Change type of field 'count' to size_t.
55840         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
55841         'unsigned int' where appropriate.
55842         * lib/printf-parse.h: Include sys/types.h.
55843         (char_directive): Change type of *arg_index fields to ssize_t.
55844         (char_directives): Change type of fields 'count', max_*_length to
55845         size_t.
55846         * lib/printf-parse.c: Include sys/types.h and xsize.h.
55847         (SSIZE_MAX): Define fallback value.
55848         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
55849         instead of 'int' where appropriate. Check a_allocated, d_allocated
55850         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
55851         * lib/vasnprintf.c: Include xsize.h.
55852         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
55853         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
55854         overflow. Avoid wraparound when converting a width or precision from
55855         decimal to binary.
55856
55857 2003-11-16  Bruno Haible  <bruno@clisp.org>
55858
55859         Update from GNU gettext.
55860         * lib/printf-parse.c: Generalize to it can be compiled for wide
55861         strings.
55862         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
55863         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
55864         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
55865         SNPRINTF): New macros.
55866         Don't include <alloca.h> if the file is used inside libintl.
55867         (local_wcslen): New function, for Solaris 2.5.1.
55868         (VASNPRINTF): Use it instead of wcslen.
55869
55870 2003-11-16  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/xsize.h (xmax): New function.
55873         (xsum, xsum3, xsum4): Declare as "pure" functions.
55874
55875 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55876
55877         * modules/xalloc (Files): Undo latest change, since xalloc.h
55878         no longer needs SIZE_MAX or PTRDIFF_MAX.
55879
55880 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55881
55882         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
55883         gl_PTRDIFF_MAX.
55884
55885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55886
55887         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
55888         "return", to pacify some unknown compiler.  Problem reported
55889         by Joerg Schilling.
55890
55891 2003-11-12  Paul Eggert  <eggert@twinsun.com>
55892
55893         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
55894         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
55895         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
55896         heuristic is just as accurate as far as we know, and it removes a
55897         dependency on size_max.m4 and ptrdiff_max.m4.
55898
55899 2003-11-11  Bruno Haible  <bruno@clisp.org>
55900
55901         * modules/xsize (Files): Add m4/size_max.m4.
55902         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
55903
55904 2003-11-11  Bruno Haible  <bruno@clisp.org>
55905
55906         * m4/size_max.m4: New file.
55907         * m4/ptrdiff_max.m4: New file.
55908         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
55909         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
55910         (gl_XALLOC): Invoke it.
55911
55912 2003-11-11  Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
55915         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
55916         defined.
55917
55918 2003-11-10  Paul Eggert  <eggert@twinsun.com>
55919
55920         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
55921         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
55922         rejected some allocations of exactly SIZE_MAX - 2 bytes.
55923         From Bruno Haible.
55924         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
55925         not (size_t) -1, since it's defined here.
55926
55927 2003-11-09  Karl Berry  <karl@gnu.org>
55928
55929         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
55930
55931 2003-11-06  Paul Eggert  <eggert@twinsun.com>
55932
55933         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
55934         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
55935         Reject sizes of exactly SIZE_MAX bytes.
55936         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
55937         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
55938
55939 2003-11-05  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/xsize.h: Include limits.h, to avoid a possible collision with
55942         SIZE_MAX defined in <limits.h> on Solaris.
55943
55944 2003-11-04  Jim Meyering  <jim@meyering.net>
55945
55946         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
55947         variable names, rather than @VAR@.
55948         * modules/poll: Likewise.
55949
55950 2003-11-04  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/xsize: New file.
55953         * modules/linebreak: Depend on xsize.
55954         * MODULES.html.sh (func_all_modules): Add xsize.
55955
55956 2003-11-04  Bruno Haible  <bruno@clisp.org>
55957
55958         * m4/xsize.m4: New file.
55959
55960 2003-11-04  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/xsize.h: New file.
55963         * lib/linebreak.c: Include xsize.h.
55964         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
55965         argument for overflow.
55966         Suggested by Paul Eggert.
55967
55968 2003-11-03  Karl Berry  <karl@gnu.org>
55969
55970         * config/config.{guess,sub}: update from config.
55971
55972 2003-11-03  Jim Meyering  <jim@meyering.net>
55973
55974         * modules/userspec (lib_SOURCES): Add userspec.h.
55975         (Include): Add "userspec.h".
55976         Improve description.
55977
55978 2003-11-03  Jim Meyering  <jim@meyering.net>
55979
55980         * lib/userspec.c: Include "userspec.h".
55981         * lib/userspec.h: New file.
55982
55983 2003-11-03  Bruno Haible  <bruno@clisp.org>
55984
55985         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
55986
55987 2003-11-03  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
55990         available, to avoid (extremely rare) race condition.
55991         Suggested by Paul Eggert.
55992
55993 2003-11-02  Karl Berry  <karl@gnu.org>
55994
55995         * config/srclist.txt (vasprintf.c): sync broken, sigh.
55996
55997 2003-10-31  Paul Eggert  <eggert@twinsun.com>
55998
55999         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56000         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56001         (read_filesystem_list): Set and use me_type_malloced.
56002         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56003         whatever the type happens to be), for brevity and consistency.
56004         Check for size calculation overflow on Alphas running OSF/1.
56005
56006 2003-10-31  Jim Meyering  <jim@meyering.net>
56007
56008         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56009
56010         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56011
56012 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56013             Bruno Haible  <bruno@clisp.org>
56014
56015         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56016         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56017
56018 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56019
56020         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56021         netbsd*-gnu*.  Suggested by Robert Millan.
56022
56023 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56024
56025         * modules/group-member: Depend on stdbool.
56026
56027 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56028
56029         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56030
56031 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56032
56033         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56034         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56035         after the 'gnu' in these cases.  This fixes some bugs in the
56036         previous change, and is based on suggestions by Robert Millan.
56037
56038 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56039
56040         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56041         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56042         no longer needed.
56043         * lib/quotearg.c (quotearg_n_options): Use it.
56044         * lib/group-member.c: Include <stdbool.h>.
56045         (free_group_info): Arg is now const *; don't free arg.
56046         (get_group_info): Now returns bool and accepts struct group_info *,
56047         rather than returning a malloc'ed struct group_info *.
56048         All uses changed.  Check for overflow in internal size calculation.
56049
56050         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56051         rather than xmalloc/xrealloc.
56052         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56053         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56054         conformance bug: the old code used a pointer after freeing the
56055         storage that it addressed.
56056         * lib/hash.c (hash_initialize): Simplify the code by using
56057         xalloc_oversized rather than doing it by hand.
56058         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56059         the buffer preserved.  Use free and xmalloc instead.
56060         * lib/quotearg.c (quotearg_n_options): Likewise.
56061         Use a simpler test for size overflow.  Don't use xalloc_oversized
56062         because unsigned int might be wider than size_t (!); this suggests
56063         that we should switch from unsigned int to size_t for slot numbers.
56064
56065 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56066
56067         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56068         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56069         NetBSD kernels.  Requested by Richard Stallman.
56070
56071 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56072
56073         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56074         to allocate the returned structure.  Do not allocate a subarray,
56075         as x2nrealloc will do that.
56076         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56077         instead of xnrealloc.
56078         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56079
56080 2003-10-27  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/stdbool_.h: Better support for BeOS.
56083
56084 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56085
56086         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56087         now uses inline.
56088
56089 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56090
56091         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56092         callers that want to do their own size-overflow checking.  Include
56093         <stdbool.h>, since xalloc_oversized returns bool.
56094         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56095         to use xalloc_oversized.
56096
56097         Add two functions x2realloc, x2nrealloc, for programs that grow
56098         arrays dynamically by doubling their sizes.
56099         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56100         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56101         New functions.
56102
56103         Port to C99 semantics for 'inline' of external functions.
56104         Bug reported by Bruno Haible.
56105         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56106         with the old contents of xnmalloc.
56107         (xnmalloc, xmalloc): Use it.
56108         (xnrealloc_inline): New static inline function,
56109         with the old contents of xnrealloc.
56110         (xnrealloc, xrealloc): Use it.
56111
56112         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56113         that.
56114
56115 2003-10-26  Karl Berry  <karl@gnu.org>
56116
56117         * config/srclist.txt (COPYING.DOC): no longer available from
56118         /gd/gnuorg; don't know where the ultimate source is.
56119
56120 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56121
56122         Fix several address-calculation bugs in the hash modules,
56123         plus some minor code cleanup.
56124
56125         * lib/hash.h: Include <stdbool.h>, for bool.
56126         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56127         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56128         hash_get_n_entries, hash_get_max_bucket_length,
56129         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56130         hash_rehash): Use size_t rather than unsigned.
56131         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56132         hash_get_n_buckets_used, hash_get_n_entries,
56133         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56134         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56135         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56136         Likewise.
56137         (SIZE_MAX): Define if not defined.
56138         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56139         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56140         hash_print):
56141         Use const * when possible.
56142         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56143         (check_tuning): Fix bug: if tuning parameters were very close to
56144         0 or 1, rounding errors could have caused subscript violations.
56145         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56146         (hash_initialize): Add 'fail:' label
56147         to free table and return NULL, and use it to simplify code.
56148         Use calloc rather than clearing the storage ourself.
56149         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56150         buffer size calculations.
56151         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56152         Include <stddef.h>, for size_t.
56153         * lib/hash-pjw.c (hash_pjw): Likewise.
56154         Switch to method described by Bruno Haible.
56155         Include <limits.h>, for CHAR_BIT.
56156         (SIZE_BITS): New macro.
56157
56158 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56159
56160         * m4/getline.m4 (AM_FUNC_GETLINE):
56161         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56162         hosts.  Problem reported by Derek Robert Price in
56163         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56164         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56165         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56166
56167 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56168
56169         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56170         ceiling the allocation at NMAX bytes rather than silently
56171         discarding input bytes before NMAX is reached.  This makes
56172         a difference only if NMAX exceeds SIZE_MAX / 2.
56173
56174         * lib/obstack.c: Merge from glibc.
56175         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56176         Add libc_hidden_def (_obstack_newchunk).
56177         (_obstack_free) [! defined _LIBC]: Remove.
56178         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56179         a clone of the function body.
56180         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56181         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56182
56183         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56184         glibc.
56185         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56186         arg to memcpy.
56187
56188         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56189         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56190         Don't use lvalue casts, as GCC plans to remove support for them
56191         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56192         was also present in the non-GCC version, indicating that this
56193         code had always been buggy and had never been widely used.
56194         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56195         Use the fast variant of each macro, rather than copying the
56196         definiens of the fast variant; that way, we'll be more likely to
56197         catch future bugs in the fast variants.
56198
56199 2003-10-20  Bruno Haible  <bruno@clisp.org>
56200
56201         * modules/wait-process: New file.
56202         * MODULES.html.sh (func_all_modules): Add wait-process.
56203
56204 2003-10-20  Bruno Haible  <bruno@clisp.org>
56205
56206         * m4/wait-process.m4: New file.
56207
56208 2003-10-20  Bruno Haible  <bruno@clisp.org>
56209
56210         * lib/wait-process.h: New file, from GNU gettext.
56211         * lib/wait-process.c: New file, from GNU gettext.
56212
56213 2003-10-19  Jim Meyering  <jim@meyering.net>
56214
56215         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56216         HPUX 10.20.
56217
56218 2003-10-18  Karl Berry  <karl@gnu.org>
56219
56220         * config/config.guess: update from config.
56221
56222 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56223
56224         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56225         (getgroups): First arg is int, not size_t.
56226         Don't let 'free' mangle errno.
56227
56228 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56229
56230         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56231
56232 2003-10-16  Karl Berry  <karl@gnu.org>
56233
56234         * config/config.{guess,sub}: update from config.
56235
56236 2003-10-16  Jim Meyering  <jim@meyering.net>
56237
56238         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56239         memcpy.
56240
56241 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56242
56243         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56244         (SIZE_MAX): Remove.
56245         (new_exclude, add_exclude_file): Initial size no longer needs to
56246         be a power of 2.
56247         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56248         our own address arithmetic overflow checking.
56249
56250         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56251         (fnmatch): Do not alloca more than 2000 wide characters;
56252         instead, use malloc for large buffers.
56253         Check for address arithmetic overflow, and return -1
56254         with errno set to ENOMEM in that case.
56255         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56256         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56257         instead, return -1.  Check for address arithmetic overflow.
56258
56259 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56260
56261         Handle invalid suffixes and overflow independently, so that
56262         callers can treat them independently as needed.  Fix some bugs in
56263         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56264         suffix for a human-readable blocksize.  The major caller-visible
56265         change is the addition of a new
56266         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56267         that both overflow and suffix chars were found.
56268
56269         * lib/human.c (humblock): Don't check separately for invalid suffix
56270         char; that is xstrtoumax's job (now that its bug is fixed).
56271         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56272         INTMAX_MAX]: New macros.
56273         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56274         TYPE_MAXIMUM): New macros.
56275         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56276         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56277         if overflow occurs, as it's what __strtol does and it's more useful
56278         in practice.
56279         (__xstrtol): If __strtol reports some error other than ERANGE,
56280         reflect it to the caller as LONGINT_INVALID.  If it reports
56281         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56282         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56283         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56284         value.
56285         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56286         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56287         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56288         [defined UINTMAX_MAX]: New macros.
56289
56290 2003-10-14  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56293
56294 2003-10-14  Bruno Haible  <bruno@clisp.org>
56295
56296         * m4/sig_atomic_t: New file, from GNU gettext.
56297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56298
56299 2003-10-14  Bruno Haible  <bruno@clisp.org>
56300
56301         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56302         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56303         Also use volatile where needed.
56304
56305 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56306
56307         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56308         Change maintainer from Bruno Haible to 'all'.
56309
56310 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56311
56312         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56313
56314 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56315
56316         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56317         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56318         and define in terms of the other primitives.
56319         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56320         (SIZE_MAX): Define if not already defined.
56321         (array_size_overflow): New function.
56322         (xalloc_die): Abort instead of exiting if 'error' returns.
56323         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56324         (xmalloc, xrealloc): Use them.
56325         (xcalloc): Check for address arithmetic overflow.
56326         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56327         a bit faster than strcpy.
56328
56329 2003-10-10  Simon Josefsson  <jas@extundo.com>
56330
56331         * modules/argp (Depends-on): Add restrict and strcase.
56332
56333 2003-10-10  Simon Josefsson  <jas@extundo.com>
56334
56335         * m4/argp.m4: Add AC_C_INLINE.
56336
56337 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56338
56339         Merge getpass from libc, plus a few fixes.
56340
56341         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56342         Include <stdbool.h>.
56343         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56344         __fsetlocking to empty.
56345         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56346         do include <bits/libc-lock.h>.
56347         Do not include <fcntl.h>; not needed.
56348         [_LIBC]: Include <wchar.h>.
56349         (NOTCANCEL_MODE): New macro.
56350         (flockfile, funlockfile) [_LIBC]: New macros.
56351         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56352         [!_LIBC]: New macros.
56353         (call_fclose): New function.
56354         (getpass): Use it.  Save tty stream separately; this simplifies the
56355         code and makes it more reliable if stdin happens to equal stdout.
56356         Invoke __fsetlocking on tty.
56357         Handle thread cancellation if needed.
56358         Namespace cleanup (use __tcgetattr, __getline).
56359         Use bool for Booleans.
56360         [USE_IN_LIBIO]: Handle wide streams.
56361         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56362         stream might go where.
56363
56364         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56365         doesn't have to include <stdio.h> before us.
56366         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56367         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56368         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56369         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56370         if not declared, so that we can use getpass.c code from libc without
56371         rewriting it.
56372         (flockfile, ftrylockfile, funlockfile): New macros.
56373
56374 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56375
56376         * modules/getpass: Depend on stdbool.
56377
56378 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56379
56380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56381
56382 2003-10-07  Karl Berry  <karl@gnu.org>
56383
56384         * config/config.{guess,sub}: update from config.
56385
56386 2003-10-06  Jim Meyering  <jim@meyering.net>
56387             Bruno Haible  <bruno@clisp.org>
56388
56389         This lets translators provide better translations for the
56390         "Written by ..." part of --version output.
56391         * lib/version-etc.h: Include stdarg.h.
56392         (version_etc_copyright): Declare as readonly.
56393         (version_etc): Make this function variadic with a NULL-terminated list
56394         of author name strings.
56395         (version_etc_va): New declaration.
56396         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56397         (version_etc_copyright): Declare as readonly.
56398         (version_etc_va): New function. Provide a different translatable string
56399         for each possible number of authors < 10. Abbreviate when there are 10
56400         authors or more.
56401         (version_etc): Make this function variadic. Call version_etc_va.
56402         Suggestion from Gary V. Vaughan.
56403
56404         * lib/long-options.h (parse_long_options): Change prototype: the
56405         authors string is moved to the end and becomes variadic.
56406         * lib/long-options.c: Include stdarg.h.
56407         (parse_long_options): Make this function variadic, too.
56408         Call version_etc_va, not version_etc.
56409
56410 2003-10-06  Bruno Haible  <bruno@clisp.org>
56411
56412         * modules/version-etc-2: Remove file.
56413         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56414
56415 2003-10-06  Bruno Haible  <bruno@clisp.org>
56416
56417         * modules/fatal-signal: New file.
56418         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56419
56420 2003-10-06  Bruno Haible  <bruno@clisp.org>
56421
56422         * m4/fatal-signal.m4: New file.
56423         * m4/signalblocking.m4: New file, from GNU gettext.
56424
56425 2003-10-06  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/version-etc-2.h: Remove file.
56428         * lib/version-etc-2.c: Remove file.
56429
56430 2003-10-06  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/fatal-signal.h: New file, from GNU gettext.
56433         * lib/fatal-signal.c: New file, from GNU gettext.
56434
56435 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56436
56437         * README: Rework advice for preventing empty .o files.
56438         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56439         not <sys/types.h>.
56440
56441 2003-10-04  Karl Berry  <karl@gnu.org>
56442
56443         * lib/argp*: update from libc.
56444
56445 2003-10-04  Karl Berry  <karl@gnu.org>
56446
56447         * config/config.{guess,sub}: update from config.
56448
56449 2003-10-02  Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/lchown (Include): Add lchown.h.
56452         * modules/time_r (Include): Use "..." syntax.
56453         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56454
56455 2003-10-01  Simon Josefsson  <jas@extundo.com>
56456
56457         * MODULES.html.sh (func_all_modules): Move gethostname from section
56458         'based on' to section 'lacking' POSIX:2001.
56459
56460 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56461
56462         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56463         to output mode on the same stream.
56464
56465 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56466
56467         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56468         Fix arg typo in previous patch.
56469
56470 2003-09-28  Jim Meyering  <jim@meyering.net>
56471
56472         * lib/error.c: Correct cpp indentation.
56473
56474 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56475
56476         * modules/free: New file.
56477
56478 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56479
56480         * m4/free.m4: New file.
56481
56482 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56483
56484         * lib/minmax.h (MIN, MAX)
56485         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56486         Omit the special code that used __typeof__, since we worry that
56487         it could be more trouble than it's worth.  See:
56488         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56489         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56490
56491         * lib/free.c: New file.
56492
56493 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56494
56495         Trivial fixes to Makefile.am parts of module listings.
56496         * modules/strstr: Append strstr.h to lib_SOURCES.
56497         * modules/strcase: Likewise, for strcase.h.
56498
56499 2003-09-27  Karl Berry  <karl@gnu.org>
56500
56501         * config/mkinstalldirs: update from automake.
56502
56503 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56504
56505         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56506         (error_tail): Do not loop, reallocating temporary buffer, since
56507         the output cannot contain more wide characters than the input
56508         contains bytes, the size must be big enough already.  This avoids
56509         one potential size overflow calculation.  Check for size overflow
56510         when calculating temporary buffer size.  Free temporary buffer
56511         when done, if it was allocated with malloc; this plugs a memory
56512         leak.  Remove casts from void * to pointers, that are no longer
56513         needed now that we're assuming C89 or better.
56514
56515         Merge error changes from glibc.
56516
56517         * lib/error.c, error.h: Update copyright notice header to match glibc.
56518         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56519         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56520         Disable cancellation while printing error.
56521         * lib/error.h: Prepend __ to parameter names.
56522
56523 2003-09-26  Jim Meyering  <jim@meyering.net>
56524
56525         * lib/error.c (error_tail): Move some declarations
56526         into inner scope where the local variables are used.
56527
56528 2003-09-26  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56531         stpncpy().
56532         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56533
56534 2003-09-26  Bruno Haible  <bruno@clisp.org>
56535
56536         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56537         (stpncpy): Define as alias for gnu_stpncpy.
56538         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56539
56540 2003-09-25  Simon Josefsson  <jas@extundo.com>
56541
56542         * lib/xgetdomainname.h: New file.
56543         * lib/xgetdomainname.c: New file.
56544
56545 2003-09-25  Simon Josefsson  <jas@extundo.com>
56546             Bruno Haible  <bruno@clisp.org>
56547
56548         * modules/getdomainname: New file.
56549         * modules/xgetdomainname: New file.
56550         * MODULES.html.sh (func_all_modules): Add getdomainname,
56551         xgetdomainname.
56552
56553 2003-09-25  Simon Josefsson  <jas@extundo.com>
56554             Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/getdomainname.m4: New file.
56557
56558 2003-09-25  Simon Josefsson  <jas@extundo.com>
56559             Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/getdomainname.h: New file.
56562         * lib/getdomainname.c: New file.
56563
56564 2003-09-25  Karl Berry  <karl@gnu.org>
56565
56566         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56567
56568 2003-09-25  Karl Berry  <karl@gnu.org>
56569
56570         * config/install-sh: update from automake.
56571
56572 2003-09-25  Bruno Haible  <bruno@clisp.org>
56573
56574         * modules/version-etc-2: New file, from modules/version-etc with
56575         modifications.
56576         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56577
56578 2003-09-25  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56581         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56582
56583 2003-09-24  Simon Josefsson  <jas@extundo.com>
56584
56585         * modules/xgethostname: Add xgethostname.h.
56586
56587 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56588
56589         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56590         the buffer associated with the argument.  Bug reported by
56591         Simon Josefsson.
56592
56593 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56594
56595         * README: Document assumptions that 'int' is at least 32 bits
56596         wide, that integer arithmetic is 2's complement without overflow,
56597         that there are no holes in integer values, that adding sizes of
56598         two nonoverlapping objects can't overflow, and that all-bits-zero
56599         yields scalar zero.  Fix spelling and capitalization typos.
56600
56601 2003-09-19  Karl Berry  <karl@gnu.org>
56602
56603         * lib/argp.h: update from libc.
56604
56605 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56606
56607         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56608         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56609         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56610
56611 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56612
56613         * gnulib-tool: Use "test -h", not "test -L", for portability
56614         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56615         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56616         (sed_extract_prog): Issue s commands one-by-one, rather than
56617         using \| in one s command.
56618
56619 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56620
56621         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56622         input error, instead of returning NULL the next time we are called
56623         (and therefore losing track of errno).
56624
56625 2003-09-16  Bruno Haible  <bruno@clisp.org>
56626
56627         * gnulib-tool (func_create_testdir): Warn about duplicated
56628         dependencies.
56629
56630 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56631
56632         * modules/argmatch, modules/fatal, modules/obstack,
56633         modules/xalloc, modules/xgethostname: Sort dependencies by
56634         importance, not alphabetically.
56635
56636 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56637
56638         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56639         fails, so that the caller gets the proper errno.
56640
56641         * lib/readutmp.c (read_utmp): Likewise.
56642         Check for fstat error.  Close stream and free storage
56643         when failing.
56644
56645 2003-09-14  Karl Berry  <karl@gnu.org>
56646
56647         * config/srclist.txt (strdup.c): disable for c89 changes.
56648
56649 2003-09-14  Jim Meyering  <jim@meyering.net>
56650
56651         * lib/getloadavg.c: Correct cpp indentation.
56652         * lib/strdup.c: Likewise.
56653         * lib/vasnprintf.c: Likewise.
56654
56655 2003-09-14  Bruno Haible  <bruno@clisp.org>
56656
56657         * modules/fwriteerror: New file.
56658         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56659
56660 2003-09-14  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/fwriteerror.h: New file.
56663         * lib/fwriteerror.c: New file.
56664
56665 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56666
56667         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56668         modules/xgethostname, modules/xalloc: Depend on exit.
56669
56670 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56671
56672         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56673
56674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56675         and AC_MINIX, too, so that their extensions are available.
56676
56677         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56678         This macro has been superseded by gl_BACKUPFILE.
56679
56680         More patches to assume C89 or better.
56681
56682         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
56683
56684         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
56685         unconditionally.
56686         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
56687         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
56688         Include <string.h>, <stdlib.h> unconditionally.
56689         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
56690         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
56691         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
56692         headers or for string.h.
56693         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
56694         or strtoul.
56695
56696         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
56697         headers.
56698         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
56699         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56700         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
56701         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
56702         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56703         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
56704         memcpy, memset.
56705         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
56706         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
56707         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
56708         strtol.
56709         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
56710         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
56711         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
56712         strtoul.
56713
56714 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56715
56716         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
56717         * lib/obstack.c [!defined _LIBC]: Likewise.
56718         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
56719         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
56720         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
56721
56722         More changes to assume C89 or better.
56723
56724         * lib/error.c (error_tail): Assume vprintf.
56725
56726         * lib/argmatch.c (getenv): Remove decl.
56727         * lib/progreloc.c (get_full_program_name): Define via prototype.
56728         * lib/setenv.c (clearenv): Likewise.
56729         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
56730         needed.
56731         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
56732         (malloc, memcpy): Remove decls.
56733         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
56734         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
56735         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56736         (memcpy): Remove macro.
56737         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
56738         (__P): Remove.  All uses removed.
56739         (PTR): Remove.  All uses changed to void *.
56740         (CHAR_BIT, NULL): Remove.
56741         (spaces, zeros, memset_space, memset_zero)
56742         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
56743         Remove.
56744         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
56745         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
56746         Define with prototype.
56747         Remove now-unnecessary prototype decl.
56748         (extra_args_spec): Assume ANSI C.  All uses changed.
56749         (extra_args_spec_iso): Remove.
56750         (my_strftime, emacs_strftimeu): Define via prototype.
56751         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
56752         unconditionally.
56753         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
56754         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
56755         (strtoul, strtol): Remove decls.
56756         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
56757         LONG_MAX): Remove.
56758         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
56759         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
56760         (LOCALE_PARAM_PROTO): New macro.
56761         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
56762         (INTERNAL (strtol), strtol): Define with a prototype.
56763         (PARAMS): Remove.  All uses removed.
56764         * lib/tempname.c: Include <string.h> unconditionally.
56765         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
56766         * lib/xgethostname.c (main): Define with a prototype.
56767         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
56768         Include <stdlib.h> unconditionally.
56769         (calloc, malloc, realloc, free): Remove decls.
56770         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
56771         Include <stdlib.h> unconditionally.  Sort include file names.
56772         (strtod): Remove.
56773         (xstrtod): Define with a prototype.
56774         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
56775         (strtol, strtoul): Remove decls.
56776
56777 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56778
56779         More patches to assume C89 or better.
56780         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
56781         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
56782         string.h, memchr, STDC_HEADERS.
56783
56784 2003-09-11  Paul Eggert  <eggert@twinsun.com>
56785
56786         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
56787         Include <stdlib.h>, <string.h> unconditionally.
56788         Remove now-unnecessary cast to char *.
56789         * lib/strnlen.c: Include <string.h> unconditionally.
56790         * lib/yesno.c (yesno): Define with a prototype.
56791
56792 2003-09-11  Bruno Haible  <bruno@clisp.org>
56793
56794         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
56795
56796 2003-09-10  Jim Meyering  <jim@meyering.net>
56797
56798         * lib/error.c: Correct indentation of cpp directives.
56799
56800 2003-09-10  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
56803         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
56804         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
56805         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
56806         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
56807         <stdlib.h> and <string.h> checks.
56808         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
56809         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
56810
56811 2003-09-10  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/strcspn.c: Include <string.h> unconditionally.
56814         * lib/strpbrk.c: Include <string.h> unconditionally.
56815         * lib/strstr.c: Include <string.h> unconditionally.
56816         * lib/unicodeio.c: Include <string.h> unconditionally.
56817         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
56818         * lib/unsetenv.c: Likewise.
56819         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
56820         * lib/yesno.c: Include <stdlib.h> unconditionally.
56821         (rpmatch): Add prototype.
56822
56823 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56824
56825         More patches to assume C89 or better.
56826         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
56827         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
56828         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
56829         or for string.h.
56830         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
56831         stdlib.h.
56832         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
56833         C headers.
56834         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
56835         string.h.
56836         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
56837         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
56838         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
56839         or for string.h.
56840         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
56841         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
56842         C headers.
56843         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
56844         memcpy.
56845         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
56846         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
56847         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
56848         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
56849         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
56850         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
56851         string.h, free.
56852         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
56853         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
56854         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
56855         C headers, or for string.h.
56856         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
56857         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
56858         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
56859         headers, memory.h, stdlib.h, string.h, strings.h.
56860         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
56861         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
56862         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
56863         strchr.
56864         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
56865         headers, memory.h, string.h.
56866         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
56867         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
56868         free.
56869         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
56870         headers.
56871         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
56872         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
56873         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
56874         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
56875         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
56876
56877 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56878
56879         More K&R removal.
56880
56881         * lib/acosl.c (main): Use a prototype.
56882         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
56883         tanl.c: Likewise.
56884
56885         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
56886
56887         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
56888         (getopt, etopt_long, getopt_long_only, _getopt_internal)
56889         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
56890         with a prototype.
56891         * lib/getopt.c (const): Remove macro.
56892         Include <string.h> unconditionally.
56893         (my_index): Remove; all uses changed to strchr.
56894         (strlen): Remove decl.
56895         (exchange): Remove forward decl; no longer needed.
56896         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
56897         Define with prototype.
56898         * lib/getopt1.c (const): Remove macro.
56899         (getopt_long, getopt_long_only, main): Define with prototype.
56900
56901         * lib/getugroups.c: Include <string.h> unconditionally.
56902
56903         * lib/getusershell.c: Include <stdlib.h> unconditionally.
56904         (getusershell, setusershell, endusershell, readname, main):
56905         Define with prototypes.
56906
56907         * lib/group-member.c: Include group-member.h first.
56908         Include <stdlib.h> unconditionally.
56909
56910         * lib/hard-locale.c: Include hard-locale.h first.
56911         Include <stdlib.h>, <string.h> unconditionally.
56912
56913         * lib/hash.c (free, malloc): Remove decls.
56914         Include <stdlib.h> unconditionally.
56915
56916         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
56917         (getenv): Do not declare.
56918
56919         * lib/idcache.c: Include <string.h> unconditionally.
56920
56921         * lib/long-options.c: Include long-options.h first, to test interface.
56922         Include <stdlib.h> unconditionally.
56923
56924         * lib/makepath.c: Include makepath.h first, to test interface.
56925         Include <stdlib.h> and <string.h> unconditionally.
56926
56927         * lib/linebuffer.c: Include <stdlib.h>.
56928         (free): Remove decl.
56929
56930         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
56931         stddef.h. rpl_malloc returns void *, not char *.
56932         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
56933         prototype.
56934
56935         * lib/md5.h: Include <limits.h> unconditionally.
56936         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
56937         (__P): Remove; all uses removed.
56938         * lib/md5.c: Include "md5.h" first.
56939         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
56940         md5_buffer, md5_process_bytes, md5_process_block):
56941         Define with prototypes.
56942         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
56943         * lib/sha.c: Include "sha.h" first.
56944         Include <stdlib.h>, <string.h> unconditionally.
56945
56946         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
56947         * lib/memcmp.c (__ptr_t): Likewise.
56948         * lib/memrchr.c (__ptr_t): Likewise.
56949         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
56950         Include <string.h> unconditionally.
56951         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
56952         * lib/memchr.c: Include <stdlib.h> unconditionally.
56953         * lib/memchr.c (LONG_MAX): Remove.
56954         * lib/memrchr.c (LONG_MAX): Likewise.
56955         * lib/memchr.c (__memchr): Define via a prototype.
56956         * lib/memrchr.c (__memrchr): Likewise.
56957         * lib/memcmp.c (__P): Remove, and remove all uses.
56958         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
56959         Remove forward decls; no longer needed.
56960         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
56961         Use types required by C89 in prototype.
56962
56963         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
56964         * lib/savedir.c: Likewise.
56965         * lib/mkdir.c (free): Remove decl.
56966         * lib/rmdir.c (rmdir): Define with a prototype.
56967         * lib/savedir.c: Include savedir.h first, to test interface.
56968
56969         * lib/mktime.c (STDC_HEADERS): Remove.
56970         Include <stdlib.h>, <string.h> unconditionally.
56971
56972         * lib/modechange.c: Include <stdlib.h> unconditionally.
56973         (malloc): Remove decl.
56974
56975         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
56976         (free): Remove decl.
56977
56978         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
56979         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
56980         (This type really should be intptr_t, but that's a C99ism.)
56981         (_obstack_memcpy): Remove: all uses changed to memcpy.
56982         Include <string.h> unconditionally.
56983         (struct obstack): Assume __STDC__ for types of members
56984         chunkfun, freefun, extra_arg.
56985         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
56986         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
56987         obstack_begin, obstack_specify_allocation,
56988         obstack_specify_allocation_with_arg, obstack_chunkfun,
56989         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
56990         Remove unprototyped decls and the macros that use them.
56991         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
56992         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
56993         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
56994         (defined __STDC__ && __STDC__)]:
56995         Remove nonprototyped code.
56996         Include <stdlib.h> unconditionally.
56997         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
56998         _obstack_allocated_p, _obstack_free, obstack_free,
56999         _obstack_memory_used, print_and_abort):
57000         Define using prototypes.
57001         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57002         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57003         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57004         obstack_next_free, obstack_object_size, obstack_room) [0]:
57005         Remove unused, unprototyped code.
57006
57007         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57008
57009         * lib/physmem.c (physmem_total, physmem_available, main): Define
57010         with prototypes.
57011
57012         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57013         (main): Define with a prototype.
57014
57015         * lib/posixver.c (getenv): Remove decl.
57016
57017         * lib/putenv.c (malloc): Returns void *, not char *.
57018         Include <string.h> unconditionally.
57019         (strchr, memcpy, NULL): Do not define.
57020
57021         * lib/readtokens.c: Include readtokens.h first, to test interface.
57022         Include <stdlib.h>, <string.h> unconditionally.
57023         (init_tokenbuffer): Define with a prototype.
57024
57025         * lib/regex.c (PARAMS): Remove.  All uses removed.
57026         All uses of _RE_ARGS removed, too.
57027         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57028         unconditionally.
57029         (bzero): Assume memset exists.
57030         (memcmp, memcpy, NULL): Remove.
57031         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57032         char, or assignments to local vars of type signed char.
57033         (init_syntax_once, PREFIX(extract_number_and_incr),
57034         PREFIX(print_partial_compiled_pattern),
57035         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57036         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57037         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57038         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57039         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57040         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57041         wcs_compile_range, byte_compile_range, truncate_wchar,
57042         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57043         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57044         count_mbs_length, wcs_re_match_2_internal,
57045         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57046         PREFIX(alt_match_null_string_p),
57047         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57048         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57049         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57050         now-unnecessary declaration, if any.
57051         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57052         regcomp, regexec):
57053         Remove now-unnecessary casts among pointer types.
57054         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57055
57056         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57057         (free): Remove decl.
57058
57059         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57060
57061         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57062         (free): Remove decl.
57063
57064         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57065         * lib/xgetcwd.c: Likewise.
57066
57067         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57068         (free): Remove decl.
57069
57070         * lib/strchrnul.c (strchrnul): Define with a prototype.
57071         Fix bug: c_in was not converted to char before searching.
57072
57073         The following changes are not K&R related:
57074
57075         * lib/group-member.h: Include <sys/types.h>, so that this file is
57076         self-contained.
57077         * lib/makepath.h: Likewise.
57078
57079         * lib/getusershell.c (readname, default_index, line_size, readname):
57080         Use size_t, not int, for sizes.
57081         (readname): If the size overflows, report an error instead of
57082         looping forever.
57083
57084 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57085
57086         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57087         libc.
57088
57089 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57090
57091         * README: New section: portability guidelines.
57092
57093 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57094
57095         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57096         C89 spec.
57097
57098 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57099
57100         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57101
57102 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57103
57104         Assume C89 or better; remove K&R cruft.
57105         A few of these changes were first proposed by Derek Robert Price
57106         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57107
57108         * lib/addext.c: Include <string.h> unconditionally.
57109         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57110         Don't declare getenv or malloc.
57111
57112         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57113         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57114         (NULL): Remove.
57115         (find_stack_direction, alloca): Use prototypes.
57116
57117         * lib/atexit.c (atexit): Define using a prototype.
57118
57119         * lib/basename.c, dirname.c, stripslash.c:
57120         Include <string.h> unconditionally.
57121
57122         * lib/bcopy.c: Include <stddef.h>.
57123         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57124
57125         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57126
57127         * lib/error.h (error, error_at_line, error_print_progname)
57128         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57129         * lib/error.c: Include error.h first, to check interface.
57130         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57131         (VA_START): Remove; all uses changeed to va_start.
57132         (exit, strerror): Remove decls.
57133         (error_print_progname): Prototype uncondionally.
57134         Don't include <errno.h>; no longer needed.
57135         (private_strerror): Remove.
57136         (error_tail): Always define.
57137         (error, error_at_line): Assume C89 or better; always use prototypes.
57138         * lib/fatal.c: Include "fatal.h" first, to test interface.
57139         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57140         (VA_START): Remove; all uses changed to va_start.
57141         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57142         this case.
57143         (exit): Remove decl.
57144         (fatal): Prototype unconditionally.  Assume va_start works.
57145         Abort at end, to pacify gcc.
57146
57147         * lib/euidaccess.c (main): Define with a prototype.
57148
57149         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57150
57151         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57152
57153         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57154         prototypes.
57155         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57156         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57157         (getenv): Remove decl.
57158         (fnmatch): Define using a prototype.
57159         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57160         (FCT): Define using a prototype.
57161
57162         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57163
57164         * lib/gethostname.c: Include <stddef.h>.
57165         (gethostname): Define with prototype.  Length is size_t, not int.
57166
57167 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57168
57169         Assume C89 or better; remove K&R cruft.
57170         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57171         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57172         string.h, getenv, malloc.
57173         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57174         headers.
57175         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57176         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57177         do not check for strerror.
57178         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57179         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57180         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57181         do not check for doprnt or vprintf.
57182         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57183         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57184
57185 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57186
57187         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57188         getversion.c should have been removed then, but was accidentally
57189         preserved.
57190
57191         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57192         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57193
57194 2003-09-08  Karl Berry  <karl@gnu.org>
57195
57196         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57197                 config, forget about prep.
57198
57199         * config/depcomp, missing: update from automake.
57200
57201 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57202
57203         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57205
57206 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57207
57208         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57209         copy_tm_result.  Bug reported by Simon Josefsson in
57210         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57211
57212 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57213
57214         * m4/time_r.m4: New file.
57215         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57216         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57217         is. Check for timegm declaration.
57218         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57219         Do not check for gmtime_r.
57220         Replace mktime if __mktime_internal does not exist and if mktime
57221         hasn't been replaced already.
57222
57223 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57224
57225         * lib/time_r.c, lib/time_r.h: New files.
57226
57227         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57228         __localtime_r.
57229         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57230         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57231
57232         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57233         __gmtime_r.
57234         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57235         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57236         Include <time_r.h>.
57237
57238         * lib/timegm.c: Switch to glibc implementation, with the following
57239         changes:
57240         [defined HAVE_CONFIG_H]: Include <config.h>.
57241         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57242         (__mktime_internal) [!defined _LIBC]: New decl.
57243         (__gmtime_r) [!defined _LIBC]: New macro and function.
57244         (timegm): Use a prototype, since gnulib assumes C89.
57245         Do not bother declaring tmp to be const, as it's not really usefu.
57246         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57247         (timegm): Declare only if HAVE_DECL_TIMEGM.
57248
57249 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57250
57251         * MODULES.html.sh (func_all_modules): Add time_r.
57252         * modules/time_r: New file.
57253         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57254         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57255
57256 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57257
57258         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57259         Bug reported by Lute Kamstra in
57260         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57261
57262         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57263         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57264         course with correspondingly smaller numbers for tomorrow and
57265         yesterday.  From Tadayoshi Funaba.  Originally installed into
57266         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57267         coreutils merge?).
57268
57269 2003-08-31  Simon Josefsson  <jas@extundo.com>
57270
57271         * modules/timegm: New file.
57272         * MODULES.html.sh (func_all_modules): Add timegm.
57273
57274 2003-08-31  Simon Josefsson  <jas@extundo.com>
57275
57276         * m4/timegm.m4: New file.
57277
57278 2003-08-31  Simon Josefsson  <jas@extundo.com>
57279
57280         * lib/timegm.h: New file.
57281         * lib/timegm.c: New file.  Based on
57282         wget-1.8.2/src/http.c:mktime_from_utc.
57283
57284 2003-08-31  Karl Berry  <karl@gnu.org>
57285
57286         * lib/argp.h: update from libc.
57287
57288 2003-08-28  Bruno Haible  <bruno@clisp.org>
57289
57290         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57291         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57292         followed by '#define fnmatch fnmatch_posix' gives an error.
57293
57294 2003-08-28  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57297         warning on QNX, which defines O_BINARY to 000000.
57298
57299 2003-08-27  Jim Meyering  <jim@meyering.net>
57300
57301         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57302         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57303         would fail after 32.  Reported by Danny Levinson.  Details here:
57304         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57305
57306 2003-08-24  Bruno Haible  <bruno@clisp.org>
57307
57308         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57309         MSVC7 <stdio.h> is included later.
57310
57311 2003-08-22  Simon Josefsson  <jas@extundo.com>
57312
57313         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57314
57315 2003-08-20  Karl Berry  <karl@gnu.org>
57316
57317         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57318
57319 2003-08-20  Bruno Haible  <bruno@clisp.org>
57320
57321         * modules/progname: New file.
57322         * MODULES.html.sh (func_all_modules): Add progname.
57323
57324 2003-08-20  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/progname.h: New file, from GNU gettext.
57327         * lib/progname.c: New file, from GNU gettext.
57328         * lib/progreloc.c: New file, from GNU gettext.
57329
57330 2003-08-19  Jim Meyering  <jim@meyering.net>
57331
57332         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57333         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57334
57335 2003-08-19  Bruno Haible  <bruno@clisp.org>
57336
57337         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57338         more.
57339
57340 2003-08-19  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/xstrdup.c: Assume <string.h> exists.
57343
57344 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57345
57346         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57347         in makefile rules.
57348
57349 2003-08-18  Jim Meyering  <jim@meyering.net>
57350
57351         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57352         * m4/lib-ld.m4: Likewise.
57353
57354 2003-08-18  Jim Meyering  <jim@meyering.net>
57355
57356         * lib/setenv.h: Indent nested cpp directive.
57357         * lib/vasnprintf.c: Remove trailing blanks.
57358
57359 2003-08-17  Simon Josefsson  <jas@extundo.com>
57360
57361         * modules/xstrndup: New file.
57362         * MODULES.html.sh (func_all_modules): Add xstrndup.
57363
57364 2003-08-17  Simon Josefsson  <jas@extundo.com>
57365
57366         * modules/argp: Fix autoconf macro name. Add more dependencies.
57367
57368 2003-08-17  Simon Josefsson  <jas@extundo.com>
57369
57370         * m4/xstrndup.m4: New file.
57371
57372 2003-08-17  Simon Josefsson  <jas@extundo.com>
57373
57374         * m4/argp.m4: New file.
57375
57376 2003-08-17  Simon Josefsson  <jas@extundo.com>
57377             Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/xstrndup.h: New file.
57380         * lib/xstrndup.c: New file.
57381
57382 2003-08-17  Bruno Haible  <bruno@clisp.org>
57383
57384         * modules/strndup (Files, Include): Add lib/strndup.h.
57385
57386 2003-08-17  Bruno Haible  <bruno@clisp.org>
57387
57388         * modules/euidaccess (Files): Add lib/euidaccess.h.
57389
57390 2003-08-17  Bruno Haible  <bruno@clisp.org>
57391
57392         * lib/strndup.h: New file.
57393
57394 2003-08-17  Bruno Haible  <bruno@clisp.org>
57395
57396         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57397         like AC_GNU_SOURCE.
57398         * modules/extensions (configure.ac): Comment out the invocation of
57399         gl_USE_SYSTEM_EXTENSIONS.
57400
57401 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57402
57403         Merges from coreutils, etc.
57404         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57405         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57406         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57407         fixing a typo.
57408         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57409         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57410
57411 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57412
57413         Document merge from coreutils.
57414         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57415         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57416         * modules/utime: Add m4/utimes-null.m4.
57417
57418 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57419
57420         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57421         space, undoing this 2003-08-12 change:
57422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57423
57424 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57425
57426         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57427         strtoul.c from libc, undoing this 2003-08-12 change:
57428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57429
57430 2003-08-16  Jim Meyering  <jim@meyering.net>
57431
57432         Merges from coreutils.
57433         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57434         prefix.  Adjust cache variables similarly.  Create 500 rather than
57435         just 300 files, to exercise bug on Darwin6.5, too.
57436         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57437         $missing_dir.
57438         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57439         AM_SYS_POSIX_TERMIOS.
57440         Reported by mkc@mathdogs.com.
57441         Also change use of $am_cv_sys_posix_termios
57442         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57443         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57444         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57445         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57446         in /proc/mounts until it finds one with matching device number.  This
57447         is unnecessary when the FILE argument *is* a mount point.  No stat call
57448         is necessary in that case.  So, disable the statvfs-testing code on
57449         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57450         as RedHat bug# 84846.
57451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57452         to 1MB, so as not to render systems with no stack size limit (e.g.,
57453         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57454         Include <unistd.h>.  On some systems,
57455         it is required for the definition of _SC_PAGESIZE.
57456
57457 2003-08-16  Jim Meyering  <jim@meyering.net>
57458
57459         Merge from coreutils.
57460         * lib/xstrtoimax.c: #else #if -> #elif.
57461         * lib/xstrtoumax.c: Likewise.
57462
57463 2003-08-16  Jim Meyering  <jim@meyering.net>
57464
57465         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57466         * m4/utimes.m4: Removed.
57467         * m4/utimes-null.m4: Renamed from utimes.m4.
57468
57469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57470         to 1MB, so as not to render systems with no stack size limit (e.g.,
57471         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57472         Include <unistd.h>.  On some systems,
57473         it is required for the definition of _SC_PAGESIZE.
57474
57475 2003-08-16  Jim Meyering  <jim@meyering.net>
57476         and Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         Merges from coreutils, etc.
57479
57480         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57481         using the latest version from cvs.  This avoids problems with #line
57482         directives using a vendor (Sun) compiler.
57483         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57484         Don't set GETGROUPS_LIB here; now it's
57485         done via getgroups.m4's wrapper function.
57486         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57487         rather than just in sh-util/configure.in, so that the
57488         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57489         same.
57490         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57491         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57492         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57493         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57494         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57495         Remove code that is now done by the newly-required macros.
57496         Append $(EXEEXT) to DF_PROG.
57497         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57498         Do not invoke or require the following here,
57499         since prereq.m4 or some gnulib .m4 now does this for us:
57500         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57501         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57502         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57503         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57504         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57505         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57506         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57507         AC_FUNC_OBSTACK.
57508         Do not replace the following functions, as this is now the job
57509         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57510         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57511         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57512         atexit getpass, strdup, getpagesize.
57513         Replace 'raise'.
57514         Do not check for the following functions, as this is now the job
57515         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57516         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57517         setregid.
57518         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57519         Check for sys/sysctl.h.
57520         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57521         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57522         of checking for ssize_t ourselves.
57523
57524         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57525         Require every macro that gnulib/modules/* suggests for us.
57526         (jm_PREREQ_ADDEXT): New macro.
57527         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57528         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57529
57530         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57531         (gl_PHYSMEM): Use it.
57532         Also check for `table' function.
57533         Check for new headers and functions.
57534         Add check for sys/sysmp.h.
57535         With suggestions from Kaveh Ghazi.
57536         Ignore headers that are present but cannot be compiled.  This
57537         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57538         C 5.4.
57539
57540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57541
57542         Document merge from coreutils.
57543         * modules/userspec: Depend on posixver.
57544         * modules/strftime: Depend on tzset.
57545
57546 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57547
57548         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57549         rather than tab, after '#' in shell-script copyright notices.
57550         Suggested by Bruno Haible.
57551
57552 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57553
57554         * config/srclist-update: Use three spaces, rather than tab, after '#'
57555         in shell-script copyright notices.  Suggested by Bruno Haible.
57556         Remove unnecessary parenthesization in regular expression.
57557
57558 2003-08-15  Jim Meyering  <jim@meyering.net>
57559
57560         Merge from coreutils.
57561         * lib/xgethostname.c: Include <stdlib.h>.
57562         (xghostname): Don't exit for anything other than memory-related
57563         failure; just return NULL.
57564         * lib/userspec.c: Include "posixver.h".
57565         (parse_user_spec): Accept `.' as a separator only
57566         in pre-POSIX-200112 mode.
57567         * lib/strtoimax.c: Use #elif rather than #else #if.
57568         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57569         Remove function, now that we can rely on a working tzset function.
57570         [!_LIBC]: Ensure that the required autoconf test has been run.
57571         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57572         Use underlying_strftime for %r.
57573         * lib/sha.c: Merge in some clean-up and optimization changes from
57574         glibc.
57575         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57576         Ensure that it is a multiple of 64.
57577         Rearrange loop exit tests so as to avoid performing an
57578         additional fread after encountering an error or EOF.
57579         * lib/realloc.c: Update copyright date.
57580
57581 2003-08-15  Jim Meyering  <jim@meyering.net>
57582         and Paul Eggert  <eggert@twinsun.com>
57583
57584         Merge from coreutils.
57585         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57586         member but strut utmpx does not.  Needed for AIX 4.3.3.
57587         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57588
57589 2003-08-15  Jim Meyering  <jim@meyering.net>
57590         and Paul Eggert  <eggert@cs.ucla.edu>
57591
57592         Merges from coreutils, etc.
57593         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57594         Require gl_FUNC_TZSET_CLOBBER.
57595         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57596         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57597         members.
57598
57599 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57600
57601         Help the merge from coreutils.
57602         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57603         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57604         * m4/tzset.m4: Use it too.
57605
57606 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57607
57608         * modules/tzset: New file.
57609
57610 2003-08-14  Jim Meyering  <jim@meyering.net>
57611
57612         Merges from coreutils.
57613         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57614         variable names, rather than @FNMATCH_H@.
57615         * modules/alloca: Likewise for $(ALLOCA_H).
57616
57617         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57618         the three copies of the literal target, `fnmatch.h'.
57619         * modules/alloca (alloca.h): Likewise.
57620
57621 2003-08-14  Jim Meyering  <jim@meyering.net>
57622
57623         Merge from coreutils.
57624         * m4/tzset.m4: New file.
57625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57626         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57627         otherwise, AIX 5.1 systems would end up using the latter.
57628         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57629         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57630         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57631         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57632
57633 2003-08-14  Jim Meyering  <jim@meyering.net>
57634
57635         Merge from coreutils.
57636         * lib/obstack.h: Whitespace changes.
57637         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57638         and xcalloc return values.
57639         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57640         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57641         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57642         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57643         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57644         error from mntctl.
57645         Use mntctl's return value to drive the entry-processing loop, since
57646         we can't rely on the value of the vmt_length member in the last
57647         entry.  On some systems doing so could result in exhausting
57648         virtual memory.  Based in part on a patch from Mike Jetzer.
57649
57650 2003-08-14  Jim Meyering  <jim@meyering.net>
57651         and Paul Eggert  <eggert@twinsun.com>
57652
57653         Merges from coreutils, plus other fixes.
57654         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57655         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57656         for credits and details.  Thanks to Kaveh Ghazi for helping
57657         to keep these files in sync.
57658         (ARRAY_SIZE): Define it.
57659         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57660         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57661         (memcasecmp): Don't assume size_t fits in unsigned int.
57662         Remove casts and duplicate code.
57663         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57664         (memcpy): Remove definition.
57665         Merge in some clean-up and optimization changes from glibc.
57666         [BLOCKSIZE]: Move definition to top of file.
57667         Ensure that it is a multiple of 64.
57668         Rearrange loop exit tests so as to avoid performing an
57669         additional fread after encountering an error or EOF.
57670         * lib/md5.h (md5_uintptr): Define.
57671         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57672         return to the initial working directory.  Preserve errno
57673         for caller.
57674         * lib/idcache.c: Include "xalloc.h".
57675         (xmalloc, xrealloc): Remove decls.
57676         (getuser): Remove casts no longer required in C89.
57677         * lib/human.c: Include stdio.h, for sprintf.
57678         * lib/group-member.c: Include "xalloc.h".
57679         (xmalloc, xrealloc): Remove decls.
57680         (get_group_info): Remove casts no longer required in C89.
57681         * lib/getusershell.c (readname): Remove casts no longer required in
57682         C89.
57683         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
57684         * lib/getline.c: Whitespace fix, from coreutils.
57685
57686 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57687
57688         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
57689         Check for isascii.
57690
57691         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57692         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57693         Undo previous (whitespace-only) change.
57694
57695 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57696
57697         * lib/exclude.c: Include <ctype.h>
57698         (IN_CTYPE_DOMAIN): New macro.
57699         (is_space): New fn.
57700         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
57701         and empty lines.
57702
57703         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57704         Undo previous (whitespace-only) change.
57705
57706 2003-08-13  Paul Eggert  <eggert@twinsun.com>
57707
57708         * config/srclist-update: Change update back to the old behavior,
57709         leaving whitespace alone.  Use one 'sed' command rather than a
57710         pipeline.
57711         (fixlicense): Now a variable, not a function.
57712         (remove_trailing_blanks): Remove.
57713         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
57714         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57715         Undo previous (whitespace-only) change.
57716
57717 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57718
57719         Merge from coreutils.
57720         * modules/euidaccess: Add lib_SOURCES, include for new
57721         file euidaccess.h
57722
57723 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57724
57725         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
57726         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
57727         Normalize leading white space and remove trailing white space.
57728
57729         Merge from coreutils
57730         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
57731
57732         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
57733         0.12.1.  These files are now being upgraded automatically by
57734         ../config/srclist-update.
57735
57736 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57737
57738         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
57739         Normalize leading white space and remove trailing white space.
57740         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
57741         notice, as per ../config/srclist-update.
57742
57743         Merge from coreutils.
57744         * lib/euidaccess.h: New file.
57745         * lib/euidaccess.c: Include it.
57746         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
57747         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
57748         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
57749
57750 2003-08-12  Paul Eggert  <eggert@twinsun.com>
57751
57752         * config/srclist-update: Add copyright notice.
57753         (remove_id_lines, remove_trailing_blanks): New constants.
57754         (fixfile): Use them to normalize spacing a bit in copied files.
57755         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
57756         Normalize leading white space and remove trailing white space.
57757
57758         * config/texinfo.tex: Sync with texinfo.
57759
57760         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
57761         strtoul.c from libc, to merge coreutils whitespace changes.
57762
57763         * config/srclist.txt: Get the following m4 files from gettext:
57764         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
57765         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
57766         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
57767         wint_t.m4.
57768
57769 2003-08-12  Karl Berry  <karl@gnu.org>
57770
57771         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
57772         been made.
57773
57774 2003-08-11  Paul Eggert  <eggert@twinsun.com>
57775
57776         * modules/gnu-source, m4/gnu-source.m4:
57777         Remove; we're assuming Autoconf 2.54 or later now.
57778         Suggested by Bruno Haible.
57779         * MODULES.html.sh (func_all_modules): Remove gnu-source.
57780
57781 2003-08-11  Bruno Haible  <bruno@clisp.org>
57782
57783         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
57784
57785 2003-08-11  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
57788         (vasnprintf): Use it instead of wcslen.
57789
57790 2003-08-11  Bruno Haible  <bruno@clisp.org>
57791
57792         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
57793         value to ensure that _Bool promotes to int. Use #define for _Bool when
57794         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
57795
57796 2003-08-10  Karl Berry  <karl@gnu.org>
57797
57798         * lib/regex.h: update from libc (whitespace fix).
57799
57800 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57801
57802         Merge some files from coreutils.  These changes were
57803         originally made by Jim Meyering.
57804         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
57805         many older Unixes require this.
57806         * lib/alloca.c (alloca): Remove cast to argument of free;
57807         no longer needed in C89.
57808         * lib/alloca_.h, regex.h: Fix white space to match
57809         what GNU indent does.
57810
57811 2003-08-09  Paul Eggert  <eggert@twinsun.com>
57812
57813         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
57814         apparently Emacs's Unicode mode got confused before my 2003-08-05
57815         checkin.
57816
57817 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57818
57819         * m4/extensions.m4: New file.
57820         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
57821         Require gl_USE_SYSTEM_EXTENSIONS.
57822         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
57823         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
57824
57825 2003-08-08  Paul Eggert  <eggert@twinsun.com>
57826
57827         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
57828         * modules/extensions, modules/gnu-source: New files.
57829         * modules/timespec, modules/unlocked-io: Depend on extensions.
57830
57831 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57832
57833         * modules/restrict: New file.
57834         * MODULES.html.sh (func_all_modules): Add restrict.
57835         * modules/regex: Depend on restrict.
57836
57837 2003-08-07  Paul Eggert  <eggert@twinsun.com>
57838
57839         * m4/restrict.m4: New file.
57840         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
57841
57842 2003-08-07  Bruno Haible  <bruno@clisp.org>
57843
57844         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
57845         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
57846
57847 2003-08-07  Bruno Haible  <bruno@clisp.org>
57848
57849         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
57850         makes the module 'getndelim2' compatible with the module 'getline'.
57851
57852 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57853
57854         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
57855         byte with "\201" to avoid glitches when editing that source file
57856         with multi-gnome-terminal.
57857
57858 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57859
57860         * lib/bumpalloc.h: Remove.
57861
57862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
57863
57864         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
57865         * modules/bumpalloc: Remove.
57866
57867 2003-08-04  Paul Eggert  <eggert@twinsun.com>
57868
57869         * lib/getloadavg.c: Change copyright notice and spacing to conform to
57870         GNU coding style.
57871
57872         Merge from coreutils.
57873         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
57874         1. From glibc.
57875         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
57876         from Karl Berry, implemented by Jim Meyering.
57877         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
57878         from Dmitry V. Levin.
57879         Remove anachronistic cast of xrealloc.
57880         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
57881         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
57882         type. Otherwise, it wouldn't compile with at least /bin/cc on
57883         ymp-cray-unicos9.0.2.X.
57884         Combine two mostly-identical uses of alloca into one.
57885         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
57886
57887 2003-08-04  Dave Love  <d.love@dl.ac.uk>
57888
57889         [From Emacs.]
57890
57891         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
57892         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
57893         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
57894         obsolete NLIST_NAME_UNION.
57895         [__GNU__]: Undef BSD and FSCALE.
57896         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
57897
57898 2003-08-03  Paul Eggert  <eggert@twinsun.com>
57899
57900         * lib/stdbool_.h (_Bool): Make it signed char, instead of
57901         an enum type, so that it's guaranteed to promote to int.  See:
57902         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
57903
57904 2003-08-03  Karl Berry  <karl@gnu.org>
57905
57906         * config/depcomp: update from automake.
57907
57908 2003-07-31  Paul Eggert  <eggert@twinsun.com>
57909
57910         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
57911         (strerror): Don't assume that a printable int fits in 14 bytes.
57912
57913 2003-07-31  Bruno Haible  <bruno@clisp.org>
57914
57915         * modules/getpass-gnu: New file.
57916         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
57917
57918 2003-07-31  Bruno Haible  <bruno@clisp.org>
57919
57920         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
57921
57922 2003-07-24  Karl Berry  <karl@gnu.org>
57923
57924         * config/missing: update from automake.
57925
57926 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
57927             Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
57930         * lib/getline.c (getline, getdelim): Likewise.
57931         Remove _GNU_SOURCE define; now it's defined in config.h through
57932         m4/getline.m4.
57933
57934 2003-07-23  Karl Berry  <karl@gnu.org>
57935
57936         * config/config.sub: update from prep.
57937
57938 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57939
57940         * modules/xalloc (Depends-on): Add exitfail.
57941         * modules/xmemcoll: Likewise.
57942
57943 2003-07-22  Paul Eggert  <eggert@twinsun.com>
57944
57945         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
57946         over-parenthesization in macros.
57947
57948         Sync with coreutils.
57949
57950         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
57951         required by C99.
57952
57953         Use `exit_failure' for xalloc and xmemcoll instead of their own
57954         private exit-failure variables.
57955         * lib/xalloc.h (xalloc_exit_failure): Remove.
57956         * lib/xmalloc.c: Likewise.  Include exitfail.h.
57957         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
57958         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
57959         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
57960         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
57961
57962 2003-07-20  Jim Meyering  <jim@meyering.net>
57963
57964         * modules/closeout (Depends-on): Add exitfail.
57965         Suggestion from Bruno Haible.
57966
57967 2003-07-19  Karl Berry  <karl@gnu.org>
57968
57969         * config/config.sub: update from prep.
57970
57971 2003-07-18  Paul Eggert  <eggert@twinsun.com>
57972
57973         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
57974         Remove.
57975         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
57976         to test that it can stand by itself.  Include "exitfail.h".
57977         Clients should set exit_failure instead.
57978         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
57979
57980 2003-07-18  Bruno Haible  <bruno@clisp.org>
57981
57982         * modules/getndelim2: New file.
57983         * modules/getline: Share files with module getndelim2.
57984         * modules/getnline: Depend on getndelim2 instead of sharing files with
57985         it. Add getnline.c to lib_SOURCES.
57986         * MODULES.html.sh (func_all_modules): Add getndelim2.
57987
57988 2003-07-18  Bruno Haible  <bruno@clisp.org>
57989
57990         * m4/getndelim2.m4: New file.
57991         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
57992         invoke gl_PREREQ_GETNDELIM2.
57993         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
57994         gl_PREREQ_GETNDELIM2.
57995         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
57996         gl_GETNDELIM2.
57997
57998 2003-07-18  Bruno Haible  <bruno@clisp.org>
57999
58000         * lib/getndelim2.h: New file.
58001         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58002         getndelim2.h.
58003         (getndelim2): Make non-static. Change return type to ssize_t.
58004         * lib/getline.h: Change argument names.
58005         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58006         * lib/getnline.c: Include getndelim2.h.
58007
58008 2003-07-18  Andreas Schwab  <schwab@suse.de>
58009
58010         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58011
58012 2003-07-17  Karl Berry  <karl@gnu.org>
58013
58014         * config/config.sub: update from prep.
58015
58016 2003-07-17  Bruno Haible  <bruno@clisp.org>
58017
58018         * modules/getnline: New file.
58019         * modules/getline: Add lib/getndelim2.c to source file list.
58020         * MODULES.html.sh (func_all_modules): Add getnline.
58021
58022 2003-07-17  Bruno Haible  <bruno@clisp.org>
58023
58024         * m4/getnline.m4: New file.
58025
58026 2003-07-17  Bruno Haible  <bruno@clisp.org>
58027
58028         * m4/Makefile.am.in: Remove file.
58029         * m4/Makefile.am: Remove file.
58030         * m4/Makefile.in: Remove file.
58031
58032 2003-07-17  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/getnline.h: New file.
58035         * lib/getnline.c: New file.
58036         * lib/getndelim2.c: New file, extracted from getline.c.
58037         (getndelim2): Renamed from getdelim2, with added nmax argument.
58038         * lib/getline.c: Include getndelim2.c.
58039         (getdelim2): Moved out to getndelim2.c.
58040         (getline, getdelim): Update.
58041
58042 2003-07-17  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/Makefile.am: Remove file.
58045         * lib/Makefile.in: Remove file.
58046
58047 2003-07-17  Bruno Haible  <bruno@clisp.org>
58048
58049         * configure.in: Remove file.
58050         * Makefile.in: Remove file.
58051
58052 2003-07-17  Bruno Haible  <bruno@clisp.org>
58053
58054         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58055
58056 2003-07-16  Karl Berry  <karl@gnu.org>
58057
58058         * config/srclist-update: was running fixlicense twice, which caused
58059                 texinfo.tex to be nullified for some reason.  Simplify,
58060                 $gplsrc is no longer needed as far as I can see?
58061
58062 2003-07-16  Jim Meyering  <jim@meyering.net>
58063
58064         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58065
58066 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58067
58068         * config/srclist.txt: Get the following files from gettext-runtime/intl
58069         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58070         ref-del.sin.  From Bruno Haible.
58071         * config/srclist-update (fixfile): Change grep pattern again, since the
58072         previous fix didn't work (there was another trailing $).  Use
58073         '[$]' to escape the $s.
58074
58075 2003-07-15  Karl Berry  <karl@gnu.org>
58076
58077         * lib/vasnprintf.c: update from gettext.
58078
58079 2003-07-15  Karl Berry  <karl@gnu.org>
58080
58081         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58082         gets expanded when surrounded by '$'.
58083
58084 2003-07-15  Jim Meyering  <jim@meyering.net>
58085
58086         * modules/save-cwd: Don't depend on error.  From Derek Price.
58087
58088 2003-07-15  Jim Meyering  <jim@meyering.net>
58089
58090         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58091
58092 2003-07-14  Simon Josefsson  <jas@extundo.com>
58093
58094         * modules/mempcpy: New file.
58095         * MODULES.html.sh (func_all_modules): Add mempcpy.
58096
58097 2003-07-14  Simon Josefsson  <jas@extundo.com>
58098
58099         * m4/mempcpy.m4: New file.
58100
58101 2003-07-14  Simon Josefsson  <jas@extundo.com>
58102
58103         * lib/mempcpy.h: New file.
58104         * lib/mempcpy.c: New file.
58105
58106 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58107
58108         * modules/getdate, modules/posixtm: Depend on mktime.
58109
58110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58111
58112         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58113         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58114         unicodeio.c, unicodeio.h, unlocked-io.h:
58115         Switch from LGPL to GPL.
58116
58117 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58118
58119         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58120         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58121         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58122         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58123         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58124         updated automatically by ../config/srclist-update.  This changes
58125         their license from LPGL to GPL.
58126
58127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58128
58129         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58130         assumed to refer to the root of the most recent stable gettext version.
58131         * config/srclistvars.sh: Add defaults for eggert.
58132         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58133         Match "This program" as well as "The program".  This is needed
58134         for gettext.
58135
58136 2003-07-14  Jim Meyering  <jim@meyering.net>
58137
58138         Don't emit diagnostics.  Let callers do that.
58139         * lib/save-cwd.c: Don't include "error.h".
58140         (save_cwd): Don't call error.  Ensure that errno is valid
58141         when returning nonzero.
58142
58143         * lib/save-cwd.h (restore_cwd): Update prototype.
58144         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58145         Simplify.  Don't call error upon failure.  Let callers do that.
58146         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58147         when auditing is enabled.  But don't bother updating the #if.
58148
58149 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58150
58151         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58152         it breaks C++ compilation.
58153         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58154
58155 2003-07-10  Simon Josefsson  <jas@extundo.com>
58156
58157         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58158
58159 2003-07-10  Jim Meyering  <jim@meyering.net>
58160
58161         * m4/clock_time.m4: Remove trailing blank.
58162         * m4/intmax_t.m4: Likewise.
58163
58164 2003-07-10  Jim Meyering  <jim@meyering.net>
58165
58166         * lib/vasnprintf.c: Remove trailing blanks.
58167         Make cpp indentation consistent.
58168
58169 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58170
58171         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58172         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58173         Switch from LGPL to GPL.
58174
58175 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58176
58177         * config/srclist.txt: Sort sublists.  Add
58178         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58179         that differ from gnulib for one reason or another; we'd like this list
58180         to be smaller but for now let's document what we have.
58181
58182 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58183
58184         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58185         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58186         and sweeter "eval x=$x".
58187         * config/srclist.txt: Get lib/argp* from glibc.
58188
58189 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58190
58191         * lib/mktime.c: Fix some boundary cases and remove need for floating
58192         point.
58193
58194         Issue a compile-time diagnostic if time_t is floating point, or if
58195         two's complement arithmetic is not in effect, or if arithmetic
58196         right shift does not propagate the sign.  These assumptions were
58197         all in the original code but they weren't checked.
58198
58199         (TIME_T_MIDPOINT, verify): New macros.
58200         (__isleap): Remove; it has integer overflow problems.
58201         (leapyear): New function, without those problems.
58202         (ydhms_tm_diff): Remove; splitting into two parts.
58203         (ydhms_diff): New function, containing the arithmetic part of
58204         the old ydhms_tm_diff function.  Issue a compile-time
58205         diagnostic if we are not using C99 integer division.
58206         Avoid casts when possible.
58207         (guess_time_tm): New function, containing the checking part of
58208         the old ydhms_tm_diff function.  Return the new value, rather than
58209         the difference between it and the old.  Accept a new argument T
58210         so that *T specifies the old value.  Check for overflow in the result.
58211
58212         (__mktime_internal): Use a time_t offset, not a long int offset.
58213         This undoes the 2003-06-04 change, which is no longer needed now
58214         that we have better overflow checking.
58215         (localtime_offset): Likewise.
58216
58217         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58218         and long are 64-bit but int is only 32-bit.
58219         (ydhms_diff): Use long int to store year1 and yday1.
58220         Issue a compile-time diagnostic if long int is not wide enough.
58221
58222         (__mktime_internal): Use long int to store adjusted year and yday.
58223         Use plain C rather than preprocessor commands, if that doesn't
58224         affect efficiency.
58225         Check for overflow (and try to repair) after each probe
58226         rather than checking only at the very end.  This avoids some bugs
58227         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58228         does not equal GMT offset at maximum time).
58229         Use integer to check for overflow rather than floating point; this
58230         is more portable to non-IEEE hosts, and is a tad faster.
58231         When we detect that we are oscillating between two values,
58232         don't check whether tm_isdst has the requested value, since
58233         we already know the answer.  When tm_isdst has the wrong value,
58234         use a different heuristic to find the right one, based on the
58235         extreme values actually observed in practice in tz2003a,
58236         rather than the (overly optimistic) "previous 3 calendar quarters".
58237
58238         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58239         "T const" to accommodate glibc style.
58240         (check_result): Use less-confusing report format.  "long" -> "long int.
58241         (main): Likewise.
58242         Don't loop if the iteration overflows time_t.
58243         Allow a negative step in the iteration.
58244
58245 2003-07-06  Karl Berry  <karl@gnu.org>
58246
58247         * config/depcomp: update from automake.
58248         * config/config.sub: update from prep.
58249
58250 2003-07-03  Karl Berry  <karl@gnu.org>
58251
58252         * config/config.guess: update from prep.
58253
58254 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58255
58256         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58257         xreadlink.c now includes it unconditionally.
58258
58259 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58260
58261         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58262         having it depend on HAVE_SYS_TYPES_H.
58263
58264 2003-07-01  Bruno Haible  <bruno@clisp.org>
58265
58266         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58267         <sys/types.h> should be sufficient.
58268         Reported by Paul Eggert.
58269
58270 2003-06-26  Karl Berry  <karl@gnu.org>
58271
58272         * config/depcomp: update from automake.
58273
58274 2003-06-26  Bruno Haible  <bruno@clisp.org>
58275
58276         * modules/human: Depend on module stdbool.
58277
58278 2003-06-25  Bruno Haible  <bruno@clisp.org>
58279
58280         * modules/readlink: New file.
58281         * modules/xreadlink: Depend on it.
58282         * MODULES.html.sh (func_all_modules): Add readlink.
58283
58284 2003-06-25  Bruno Haible  <bruno@clisp.org>
58285
58286         * m4/readlink.m4: New file.
58287
58288 2003-06-25  Bruno Haible  <bruno@clisp.org>
58289
58290         * lib/readlink.c: New file.
58291
58292 2003-06-22  Karl Berry  <karl@gnu.org>
58293
58294         * config/srclist.txt: update mkinstalldirs from automake.
58295         * config/mkinstalldirs: update.
58296
58297 2003-06-22  Bruno Haible  <bruno@clisp.org>
58298
58299         Portability to mingw32.
58300         * m4/ssize_t.m4: New file, from GNU gettext.
58301         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58302         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58303
58304 2003-06-22  Bruno Haible  <bruno@clisp.org>
58305
58306         * modules/safe-read: Add m4/ssize_t.m4.
58307         * modules/xreadlink: Add m4/ssize_t.m4.
58308
58309 2003-06-20  Bruno Haible  <bruno@clisp.org>
58310
58311         Assume C89, so PARAMS isn't needed.
58312         * lib/unicodeio.h (PARAMS): Remove.
58313         * lib/unicodeio.c: Don't use PARAMS.
58314
58315 2003-06-18  Karl Berry  <karl@gnu.org>
58316
58317         * config/config.{guess,sub}: update from prep.
58318
58319 2003-06-18  Jim Meyering  <jim@meyering.net>
58320
58321         Merge changes from coreutils.
58322         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58323         Remove explicit declarations of xmalloc and realloc.
58324         Include xalloc.h.
58325         (read_utmp): Remove anachronistic cast of xmalloc.
58326
58327 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58328
58329         Assume C89, so PARAMS isn't needed.
58330         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58331         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58332         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58333         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58334         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58335         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58336         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58337         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58338         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58339         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58340         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58341         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58342         no longer needed. Anyway, config.h should always be included before any
58343         other file.
58344
58345 2003-06-11  Simon Josefsson  <jas@extundo.com>
58346
58347         * modules/sysexits: New file.
58348         * MODULES.html.sh (func_all_modules): Add sysexits.
58349
58350 2003-06-11  Simon Josefsson  <jas@extundo.com>
58351
58352         * lib/sysexit_.h: New file.
58353
58354 2003-06-11  Derek Price  <derek@ximbiot.com>
58355
58356         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58357         necessary.
58358
58359 2003-06-11  Bruno Haible  <bruno@clisp.org>
58360
58361         * m4/sysexits.m4: New file.
58362
58363 2003-06-10  Simon Josefsson  <jas@extundo.com>
58364
58365         * lib/argp.h: New file, from glibc.
58366         * lib/argp-ba.c: New file, from glibc.
58367         * lib/argp-eexst.c: New file, from glibc.
58368         * lib/argp-fmtstream.c: New file, from glibc.
58369         * lib/argp-fmtstream.h: New file, from glibc.
58370         * lib/argp-fs-xinl.c: New file, from glibc.
58371         * lib/argp-help.c: New file, from glibc.
58372         * lib/argp-namefrob.h: New file, from glibc.
58373         * lib/argp-parse.c: New file, from glibc.
58374         * lib/argp-pv.c: New file, from glibc.
58375         * lib/argp-pvh.c: New file, from glibc.
58376         * lib/argp-xinl.c: New file, from glibc.
58377
58378 2003-06-10  Simon Josefsson  <jas@extundo.com>
58379
58380         * modules/strchrnul: New file.
58381
58382 2003-06-10  Simon Josefsson  <jas@extundo.com>
58383
58384         * modules/argp: New file.
58385
58386 2003-06-10  Simon Josefsson  <jas@extundo.com>
58387
58388         * m4/strchrnul.m4: New file.
58389
58390 2003-06-10  Simon Josefsson  <jas@extundo.com>
58391
58392         * lib/strchrnul.h: New file.
58393         * lib/strchrnul.c: New file.
58394
58395 2003-06-10  Bruno Haible  <bruno@clisp.org>
58396
58397         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58398
58399 2003-06-07  Karl Berry  <karl@gnu.org>
58400
58401         * config/config.{guess,sub}: update from prep.
58402
58403 2003-06-07  Jim Meyering  <jim@meyering.net>
58404
58405         * modules/strtod: Use $(...) notation, not @...@ for
58406         AC_REPLACE'd variables.
58407         * modules/localcharset: Likewise.
58408
58409 2003-06-07  Jim Meyering  <jim@meyering.net>
58410
58411         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58412         in place of my name in the copyright comment.
58413         Remove definition and uses of __P.
58414
58415         From coreutils.
58416         * lib/stat.c: Don't declare xmalloc explicitly.
58417         Instead, include "xalloc.h".
58418         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58419         xrealloc, and xcalloc return values.
58420         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58421         Improve comment.
58422         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58423
58424 2003-06-07  Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58427         avoid AC_CONFIG_LINKS.
58428         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58429         fnmatch.h, to avoid AC_CONFIG_LINKS.
58430         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58431
58432 2003-06-07  Bruno Haible  <bruno@clisp.org>
58433
58434         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58435         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58436         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58437         directory.
58438         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58439         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58440         directory.
58441
58442 2003-06-06  Jim Meyering  <jim@meyering.net>
58443
58444         Merge from coreutils.
58445         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58446         Consolidate declarations and initializations of *_base* locals.
58447
58448         Merge from coreutils.
58449         This avoids a core dump on systems without GNU putenv,
58450         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58451         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58452         (unsetenv): New static function, from GNU libc.
58453         (rpl_putenv): Use it.
58454
58455         * lib/modechange.c: Remove trailing blanks.
58456
58457         Merge from coreutils.
58458         * lib/fsusage.c: Remove declaration of statfs.
58459         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58460
58461         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58462
58463 2003-06-06  Jim Meyering  <jim@meyering.net>
58464
58465         * lib/stdbool_.h: Renamed from stdbool.h.in.
58466
58467 2003-06-06  Jim Meyering  <jim@meyering.net>
58468             Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58471         Adjust Makefile.am snippet not to redirect directly to target.
58472         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58473
58474 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58475
58476         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58477         mismatch, look in future quarters as well as past.  This fixes a
58478         bug when processing fall-backwards gaps immediately after a long
58479         period of daylight-saving time.
58480
58481         * lib/mktime.c: Assume freestanding C89 or better.
58482         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58483         (__P): Remove; not used.
58484         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58485         (mktime, not_equal_tm, print_tm, check_result,
58486         main): Use prototypes.  Use const * where appropriate.
58487         (main): Fix typo in testing code that uncovered by above changes.
58488         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58489
58490 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58491
58492         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58493         locale.h, localeconv.  This merges changes from coreutils.
58494
58495         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58496         It can be removed after the next Autoconf is released.
58497         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58498         needed.
58499
58500 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58501
58502         * lib/mktime.c: Fix Debian bug 177940
58503         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58504         (localtime_offset): Now long int, not time_t, because we want it
58505         to be guaranteed to be signed.  All uses changed.
58506         (__mktime_internal): If overflow would occur when adding offset,
58507         don't add it.
58508
58509         Merge 'human' changes from coreutils.  Rewrite to support
58510         locale-specific notations like thousands separators.
58511         * lib/human.c: Simplify authorship notice.
58512         Include human.h immediately after config.h.
58513         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58514         <limits.h>: Do not include, since human.h does.
58515         (SIZE_MAX, UINTMAX_MAX): New macros.
58516         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58517         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58518         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58519         (power_letter): Renamed from suffixes.
58520         (generate_suffix_backwards): Remove.
58521         (adjust_value): Now takes int style (because of human.h changes)
58522         and long double value (for greater precision on some platforms).
58523         (group_number): New function.
58524         (human_readable): Use it.  Use integer options, not enum.
58525         Put the options before the sizes in the arg list.
58526         Support all the new options.
58527         The old human_readable function has been removed;
58528         use inttostr.h instead.
58529         (human_readable, default_block_size, humblock):
58530         Use uintmax_t, not int, for block sizes.
58531         (human_readable_inexact, block_size_types): Remove.
58532         (block_size_opts): New constant.
58533         (human_options): Renamed from human_block_size, with new signature
58534         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58535         * lib/human.h: Add copyright and authorship notice.
58536         Include <limits.h> and <stdbool.h> unconditionally.
58537         (PARAMS): Remove.  All uses removed.
58538         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58539         (enum human_inexact_style): Remove tag; now a nameless enum.
58540         (human_floor, human_ceiling, human_round_to_even): Now have
58541         values 2, 0, 1 rather than -1, 1, 0.
58542         (human_group_digits, human_suppress_point_zero, human_autoscale,
58543         human_base_1024, human_SI, human_B): New constants.
58544         (human_readable_inexact, human_block_size): Remove.
58545         (human_readable): Size args are now uintmax_t, not int.
58546         (human_options): New decl.
58547
58548         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58549         unnecessary now that we assume C89 or better.  This change
58550         imported from coreutils.
58551
58552         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58553         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58554         in the 2003-05-30 sync from glibc.
58555
58556         .h files should stand alone, but we shouldn't include <sys/types.h>
58557         if we can get away with just <stddef.h>.
58558
58559         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58560         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58561         rather than <sys/types.h>, as we merely need size_t.
58562         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58563         to get size_t.
58564         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58565         Include <stdio.h>, to get FILE.
58566         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58567         memcasecmp.h has included <stddef.h> and all we need is size_t.
58568         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58569         our interface, instead of including <sys/types.h>
58570
58571 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58572
58573         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58574         now, as glibc mktime is buggy on non-glibc systems.
58575
58576 2003-06-03  Karl Berry  <karl@gnu.org>
58577
58578         * config/config.sub: update from prep.
58579
58580 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58581
58582         [from coreutils]
58583         Fix some minor time-related bugs with POSIX time arguments.
58584         Some valid time stamps were being rejected (notably -1, and
58585         time stamps before 1900 on 64-bit hosts).  And some invalid
58586         time stamps were being accepted, e.g. September 31.
58587
58588         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58589         that we can return (time_t) -1 successfully.
58590         * lib/posixtm.c: Likewise.
58591         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58592         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58593         (t): Remove static var.
58594         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58595         of static var.  All uses changed.
58596         (year): Do not reject years before 1900; they can occur with
58597         64-bit time_t.
58598         (posix_time_parse): Do not check for out-of-range components;
58599         that is now the caller's responsibility, since our checks were
58600         only approximations.
58601         (posixtime): Use mktime to check for out-of-range components,
58602         since it knows them exactly.
58603         If mktime returns (time_t) -1, check whether an error actually occurred
58604         by invoking localtime on -1.
58605         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58606         posixtime failures better.
58607         Improve the test data (in comments only).
58608
58609 2003-06-02  Karl Berry  <karl@gnu.org>
58610
58611         * config/mkinstalldirs (version): new variable.
58612         (--version): new option.
58613         (usage): improve message.
58614
58615 2003-05-30  Karl Berry  <karl@gnu.org>
58616
58617         * lib/mktime.c: update from libc.
58618
58619 2003-05-30  Bruno Haible  <bruno@clisp.org>
58620
58621         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58622         * config/config.rpath: Upgrade to gettext-0.12.1.
58623
58624 2003-05-30  Bruno Haible  <bruno@clisp.org>
58625
58626         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58627         * m4/nls.m4: New file, from gettext-0.12.1.
58628         * m4/po.m4: New file, from gettext-0.12.1.
58629         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58630
58631 2003-05-30  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58634         * lib/localcharset.h: Likewise.
58635         * lib/localcharset.c: Likewise.
58636
58637 2003-05-29  Karl Berry  <karl@gnu.org>
58638
58639         * config/config.rpath: update from gettext.
58640
58641 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58642
58643         Assume the headers required for C89 freestanding compilers.
58644         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58645         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58646         * m4/human.m4 (gl_HUMAN): Likewise.
58647         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58648         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58649         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58650         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58651         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58652         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58653
58654 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58655
58656         Assume the headers required for C89 freestanding compilers.
58657         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58658         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58659         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58660         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58661         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58662         define, since <limits.h> is guaranteed to do that.
58663         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58664         * lib/exclude.c: Include <stdbool.h> unconditionally.
58665         * lib/tempname.c: Include <stddef.h> unconditionally.
58666         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58667         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58668         <stddef.h> does that.
58669         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58670         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58671         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58672         needed.
58673         * lib/xstrtol.c: Likewise.
58674         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58675         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58676
58677         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58678         warnings on some platforms.
58679
58680         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58681         arbitrarily.
58682
58683 2003-05-26  Jim Meyering  <jim@meyering.net>
58684
58685         Merge in a change from coreutils:
58686         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
58687         that is guaranteed to be `no'.  Use `no_such_member' to indicate
58688         that condition, rather than `-1' which is slightly misleading.
58689         Change the name of the cache variable to have the gl_ prefix.
58690         Prompted by a patch from Richard Dawe for DJGPP.
58691
58692 2003-05-24  Karl Berry  <karl@gnu.org>
58693
58694         * config/config.guess: update from prep.
58695
58696 2003-05-22  Karl Berry  <karl@gnu.org>
58697
58698         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
58699
58700 2003-05-20  Karl Berry  <karl@gnu.org>
58701
58702         * config/config.guess: update from prep.
58703
58704 2003-05-18  Karl Berry  <karl@gnu.org>
58705
58706         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
58707         might actually be set by the user.
58708
58709         * config/depcomp, install-sh, mdate-sh: update from automake.
58710
58711 2003-05-17  Bruno Haible  <bruno@clisp.org>
58712
58713         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
58714         invalid expansion for AC_EGREP_CPP.
58715         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
58716         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
58717         Suggested by Akim Demaille <akim@epita.fr> in
58718         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
58719
58720 2003-05-12  Jim Meyering  <jim@meyering.net>
58721
58722         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
58723         the space-padded-by-default conversion specifiers, %e, %k, %l.
58724
58725 2003-05-12  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
58728         the string is longer than 4 KB.
58729
58730 2003-05-11  Karl Berry  <karl@gnu.org>
58731
58732         * config/config.{guess,sub}: update from prep.
58733
58734 2003-05-09  Bruno Haible  <bruno@clisp.org>
58735
58736         * modules/error: Add m4/strerror_r.m4 to file list.
58737
58738 2003-05-03  Bruno Haible  <bruno@clisp.org>
58739
58740         Upgrade to Unicode-4.0.
58741         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
58742         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
58743         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
58744         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
58745         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
58746         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
58747         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
58748         Change width of U+E0100..U+E01EF from 1 to 0.
58749
58750 2003-04-25  Jim Meyering  <jim@meyering.net>
58751
58752         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
58753         of type size_t, not int.
58754
58755 2003-04-25  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/copy-file.c: Include <stddef.h>, for size_t.
58758
58759 2003-04-21  Paul Eggert  <eggert@twinsun.com>
58760
58761         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
58762         code which expansion is under static control.  Patch imported from
58763         Akim Demaille's patch to Bison; see
58764         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
58765
58766 2003-04-14  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
58769
58770 2003-04-11  Jim Meyering  <jim@meyering.net>
58771
58772         Merge changes from Coreutils.
58773
58774         2003-03-22  Jim Meyering  <jim@meyering.net>
58775
58776         * lib/strftime.c (widen): Cast alloca return value to proper type.
58777
58778         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
58779
58780         From GNU libc.
58781         * lib/strftime.c (my_strftime): Handle very large width
58782         specifications for numeric values correctly.  Improve checks for
58783         overflow.
58784
58785         2003-01-19  Jim Meyering  <jim@meyering.net>
58786
58787         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
58788         definitions.
58789         (nl_get_alt_digit) [! defined my_strftime]: Define.
58790         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
58791         _nl_get_alt_digit and _nl_get_walt_digit.
58792
58793         * lib/strftime.c (my_strftime): Merge in locale-related changes from
58794         libc. These changes have no effect outside of _LIBC.
58795
58796 2003-04-10  Bruno Haible  <bruno@clisp.org>
58797
58798         * modules/findprog: New file.
58799         * MODULES.html.sh (func_all_modules): Add it.
58800
58801 2003-04-10  Bruno Haible  <bruno@clisp.org>
58802
58803         * m4/findprog.m4: New file.
58804         * m4/eaccess.m4: New file.
58805
58806 2003-04-10  Bruno Haible  <bruno@clisp.org>
58807
58808         * lib/findprog.h: New file, from GNU gettext.
58809         * lib/findprog.c: New file, from GNU gettext.
58810
58811 2003-04-05  Jim Meyering  <jim@meyering.net>
58812
58813         Merge changes from Coreutils.
58814
58815         * lib/exclude.h (PARAMS): Remove definition and uses.
58816         * lib/exclude.c: Remove uses of `PARAMS'.
58817
58818         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
58819         Add test-cases for DOS filenames. Declare program_name.
58820         (main): Set up program_name.  Patch by Rich Dawe.
58821
58822         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58823         error from mntctl.
58824         Use mntctl's return value to drive the entry-processing loop, since
58825         we can't rely on the value of the vmt_length member in the last
58826         entry.  On some systems doing so could result in exhausting
58827         virtual memory.  Based in part on a patch from Mike Jetzer.
58828
58829 2003-04-04  Bruno Haible  <bruno@clisp.org>
58830
58831         * modules/linebreak: New file.
58832         * MODULES.html.sh (func_all_modules): Add it.
58833
58834 2003-04-04  Bruno Haible  <bruno@clisp.org>
58835
58836         * m4/linebreak.m4: New file.
58837
58838 2003-04-04  Bruno Haible  <bruno@clisp.org>
58839
58840         * lib/linebreak.h: New file, from GNU gettext.
58841         * lib/linebreak.c: New file, from GNU gettext with slight
58842         modifications.
58843         * lib/lbrkprop.h: New file, from GNU gettext.
58844
58845 2003-04-03  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/utf8-ucs4: New file.
58848         * modules/utf16-ucs4: New file.
58849         * modules/ucs4-utf8: New file.
58850         * modules/ucs4-utf16: New file.
58851         * MODULES.html.sh (func_all_modules): Add them.
58852
58853 2003-04-03  Bruno Haible  <bruno@clisp.org>
58854
58855         * m4/utf-ucs4.m4: New file.
58856         * m4/ucs4-utf.m4: New file.
58857
58858 2003-04-03  Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/utf8-ucs4.h: New file, from GNU gettext.
58861         * lib/utf16-ucs4.h: New file, from GNU gettext.
58862         * lib/ucs4-utf8.h: New file, from GNU gettext.
58863         * lib/ucs4-utf16.h: New file, from GNU gettext.
58864
58865 2003-04-02  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/binary-io: New file.
58868         * MODULES.html.sh (func_all_modules): Add it.
58869
58870 2003-04-02  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/binary-io.h: New file, from GNU gettext.
58873
58874 2003-04-01  Bruno Haible  <bruno@clisp.org>
58875
58876         * modules/pathname: New file.
58877         * MODULES.html.sh (func_all_modules): Add it.
58878
58879 2003-04-01  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/pathname.h: New file, from GNU gettext.
58882         * lib/concatpath.c: New file, from GNU gettext.
58883
58884 2003-03-30  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
58887
58888 2003-03-30  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
58891         function chown() doesn't exist.
58892
58893 2003-03-28  Bruno Haible  <bruno@clisp.org>
58894
58895         * modules/copy-file: New file.
58896         * MODULES.html.sh (func_all_modules): Add it.
58897
58898 2003-03-28  Bruno Haible  <bruno@clisp.org>
58899
58900         * m4/copy-file.m4: New file.
58901
58902 2003-03-28  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/copy-file.h: New file, from GNU gettext.
58905         * lib/copy-file.c: New file, from GNU gettext.
58906
58907 2003-03-18  Jim Meyering  <jim@meyering.net>
58908
58909         * lib/quote.c (quote_n): Fix typo in comment.
58910
58911 2003-03-18  Bruno Haible  <bruno@clisp.org>
58912
58913         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
58914         checking.
58915         * m4/onceonly_2_57.m4: Likewise.
58916
58917 2003-03-17  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/onceonly.m4: Require autoconf 2.54 or newer.
58920         (m4_quote): Remove macro.
58921         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
58922
58923 2003-03-14  Jim Meyering  <jim@meyering.net>
58924
58925         Merge changes from Coreutils.
58926         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
58927         to be const, in order to avoid warnings.
58928         (obstack_room): Likewise.
58929         (obstack_empty_p): Likewise.
58930
58931 2003-03-14  Bruno Haible  <bruno@clisp.org>
58932
58933         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
58934         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
58935
58936 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58937
58938         Merge changes from Bison.
58939         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
58940         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
58941         when compiling Bison 1.875's `bitset bset = obstack_alloc
58942         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
58943         * lib/hash.c: Include <stdbool.h> unconditionally.
58944
58945 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58946
58947         * m4/onceonly.m4 (m4_quote): New macro.
58948         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
58949         Quote AC_FOREACH variable-expansions properly.
58950
58951 2003-03-13  Paul Eggert  <eggert@twinsun.com>
58952
58953         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
58954
58955 2003-03-09  Paul Eggert  <eggert@twinsun.com>
58956
58957         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
58958         Reported by Bruce Becker; see:
58959         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
58960
58961 2003-03-03  Paul Eggert  <eggert@twinsun.com>
58962             Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
58965         Reported by John Hughes, see
58966         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
58967
58968 2003-02-20  Bruno Haible  <bruno@clisp.org>
58969
58970         * MODULES.html.sh (func_all_modules): Add poll.
58971
58972 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58973
58974         * modules/poll: New file.
58975
58976 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58977
58978         * lib/poll_.h: New file.
58979         * lib/poll.c: New file.
58980
58981 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
58982
58983         * m4/poll.m4: New file.
58984
58985 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58986
58987         * modules/mathl: New file.
58988
58989 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
58990
58991         * lib/mathl.h: New file.
58992         * lib/acosl.c: New file.
58993         * lib/asinl.c: New file.
58994         * lib/atanl.c: New file.
58995         * lib/ceill.c: New file.
58996         * lib/cosl.c: New file.
58997         * lib/expl.c: New file.
58998         * lib/floorl.c: New file.
58999         * lib/frexpl.c: New file.
59000         * lib/ldexpl.c: New file.
59001         * lib/logl.c: New file.
59002         * lib/sincosl.c: New file.
59003         * lib/sinl.c: New file.
59004         * lib/sqrtl.c: New file.
59005         * lib/tanl.c: New file.
59006         * lib/trigl.c: New file.
59007         * lib/trigl.h: New file.
59008
59009 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59010
59011         * m4/mathl.m4: New file.
59012
59013 2003-02-18  Bruno Haible  <bruno@clisp.org>
59014
59015         * MODULES.html.sh (func_all_modules): Add mathl.
59016
59017 2003-02-17  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/mkdtemp: New module.
59020         * MODULES.html.sh (func_all_modules): Add it.
59021
59022 2003-02-17  Bruno Haible  <bruno@clisp.org>
59023
59024         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59025
59026 2003-02-17  Bruno Haible  <bruno@clisp.org>
59027
59028         * lib/mkdtemp.h: New file, from GNU gettext.
59029         * lib/mkdtemp.c: New file, from GNU gettext.
59030
59031 2003-02-02  Jim Meyering  <jim@meyering.net>
59032
59033         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59034         e.g. glibc-2.2.93.
59035
59036 2003-01-31  Bruno Haible  <bruno@clisp.org>
59037
59038         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59039         'rpl_rename'.
59040         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59041         'rpl_strnlen'.
59042         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59043         'rpl_strtod'.
59044         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59045         'rpl_utime'.
59046
59047 2003-01-31  Bruno Haible  <bruno@clisp.org>
59048
59049         * lib/rename.c: #undef rename before defining rpl_rename.
59050         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59051
59052 2003-01-30  Bruno Haible  <bruno@clisp.org>
59053
59054         * modules/vasnprintf, modules/vasprintf: New modules.
59055         * MODULES.html.sh (func_all_modules): Add them.
59056
59057 2003-01-30  Bruno Haible  <bruno@clisp.org>
59058
59059         * m4/signed.m4: New file, from GNU gettext.
59060         * m4/longdouble.m4: New file, from GNU gettext.
59061         * m4/wchar_t.m4: New file, from GNU gettext.
59062         * m4/wint_t.m4: New file, from GNU gettext.
59063         * m4/vasnprintf.m4: New file.
59064         * m4/vasprintf.m4: New file.
59065
59066 2003-01-30  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/printf-args.h: New file, from GNU gettext.
59069         * lib/printf-args.c: New file, from GNU gettext.
59070         * lib/printf-parse.h: New file, from GNU gettext.
59071         * lib/printf-parse.c: New file, from GNU gettext.
59072         * lib/vasnprintf.h: New file, from GNU gettext.
59073         * lib/vasnprintf.c: New file, from GNU gettext.
59074         * lib/asnprintf.c: New file, from GNU gettext.
59075         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59076         * lib/vasprintf.c: New file, from GNU gettext.
59077         * lib/asprintf.c: New file, from GNU gettext.
59078
59079 2003-01-29  Bruno Haible  <bruno@clisp.org>
59080
59081         * modules/stpncpy: New module.
59082         * MODULES.html.sh (func_all_modules): Add it.
59083
59084 2003-01-29  Bruno Haible  <bruno@clisp.org>
59085
59086         * m4/stpncpy.m4: New file.
59087
59088 2003-01-29  Bruno Haible  <bruno@clisp.org>
59089
59090         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59091         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59092
59093 2003-01-28  Bruno Haible  <bruno@clisp.org>
59094
59095         * modules/c-ctype: New module.
59096         * MODULES.html.sh (func_all_modules): Add it.
59097
59098 2003-01-28  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59101         Paul Eggert.
59102         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59103         Paul Eggert.
59104
59105 2003-01-27  Bruno Haible  <bruno@clisp.org>
59106
59107         * modules/xsetenv: New module.
59108         * MODULES.html.sh (func_all_modules): Add it.
59109
59110 2003-01-27  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/xsetenv.h: New file, from GNU gettext.
59113         * lib/xsetenv.c: New file, from GNU gettext.
59114
59115 2003-01-23  Jim Meyering  <jim@meyering.net>
59116
59117         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59118         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59119
59120 2003-01-23  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/minmax: New module.
59123         * MODULES.html.sh (func_all_modules): Add it.
59124
59125 2003-01-23  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59128         Eggert.
59129
59130 2003-01-22  Bruno Haible  <bruno@clisp.org>
59131
59132         * modules/exit: New module.
59133         * MODULES.html.sh (func_all_modules): Add it.
59134
59135 2003-01-22  Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/exit.h: New file, from GNU gettext.
59138
59139 2003-01-19  Bruno Haible  <bruno@clisp.org>
59140
59141         * gnulib-tool: Recognize option --extract-maintainer.
59142         (func_get_maintainer): New function.
59143         * modules/*: Add Maintainer entry.
59144
59145 2003-01-16  Jim Meyering  <jim@meyering.net>
59146
59147         * m4/regex.m4: The `regex' struct is both input and output.
59148         Initialize it before each use.  Patch by Tim Waugh.
59149
59150 2003-01-16  Bruno Haible  <bruno@clisp.org>
59151
59152         * MODULES.html.sh: Add a table of contents. Add the module name as
59153         leftmost column. Add hyperlinks.
59154
59155 2003-01-15  Bruno Haible  <bruno@clisp.org>
59156
59157         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59158
59159 2003-01-15  Bruno Haible  <bruno@clisp.org>
59160
59161         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59162         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59163         suffix.
59164
59165 2003-01-15  Bruno Haible  <bruno@clisp.org>
59166
59167         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59168
59169 2003-01-15  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59172         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59173
59174 2003-01-14  Jim Meyering  <jim@meyering.net>
59175
59176         * lib/same.c (same_name): Tweak a comment.
59177
59178 2003-01-14  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59181         when a string comparison is sufficient.
59182
59183 2003-01-14  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59186         'unsigned int'.
59187
59188 2003-01-14  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/hash-pjw.c: Add comment about low quality of this function.
59191
59192 2003-01-13  Bruno Haible  <bruno@clisp.org>
59193
59194         * modules/stpcpy: Distribute lib/stpcpy.h.
59195         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59196
59197 2003-01-13  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/*: Add a description.
59200         * modules/strpbrk: Fix Makefile.am snippet.
59201         * modules/strtoimax: Fix dependencies.
59202         * modules/strtoumax: Likewise.
59203
59204 2003-01-13  Bruno Haible  <bruno@clisp.org>
59205
59206         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59207         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59208         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59209
59210 2003-01-13  Bruno Haible  <bruno@clisp.org>
59211
59212         * gnulib-tool (func_create_testdir): Store config/* files in the main
59213         directory.
59214         * config.rpath: Move to ...
59215         * config/config.rpath: ... here.
59216         * modules/gettext: Contains config/config.rpath, not config.rpath.
59217         * modules/iconv: Likewise.
59218
59219 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59220
59221         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59222         to avoid collisions with libcurses and libreadline.
59223
59224         * m4/getstr.m4: Remove.
59225         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59226
59227 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59228
59229         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59230         to avoid collisions with libcurses and libreadline.
59231
59232         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59233         * lib/getstr.h, getstr.c: Remove.
59234         * lib/getline.c: Include "getline.h", to check interface.
59235         Move body of old getstr.c here: this defines MIN_CHUNK and
59236         declares getdelim2, which is renamed from getstr.
59237         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59238
59239         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59240         All uses changed.
59241         * lib/linebuffer.h: Likewise.
59242         (readline): Remove backward-compatibility macro.
59243
59244 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59245
59246         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59247         to avoid collisions with libcurses and libreadline.
59248         * getstr: Remove.
59249         * MODULES.html.sh: Remove getstr.
59250         * modules/getline: Depend on unlocked-io, not getstr.
59251
59252 2003-01-12  Jim Meyering  <jim@meyering.net>
59253
59254         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59255
59256 2003-01-10  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/alloca: Change Makefile.am requirements. Simplify Include
59259         requirements. Add lib/alloca_.h to file list.
59260
59261 2003-01-10  Bruno Haible  <bruno@clisp.org>
59262
59263         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59264
59265 2003-01-10  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/alloca_.h: New file.
59268         * lib/getdate.y: Unconditionally include alloca.h.
59269         * lib/makepath.c: Likewise.
59270         * lib/setenv.c: Likewise.
59271         * lib/userspec.c: Likewise.
59272
59273 2003-01-09  Karl Berry  <karl@gnu.org>
59274
59275         * MODULES.html.sh: include `dirname $0` in PATH, to find
59276         gnulib-tool.
59277
59278 2003-01-09  Bruno Haible  <bruno@clisp.org>
59279
59280         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59281         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59282
59283 2003-01-09  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59286
59287 2003-01-09  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/stdbool.h.in: New file.
59290
59291 2003-01-09  Bruno Haible  <bruno@clisp.org>
59292
59293         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59294         * MODULES.html.sh: Likewise.
59295
59296 2003-01-08  Jim Meyering  <jim@meyering.net>
59297
59298         * lib/full-write.c: Undefine and define-away `const' after inclusion
59299         of errno.h, not before.  Suggestion from Bruno Haible.
59300
59301 2003-01-08  Bruno Haible  <bruno@clisp.org>
59302
59303         * modules/full-read: Depend on full-write.
59304
59305 2003-01-08  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/safe-read.c: Include specification header first, to ensure its
59308         selfcontainedness.
59309         * lib/full-write.c: Likewise.
59310
59311 2003-01-07  Jim Meyering  <jim@meyering.net>
59312
59313         * lib/full-write.c: Rework so that it may serve to define full_read,
59314         too.
59315         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59316
59317 2003-01-07  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59320         <inttypes.h>.
59321         * lib/xstrtol.h: Likewise.
59322         * lib/xstrtoimax.c: Likewise.
59323         * lib/xstrtoumax.c: Likewise.
59324         * lib/human.h: Likewise.
59325
59326         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59327         on systems that have <inttypes.h> but not <stdint.h>.
59328
59329 2003-01-07  Bruno Haible  <bruno@clisp.org>
59330
59331         * MODULES.html.sh: Add copyright notice.
59332         (missed_files): Omit CVS directory entries.
59333         (func_module): Make it work with sed-3.02.
59334         * MODULES.txt: Remove file.
59335
59336 2003-01-06  Jim Meyering  <jim@meyering.net>
59337
59338         * lib/version-etc.c: Update year in translatable copyright string.
59339
59340 2003-01-03  Karl Berry  <karl@gnu.org>
59341
59342         * config/config.{guess,sub}: update from prep.
59343
59344 2003-01-02  Karl Berry  <karl@gnu.org>
59345
59346         * doc/COPYING.DOC: belatedly updated to 1.2.
59347
59348 2003-01-01  Karl Berry  <karl@gnu.org>
59349
59350         * gnulib-tool (func_verify_module): report module name $module in
59351         error message, not $1.
59352         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59353         be created, only if it doesn't exist.
59354         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59355
59356 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59357
59358         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59359
59360 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59361
59362         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59363         memcmp if strcoll doesn't work.
59364
59365 2002-12-31  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59368         nonempty.
59369
59370 2002-12-31  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/memcoll.c (STRCOLL): New macro.
59373         (memcoll): Use it.
59374
59375 2002-12-31  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/localcharset.h: New file.
59378         * lib/localcharset.c: Include it.
59379         * lib/unicodeio.c: Likewise.
59380
59381 2002-12-31  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59384         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59385
59386 2002-12-31  Bruno Haible  <bruno@clisp.org>
59387
59388         * lib/getline.h: Include <stddef.h>, for size_t.
59389
59390         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59391         * lib/unicodeio.c: Don't include <stddef.h>.
59392
59393 2002-12-31  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59396         HAVE_TM_ZONE.
59397
59398 2002-12-24  Karl Berry  <karl@gnu.org>
59399
59400         * config/config.guess: update from prep.
59401
59402 2002-12-24  Bruno Haible  <bruno@clisp.org>
59403
59404         General infrasructure.
59405         * m4/README: Rewritten.
59406         * m4/onceonly.m4: New file.
59407         * m4/onceonly_2_57.m4: New file.
59408
59409         Module atexit.
59410         * m4/atexit.m4: New file.
59411
59412         Module strtod.
59413         * m4/strtod.m4: New file.
59414
59415         Module strtol.
59416         * m4/strtol.m4: New file.
59417
59418         Module strtoul.
59419         * m4/strtoul.m4: New file.
59420
59421         Module memchr.
59422         * m4/memchr.m4: New file.
59423
59424         Module memcmp.
59425         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59426         (jm_FUNC_MEMCMP): Invoke it.
59427
59428         Module memcpy.
59429         * m4/memcpy.m4: New file.
59430
59431         Module memmove.
59432         * m4/memmove.m4: New file.
59433
59434         Module memset.
59435         * m4/memset.m4: New file.
59436
59437         Module strcspn.
59438         * m4/strcspn.m4: New file.
59439
59440         Module strpbrk.
59441         * m4/strpbrk.m4: New file.
59442
59443         Module strstr.
59444         * m4/strstr.m4: New file.
59445
59446         Module strerror.
59447         * m4/strerror.m4: New file.
59448
59449         Module mktime.
59450         * m4/mktime.m4: Renamed from jm-mktime.m4.
59451         (gl_PREREQ_MKTIME): New macro.
59452         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59453
59454         Module malloc.
59455         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59456         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59457         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59458
59459         Module realloc.
59460         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59461         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59462         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59463
59464         Module strftime.
59465         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59466         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59467         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59468         gl_TM_GMTOFF.
59469         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59470
59471         Module xalloc.
59472         * m4/xalloc.m4: New file.
59473
59474         Module alloca.
59475         * m4/alloca.m4: New file.
59476
59477         Module putenv.
59478         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59479         (jm_FUNC_PUTENV): Invoke it.
59480
59481         Module setenv.
59482         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59483         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59484         when invoked twice.
59485         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59486         gt_FUNC_SETENV.
59487
59488         Module memrchr.
59489         * m4/memrchr.m4: New file.
59490
59491         Module stpcpy.
59492         * m4/stpcpy.m4: New file.
59493
59494         Module strcase.
59495         * m4/strcase.m4: New file.
59496
59497         Module strdup.
59498         * m4/strdup.m4: New file.
59499
59500         Module strnlen.
59501         * m4/strnlen.m4: New file.
59502
59503         Module strndup.
59504         * m4/strndup.m4: New file.
59505
59506         Module xstrtod.
59507         * m4/xstrtod.m4: New file.
59508
59509         Module xstrtol.
59510         * m4/xstrtol.m4: New file.
59511
59512         Module getdate.
59513         * m4/getdate.m4: New file.
59514
59515         Module unlocked-io.
59516         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59517         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59518         * m4/jm-glibc-io.m4n: Remove file.
59519
59520         Module long-options.
59521         * m4/long-options.m4: New file.
59522
59523         Module md5.
59524         * m4/md5.m4: New file.
59525
59526         Module sha.
59527         * m4/sha.m4: New file.
59528
59529         Module getstr.
59530         * m4/getstr.m4: New file.
59531
59532         Module getline.
59533         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59534         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59535         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59536         simply getline. Infoke gl_PREREQ_GETLINE.
59537
59538         Module obstack.
59539         * m4/obstack.m4: New file.
59540
59541         Module hash.
59542         * m4/hash.m4: New file.
59543
59544         Module readtokens.
59545         * m4/readtokens.m4: New file.
59546
59547         Module strverscmp.
59548         * m4/strverscmp.m4: New file.
59549
59550         Module stdbool.
59551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59552         OSF/1.
59553
59554         Module strtoll.
59555         * m4/strtoll.m4: New file.
59556
59557         Module strtoull.
59558         * m4/strtoull.m4: New file.
59559
59560         Module strtoimax.
59561         * m4/strtoimax.m4: New file.
59562
59563         Module strtoumax.
59564         * m4/strtoumax.m4: New file.
59565
59566         Module xstrtoimax.
59567         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59568         jm_AC_PREREQ_XSTRTOIMAX.
59569         Moved the strtol prerequisites to strtol.m4.
59570         Moved the strtoll prerequisites to strtoll.m4.
59571         Moved the strtoimax prerequisites to strtoimax.m4.
59572
59573         Module xstrtoumax.
59574         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59575         jm_AC_PREREQ_XSTRTOUMAX.
59576         Moved the strtoul prerequisites to strtoul.m4.
59577         Moved the strtoull prerequisites to strtoull.m4.
59578         Moved the strtoumax prerequisites to strtoumax.m4.
59579
59580         Module chown.
59581         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59582         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59583
59584         Module dup2.
59585         * m4/dup2.m4: New file.
59586
59587         Module ftruncate.
59588         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59589         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59590
59591         Module getgroups.
59592         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59593         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59594
59595         Module gettimeofday.
59596         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59597         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59598         gl_PREREQ_GETTIMEOFDAY.
59599
59600         Module mkdir.
59601         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59602         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59603
59604         Module mkstemp.
59605         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59606         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59607         jm_AC_TYPE_UINTMAX_T.
59608         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59609
59610         Module stat.
59611         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59612         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59613
59614         Module lstat.
59615         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59616         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59617
59618         Module timespec.
59619         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59620         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59621         * m4/st_mtim.m4: Indentation.
59622
59623         Module nanosleep.
59624         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59625         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59626         gl_PREREQ_NANOSLEEP.
59627
59628         Module regex.
59629         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59630         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59631         (gl_REGEX): New macro.
59632
59633         Module rename.
59634         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59635         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59636
59637         Module rmdir.
59638         * m4/rmdir.m4: New file.
59639
59640         Module utime.
59641         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59642         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59643         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59644
59645         Module dirname.
59646         * m4/dirname.m4: New file.
59647
59648         Module getopt.
59649         * m4/getopt.m4: New file.
59650
59651         Module unistd-safer.
59652         * m4/unistd-safer.m4: New file.
59653
59654         Module fnmatch.
59655         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59656         declaration.
59657         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59658         (gl_FUNC_FNMATCH_POSIX): New macro.
59659         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59660         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59661         simply fnmatch.
59662
59663         Module exclude.
59664         * m4/exclude.m4: New file.
59665
59666         Module human.
59667         * m4/human.m4: New file.
59668
59669         Module acl.
59670         * m4/acl.m4: Nop.
59671
59672         Module backupfile.
59673         * m4/backupfile.m4: New file.
59674         * m4/d-ino.m4: Indentation.
59675
59676         Module fsusage.
59677         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59678         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59679         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59680
59681         Module dirfd.
59682         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
59683         requirements.
59684
59685         Module euidaccess.
59686         * m4/euidaccess.m4: New file.
59687
59688         Module file-type.
59689         * m4/file-type.m4: New file.
59690
59691         Module fileblocks.
59692         * m4/fileblocks.m4: New file.
59693
59694         Module filemode.
59695         * m4/filemode.m4: New file.
59696
59697         Module isdir.
59698         * m4/isdir.m4: New file.
59699
59700         Module lchown.
59701         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
59702         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
59703
59704         Module makepath.
59705         * m4/makepath.m4: New file.
59706
59707         Module modechange.
59708         * m4/modechange.m4: New file.
59709
59710         Module mountlist.
59711         * m4/mountlist.m4: New file.
59712         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
59713         Indentation.
59714
59715         Module path-concat.
59716         * m4/path-concat.m4: New file.
59717
59718         Module pathmax.
59719         * m4/pathmax.m4: New file.
59720
59721         Module same.
59722         * m4/same.m4: New file.
59723
59724         Module save-cwd.
59725         * m4/save-cwd.m4: New file.
59726
59727         Module savedir.
59728         * m4/savedir.m4: New file.
59729
59730         Module xgetcwd.
59731         * m4/xgetcwd.m4: New file.
59732         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
59733
59734         Module xreadlink.
59735         * m4/xreadlink.m4: New file.
59736
59737         Module safe-read.
59738         * m4/safe-read.m4: New file.
59739
59740         Module safe-write.
59741         * m4/safe-write.m4: New file.
59742
59743         Module closeout.
59744         * m4/closeout.m4: New file.
59745
59746         Module stdio-safer.
59747         * m4/stdio-safer.m4: New file.
59748
59749         Module getpass.
59750         * m4/getpass.m4: New file.
59751
59752         Module getugroups.
59753         * m4/getugroups.m4: New file.
59754
59755         Module group-member.
59756         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
59757         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
59758
59759         Module idcache.
59760         * m4/idcache.m4: New file.
59761
59762         Module userspec.
59763         * m4/userspec.m4: New file.
59764
59765         Module gettime.
59766         * m4/clock_time.m4: New file.
59767         * m4/gettime.m4: New file.
59768
59769         Module settime.
59770         * m4/settime.m4: New file.
59771
59772         Module posixtm.
59773         * m4/posixtm.m4: New file.
59774
59775         Module gethostname.
59776         * m4/gethostname.m4: New file.
59777
59778         Module canon-host.
59779         * m4/canon-host.m4: New file.
59780
59781         Module gettext.
59782         * m4/codeset.m4: New file, from gettext-0.11.5.
59783         * m4/gettext.m4: New file, from gettext-0.11.5.
59784         * m4/glibc21.m4: New file, from gettext-0.11.5.
59785         * m4/iconv.m4: New file, from gettext-0.11.5.
59786         * m4/intdiv0.m4: New file, from gettext-0.11.5.
59787         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
59788         * m4/inttypes.m4: New file, from gettext-0.11.5.
59789         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
59790         * m4/isc-posix.m4: New file, from gettext-0.11.5.
59791         * m4/lcmessage.m4: New file, from gettext-0.11.5.
59792         * m4/lib-ld.m4: New file, from gettext-0.11.5.
59793         * m4/lib-link.m4: New file, from gettext-0.11.5.
59794         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
59795         * m4/progtest.m4: New file, from gettext-0.11.5.
59796         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
59797         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
59798         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
59799
59800         Module localcharset.
59801         * m4/localcharset.m4: New file.
59802
59803         Module hard-locale.
59804         * m4/hard-locale.m4: New file.
59805
59806         Module mbswidth.
59807         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
59808         onceonly macros.
59809         * m4/mbrtowc.m4: Add comment.
59810
59811         Module memcasecmp.
59812         * m4/memcasecmp.m4: New file.
59813
59814         Module memcoll.
59815         * m4/memcoll.m4: New file.
59816
59817         Module unicodeio.
59818         * m4/unicodeio.m4: New file.
59819
59820         Module rpmatch.
59821         * m4/rpmatch.m4: New file.
59822
59823         Module yesno.
59824         * m4/yesno.m4: New file.
59825
59826         Module exitfail.
59827         * m4/exitfail.m4: New file.
59828
59829         Module c-stack.
59830         * m4/c-stack.m4 (gl_C_STACK): New macro.
59831         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
59832
59833         Module error.
59834         * m4/error.m4 (gl_ERROR): New macro.
59835         (jm_PREREQ_ERROR): Use onceonly macros.
59836
59837         Module fatal.
59838         * m4/fatal.m4: New file.
59839
59840         Module getloadavg.
59841         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
59842         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
59843
59844         Module getpagesize.
59845         * m4/getpagesize.m4: New file.
59846
59847         Module getusershell.
59848         * m4/getusershell.m4: New file.
59849
59850         Module physmem.
59851         * m4/physmem.m4: New file.
59852
59853         Module posixver.
59854         * m4/posixver.m4: New file.
59855
59856         Module quotearg.
59857         * m4/quotearg.m4: New file.
59858
59859         Module quote.
59860         * m4/quote.m4: New file.
59861
59862         Module readutmp.
59863         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
59864
59865         Module sig2str.
59866         * m4/sig2str.m4: New file.
59867
59868         Other.
59869         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
59870         ulonglong.m4.
59871         * m4/intmax_t.m4: New file.
59872         * m4/d-type.m4: Indentation.
59873         * m4/jm-macros.m4: Update.
59874         * m4/prereq.m4 (jm_PREREQ): Update.
59875         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
59876         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
59877         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
59878         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
59879         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
59880         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
59881         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
59882         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
59883         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
59884         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
59885         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
59886         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
59887         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
59888         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
59889         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
59890         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
59891         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
59892         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
59893         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
59894
59895 2002-12-24  Bruno Haible  <bruno@clisp.org>
59896
59897         * MODULES.txt: Update according to m4/ changes.
59898
59899         Module gettext.
59900         * config.rpath: New file, from gettext-0.11.5.
59901
59902         * modules/*: New module descriptions.
59903         * gnulib-tool: New file.
59904         * MODULES.html.sh: New file.
59905
59906 2002-12-21  Karl Berry  <karl@gnu.org>
59907
59908         * doc/fdl.texi: update to version 1.2.
59909
59910 2002-12-19  Karl Berry  <karl@gnu.org>
59911
59912         * config/config.guess: update from prep.
59913
59914 2002-12-18  Bruno Haible  <bruno@clisp.org>
59915
59916         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
59917         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
59918
59919 2002-12-17  Bruno Haible  <bruno@clisp.org>
59920
59921         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
59922         stdlib.h, string.h.
59923
59924 2002-12-17  Bruno Haible  <bruno@clisp.org>
59925
59926         * lib/canon-host.c (strdup): Remove unused declaration.
59927
59928         * lib/fsusage.c: Include full_read.h.
59929         (get_fs_usage): Use full_read instead of safe_read.
59930
59931         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
59932
59933 2002-12-12  Karl Berry  <karl@gnu.org>
59934
59935         * config/config.guess: update from prep.
59936
59937 2002-12-11  Bruno Haible  <bruno@clisp.org>
59938
59939         * m4/setenv.m4: New file, from gettext-0.11.5.
59940
59941 2002-12-11  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
59944         not unsetenv().
59945         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
59946         modifications:
59947
59948         2002-12-11  Bruno Haible  <bruno@clisp.org>
59949
59950                 * setenv.c (alloca): Fall back to malloc.
59951                 (freea): New macro.
59952                 (setenv): Use freea() to free memory allocated with alloca().
59953
59954         2002-11-13  Bruno Haible  <bruno@clisp.org>
59955
59956                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
59957                 function declarations.
59958                 * unsetenv.c (unsetenv): Likewise.
59959
59960         2002-03-04  Bruno Haible  <bruno@clisp.org>
59961
59962                 Portability to AIX 4.3.3.
59963                 * unsetenv.c: New file, extracted from setenv.c.
59964                 * setenv.c: Move the unsetenv() function to unsetenv.c.
59965
59966         2001-12-20  Bruno Haible  <bruno@clisp.org>
59967
59968                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
59969                 use malloc instead. For SunOS 4.
59970
59971         2001-12-11  Bruno Haible  <bruno@clisp.org>
59972
59973                 * setenv.c: Declare alloca.
59974                 (compar_fn_t): New typedef.
59975                 (KNOWN_VALUE, STORE_VALUE): Use it.
59976
59977         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
59978         setenv.h.
59979
59980 2002-12-10  Paul Eggert  <eggert@twinsun.com>
59981
59982         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
59983         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
59984         Choose values that are less likely to collide with system fnmatch
59985         options.
59986         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
59987         defined (e.g., a pure POSIX system).
59988         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
59989         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
59990
59991 2002-12-06  Paul Eggert  <eggert@twinsun.com>
59992
59993         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
59994         a pain in practice to deal with generated m4 files.  This change
59995         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
59996
59997         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
59998         and jm-glibc-io.m4, as they are no longer a special case.
59999         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60000         kludge and the auto-generation stuff.  Check only whether the
60001         functions are declared, not whether they exist, since older hosts
60002         that don't declare the functions can't use the optimization anyway.
60003
60004 2002-12-06  Jim Meyering  <jim@meyering.net>
60005
60006         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60007
60008         Merge in changes from libc's misc/error.c, in preparation
60009         for the merge of gnulib's changes back into libc.
60010
60011         * lib/error.c (_): Define only if not already defined.
60012         Move definition to follow all #include directives.
60013         Include unlocked-io.h only if !_LIBC.
60014         [_LIBC]: Include <libio/libioP.h>.
60015         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60016         (fflush): Tweak definition to use INTUSE.
60017         (putc): Define.
60018
60019 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60020
60021         * lib/alloca.c [defined emacs]: Include "lisp.h".
60022         (xalloc_die) [defined emacs]: New macro.
60023         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60024         [! defined emacs]: Include <xalloc.h>.
60025         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60026         (pointer): Typedef to POINTER_TYPE *.
60027         (malloc): Remove decl; we now always use xmalloc.
60028         (alloca): Use old-style definition, since Emacs needs this.
60029         Check for arithmetic overflow when computing combined size.
60030
60031 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60032
60033         Do not generate unlocked-io.h automatically, since it's easier to
60034         maintain it by hand.
60035
60036         * lib/unlocked-io.h: New file, from GNU diffutils,
60037         but with proper copyright notice and attribution.
60038         * lib/gen-uio: Remove.
60039         * lib/Makefile.am: Add copyright notice.
60040         (libfetish_a_SOURCES): Add unlocked-io.h.
60041         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60042         (DISTCLEANFILES, io_functions): Remove macros.
60043         (EXTRA_DIST): Remove gen_uio.
60044         (unlocked-io.h): Remove rule.
60045
60046 2002-12-04  Jim Meyering  <jim@meyering.net>
60047
60048         Reflect the fact that stat.c and lstat.c are no longer generated.
60049         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60050         (DISTCLEANFILES): Likewise.
60051         (EXTRA_DIST): Likewise.
60052         (all_local): Don't depend on stat.c or lstat.c.
60053         (stat.c, lstat.c): Remove rules.
60054         (EXTRA_DIST): Remove xstat.in.
60055
60056         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60057         * lib/stat.c: New file.  Contents mostly from xstat.in.
60058         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60059         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60060
60061         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60062         too.
60063         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60064
60065 2002-12-03  Jim Meyering  <jim@meyering.net>
60066
60067         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60068         but not semantics, to minimize the differences between these two files.
60069         (safe_read): Change comment to mention SAFE_READ_ERROR.
60070
60071         * lib/safe-read.c (IS_EINTR): Define.
60072         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60073
60074 2002-12-02  Jim Meyering  <jim@meyering.net>
60075
60076         * lib/safe-read.c (EINTR): Define.
60077         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60078         (INT_MAX): Provide fallback.
60079         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60080
60081         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60082
60083 2002-12-02  Bruno Haible  <bruno@clisp.org>
60084
60085         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60086         Define, taken from safe-read.c.
60087         (INT_MAX): Provide fallback.
60088         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60089         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60090
60091         * lib/safe-read.c (EINTR): Remove definition.
60092         (safe_read): Don't use EINTR if it is absent.
60093
60094 2002-12-01  Jim Meyering  <jim@meyering.net>
60095
60096         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60097         zero.
60098         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60099
60100 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60101
60102         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60103         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60104         with `if (! (value < limit)) abort ();', for readability.
60105
60106 2002-11-26  Karl Berry  <karl@gnu.org>
60107
60108         * lib/strdup.c: copy from libc again, with jim's ok.
60109         * lib/.cppi-disable: re-add strdup.c
60110
60111 2002-11-25  Karl Berry  <karl@gnu.org>
60112
60113         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60114         instead of "strtol.c".
60115
60116 2002-11-25  Karl Berry  <karl@gnu.org>
60117
60118         * config/install-sh: update from automake for variable quoting, $0 in
60119         error msgs, etc.
60120
60121         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60122         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60123         entry.
60124
60125 2002-11-25  Jim Meyering  <jim@meyering.net>
60126
60127         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60128
60129 2002-11-24  Karl Berry  <karl@gnu.org>
60130
60131         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60132         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60133
60134 2002-11-24  Jim Meyering  <jim@meyering.net>
60135
60136         Update from coreutils:
60137
60138         * lib/mktime.c: Merge in changes from libc.
60139
60140         Avoid a link-time failure on some Linux systems.
60141         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60142         (otherwise).
60143         (__mon_yday): Declare with the STATIC attribute.
60144         (__mktime_internal): Likewise.
60145         Based on a report from Greg Schafer.
60146
60147 2002-11-23  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60150         Use `unsigned', not `int', as type of index.
60151
60152         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60153
60154         * lib/fsusage.c: Remove unneeded parentheses around operands of
60155         `defined'.
60156
60157 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60158
60159         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60160         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60161         so that we can be included first.
60162         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60163         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60164         No need to include stddef.h or sys/types.h any more.
60165         Surround local include files with "", not "<>".
60166         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60167         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60168         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60169         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60170         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60171         (ISPRINT): Remove; no longer needed now that we assume C89.
60172
60173         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60174         Preserve errno.
60175
60176         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60177         quotearg_char): Use SIZE_MAX rather than
60178         (size_t) -1 when we are talking about "infinity".
60179
60180         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60181
60182 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60183
60184         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60185         hint that one should use `if (! x) abort ();' rather than `assert
60186         (x);', and anyway it's one less thing to worry about configuring.
60187         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60188         hash_rehash, hash_insert): Use abort rather than assert.
60189
60190 2002-11-22  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/safe-read.h: Assume C89. Add comments.
60193         (safe_read): Change return type to size_t.
60194         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60195         byte counts > SSIZE_MAX correctly.
60196         * lib/safe-write.h: New file.
60197         * lib/safe-write.c: New file.
60198         * lib/full-read.h: New file.
60199         * lib/full-read.c: New file.
60200         * lib/full-write.h: Assume C89. Add comments.
60201         * lib/full-write.c: Include safe-write.h.
60202         (full_write): Rewritten to use safe_write.
60203         Suggested by Jim Meyering and Paul Eggert.
60204
60205 2002-11-21  Jim Meyering  <jim@meyering.net>
60206
60207         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60208
60209         Merge in changes from the coreutils.
60210
60211         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60212         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60213         <stdint.h>.
60214         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60215         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60216         int.  Work more efficiently if X is the same width as uintmax_t.
60217         Do not compare X to -1, to avoid bogus compiler warning.
60218         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60219         Don't assume that f_frsize and f_bsize are the same type.
60220
60221         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60222         warning on FreeBSD.
60223
60224         * lib/makepath.c (make_path): Restore umask *before* creating the final
60225         component.
60226         (make_path): Minor reformatting.
60227
60228         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60229         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60230         HAVE_MALLOC/HAVE_REALLOC.
60231
60232         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60233         dummy ones.  At least on GNU/Linux systems, `auto' means something
60234         else.
60235         From Michael Stone.
60236
60237 2002-11-21  Bruno Haible  <bruno@clisp.org>
60238
60239         Remove case insensitive option matching.
60240         * lib/argmatch.h (argcasematch): Remove declaration.
60241         (ARGCASEMATCH): Remove macro.
60242         (__xargmatch_internal): Remove case_sensitive argument.
60243         (XARGMATCH): Update.
60244         (XARGCASEMATCH): Remove macro.
60245         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60246         case_sensitive argument.
60247         (argcasematch): Remove function.
60248         (__xargmatch_internal): Remove case_sensitive argument.
60249         (main): Use XARGMATCH instead of XARGCASEMATCH.
60250
60251         * lib/xmalloc.c: Change compile-time error message. Add comment about
60252         required autoconf version.
60253
60254 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60255
60256         Merge argmatch cleanups from Bison.  Assume C89.
60257
60258         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60259         Include stdlib.h, for EXIT_FAILURE.
60260         Always include <string.h>, since we assume C89.
60261         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60262         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60263         Include <stddef.h> instead, since it's all we need for size_t.
60264         (PARAMS): Remove.  All uses removed.
60265         (ARRAY_CARDINALITY): Do not bother to #undef.
60266         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60267         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60268         Remove unnecessary parentheses.
60269         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60270         Insert necessary parentheses.
60271         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60272         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60273
60274 2002-11-19  Bruno Haible  <bruno@clisp.org>
60275
60276         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60277         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60278
60279         * lib/mbswidth.h (PARAMS): Remove macro.
60280         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60281         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60282
60283         * lib/gcd.h (PARAMS): Remove macro.
60284         (gcd): Use ANSI C function declarations.
60285         * lib/gcd.c (gcd): Likewise.
60286
60287 2002-11-15  Bruno Haible  <bruno@clisp.org>
60288
60289         * lib/strcspn.c: Include <stddef.h>.
60290         (strcspn): Use ANSI C function declaration. Change return type to
60291         size_t. Use NULL.
60292         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60293         (strpbrk): Use NULL.
60294         * lib/strpbrk.h (PARAMS): Remove macro.
60295         (strpbrk): Use ANSI C function declaration.
60296         * lib/strstr.c: Don't include <sys/types.h>.
60297         * lib/strstr.h (PARAMS): Remove macro.
60298         (strstr): Use ANSI C function declarations.
60299
60300 2002-11-14  Karl Berry  <karl@gnu.org>
60301
60302         * config/mkinstalldirs: `do' on separate line, instead of
60303         `for var; do'.
60304
60305 2002-11-06  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60308         * lib/gcd.c (gcd): Likewise.
60309
60310 2002-11-05  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/gcd.h: New file, from gettext-0.11.5.
60313         * lib/gcd.c: New file, from gettext-0.11.5.
60314
60315 2002-11-05  Bruno Haible  <bruno@clisp.org>
60316
60317         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60318         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60319         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60320         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60321
60322         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60323         <libintl.h>.
60324         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60325         <libintl.h>.
60326
60327         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60328         * lib/human.c: Include gettext.h instead of <libintl.h>.
60329         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60330         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60331         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60332         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60333         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60334         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60335         (textdomain): Remove definition.
60336         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60337
60338         * lib/long-options.c: Remove include of <libintl.h> and definition of
60339         _.
60340         * lib/same.c: Remove include of <libintl.h> and definition of _.
60341
60342 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60343
60344         * lib/config.charset: A few additions for Solaris.
60345
60346 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60347
60348         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60349         * lib/localcharset.c (locale_charset): Declare as extern "C".
60350
60351 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60352
60353         * lib/config.charset: msdos in uk_UA uses CP1125.
60354
60355 2002-11-04  Bruno Haible  <bruno@clisp.org>
60356
60357         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60358         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60359         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60360         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60361         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60362
60363 2002-11-04  Bruno Haible  <bruno@clisp.org>
60364
60365         * lib/localcharset.c (locale_charset): Don't return an empty string.
60366
60367 2002-11-04  Bruno Haible  <bruno@clisp.org>
60368
60369         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60370         aliases.
60371
60372 2002-11-04  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/config.charset: Update for newest glibc. Add canonical names
60375         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60376
60377 2002-11-04  Bruno Haible  <bruno@clisp.org>
60378
60379         * lib/config.charset: Add support for NetBSD.
60380
60381 2002-11-04  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60384
60385 2002-11-01  Bruno Haible  <bruno@clisp.org>
60386
60387         * configure.in: Add AC_CONFIG_AUX_DIR call.
60388         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60389         test/Makefile.
60390         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60391
60392 2002-09-28  Karl Berry  <karl@gnu.org>
60393
60394         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60395         installed automake until the next release, since changes have been
60396         made.
60397
60398 2002-09-25  Karl Berry  <karl@gnu.org>
60399
60400         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60401         * lib/getopt*: copy from libc/posix.
60402         * lib/gettext.h: copy from gettext.
60403         * lib/.cppi-disable: add strdup.c, gettext.h.
60404
60405 2002-09-25  Karl Berry  <karl@gnu.org>
60406
60407         * config/srclist.txt: enable gettext.h check.
60408         * config/config.{guess,sub}: update from prep.
60409         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60410                 from automake 1.6.3.
60411         See srclist*.
60412
60413 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60414
60415         * regex.c (PATFETCH): Remove the translating fetch.
60416         (PATFETCH_RAW): Rename to PATFETCH.
60417         (set_image_of_range): New fun.
60418         (SET_RANGE_TABLE_WORK_AREA): Use it.
60419         (regex_compile): Don't translate the pattern chars so eagerly.
60420         Only do it when inserting an `exactn' bytecode or when handling
60421         a char-range.
60422         (mutually_exclusive_p): Avoid empty statement.
60423
60424 2002-07-06  Jim Meyering  <meyering@lucent.com>
60425
60426         * m4/README: Don't mention Makefile.am.in.
60427         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60428
60429 2002-07-01  Jim Meyering  <meyering@lucent.com>
60430
60431         * lib/c-stack.c: Include sys/time.h.
60432         From Volker Borchert.
60433
60434 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60435
60436         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60437
60438 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60439
60440         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60441         New macro.  Use it uniformly instead of
60442         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60443         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60444         reported by Vin Shelton.
60445
60446 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60447
60448         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60449         Do not assume SA_SIGINFO behavior.
60450         Bug reported by Jim Meyering on NetBSD 1.5.2.
60451
60452 2002-06-22  Jim Meyering  <meyering@lucent.com>
60453
60454         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60455         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60456
60457         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60458         now that configure.ac uses AC_GNU_SOURCE.
60459         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60460         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60461
60462         Update to latest tools.  Suggestions from Paul Eggert.
60463         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60464         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60465         * m4/fnmatch.m4: Likewise.
60466         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60467         to AC_HEADER_STDBOOL
60468
60469 2002-06-22  Jim Meyering  <meyering@lucent.com>
60470
60471         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60472         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60473
60474 2002-06-22  Jim Meyering  <meyering@lucent.com>
60475
60476         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60477
60478         * lib/exitfail.c, exitfail.h: Likewise.
60479         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60480
60481         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60482         of fnmatch.h.
60483         (EXTRA_DIST): Add fnmatch_loop.c.
60484         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60485
60486         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60487         * lib/fnmatch.c: Update from diffutils-2.8.2.
60488         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60489         * lib/fnmatch.h: Remove file.
60490
60491 2002-06-21  Jim Meyering  <meyering@lucent.com>
60492
60493         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60494         * m4/mbrtowc.m4: Likewise.
60495
60496         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60497         * m4/mbswidth.m4: Reflect name change:
60498         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60499         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60500
60501         * m4/lib-link.m4: Update from gettext-0.11.2.
60502         * m4/gettext.m4: Likewise.
60503
60504         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60505         From Alfred M. Szmidt.
60506
60507 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60508
60509         * lib/file-type.h: Report an error if neither S_ISREG nor
60510         S_IFREG is defined, instead of using a test specific to glibc
60511         2.2.  This should be safe, since POSIX requires S_ISREG and
60512         Unix Version 7 had S_IFREG.  We don't need to check for
60513         <sys/types.h> since we don't use any symbols that it defines.
60514
60515 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60516
60517         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60518         $@-t, so that each temporary file name is unique and valid in the first
60519         8 characters, for operation under DOS.
60520
60521 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60522
60523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60524
60525 2002-06-15  Jim Meyering  <meyering@lucent.com>
60526
60527         Work even with DJGPP 2.03, which lacks support for symlinks.
60528         From Richard Dawe.
60529         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60530         is defined.
60531         * lib/lchown.c (S_ISLNK): Likewise.
60532
60533 2002-06-15  Jim Meyering  <meyering@lucent.com>
60534
60535         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60536         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60537         have been included before this file.
60538
60539 2002-06-14  Jim Meyering  <meyering@lucent.com>
60540
60541         * lib/file-type.h: Use the version from diffutils-2.8.2.
60542         * lib/file-type.c: Likewise.
60543
60544 2002-06-07  Jim Meyering  <meyering@lucent.com>
60545
60546         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60547         They're needed at least for NetBSD 1.5.2.
60548         ($statxfs_includes): Include those same headers.
60549         ($statxfs_includes): Include sys/vfs.h if available.
60550         ($statxfs_includes): Likewise for sys/statvfs.h.
60551         Check for the following members in both structs statfs and statvfs:
60552         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60553
60554 2002-06-01  Jim Meyering  <meyering@lucent.com>
60555
60556         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60557         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60558
60559 2002-05-28  Jim Meyering  <meyering@lucent.com>
60560
60561         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60562         Reported by Volker Borchert.
60563
60564 2002-05-27  Jim Meyering  <meyering@lucent.com>
60565
60566         Fix a problem seen only on nonconforming systems whereby ls.c's
60567         use of localtime, and then of gettimeofday would cause trouble:
60568         the localtime call used to initialize rpl_gettimeofday's save
60569         mechanism would clobber ls's current local time information so
60570         that in any long listing the first file would always be listed
60571         with date 1970-01-01.  Analysis by Volker Borchert.
60572
60573         * lib/gettimeofday.c (localtime): Undefine.
60574         (rpl_localtime): New function.
60575
60576 2002-05-27  Jim Meyering  <meyering@lucent.com>
60577
60578         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60579         localtime.
60580
60581         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60582         use the replacement function; it wouldn't resolve at link time.
60583         Reported by Volker Borchert.
60584
60585 2002-05-22  Jim Meyering  <meyering@lucent.com>
60586
60587         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60588         file-type.h.
60589         * lib/file-type.h: New file.
60590         * lib/file-type.c (file_type): New file/function.  Extracted from
60591         diffutils.
60592
60593 2002-04-30  Jim Meyering  <meyering@lucent.com>
60594
60595         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60596
60597 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60598
60599         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60600
60601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60602
60603         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60604         Do not check for alloca.h (no longer used) or stdbool.h (was never
60605         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60606
60607 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60608
60609         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60610
60611 2002-04-29  Jim Meyering  <meyering@lucent.com>
60612
60613         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60614         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60615         Use AC_FUNC_STRNLEN here instead.
60616
60617         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60618         With autoconf-2.53a, it's part of AC_PROG_CC.
60619
60620 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60621
60622         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60624
60625 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60626
60627         * lib/sig2str.h, lib/sig2str.c: New files.
60628         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60629
60630 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60631
60632         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60633         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60634         of 127, since 64 is the largest conceivable number for ancient
60635         nonstandard hosts.
60636         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60637
60638 2002-04-28  Jim Meyering  <meyering@lucent.com>
60639
60640         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60641
60642 2002-04-24  Jim Meyering  <meyering@lucent.com>
60643
60644         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60645         (jm_PREREQ): Use it.
60646
60647         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60648         mach/mach.h fcntl.h.
60649         Check for this function: setlocale.
60650
60651 2002-04-24  Jim Meyering  <meyering@lucent.com>
60652
60653         * lib/gettext.h: New file, from Gettext.
60654         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60655         (libfetish_a_SOURCES): Add gettext.h.
60656
60657 2002-04-16  Jim Meyering  <meyering@lucent.com>
60658
60659         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60660         ut_pid, ut_id, ut_exit.
60661
60662 2002-04-16  Jim Meyering  <meyering@lucent.com>
60663
60664         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60665         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60666         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60667
60668 2002-04-12  Jim Meyering  <meyering@lucent.com>
60669
60670         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60671         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60672         existence of the getmntinfo function.  Needed for Darwin 5.3.
60673
60674         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60675         This is necessary at least on Darwin 5.3.
60676
60677         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60678         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60679         strnlen.o in the library, and that makes some versions of ranlib
60680         object.
60681
60682 2002-04-12  Jim Meyering  <meyering@lucent.com>
60683
60684         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
60685
60686 2002-04-09  Jim Meyering  <meyering@lucent.com>
60687
60688         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
60689         to be more precise.  Rather than saying we're checking whether the
60690         function `works', say what we're testing.
60691         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
60692         Reported by Bruno Haible.
60693
60694 2002-03-10  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
60697         Suggestion from Santiago Vila.
60698
60699 2002-03-08  Jim Meyering  <meyering@lucent.com>
60700
60701         * lib/rename.c: Mention that this wrapper is needed also on
60702         mips-dec-ultrix4.4 systems.
60703
60704 2002-03-02  Jim Meyering  <meyering@lucent.com>
60705
60706         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
60707         not HAVE_CLOCK_SETTIME.
60708
60709 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60710
60711         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
60712         Check for clock_settime.
60713
60714 2002-02-27  Paul Eggert  <eggert@twinsun.com>
60715
60716         * lib/nanosleep.h: Rename to....
60717         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
60718
60719         * lib/gettime.c: New file.
60720         * lib/settime.c: New file.
60721         * lib/stime.c: Remove.
60722
60723         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
60724         timespec.h.  Remove nanosleep.h.
60725
60726 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60727
60728         * m4/acl.m4: New file.
60729         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
60730         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
60731
60732 2002-02-25  Paul Eggert  <eggert@twinsun.com>
60733
60734         * lib/acl.c, lib/acl.h: New files.
60735         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
60736
60737 2002-02-24  Jim Meyering  <meyering@lucent.com>
60738
60739         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
60740         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
60741         cause trouble.  Reported by Nelson Beebe.
60742
60743 2002-02-23  Paul Eggert  <eggert@twinsun.com>
60744
60745         * lib/path-concat.c (xpath_concat): Reorder code to pacify
60746         compilers that don't know that xalloc_die never returns.
60747
60748 2002-02-20  Jim Meyering  <meyering@lucent.com>
60749
60750         * lib/getdate.c: Regenerate using bison-1.33.
60751
60752 2002-02-17  Jim Meyering  <meyering@lucent.com>
60753
60754         * config/config.guess (main): Don't use `head -1'; it's no longer
60755         portable. Use `sed 1q' instead.
60756
60757 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
60758
60759         * m4/codeset.m4: Upgrade to gettext-0.11.
60760         * m4/gettext.m4: Upgrade to gettext-0.11.
60761         * m4/glibc21.m4: Upgrade to gettext-0.11.
60762         * m4/iconv.m4: Upgrade to gettext-0.11.
60763         * m4/isc-posix.m4: Upgrade to gettext-0.11.
60764         * m4/lcmessage.m4: Upgrade to gettext-0.11.
60765         * m4/lib-ld.m4: New file, from gettext-0.11.
60766         * m4/lib-link.m4: New file, from gettext-0.11.
60767         * m4/lib-prefix.m4: New file, from gettext-0.11.
60768         * m4/progtest.m4: Upgrade to gettext-0.11.
60769
60770 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60771
60772         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
60773         (jm_PREREQ): Use it.
60774
60775 2002-02-15  Paul Eggert  <eggert@twinsun.com>
60776
60777         * lib/posixver.c, lib/posixver.h: New files.
60778         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60779
60780 2002-02-02  Paul Eggert  <eggert@twinsun.com>
60781             Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
60784         (fwrite_success_callback): New declaration.
60785         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
60786         print_unicode_char. Call failure callback instead of error.
60787         (fwrite_success_callback): New function.
60788         (exit_failure_callback): New function.
60789         (fallback_failure_callback): New function.
60790         (print_unicode_char): Call unicode_to_mb.
60791
60792 2002-01-26  Jim Meyering  <meyering@lucent.com>
60793
60794         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
60795         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
60796
60797 2002-01-26  Jim Meyering  <meyering@lucent.com>
60798
60799         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
60800
60801 2002-01-22  Paul Eggert  <eggert@twinsun.com>
60802
60803         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
60804
60805 2002-01-22  Jim Meyering  <meyering@lucent.com>
60806
60807         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
60808         Otherwise, some versions of automake would omit the rule that makes
60809         Makefile from Makefile.in.
60810
60811 2002-01-21  Paul Eggert  <eggert@twinsun.com>
60812
60813         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
60814         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
60815         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
60816         (memcoll): Set errno to zero if there is no error.
60817
60818         * lib/quotearg.c (quotearg_buffer_restyled):
60819         Fix bug with quoting buffers containing NUL when backslashing escapes.
60820         This bug was exposed by the other changes in this patch.
60821         (quotearg_n_options): New arg ARGSIZE.
60822         All callers changed.
60823         (quoting_options_from_style): New function.
60824         (quotearg_n_style): Use it.
60825         (quotearg_n_style_mem): New function.
60826
60827         * lib/quotearg.h (quotearg_n_style_mem): New function.
60828
60829 2002-01-19  Jim Meyering  <meyering@lucent.com>
60830
60831         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
60832         Remove useless quotes: DF_PROG="df".
60833         * m4/strnlen.m4: New file.
60834
60835 2002-01-16  Paul Eggert  <eggert@twinsun.com>
60836
60837         * lib/backupfile.c (ISDIGIT): Comment fix.
60838         * lib/getdate.y (ISDIGIT): Likewise.
60839         * lib/posixtm.c (ISDIGIT, year): Likewise.
60840         * lib/strverscmp.c (ISDIGIT): Likewise.
60841         * lib/userspec.c (ISDIGIT): Likewise.
60842
60843 2002-01-16  Jim Meyering  <meyering@lucent.com>
60844
60845         * lib/getdate.y: Add three semicolons, each just before a closing
60846         brace. Bison (as of version 1.31) no longer papers over that mistake.
60847
60848 2002-01-05  Jim Meyering  <meyering@lucent.com>
60849
60850         * lib/version-etc.c (version_etc_copyright): Update copyright year.
60851
60852 2001-12-19  Paul Eggert  <eggert@twinsun.com>
60853
60854         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
60855         not silently exit merely because the output buffer happens to
60856         have nothing pending.
60857
60858 2001-12-18  Paul Eggert  <eggert@twinsun.com>
60859
60860         See the big note in ../ChangeLog.
60861         * lib/human.c (suffixes): Prefer K to k for 1024.
60862         (generate_suffix_backwards): New function.
60863         (human_readable_inexact): Use it.
60864         * lib/xstrtol.c (__xstrtol): If there is no number but there
60865         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
60866         Accept 'K' as well as 'k'.
60867
60868 2001-12-15  Jim Meyering  <meyering@lucent.com>
60869
60870         * lib/regex.h (__restrict_arr): Update from libc.
60871
60872         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
60873         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
60874         (STREQ): Define.
60875
60876 2001-12-14  Jim Meyering  <meyering@lucent.com>
60877
60878         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
60879         Suggestion from Bruno Haible.
60880
60881 2001-12-10  Jim Meyering  <meyering@lucent.com>
60882
60883         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
60884         xrealloc, Instead, include "xalloc.h".
60885         (initbuffer): Don't cast xmalloc return value to char*.
60886         (readline): Reword comment.
60887         Don't cast xrealloc return value to char*
60888         Return NULL, not 0.
60889
60890 2001-12-09  Jim Meyering  <meyering@lucent.com>
60891
60892         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
60893         about `signed and unsigned type in conditional expression'.
60894         * lib/posixtm.c (posix_time_parse): Likewise.
60895
60896         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
60897
60898         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
60899         to avoid a pedantic warning.
60900
60901         * lib/getstr.c: Don't include assert.h.
60902         (getstr): Remove warning-evoking assertions.
60903         Return -1 if offset parameter is out of bounds.
60904         Change the type of a local from int to size_t.
60905
60906         * lib/strftime.c (my_strftime_localtime_r): Include this function
60907         definition in the `#if ! HAVE_TM_GMTOFF' block.
60908
60909         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
60910         Include xalloc.h instead.
60911
60912 2001-12-02  Jim Meyering  <meyering@lucent.com>
60913
60914         * lib/tempname.c: Don't declare getenv, thus reverting the change of
60915         2001-11-18.  It's no longer necessary, now that stdlib.h is always
60916         included.
60917
60918         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
60919         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
60920
60921 2001-11-30  Akim Demaille  <akim@epita.fr>
60922
60923         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
60924         before being defined.
60925
60926 2001-11-27  Paul Eggert  <eggert@twinsun.com>
60927
60928         * lib/quotearg.h (quotearg_n, quotearg_n_style):
60929         First arg is int, not unsigned.
60930         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
60931         (SIZE_MAX, UINT_MAX): New macros.
60932         (quotearg_n_options): Abort if N is negative.
60933         Avoid overflow check on hosts where size_t is 64 bits and int
60934         is 32 bits, as overflow is impossible there.
60935         Fix off-by-one typo that caused unnecessary reallocation.
60936
60937 2001-11-27  Jim Meyering  <meyering@lucent.com>
60938
60939         * lib/tempname.c: Merge with version from libc.
60940         * lib/regex.c: Likewise.
60941
60942         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
60943         systems for which STDC_HEADERS is 0, it was not included, resulting in
60944         a warning about an integer-to-pointer conversion problem with getenv.
60945         Reported by Volker Borchert.
60946
60947 2001-11-26  Jim Meyering  <meyering@lucent.com>
60948
60949         * lib/gtod.h: Remove file.
60950         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
60951         * lib/gettimeofday.c: Don't include gtod.h.
60952         (GTOD_init): Remove function.
60953         (rpl_gettimeofday): Do its job here instead, rather than aborting.
60954         Suggestion from Volker Borchert.
60955
60956 2001-11-23  Jim Meyering  <meyering@lucent.com>
60957
60958         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
60959         it.
60960         * lib/hash.c (struct hash_table): Define it here instead.
60961
60962 2001-11-22  Jim Meyering  <meyering@lucent.com>
60963
60964         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
60965
60966 2001-11-20  Jim Meyering  <meyering@lucent.com>
60967
60968         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
60969         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
60970
60971 2001-11-19  Jim Meyering  <meyering@lucent.com>
60972
60973         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
60974         directory.  Use "conftestXXXXXX" as the template.
60975         Suggestion from Paul Eggert.
60976
60977         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
60978         immediately, so the test doesn't mistakenly hit the max-open-files
60979         limit.
60980
60981 2001-11-18  Paul Eggert  <eggert@twinsun.com>
60982
60983         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
60984         (TEMPORARIES): New macro.
60985         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
60986         removes an artificial limitation (e.g. HP-UX 10.20, where
60987         TMP_MAX is 17576).
60988
60989 2001-11-18  Jim Meyering  <meyering@lucent.com>
60990
60991         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
60992
60993 2001-11-18  Jim Meyering  <meyering@lucent.com>
60994
60995         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
60996         on SunOS 4.
60997
60998         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
60999         files will be created before anything else.
61000
61001 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61002
61003         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61004         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61005
61006 2001-11-17  Jim Meyering  <meyering@lucent.com>
61007
61008         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61009         Prompted by a report from Bob Proulx.
61010
61011         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61012         Instead, require UTILS_FUNC_MKSTEMP.
61013
61014 2001-11-17  Jim Meyering  <meyering@lucent.com>
61015
61016         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61017         Now, that's done as part of AC_FUNC_STRTOD.
61018
61019 2001-11-17  Jim Meyering  <meyering@lucent.com>
61020
61021         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61022         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61023         rather than group writable.  Patch by Juan F. Codagnone.
61024
61025         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61026         xrealloc, Instead, include "xalloc.h".
61027
61028         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61029         Remove explicit declarations of xmalloc, xrealloc,
61030         and xstrdup.  Instead, include "xalloc.h".
61031
61032         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61033         unlocked-io.h.
61034         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61035         Likewise.
61036         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61037
61038         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61039         Reported by Padraig Brady.
61040
61041         * lib/mkstemp.c: #undef mkstemp.
61042         Include config.h.
61043         (rpl_mkstemp): Rename from mkstemp.
61044         Protoize.
61045
61046 2001-11-16  Jim Meyering  <meyering@lucent.com>
61047
61048         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61049         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61050         determine the amount of total physical memory, use pstat_getstatic.
61051         HPUX-11 doesn't define _SC_PHYS_PAGES.
61052         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61053         If sysconf couldn't be used to determine the amount of available
61054         physical memory, use both pstat_getstatic and pstat_getdynamic.
61055         Based on a patch from Bob Proulx.
61056
61057 2001-11-10  Jim Meyering  <meyering@lucent.com>
61058
61059         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61060         (jm_PREREQ): Use it.
61061
61062 2001-11-09  Jim Meyering  <meyering@lucent.com>
61063
61064         * m4/jm-macros.m4: Require autoconf-2.52f.
61065         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61066         Use these AC_-prefixed names, not the AM_-prefixed ones.
61067
61068         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61069
61070 2001-11-05  Jim Meyering  <meyering@lucent.com>
61071
61072         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61073
61074 2001-11-04  Jim Meyering  <meyering@lucent.com>
61075
61076         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61077         $DEFS.
61078
61079 2001-11-03  Jim Meyering  <meyering@lucent.com>
61080
61081         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61082         of AC_DEFUN.
61083
61084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61085         know the name of the variable in the macro definition.
61086
61087 2001-11-03  Jim Meyering  <meyering@lucent.com>
61088
61089         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61090         in argmatch_to_argument call.
61091
61092         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61093         argument.
61094
61095         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61096         e.g., a fault due to an attempt to free a NULL pointer.
61097
61098 2001-11-01  Jim Meyering  <meyering@lucent.com>
61099
61100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61101         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61102
61103 2001-11-01  Jim Meyering  <meyering@lucent.com>
61104
61105         * lib/dirfd.c, lib/dirfd.h: New files.
61106         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61107
61108         * lib/hash.c (hash_print) [TESTING]: Clean up.
61109
61110 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61111
61112         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61113         to avoid a warning if -Wall.
61114
61115 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61116
61117         * README: New file
61118         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61119         (per RMS's instructions, this is now the canonical source)
61120         * lgpl/, gpl/: New directories.
61121
61122 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61123
61124         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61125
61126 2001-10-21  Jim Meyering  <meyering@lucent.com>
61127
61128         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61129         this code would end up calling gettext even in packages built
61130         with --disable-nls.
61131         * lib/getopt.c (_): Likewise.
61132         * lib/regex.c (_): Likewise.
61133
61134 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61135
61136         * m4/error.m4 (jm_PREREQ_ERROR):
61137         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61138         AC_FUNC_STRERROR_R does that.
61139         Check for strerror declaration.
61140
61141         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61142         are supposed to have them these days.
61143         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61144         Merge changes from latest Autoconf CVS.
61145         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61146         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61147         POSIX decided to standardize on the int flavor of strerror_r.
61148
61149 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61150
61151         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61152         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61153         Use strerror_r that is only a macro, even if it is not a function.
61154         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61155         (private_strerror): Use prototypes, not old-style function definition.
61156         (print_errno_message): New function.
61157         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61158         char*-flavored one.
61159         (error_tail, error, error_at_line): Use it.
61160
61161 2001-10-11  Jim Meyering  <meyering@lucent.com>
61162
61163         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61164         and quote_n (1, ... to avoid clobbering a buffer.
61165
61166 2001-10-05  Jim Meyering  <meyering@lucent.com>
61167
61168         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61169         hash-pjw.h.
61170         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61171         * lib/hash-pjw.h: New file.
61172
61173 2001-09-30  Jim Meyering  <meyering@lucent.com>
61174
61175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61176         `struct fsstat' has the `f_fstypename' member.
61177         Use that to define FS_TYPE, which is now used to make
61178         the getfsstat link test tighter.
61179
61180 2001-09-30  Jim Meyering  <meyering@lucent.com>
61181
61182         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61183         Include <sys/ucred.h>, for Apple Darwin.
61184         Include sys/mount.h and sys/fs_types.h only if available.
61185         (FS_TYPE): Define.
61186         (read_filesystem_list): Use FS_TYPE.
61187
61188 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61189
61190         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61191         a boolean context.
61192
61193 2001-09-29  Jim Meyering  <meyering@lucent.com>
61194
61195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61196         [one-argument getmntent function]): Include stdio.h before mntent.h.
61197         SunOS 4.1.x needs it for the declaration of `FILE'.
61198         Patch by Volker Borchert.
61199
61200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61201         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61202         sys/fs_types.h, and make the link-test for getfsstat guard #include
61203         directives with appropriate #if HAVE_*_H tests so that we can
61204         detect getfsstat on Apple Darwin1.3.7 systems.
61205         Reported by Nelson Beebe.
61206         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61207
61208 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61209
61210         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61211         #defines strtoimax.  Also treat the other strto* functions
61212         like strtoimax.
61213
61214         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61215         Check for strtoul and strtoumax,
61216         as those declarations are made even in the signed case.
61217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61218         Likewise, for strtol and strtoimax.
61219
61220 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61221
61222         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61223         #defines strtoimax.  Also treat the other strto* functions
61224         like strtoimax.
61225
61226         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61227         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61228         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61229
61230 2001-09-26  Jim Meyering  <meyering@lucent.com>
61231
61232         Most macros in unlocked-io.h had the wrong number of arguments.
61233         * lib/gen-uio: New script.
61234         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61235         * lib/unlocked-io.hin: Remove file.
61236         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61237         rather than trying to embed it here.
61238         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61239         Reported by Padraig Brady.
61240
61241 2001-09-25  Volker Borchert  <bt@teknon.de>
61242
61243         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61244         `result'.
61245
61246 2001-09-24  Jim Meyering  <meyering@lucent.com>
61247
61248         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61249
61250 2001-09-23  Jim Meyering  <meyering@lucent.com>
61251
61252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61253         instead of the mere test for existence of mntent.h.  The latter
61254         would get a false-positive on AIX 3.4 systems.
61255         In the outer getmntent if-block, don't die if neither of the getmntent
61256         tests succeeds.  Instead, just fall through and continue with the
61257         remaining tests.
61258
61259 2001-09-23  Jim Meyering  <meyering@lucent.com>
61260
61261         * lib/mountlist.c: Remove useless parentheses in #if directives.
61262         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61263         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61264
61265 2001-09-22  Jim Meyering  <meyering@lucent.com>
61266
61267         * m4/gettext.m4: New file.  From gettext.
61268         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61269         * m4/progtest.m4: Likewise
61270         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61271         * m4/glibc21.m4: Likewise.
61272
61273         * m4/libintl.m4: Remove.  No longer used.
61274
61275 2001-09-22  Jim Meyering  <meyering@lucent.com>
61276
61277         * lib/localcharset.c: Update from latest gettext.
61278         * lib/config.charset: Likewise.
61279
61280 2001-09-20  Jim Meyering  <meyering@lucent.com>
61281
61282         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61283         strtoimax.
61284         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61285         strtoumax.
61286
61287 2001-09-20  Jim Meyering  <meyering@lucent.com>
61288
61289         * lib/xstrtol.c (strtoimax): Guard declaration with
61290         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61291         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61292         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61293         (strtoumax): Likewise, for completeness (it wasn't necessary).
61294
61295 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61296
61297         * lib/strtoimax.c (HAVE_LONG_LONG):
61298         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61299         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61300         to work around bug in IBM C compiler.
61301
61302 2001-09-17  Jim Meyering  <meyering@lucent.com>
61303
61304         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61305         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61306         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61307         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61308         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61309         whenever the right hand side need not be expanded by the shell.
61310
61311 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61312
61313         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61314         library.  It's not correct, as some older glibcs are buggy.
61315         fnmatch wasn't fixed until glibc 2.2.
61316
61317         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61318         special shell magic here.
61319
61320 2001-09-16  Jim Meyering  <meyering@lucent.com>
61321
61322         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61323         * m4/jm-macros.m4: Require it.
61324
61325 2001-09-16  Jim Meyering  <meyering@lucent.com>
61326
61327         * lib/mkdir.c: New file.
61328
61329 2001-09-15  Jim Meyering  <meyering@lucent.com>
61330
61331         * m4/jm-macros.m4: Check for help2man.
61332
61333 2001-09-11  Jim Meyering  <meyering@lucent.com>
61334
61335         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61336         The body, by Paul Eggert, was moved here from configure.in.
61337         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61338
61339 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61340
61341         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61342         (jm_PREREQ): Use it.
61343
61344 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61347         Use ssize_t, not int, to store result of readlink.
61348         Check for ssize_t overflow as well as size_t overflow,
61349         as POSIX says the result of readlink is implementation-defined
61350         when ssize_t overflows.
61351         Remove unnecessary cast to char*.
61352         Use free+malloc instead of realloc, as the storage doesn't need
61353         to be preserved and it's clearer and can be more efficient that way.
61354         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61355         * lib/xreadlink.h (xreadlink): Update prototype.
61356
61357 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61358
61359         * lib/xgetcwd.c: Revert some of the previous change; intead,
61360         fix the HAVE_GETCWD_NULL code to behave more like the
61361         !HAVE_GETCWD_NULL code used to.
61362
61363         Include "xalloc.h".
61364         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61365         invoke xalloc_die.
61366
61367 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61368
61369         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61370         sys/param.h, as pathmax.h includes them.
61371
61372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61373
61374         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61375         (jm_PREREQ_XGETCWD): New macro.
61376
61377         * m4/getcwd.m4: New file.
61378
61379 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61380
61381         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61382         like the HAVE_GETCWD_NULL code.
61383         Include pathmax.h if not HAVE_GETCWD.
61384         Do not include xalloc.h.
61385         (INITIAL_BUFFER_SIZE): New symbol.
61386         Do not use xmalloc / xrealloc, since the caller is responsible for
61387         handling errors.  Preserve errno around `free' during failure.
61388         Do not overrun buffer when using getwd.
61389
61390 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61391
61392         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61393         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61394         getcwd (NULL, 0).
61395
61396 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61397
61398         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61399         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61400         spotted by Jim Meyering.
61401
61402 2001-09-03  Jim Meyering  <meyering@lucent.com>
61403
61404         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61405         failure.
61406
61407 2001-09-02  Jim Meyering  <meyering@lucent.com>
61408
61409         * lib/error.c: Update from GNU libc.
61410
61411 2001-09-01  Jim Meyering  <meyering@lucent.com>
61412
61413         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61414         Used by df.
61415
61416 2001-09-01  Jim Meyering  <meyering@lucent.com>
61417
61418         * lib/xreadlink.c: New file.
61419         * lib/xreadlink.h: New file.
61420         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61421         xreadlink.h.
61422
61423         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61424         doesn't conflict with sparc Solaris 7's definition in
61425         /usr/include/sys/int_types.h.
61426
61427         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61428         files.
61429         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61430         and strncasecmp as r-values.  Unixware didn't have declarations.
61431
61432 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61433
61434         * lib/xstrtol.h: Add copyright notice.
61435         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61436         LONGINT_INVALID_SUFFIX_CHAR.
61437
61438 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61439
61440         * lib/xstrtol.c (strtoimax): New decl.
61441
61442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61443
61444         * lib/xgetcwd.c: Don't include pathmax.h.
61445         Include stdlib.h and unistd.h if available.
61446         Include xalloc.h.
61447         (xmalloc, xstrdup, free): Remove decls.
61448         (xgetcwd): Don't assume sizes fit in unsigned.
61449         Check for overflow when computing sizes.
61450         Simplify reallocation code.
61451
61452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61453
61454         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61455         a directory's st_size can have an arbitrary value, so the old
61456         usage could waste an arbitrary amount of memory.  All uses
61457         changed.
61458         * lib/savedir.h: Update prototype.
61459
61460 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61461
61462         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61463
61464         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61465         old strtoimax.c.
61466
61467         Also, make the following further changes to make this file's
61468         configuration more similar to that of strtol.c:
61469         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61470         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61471         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61472         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61473         changed to signed values.
61474
61475         And make the following changes as well:
61476         Fix copyright notice, as 1999 was missing.
61477         (verify): New macro.
61478         (strtoimax): Check sizes at compile-time, not run-time.
61479         Prefer strtol to strtoll if both work.
61480         (main): Remove; it was not that useful and was a pain to maintain.
61481
61482         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61483
61484 2001-08-31  Jim Meyering  <meyering@lucent.com>
61485
61486         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61487         Use an initial, malloc'd, buffer of length 128 rather than
61488         a statically allocated one of length 1024.
61489
61490 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61491
61492         Simplify code, partly by assuming autoconf 2.52 semantics.
61493
61494         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61495
61496         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61497         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61498         All uses removed.
61499         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61500         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61501         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61502         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61503         jm_AC_HEADER_INTTYPES_H.
61504         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61505
61506         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61507
61508         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61509         Quote first arg of AC_DEFUN.
61510         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61511         since they are needed to parse the include file even if we need
61512         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61514         but with opposite signedness.
61515
61516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61517
61518         Merge 'exclude' changes from tar 1.13.22.
61519         This fixes one or two unlikely storage allocation overflow bugs,
61520         but doesn't change user-visible behavior otherwise.
61521
61522 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61523
61524         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61525         (jm_PREREQ_EXCLUDE): New macro.
61526
61527 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61528
61529         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61530         tm to be declared.
61531
61532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61533
61534         * lib/hash.c: Remove '2001' from copyright notice.
61535
61536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61537
61538         * lib/full-write.h: New file.
61539         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61540         * lib/full-write.c: Correct credits, as cccp.c no longer
61541         exists and anyway it was so heavily changed from the old cccp
61542         code as to be unrecognizable.  Include full-write.h.
61543         (full_write) Return size_t, with short writes meaning failure.
61544         All callers changed.  This fixes a bug with large buffers
61545         on 64-bit hosts.
61546         * lib/utime.c: Include full-write.h.
61547
61548 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61549
61550         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61551         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61552         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61553         Include if available.
61554         (<xalloc.h>): Include
61555         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61556         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61557         collide with FNM macros.
61558         (struct patopts): New struct.
61559         (struct exclude): Use it, as exclude patterns now come with options.
61560         (new_exclude): Support above changes.
61561         (new_exclude, add_exclude_file):
61562         Initial size must now be a power of two to simplify overflow checking.
61563         (free_exclude, fnmatch_no_wildcards): New function.
61564         (excluded_filename): No longer requires options arg, as the options
61565         are determined by add_exclude.  Now returns bool, not int.
61566         (excluded_filename, add_exclude):
61567         Add support for the fancy new exclusion options.
61568         (add_exclude, add_exclude_file): Now takes int options arg.
61569         Check for arithmetic overflow when computing sizes.
61570         (add_exclude_file): xrealloc might modify errno, so don't
61571         realloc until after errno might be used.
61572
61573         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61574         New macros.
61575         (free_exclude): New decl.
61576         (add_exclude, add_exclude_file): Now takes int options arg.
61577         (excluded_filename): No longer requires options arg, as the options
61578         are determined by add_exclude.  Now returns bool, not int.
61579
61580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61581
61582         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61583
61584 2001-08-27  Jim Meyering  <meyering@lucent.com>
61585
61586         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61587
61588         * lib/version-etc.c (N_): Remove definition.
61589         Revert most of last change.
61590         Instead, simply don't mark the `Copyright...' string for translation.
61591         Based on advice from Paul Eggert.
61592
61593         * lib/strtoxmax.c: Tweak comment.
61594
61595 2001-08-26  Jim Meyering  <meyering@lucent.com>
61596
61597         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61598
61599         * m4/xstrtoimax.m4: New file.
61600         * m4/xstrtoumax.m4: Add comments explaining why we
61601         AC_REPLACE_FUNCS(strtol).
61602
61603 2001-08-26  Jim Meyering  <meyering@lucent.com>
61604
61605         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61606         of copyright with `%s' so translators don't get an untranslated
61607         message in 2002.
61608         (COPYRIGHT_YEAR): Define.
61609         (version_etc): Use fprintf rather than fputs.
61610         Suggestion from Ulrich Drepper.
61611
61612         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61613
61614         * lib/strtoll.c: New file, from GNU libc.
61615         * lib/xstrtoimax.c: New file.
61616
61617         * lib/xstrtol.h: Add xstrtoimax.
61618         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61619         * lib/strtoimax.c: New file.  Likewise, but first define
61620         STRTOUXMAX_SIGNED.
61621
61622         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61623         ...
61624         * lib/strtoxmax.c: ... then renamed to this.
61625
61626 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61627
61628         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61629         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61630         (jm_AC_TYPE_INTMAX_T): New macro.
61631         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61632
61633         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61634
61635         * m4/longlong.m4: Renamed from ulonglong.m4.
61636         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61637         * m4/uintmax_t.m4: Removed.
61638
61639 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61640
61641         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61642         Port to Solaris 8, where 'sed' requires a space after the 'r'
61643         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61644         Redirect output to $tmp just once.
61645
61646 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61647
61648         * lib/addext.c (<errno.h>): Include.
61649         (errno): Declare if not defined.
61650         (addext): Work correctly when pathconf returns -1 and leaves
61651         errno alone because there is no limit.  Also, work even if
61652         pathconf returns a value greater than SIZE_MAX.
61653
61654 2001-08-12  Jim Meyering  <meyering@lucent.com>
61655
61656         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61657         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61658         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61659         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61660         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61661         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61662         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61663         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61664         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61665         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61666         utime.m4, utimes.m4, xstrtoumax.m4:
61667         Quote the first argument in each use of AC_DEFUN.
61668
61669 2001-08-12  Jim Meyering  <meyering@lucent.com>
61670
61671         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61672         Simply `return getcwd (NULL, 0);'.
61673         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61674         Use 1300 as initial value for length, not PATH_MAX.
61675
61676         * lib/pathmax.h: Clean up cpp syntax.
61677
61678 2001-08-12  Jim Meyering  <meyering@lucent.com>
61679
61680         * lib/gettimeofday.c: New file.
61681         * lib/gtod.h: New file.
61682         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
61683
61684 2001-08-05  Jim Meyering  <meyering@lucent.com>
61685
61686         * m4/jm-macros.m4: Require autoconf-2.52.
61687
61688 2001-08-04  Jim Meyering  <meyering@lucent.com>
61689
61690         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
61691         stmt, to get in sync with glibc.
61692
61693 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61694
61695         The following changes are from gettext 0.10.39 as maintained by
61696         Bruno Haible.
61697
61698         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
61699         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
61700         with inverted sense.  All uses changed.
61701
61702         * lib/mbswidth.c: Don't include <limits.h>.
61703         Include <stdlib.h> and <string.h> unconditionally.
61704         (iswcntrl, mbsinit, ISCNTRL): New macros.
61705         (mbsnwidth): Use K&R style function declarations.
61706         Don't bother checking for MB_LEN_MAX == 1, since the compiler
61707         can optimize it when MB_CUR_MAX == 1.
61708         The width of control characters is zero, not 1.
61709
61710 2001-08-03  Paul Eggert  <eggert@twinsun.com>
61711
61712         The following changes are from gettext 0.10.39 as maintained by
61713         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
61714
61715         * m4/codeset.m4: Upgrade to serial AM1.
61716         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
61717         all uses changed.  Quote first arg of AC_DEFUN.
61718         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
61719
61720         * m4/iconv.m4: Upgrade to serial AM2.
61721         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
61722         Add --with-libconv-prefix.
61723         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
61724         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
61725         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
61726         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
61727         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
61728
61729         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
61730         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
61731         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
61732         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
61733         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
61734         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
61735         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61736         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
61737         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61738
61739         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
61740         string.h any more.
61741
61742         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
61743         not the default value.
61744
61745         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
61746         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
61747         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
61748         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
61749         Also check for iswcntrl, used for wcwidth fallback.
61750         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
61751         to Autoconf 2.13.
61752
61753 2001-08-03  Jim Meyering  <meyering@lucent.com>
61754
61755         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
61756         as it was in the original.  Reported by Paul Eggert.
61757
61758 2001-07-16  Jim Meyering  <meyering@lucent.com>
61759
61760         * m4/gettimeofday.m4: New file.
61761         Prompted by a report from Bernhard Baehr.
61762
61763 2001-07-15  Jim Meyering  <meyering@lucent.com>
61764
61765         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
61766         stuff. Now it's in ../Makefile.cfg.
61767
61768 2001-07-15  Jim Meyering  <meyering@lucent.com>
61769
61770         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
61771         (BUILT_SOURCES): Add unlocked-io.h.
61772         (io_functions): Define.
61773         (unlocked-io.h): New rule.
61774         (DISTCLEANFILES): Add unlocked-io.h.
61775         (all-local): Depend on unlocked-io.h, to ensure it is created.
61776
61777         * lib/unlocked-io.hin: New file
61778
61779         * lib/regex.c: Update from glibc.
61780
61781 2001-07-05  Jim Meyering  <meyering@lucent.com>
61782
61783         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
61784         recommendation.
61785         (libfetish_a_SOURCES): Put all .h files here instead.
61786         Remove a thus-exposed (better checks in automake) duplicate and
61787         two unnecessary .h files.
61788
61789 2001-07-04  Jim Meyering  <meyering@lucent.com>
61790
61791         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
61792         that generates jm-glibc-io.m4 so that it doesn't trigger any make
61793         distcheck failure.
61794
61795 2001-07-02  Jim Meyering  <meyering@lucent.com>
61796
61797         The following changes were prompted by suggestions from Bruno Haible.
61798
61799         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
61800         is now generated.
61801         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
61802         definition of EXTRA_DIST.
61803         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
61804         ensure that the generated file is created/updated whenever the list
61805         of $(unlocked_functions) is changed.
61806         (jm-glibc-io.m4): New rule.
61807         (unlocked-io.h): New rule -- currently unused.
61808
61809 2001-06-24  Jim Meyering  <meyering@lucent.com>
61810
61811         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
61812         unmatched right bracket, rather than kludging it with an extra,
61813         falsely-matching quote in a comment.  Patch by Akim Demaille.
61814
61815 2001-06-11  Jim Meyering  <meyering@lucent.com>
61816
61817         * lib/regex.c: Update from GNU libc.
61818
61819 2001-05-27  Jim Meyering  <meyering@lucent.com>
61820
61821         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
61822         Check for ut_type in struct utmp.
61823
61824 2001-05-27  Jim Meyering  <meyering@lucent.com>
61825
61826         * lib/readutmp.h (UT_TYPE): Define.
61827
61828 2001-05-24  Jim Meyering  <meyering@lucent.com>
61829
61830         * lib/argmatch.c: Include "quote.h".
61831         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
61832         quote function.  Reported by Göran Uddeborg.
61833
61834 2001-05-22  Jim Meyering  <meyering@lucent.com>
61835
61836         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
61837         now that we use the package-supplied version unconditionally.
61838         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
61839
61840 2001-05-21  Jim Meyering  <meyering@lucent.com>
61841
61842         * m4/regex.m4: Change a couple backticks to single quotes to avoid
61843         shell syntax errors.
61844
61845 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61846
61847         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
61848
61849 2001-05-20  Paul Eggert  <eggert@twinsun.com>
61850
61851         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
61852         Don't bother to check library strftime, since
61853         we'll be using our own my_strftime function anyway.
61854         Define my_strftime instead of strftime.
61855
61856 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
61857
61858         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
61859         which is not yet declared.
61860
61861 2001-05-15  Jim Meyering  <meyering@lucent.com>
61862
61863         * m4/regex.m4: Use proper quoting so brackets appear in the test
61864         program.
61865         Reported by, and with help from, Bruno Haible.
61866
61867 2001-05-13  Jim Meyering  <meyering@lucent.com>
61868
61869         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
61870         undefined.
61871
61872 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61873
61874         dirname code cleanup.  base_name now behaves more compatibly
61875         with POSIX basename when given file names that have trailing
61876         slashes, and similarly for dir_name.  Add new primitives
61877         base_len and dir_len.  Put the directory-name-related decls
61878         into dirname.h.
61879
61880         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
61881         * lib/backupfile.c (base_name): Likewise.
61882         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
61883         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
61884         * lib/makepath.c (strip_trailing_slashes): Likewise.
61885         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
61886         ISSLASH): Likewise.
61887         * lib/rename.c (strip_trailing_slashes): Likewise.
61888         * lib/same.c (base_name): Likewise.
61889         * lib/stripslash.c (ISSLASH): Likewise.
61890
61891         * lib/addext.c: Include <dirname.h> after size_t is defined.
61892         * lib/backupfile.c: Likewise.
61893
61894         * lib/addext.c (addext): Use base_len to trim redundant
61895         trailing slashes instead of doing it ourselves.
61896         But do not trim the last slash if it is not redundant.
61897
61898         * lib/backupfile.c (find_backup_file_name,
61899         max_backup_version): Use base_len instead of rolling it ourselves.
61900         Handle the case of "" and (on DOS) "C:" correctly.
61901
61902         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
61903         needed. Include <string.h>, <dirname.h>.
61904         (base_name): Allow file names ending in slashes, other than names
61905         that are all slashes.  In this case, return the basename followed
61906         by the slashes.  This is more general, and can be used in places
61907         where the original base_name purposely had an assertion failure.
61908         (base_len): New function.
61909
61910         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
61911         Do not include <assert.h>; no longer needed.
61912         Include xalloc.h.
61913         (memrchr): Remove decl.
61914         (dir_name_r): Remove.
61915         (dir_len): Renamed from dirlen.  All callers changed.
61916         Rewrite in terms of base_name, for simplicity and consistency.
61917         (dir_name): Never return NULL.  All callers changed.
61918         Do not include <stdlib.h> in test program; no longer needed.
61919         return 0; is fine for test program.
61920
61921         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
61922         New macros.
61923         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
61924
61925         * lib/path-concat.c (path_concat): Use base_len to compute
61926         base length, not strlen; this means we cannot rely on memcpy
61927         to null-terminate.
61928
61929         * lib/same.c (STREQ): Remove.
61930         (same_name): Handle the case where the basename ends in trailing '/'.
61931
61932         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
61933         a slash was stripped.  Do not strip the last slash after a
61934         file system prefix.
61935
61936 2001-05-11  Paul Eggert  <eggert@twinsun.com>
61937
61938         * lib/Makefile.am (libfetish_a_SOURCES):
61939         Add strftime.c, since we now compile it on all hosts.
61940
61941         * lib/strftime.c (my_strftime):
61942         Define to nstrftime if emacs, but only if my_strftime is not defined.
61943         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
61944         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
61945         Add one more extra argument: a nanoseconds value.
61946         All uses changed.
61947         (ns): New macro.
61948         (my_strftime function): Add %N format.
61949         (emacs_strftimeu): Renamed from emacs_strftime,
61950         with extra ut argument.
61951
61952 2001-05-09  Paul Eggert  <eggert@twinsun.com>
61953
61954         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
61955
61956 2001-04-21  Jim Meyering  <meyering@lucent.com>
61957
61958         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
61959         doesn't interfere.
61960
61961 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
61962
61963         * m4/ftruncate.m4: Check for chsize.
61964         Link with ftruncate.o unconditionally if ftruncate is missing.
61965         This was required when cross-compiling to i586-mingw32msvc.
61966
61967 2001-04-08  Jim Meyering  <meyering@lucent.com>
61968
61969         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
61970         recomputed; that's necessary when the offset spans a DST transition.
61971         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
61972
61973 2001-04-02  Jim Meyering  <meyering@lucent.com>
61974
61975         * lib/regex.h, regex.c: Update from GNU libc.
61976
61977 2001-03-24  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/jm-macros.m4: Require autoconf-2.49d.
61980
61981 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
61982
61983         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
61984
61985 2001-03-19  Paul Eggert  <eggert@twinsun.com>
61986
61987         * lib/version-etc.c (version_etc_copyright): Update to 2001.
61988
61989 2001-03-17  Jim Meyering  <meyering@lucent.com>
61990
61991         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
61992         now that the version in autoconf is equivalent.
61993         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
61994
61995         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
61996         Suggestion from Akim Demaille.
61997
61998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
61999         (jm_PREREQ_TEMPNAME): New function.
62000
62001 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62002
62003         * lib/tempname.c (uint64_t): Define to uintmax_t if
62004         not defined, and if UINT64_MAX is not defined.
62005         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62006         Reported by John David Anglin.
62007
62008 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62009
62010         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62011         resolve alias if codeset is empty.
62012         * lib/config.charset (BeOS): Use wildcard syntax.
62013
62014 2001-03-13  Jim Meyering  <meyering@lucent.com>
62015
62016         * lib/path-concat.c (path_concat)
62017         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62018         concatenating e.g., `C:' and `foo'.
62019         From Bruno Haible.
62020
62021 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62022
62023         * lib/localcharset.c (locale_charset): Don't use
62024         setlocale(LC_CTYPE,NULL). Don't return NULL.
62025         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62026
62027 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62028
62029         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62030         support for DOS/DJGPP.
62031
62032 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62033
62034         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62035         lacks mkstemp.  Compile our own tempname.c if we compile our own
62036         mkstemp.c, as mkstemp relies on tempname.
62037
62038 2001-03-01  Jim Meyering  <meyering@lucent.com>
62039
62040         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62041         AH_VERBATIM really does output its argument verbatim.
62042
62043 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62044
62045         * lib/Makefile.am (libfetish_a_SOURCES):
62046         Add dup-safer.c, fopen-safer.c.
62047         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62048
62049         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62050         * lib/unistd-safer.h: New files.
62051
62052 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62053
62054         The mkstemp replacement is taken from glibc 2.2.2, with some
62055         portability fixes for use outside glibc, as follows:
62056
62057         * lib/tempname.c (struct_stat64): New macro.
62058         (direxists, __gen_tempname): Use it.
62059         This avoids a portability problem with Solaris 8.
62060
62061         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62062         (<stddef.h>, <stdint.h>, <string.h>):
62063         Include only if STDC_HEADERS || _LIBC.
62064         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62065         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62066         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62067         (__set_errno): Define this macro if <errno.h> doesn't.
62068         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62069         Define these macros if <stdio.h> doesn't.
62070         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62071         Define these macros if <sys/stat.h>
62072         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62073         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62074         __xstat64): Define if not _LIBC.
62075         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62076         (__gen_tempname): Invoke gettimeofday only if
62077         HAVE_GETTIMEOFDAY || _LIBC;
62078         otherwise, fall back on plain "time".
62079         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62080
62081         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62082
62083         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62084
62085 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62086
62087         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62088
62089 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62090
62091         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62092         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62093         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62095
62096 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62099         Remove workaround macros for hosts that have mbrtowc but not
62100         mbstate_t, as we now insist on proper declarations for both
62101         before using mbrtowc.
62102
62103 2001-02-17  Jim Meyering  <meyering@lucent.com>
62104
62105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62106         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62107         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62108         UnixWare 7.1.1.
62109
62110         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62111         rather than AC_CACHE_VAL.
62112
62113 2001-02-17  Jim Meyering  <meyering@lucent.com>
62114
62115         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62116         around included file name.
62117
62118         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62119
62120         * lib/strftime.c: Update from GNU libc (the only changes were to
62121         comments).
62122
62123 2001-02-17  Jim Meyering  <meyering@lucent.com>
62124
62125         * lib/regex.c: Update from libc.
62126
62127 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62128
62129         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62130         clash.
62131
62132 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62133
62134         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62135         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62136         Reported by Mark Hounschell via Paul Eggert.
62137
62138 2001-02-07  Jim Meyering  <meyering@lucent.com>
62139
62140         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62141
62142 2001-02-05  Jim Meyering  <meyering@lucent.com>
62143
62144         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62145         it includes the patch required for `large file' support with at least
62146         HP-UX's 10.20 /bin/cc.
62147
62148 2001-02-03  Jim Meyering  <meyering@lucent.com>
62149
62150         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62151         AS_IF, now that it works once again (mysteriously).
62152         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62153
62154 2001-01-30  Jim Meyering  <meyering@lucent.com>
62155
62156         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62157         * m4/chown.m4: Rename conftestchown to conftest.chown.
62158         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62159         s/conftestdir2/conftest.d2/.
62160         * m4/utimes.m4: s/conftestdata/conftest.data/
62161         Inspired by Pavel Roskin's change in autoconf.
62162
62163 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62164
62165         * lib/config.charset: Update for FreeBSD 4.2.
62166
62167 2001-01-27  Jim Meyering  <meyering@lucent.com>
62168
62169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62170         a use of AS_IF.
62171         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62172
62173 2001-01-26  Jim Meyering  <meyering@lucent.com>
62174
62175         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62176         quotearg.c includes it.
62177
62178 2001-01-26  Jim Meyering  <meyering@lucent.com>
62179
62180         * lib/quotearg.c: Include stddef.h.
62181         * lib/quote.c: Include stddef.h.
62182         Reported by Axel Kittenberger.
62183
62184         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62185         line in double quotes so that it evokes a better diagnostic.
62186         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62187         Reported by Axel Kittenberger.
62188
62189 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62190
62191         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62192         as if it was a `charset'.
62193
62194 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62195
62196         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62197         has const.
62198
62199 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62200
62201         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62202         to avoid a warning.  Add back 'const' to inptr.
62203
62204 2001-01-20  Jim Meyering  <meyering@lucent.com>
62205
62206         Be sure that headers are checked before used in code compiled
62207         for the type checks.
62208         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62209         In place of that, invoke jm_CHECK_ALL_TYPES.
62210         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62211         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62212         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62213         The check for ssize_t was mistakenly run before the test for unistd.h.
62214
62215         The configure-time check for stdbool.h was missing.
62216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62217         (jm_PREREQ_HASH): New function.
62218
62219 2001-01-17  Jim Meyering  <meyering@lucent.com>
62220
62221         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62222         for autoconf-2.49c.
62223         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62224
62225 2001-01-16  Jim Meyering  <meyering@lucent.com>
62226
62227         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62228         From Bruno Haible.
62229
62230 2001-01-14  Jim Meyering  <meyering@lucent.com>
62231
62232         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62233         foo and bar.  Create conftestdir/ in the script, not in the C code.
62234         Remove directories in the script, not in the C code.
62235         Remove conftestdir{,2} before trying to create the directory.
62236         Make the entire configure script fail if the mkdir fails.
62237
62238 2001-01-14  Jim Meyering  <meyering@lucent.com>
62239
62240         * lib/rename.c: New file.  From Volker Borchert.
62241         Include stdlib.h, string.h or strings.h, and xalloc.h.
62242         Use strip_trailing_slashes rather than open-coding it.
62243
62244 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62245
62246         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62247
62248 2001-01-03  Jim Meyering  <meyering@lucent.com>
62249
62250         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62251         of local `inptr' to avoid warning with some system declarations of
62252         iconv.
62253
62254 2001-01-02  Volker Borchert  <bt@teknon.de>
62255
62256         * m4/rename.m4: New file.
62257         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62258
62259 2001-01-01  Jim Meyering  <meyering@lucent.com>
62260
62261         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62262         even on systems with utmpx.h.  It's necessary for the declaration of
62263         utmp's ut_user member.  Reported by Andreas Jaeger.
62264
62265         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62266         available. They are required for the declarations of getgrgid and
62267         getpwuid resp.
62268         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62269         Reported by Andreas Jaeger.
62270
62271 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62272
62273         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62274         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62275         so `make install' also works in VPATH builds.
62276
62277 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62278
62279         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62280         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62281         can be used in subdirectories.
62282
62283 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62284
62285         * lib/modechange.c: Do not assume that mode_t uses the
62286         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62287         the other-execute bit of FOO even if S_IXOTH != 1.
62288
62289         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62290         WOTH, XOTH, ALLM): New macros.
62291         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62292          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62293         Use them.
62294         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62295         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62296         (mode_compile):
62297         No need to use uintmax_t; unsigned long is long enough.
62298         Don't bother to get suffix since we don't use it.
62299
62300 2000-12-26  Jim Meyering  <meyering@lucent.com>
62301
62302         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62303         better with autoheader.
62304
62305 2000-12-24  Jim Meyering  <meyering@lucent.com>
62306
62307         * lib/hash.c (is_prime): Return explicit boolean values.
62308         (hash_get_first): Return NULL to appease Irix5.6's 89.
62309         Reported by Nelson Beebe.
62310
62311 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62312
62313         * lib/localcharset.c (locale_charset): Add support for Win32.
62314
62315 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62316
62317         * lib/physmem.h, lib/physmem.c: New files.
62318
62319         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62320         (noinst_HEADERS): Add physmem.h.
62321
62322         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62323         't' for compatibility with Solaris 8 sort.
62324
62325 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62326
62327         * lib/config.charset: Add support for BeOS.
62328
62329 2000-12-17  Jim Meyering  <meyering@lucent.com>
62330
62331         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62332         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62333
62334 2000-12-16  Jim Meyering  <meyering@lucent.com>
62335
62336         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62337         N and M) would have treated it like `chown N:N FILE'.
62338
62339         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62340
62341 2000-12-16  Jim Meyering  <meyering@lucent.com>
62342
62343         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62344         SHELLS_FILE to a file name that's useful on djgpp systems.
62345         Include stdlib.h.
62346         (ADDITIONAL_DEFAULT_SHELLS): Define.
62347         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62348         Based mostly on a patch from Prashant TR.
62349
62350 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62351
62352         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62353         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62354         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62355
62356 2000-12-08  Andreas Schwab  <schwab@suse.de>
62357
62358         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62359         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62360
62361 2000-12-07  Jim Meyering  <meyering@lucent.com>
62362
62363         * lib/stripslash.c (ISSLASH): Define.
62364         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62365         `/'.
62366         From Prashant TR.
62367
62368         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62369         (dir_name_r): Declare this function as static.
62370         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62371         manifest itself on a name containing a mix of slashes and
62372         backslashes.
62373         Make this function work with names starting with a DOS-style
62374         drive letter and colon prefix.
62375         (dir_name): Append `.' if necessary.
62376         Based mostly on patches from Prashant TR and Eli Zaretskii.
62377
62378         * lib/dirname.h (dir_name_r): Remove prototype.
62379
62380 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62381
62382         * m4/off_t-format.m4: Remove this file.
62383         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62384
62385 2000-12-06  Jim Meyering  <meyering@lucent.com>
62386
62387         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62388         replacement strtoull, we may well need the replacement strtoul, too.
62389         Check for declarations of strtoul and strtoull.
62390         Check for strtol.  Mainly as a cue to cause automake to include
62391         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62392         Check for limits.h -- strtol.c needs it.
62393
62394 2000-12-05  Jim Meyering  <meyering@lucent.com>
62395
62396         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62397
62398 2000-12-04  Jim Meyering  <meyering@lucent.com>
62399
62400         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62401         Also include memory.h, stdlib.h, unistd.h if appropriate.
62402         Reported by Andreas Jaeger (conflicting declaration of malloc).
62403
62404 2000-12-02  Jim Meyering  <meyering@lucent.com>
62405
62406         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62407         * m4/jm-macros.m4 (jm_MACROS): require it.
62408
62409 2000-12-02  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62412
62413 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62414
62415         * lib/memrchr.c: Include <config.h> before any system include file.
62416
62417 2000-11-30  Jim Meyering  <meyering@lucent.com>
62418
62419         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62420
62421 2000-11-30  Jim Meyering  <meyering@lucent.com>
62422
62423         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62424
62425 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62426
62427         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62428
62429 2000-11-26  Jim Meyering  <meyering@lucent.com>
62430
62431         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62432
62433 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62434
62435         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62436         size of (size_t) -1; it's not portable.
62437
62438 2000-11-17  Jim Meyering  <meyering@lucent.com>
62439
62440         * lib/strstr.c: Update from GNU libc.
62441
62442 2000-11-17  Akim Demaille  <akim@epita.fr>
62443
62444         * lib/obstack.h: Formatting changes.
62445         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62446         prevent type checking.
62447         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62448         cast the value to (void *): assigning a `foo *' to a `void *'
62449         variable is valid.
62450         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62451
62452 2000-11-16  Jim Meyering  <meyering@lucent.com>
62453
62454         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62455
62456 2000-11-11  Jim Meyering  <meyering@lucent.com>
62457
62458         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62459
62460 2000-11-10  Jim Meyering  <meyering@lucent.com>
62461
62462         * lib/obstack.h: Update from GNU libc.
62463         * lib/obstack.c: Likewise.
62464
62465 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62466
62467         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62468
62469 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62470
62471         * lib/getusershell.c (setusershell): Use rewind rather than
62472         fseek/fseeko, to avoid configuration hassles with fseeko.
62473         Don't bother opening SHELLS_FILE if shellstream is NULL;
62474         it's not necessary.
62475
62476 2000-11-05  Jim Meyering  <meyering@lucent.com>
62477
62478         * lib/makepath.h (make_dir): Declare.
62479         * lib/makepath.c (make_dir): Remove `static' attribute.
62480         Tweak a comment.
62481
62482 2000-11-04  Jim Meyering  <meyering@lucent.com>
62483
62484         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62485
62486 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62487
62488         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62489         last one in a bucket, advance to the next bucket.
62490
62491 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62492
62493         * lib/fnmatch.c: Do not comment out all the code if we are using
62494         the GNU C library, because in some cases we are replacing buggy
62495         code in the GNU C library itself.
62496
62497 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62498
62499         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62500         (regex_compile): Catch bogus \(\1\).
62501
62502 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62503
62504         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62505         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62506         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62507
62508 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62509
62510         * lib/error.h, getline.h, modechange.h:
62511         Remove "2000" from Copyright line, as the file hasn't been
62512         changed this year other than in the copyright notice.
62513
62514         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62515         was changed this year.
62516
62517 2000-10-29  Jim Meyering  <meyering@lucent.com>
62518
62519         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62520         renaming.
62521         * m4/ls-mntd-fs.m4: Likewise
62522
62523 2000-10-29  Jim Meyering  <meyering@lucent.com>
62524
62525         * lib/xstat.in: Fix grammar in comment.
62526
62527 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62528
62529         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62530         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62531         doesn't define __restrict_arr.
62532
62533 2000-10-28  Jim Meyering  <meyering@lucent.com>
62534
62535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62536         (jm_PREREQ_MEMCHR): New function.
62537
62538 2000-10-28  Jim Meyering  <meyering@lucent.com>
62539
62540         * lib/memchr.c: Update from libc.
62541         Adjust for portability:
62542         [HAVE_STDLIB_H]: Include stdlib.h.
62543         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62544         Undef __memchr, too.
62545         [!weak_alias]: Define __memchr to memchr.
62546
62547         * lib/regex.c: Update from libc.
62548         * lib/regex.h: Likewise.
62549         * lib/getopt1.c: Likewise.
62550         * lib/memcmp.c: Likewise.
62551
62552         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62553         Avoid using fseek, when possible -- it's broken by design.
62554         Patch by Ulrich Drepper.
62555
62556 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62557
62558         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62559         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62560         Giving in to popular pressure to shut up the compiler with casts.
62561
62562 2000-10-26  Jim Meyering  <meyering@lucent.com>
62563
62564         * lib/strftime.c: Update from libc.
62565
62566 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62567
62568         * regex.c: More `unsigned char' -> `re_char' changes.
62569         Also change several `int' into `re_wchar_t'.
62570         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62571         (PUSH_FAILURE_POINTER): Don't cast any more.
62572         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62573         We want GCC to complain, since this piece of code makes
62574         re_match non-reentrant, which *should* be fixed.
62575         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62576         (EXTEND_BUFFER): Use RETALLOC.
62577         (SET_LIST_BIT): Don't cast.
62578         (re_wchar_t): New type.
62579         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62580         that those two functions will always properly return.
62581         (IMMEDIATE_QUIT_CHECK): Cast to void.
62582         (analyse_first): Use recursion rather than an explicit stack.
62583         (re_compile_fastmap): Can't fail anymore.
62584         (re_search_2): Don't check re_compile_fastmap for failure.
62585         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62586         Now also sets the new value (passed in a new argument).
62587         (re_match_2_internal): Use it.
62588         Also, use a new var `reg' of type size_t when looping through regs
62589         rather than reuse the inappropriate `mcnt'.
62590
62591 2000-10-25  Jim Meyering  <meyering@lucent.com>
62592
62593         * lib/obstack.c: Update from libc.
62594
62595 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62596
62597         * regex.c (regex_compile): Change the way of handling a range from
62598         a char less than 256 to a char not less than 256.
62599
62600 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62601
62602         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62603         NT-Emacs only.
62604         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62605         so that re_search functions only quit when callers expect them to.
62606
62607 2000-10-23  Jim Meyering  <meyering@lucent.com>
62608
62609         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62610         wrong.  That set_locale call must not have any side effects.
62611         From Paul Eggert.
62612
62613 2000-10-22  Jim Meyering  <meyering@lucent.com>
62614
62615         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62616         [CYCLIC]: Remove now-unused definition.
62617
62618         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62619         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62620         Suggestion from Ulrich Drepper.
62621
62622 2000-10-21  Jim Meyering  <meyering@lucent.com>
62623
62624         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62625         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62626         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62627
62628 2000-10-21  Jim Meyering  <meyering@lucent.com>
62629
62630         * lib/dirname.c (memrchr): Declare if necessary.
62631         (dir_name): Remove the restriction that there be no
62632         trailing slashes.  Now, this code skips past them, effectively
62633         ignoring them.
62634         [TEST_DIRNAME] (main): New unit tests.
62635
62636         * lib/memrchr.c: New file from GNU libc.
62637         Undef __memrchr, too.
62638         [!weak_alias]: Define __memrchr to memrchr.
62639         Guard weak_alias use with `#ifdef weak_alias'.
62640
62641 2000-10-21  Jim Meyering  <meyering@lucent.com>
62642
62643         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62644         (dir_name): Use dir_name_r.
62645         * lib/dirname.h (dir_name_r): Declare it.
62646
62647 2000-10-17  Jim Meyering  <meyering@lucent.com>
62648
62649         * lib/quote.h (PARAMS): Define and use.
62650         Reported by Akim Demaille.
62651
62652         * lib/getopt.c: Update from libc.
62653
62654 2000-10-16  Jim Meyering  <meyering@lucent.com>
62655
62656         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62657         setlocale.
62658         From Jan Fedak.
62659
62660 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62661
62662         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62663
62664 2000-09-25  Jim Meyering  <meyering@lucent.com>
62665
62666         * lib/md5.h (rol): Define (from GnuPG).
62667
62668         * lib/sha.c: Give credit (GnuPG) where due.
62669         (M): Use rol rather than open-coding it.
62670         Add a FIXME comment.
62671
62672 2000-09-21  Jim Meyering  <meyering@lucent.com>
62673
62674         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62675         Reported by Michael Stone.
62676
62677 2000-09-20  Jim Meyering  <meyering@lucent.com>
62678
62679         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62680         (noinst_HEADERS): Add sha.h.
62681         Based on code from Scott G. Miller and from GnuPG.
62682
62683 2000-09-18  Jim Meyering  <meyering@lucent.com>
62684
62685         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
62686         LIBS. Otherwise, everyone ends up linking with -lelf for some
62687         configurations.
62688         Reported by Mike Stone.
62689
62690 2000-09-15  Jim Meyering  <meyering@lucent.com>
62691
62692         * lib/regex.c: Update from libc.
62693
62694 2000-09-10  Jim Meyering  <meyering@lucent.com>
62695
62696         * lib/getopt.c (_getopt_internal): Update from glibc.
62697
62698 2000-09-09  Jim Meyering  <meyering@lucent.com>
62699
62700         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
62701         think it should be used as a general replacement for isascii.
62702         * lib/fnmatch.c: Likewise.
62703         * lib/mbswidth.c: Likewise
62704         * lib/regex.c: Likewise.
62705
62706         Don't use atoi.
62707         * lib/userspec.c: Include sys/param.h and limits.h.
62708         Include xstrtol.h.
62709         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
62710         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
62711         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
62712         UID, GID.  Check range.
62713
62714 2000-09-06  Jim Meyering  <meyering@lucent.com>
62715
62716         * lib/getopt.c (_getopt_internal): Update from glibc.
62717
62718 2000-08-30  Jim Meyering  <meyering@lucent.com>
62719
62720         * lib/strftime.c: Merge in changes from GNU libc.
62721
62722 2000-08-26  Jim Meyering  <meyering@lucent.com>
62723
62724         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
62725         * m4/fpending.m4: New file.
62726
62727 2000-08-26  Jim Meyering  <meyering@lucent.com>
62728
62729         * lib/closeout.c: Include "__fpending.h".
62730         (close_stdout_status): Return right away if there's nothing to flush.
62731
62732         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
62733         * lib/__fpending.c: New file.
62734         * lib/__fpending.h: New file.
62735
62736 2000-08-20  Jim Meyering  <meyering@lucent.com>
62737
62738         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
62739         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
62740         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
62741
62742 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
62743
62744         Improve fileutils installation on systems where running
62745         programs (like install) can't be unlinked.
62746         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
62747         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
62748
62749 2000-08-07  Paul Eggert  <eggert@twinsun.com>
62750
62751         Standardize on "memory exhausted" instead of "Memory exhausted"
62752         or "virtual memory exhausted".
62753         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
62754         "virtual memory exhausted".
62755         * lib/same.c (same_name): Invoke xalloc_die instead of printing
62756         our own message.
62757         * lib/userspec.c (parse_user_spec): Likewise.
62758         * lib/bumpalloc.h: comment fix
62759         * lib/same.c, userspec.c: Include xalloc.h.
62760
62761         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
62762         not char *const and pointing to a constant array.
62763         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
62764         (xrealloc): Comment fix.
62765
62766         * lib/userspec.c (parse_user_spec):
62767         Don't translate a message until just before returning,
62768         to avoid unnecessary translation.
62769
62770 2000-08-07  Jim Meyering  <meyering@lucent.com>
62771
62772         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
62773         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
62774         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
62775         getgroups.c, gethostname.c, getopt.h, group-member.c,
62776         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
62777         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
62778         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
62779         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
62780         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
62781         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
62782         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
62783         yesno.c: Back out Copyright date changes for each file with no change
62784         this year.  This eases coordination with other programs using the same
62785         source code modules.  From Paul Eggert.
62786
62787 2000-08-06  Paul Eggert  <eggert@twinsun.com>
62788
62789         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
62790         not char, for compatibility with glibc 2.1.3 strftime.c.
62791
62792 2000-08-03  Greg McGary  <greg@mcgary.org>
62793
62794         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
62795         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
62796         (EXTEND_BUFFER): Use them.
62797
62798 2000-08-01  Jim Meyering  <meyering@lucent.com>
62799
62800         * lib/dirname.c (ISSLASH): Define.
62801         (BACKSLASH_IS_PATH_SEPARATOR): Define.
62802         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
62803         both `\' and `/' may be use as path separators.
62804         Based on a patch from Prashant TR.
62805
62806 2000-07-31  Paul Eggert  <eggert@twinsun.com>
62807
62808         * lib/quotearg.c (quotearg_n_options): Don't make the initial
62809         slot vector a constant, since it might get modified.
62810
62811 2000-07-31  Jim Meyering  <meyering@lucent.com>
62812
62813         * lib/xmalloc.c: Use `virtual memory exhausted', not
62814         `Memory exhausted'.
62815         * lib/obstack.c (print_and_abort): Likewise.
62816
62817 2000-07-30  Paul Eggert  <eggert@twinsun.com>
62818
62819         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
62820         buffer, so that the caller can always quote one small
62821         component of a "memory exhausted" message in slot 0.
62822         From a suggestion by Jim Meyering.
62823
62824 2000-07-30  Jim Meyering  <meyering@lucent.com>
62825
62826         * lib/makepath.c (make_path): Quote the other instance, too.
62827
62828         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
62829         (STATIC_BUF_SIZE): Define.
62830         (quotearg_n_options): Use only statically allocated storage when
62831         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
62832         than STATIC_BUF_SIZE.
62833
62834 2000-07-29  Jim Meyering  <meyering@lucent.com>
62835
62836         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
62837         * lib/dirname.c (dir_name): Likewise.
62838
62839         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
62840         `/'.
62841
62842         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
62843         (dir_name): Assert that there are no trailing slashes.
62844
62845 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
62846
62847         * lib/mbswidth.h (mbswidth): Add a flags argument.
62848         (mbswidth): New declaration.
62849         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
62850         * lib/mbswidth.c (mbswidth): Add a flags argument.
62851         (mbsnwidth): New function.
62852
62853 2000-07-24  Jim Meyering  <meyering@lucent.com>
62854
62855         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
62856
62857 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62858
62859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
62860
62861 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62862
62863         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
62864         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
62865         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
62866         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
62867         invoke multibyte primitives.
62868
62869 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62870
62871         * lib/quotearg.c:
62872         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
62873         so that mbstate_t is always defined.
62874
62875         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
62876         be 1 in at least one GCC installation, and this configuration
62877         error is likely to be common.  Ignoring MB_LEN_MAX hurts
62878         performance on hosts that have mbrtowc but have only unibyte
62879         locales, but I assume these hosts are rare.
62880
62881 2000-07-23  Paul Eggert  <eggert@twinsun.com>
62882
62883         * lib/mbswidth.c (_XOPEN_SOURCE):
62884         Don't define; this causes problems on Solaris 7.
62885         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
62886
62887 2000-07-23  Jim Meyering  <meyering@lucent.com>
62888
62889         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
62890         too: getgrgid, getpwuid, getuid.
62891
62892 2000-07-23  Jim Meyering  <meyering@lucent.com>
62893
62894         * lib/basename.c (base_name): Add an assertion.
62895
62896 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
62897
62898         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
62899         shadow its mbsinit function.
62900
62901 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62902
62903         * lib/mbswidth.h: New file.
62904         * lib/mbswidth.c: New file.
62905         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
62906         (noinst_HEADERS): Add mbswidth.h.
62907
62908 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
62909
62910         * lib/config.charset: Add support for FreeBSD. Improve support for
62911         HP-UX and IRIX 6.
62912
62913 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
62914
62915         * m4/mbswidth.m4: New file.
62916         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
62917
62918 2000-07-15  Jim Meyering  <meyering@lucent.com>
62919
62920         * lib/makepath.c: Include quote.h.
62921         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
62922         corresponding argument in a `quote (...)' call.
62923         Give better diagnostics.
62924
62925         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
62926         (noinst_HEADERS): Add quote.h.
62927
62928         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
62929         from tar's src/misc.c.
62930         * lib/quote.h: New file.  Prototypes for same.
62931
62932 2000-07-14  Paul Eggert  <eggert@twinsun.com>
62933
62934         From a suggestion by Bruno Haible.
62935         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
62936         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
62937         to decide whether to define the BeOS workaround macro;
62938         this adjusts to the change to AC_MBSTATE_T.
62939
62940 2000-07-14  Jim Meyering  <meyering@lucent.com>
62941
62942         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
62943         jm_AC_TYPE_UINTMAX_T.
62944
62945 2000-07-13  Paul Eggert  <eggert@twinsun.com>
62946
62947         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
62948
62949         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
62950         quotearg_buffer_restyled): Add support for
62951         clocale_quoting_style.  Undo previous change to
62952         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
62953         and "{RIGHT QUOTATION MARK}" msgids.
62954
62955 2000-07-10  Paul Eggert  <eggert@twinsun.com>
62956
62957         From a suggestion by Bruno Haible.
62958         * m4/mbstate_t.m4 (AC_MBSTATE_T):
62959         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
62960         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
62961         and mbstate_t, to a single-part test that simply defines mbstate_t.
62962         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
62963         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
62964
62965 2000-07-10  Jim Meyering  <meyering@lucent.com>
62966
62967         * m4/strerror_r.m4: Mirror the correction made in autoconf.
62968
62969         * m4/gnu-source.m4: Output to confdefs.h directly.
62970         Suggestion from Akim Demaille.
62971
62972 2000-07-09  Paul Eggert  <eggert@twinsun.com>
62973
62974         The old behavior of quoting `like this' doesn't look good with
62975         newer, ISO-style fonts.  See:
62976         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
62977
62978         Instead, quote "like this" by default.  Let the translator
62979         tailor the locale-specific quoting behavior by providing
62980         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
62981
62982         * lib/quotearg.c (N_): New macro.
62983         (gettext_default): New function.
62984         (quotearg_buffer_restyled): Use
62985         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
62986         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
62987
62988 2000-07-09  Jim Meyering  <meyering@lucent.com>
62989
62990         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
62991         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
62992
62993         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
62994         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
62995
62996 2000-07-09  Jim Meyering  <meyering@lucent.com>
62997
62998         * lib/Most files: Update copyright dates to include 2000.
62999
63000 2000-07-08  Jim Meyering  <meyering@lucent.com>
63001
63002         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63003         if not defined.
63004         (xgethostname): Remove now-unnecessary #ifdef.
63005         Move declaration of `err' into loop where it's used.
63006
63007 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63008         and Bruno Haible  <haible@clisp.cons.org>
63009
63010         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63011         only if the test for an object-type mbstate_t fails.  This
63012         prevents us from mistakenly reporting that mbstate_t is a
63013         system object type after we "#define mbstate_t int" to work
63014         around its lack.
63015
63016 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63017         and Bruno Haible  <haible@clisp.cons.org>
63018
63019         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63020
63021 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63022
63023         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63024         to strerror_r.
63025         Include <ctype.h> for use of isalpha.
63026
63027 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63028
63029         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63030         by allocating a larger buffer. Test the gethostname return value for
63031         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63032         returns an error and ENAMETOOLONG isn't defined.
63033
63034 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63035
63036         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63037         dimension.
63038
63039 2000-07-04  Jim Meyering  <meyering@lucent.com>
63040
63041         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63042         of the deprecated AC_CHECKING.
63043
63044 2000-07-04  Jim Meyering  <meyering@lucent.com>
63045
63046         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63047         Reported by Bruno Haible.
63048
63049 2000-07-04  Jim Meyering  <meyering@lucent.com>
63050
63051         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63052         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63053         lacks mbrtowc.
63054
63055 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63056
63057         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63058         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63059
63060 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63061         and Bruno Haible  <haible@clisp.cons.org>
63062
63063         * lib/quotearg.c (mbrtowc):
63064         Assign to *pwc, and return 1 only if result is nonzero.
63065         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63066
63067 2000-07-03  Jim Meyering  <meyering@lucent.com>
63068
63069         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63070
63071 2000-07-03  Jim Meyering  <meyering@lucent.com>
63072
63073         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63074         This is necessary to get a definition of e.g., UTMP_FILE on
63075         HP-UX 10.20.
63076         From Bob Proulx.
63077
63078 2000-07-02  Jim Meyering  <meyering@lucent.com>
63079
63080         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63081
63082         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63083         AC_LIBOBJ(function_name).
63084         * m4/chown.m4: Likewise.
63085         * m4/fnmatch.m4: Likewise.
63086         * m4/ftruncate.m4: Likewise.
63087         * m4/getgroups.m4: Likewise.
63088         * m4/getline.m4: Likewise.
63089         * m4/group-member.m4: Likewise.
63090         * m4/jm-macros.m4: Likewise.
63091         * m4/lstat.m4: Likewise.
63092         * m4/malloc.m4: Likewise.
63093         * m4/memcmp.m4: Likewise.
63094         * m4/nanosleep.m4: Likewise.
63095         * m4/putenv.m4: Likewise.
63096         * m4/realloc.m4: Likewise.
63097         * m4/regex.m4: Likewise.
63098         * m4/stat.m4: Likewise.
63099         * m4/strftime.m4: Likewise.
63100
63101 2000-07-02  Jim Meyering  <meyering@lucent.com>
63102
63103         * lib/quotearg.c (mbstate_t): Don't define here.
63104
63105 2000-07-02  Jim Meyering  <meyering@lucent.com>
63106
63107         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63108
63109 2000-07-01  Jim Meyering  <meyering@lucent.com>
63110
63111         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63112
63113 2000-07-01  Jim Meyering  <meyering@lucent.com>
63114
63115         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63116         problem.
63117
63118 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63119
63120         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63121         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63122
63123 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63124
63125         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63126         per change in ../m4/ls-mntd-fs.m4.
63127         (read_filesystem_list): Ignore symbolic links.
63128
63129 2000-06-29  Jim Meyering  <meyering@lucent.com>
63130
63131         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63132         for declaration of strcmp.
63133
63134         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63135
63136         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63137         Avoid warning by casting result to `char *' to remove `const'.
63138
63139 2000-06-28  Jim Meyering  <meyering@lucent.com>
63140
63141         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63142         included by quotearg.c, for which we perform this test.  From
63143         Bruno Haible.
63144
63145 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63146
63147         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63148         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63149         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63150
63151 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63152
63153         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63154
63155 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63156
63157         savedir now sets errno on failure and invokes xmalloc to get memory.
63158         Fix a couple of other minor bugs while we're at it.
63159
63160         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63161         (NAMLEN): Remove macro.
63162         (malloc, realloc): Remove decls.
63163         (stpcpy): Likewise.
63164         ("xalloc.h"): Include.
63165         (NAME_SIZE_DEFAULT): New macro.
63166         (savedir): Use xmalloc / xrealloc to allocate memory.
63167         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63168         Skip "" directory entries.
63169         Use strlen to calculate directory entry length, since the old method
63170         is rarely used these days and isn't worth supporting.
63171         Don't use a pointer after freeing it.
63172         Check for integer overflow when calculating allocation size.
63173         Use memcpy to copy entries, instead of stpcpy.
63174         Set errno properly when returning NULL.
63175         Check for readdir error.
63176
63177 2000-06-26  Jim Meyering  <meyering@lucent.com>
63178
63179         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63180
63181 2000-06-25  Jim Meyering  <meyering@lucent.com>
63182
63183         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63184         Linux header bug when _XOPEN_SOURCE is defined to 500.
63185
63186 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63187
63188         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63189         deficiency.
63190
63191 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63192
63193         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63194         Include xalloc.h.
63195         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63196
63197 2000-06-24  Jim Meyering  <meyering@lucent.com>
63198
63199         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63200         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63201         for which strerror does return char*, but which lacks a conveniently
63202         accessible declaration of the function.  If the compile-test says
63203         strerror_r doesn't work, then resort to a `run'-test that works on
63204         BeOS and segfaults on DEC Unix.
63205
63206 2000-06-24  Jim Meyering  <meyering@lucent.com>
63207
63208         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63209
63210 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63211
63212         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63213         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63214
63215 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63216
63217         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63218         (mbrtowc, mbstate_t): Define substitutes if
63219         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63220         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63221         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63222
63223 2000-06-23  Jim Meyering  <meyering@lucent.com>
63224
63225         * m4/afs.m4: Add missing AC_MSG_RESULT.
63226         Reported by Bruno Haible.
63227
63228         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63229         Suggestion from Bruno Haible.
63230
63231 2000-06-23  Jim Meyering  <meyering@lucent.com>
63232
63233         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63234
63235 2000-06-21  Jim Meyering  <meyering@lucent.com>
63236
63237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63238
63239 2000-06-21  Jim Meyering  <meyering@lucent.com>
63240
63241         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63242         (noinst_HEADERS): Add getstr.h.
63243
63244         * lib/getline.c (getstr): Move into a separate file.
63245         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63246         the following changes: new parameter, delim2; both delim[12]
63247         parameters have type `int', not `char'.  The latter would lose
63248         with 8-bit delimiters.
63249         * lib/getstr.h: New file.
63250
63251 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63252
63253         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63254         than 1024, return a memory chunk of least possible size, instead
63255         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63256         Use free/xmalloc instead of xrealloc to avoid copying for very long
63257         paths.
63258
63259 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63260
63261         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63262         the empty string.
63263
63264 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63265
63266         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63267         address, not strdup.  Include <stdlib.h> and don't declare free().
63268
63269 2000-06-19  Jim Meyering  <meyering@lucent.com>
63270
63271         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63272
63273 2000-06-18  Jim Meyering  <meyering@lucent.com>
63274
63275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63276
63277         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63278         `checking whether...' message to be consistent with that of the
63279         lstat test.
63280
63281 2000-06-18  Jim Meyering  <meyering@lucent.com>
63282
63283         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63284         Besides, these days every porting target provides a mkdir function.
63285
63286         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63287         needed. (this snippet comes from src/system.h).
63288
63289 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63290
63291         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63292
63293 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63294
63295         * lib/human.c (adjust_value): New function.
63296         (human_readable_inexact): Apply rounding style even when
63297         printing approximate values.
63298
63299 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63300
63301         * lib/human.c (human_readable_inexact): Allow an input block
63302         size that is not a multiple of the output block size, and vice versa.
63303         Reported by Piergiorgio Sartor.
63304
63305 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63306
63307         * lib/getdate.y (get_date): Apply relative times after time
63308         zone indicator, not before.  Reported by Todd A. Jacobs.
63309
63310 2000-06-13  Jim Meyering  <meyering@lucent.com>
63311
63312         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63313
63314         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63315
63316 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63317
63318         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63319
63320 2000-06-12  Jim Meyering  <meyering@lucent.com>
63321
63322         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63323         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63324         optional argument.
63325         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63326         the optional argument, `lib'.
63327
63328 2000-06-08  Jim Meyering  <meyering@lucent.com>
63329
63330         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63331
63332 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63333
63334         Rewrite largefile configuration so that we don't need to run
63335         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63336         AC_CANONICAL_HOST in configure.in -- jmm]
63337
63338         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63339         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63340         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63341         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63342         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63343         All uses changed.
63344         Instead of inspecting the output of getconf, try to compile the
63345         test program without and with the macro definition.
63346         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63347         for getconf.  Instead, check for the needed flags by compiling
63348         test programs.
63349
63350 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63351
63352         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63353
63354 2000-06-04  Jim Meyering  <meyering@lucent.com>
63355
63356         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63357         SunOS 4.1.4 for which gid_t is an unsigned type.
63358
63359 2000-06-03  Jim Meyering  <meyering@lucent.com>
63360
63361         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63362         now that autoconf requires that.
63363
63364         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63365         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63366         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63367
63368 2000-06-03  Jim Meyering  <meyering@lucent.com>
63369
63370         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63371
63372 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63373
63374         * m4/glibc21.m4: New file.
63375         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63376
63377 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63378
63379         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63380         newer, don't install charset.alias.
63381         * lib/config.charset: Change the Linux/glibc rules so they become empty
63382         on glibc-2.1 or newer.
63383
63384 2000-06-02  Jim Meyering  <meyering@lucent.com>
63385
63386         * lib/mountlist.c: Back out last change.  Instead, do this...
63387         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63388         me_dummy member using the same `ignore'-testing code.
63389         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63390         fs_type strings.
63391         From Mark D. Roth.
63392
63393 2000-05-29  Jim Meyering  <meyering@lucent.com>
63394
63395         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63396         mounts with the `ignore' attribute.  Based on a patch from
63397         Mark D. Roth.
63398
63399 2000-05-28  Jim Meyering  <meyering@lucent.com>
63400
63401         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63402         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63403         * m4/stat.m4: Likewise.
63404         * m4/lstat.m4: Likewise.
63405         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63406
63407         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63408         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63409
63410 2000-05-26  Jim Meyering  <meyering@lucent.com>
63411
63412         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63413
63414 2000-05-24  Jim Meyering  <meyering@lucent.com>
63415
63416         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63417         autoconf requires that.
63418         * m4/lib-check.m4: Likewise.
63419         * m4/jm-macros.m4: Likewise.
63420         * m4/strftime.m4: Likewise.
63421
63422         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63423         AC_CHECK_DECLS, now that autoconf requires that.
63424
63425 2000-05-22  Jim Meyering  <meyering@lucent.com>
63426
63427         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63428         * m4/lstat.m4: Likewise.
63429
63430 2000-05-22  Jim Meyering  <meyering@lucent.com>
63431
63432         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63433
63434 2000-05-20  Jim Meyering  <meyering@lucent.com>
63435
63436         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63437         (jm_PREREQ): Use it.
63438
63439 2000-05-18  Jim Meyering  <meyering@lucent.com>
63440
63441         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63442         back, too, since it may have been modified by allocate_entry.
63443         (hash_delete): Rewrite to use neither the assignment operator
63444         nor the comma operator in an if-expression.
63445
63446 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63447
63448         * lib/closeout.c:
63449         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63450         Remove; no longer needed.
63451         "quotearg.h": Add include.
63452         (file_name): Do not bother to explicitly initialize to NULL; it's less
63453         efficient on some hosts.
63454         (close_stdout_status): Remove test as to whether stdout was already
63455         closed; it breaks for the case "echo x | sort >&-".
63456         Quote file name colons.
63457         Do not assume that _("write error") lacks format strings.
63458
63459 2000-05-15  Jim Meyering  <meyering@lucent.com>
63460
63461         * lib/version-etc.c (version_etc_copyright): Update the copyright
63462         string used in all --version output.
63463
63464 2000-05-14  Jim Meyering  <meyering@lucent.com>
63465
63466         * lib/closeout.c (close_stdout_set_file_name): New function.
63467         (close_stdout_status): Use new file-scoped global.
63468         Return right away if fstat says the stdout file descriptor is invalid.
63469         * lib/closeout.h (close_stdout_set_file_name): Declare.
63470
63471 2000-05-10  Jim Meyering  <meyering@lucent.com>
63472
63473         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63474         (close_stdout_set_status): New function.
63475         * lib/closeout.h (close_stdout_set_status): Declare.
63476
63477 2000-05-09  Jim Meyering  <meyering@lucent.com>
63478
63479         * m4/gettext.m4: Rename this...
63480         * m4/libintl.m4: ...to this.
63481
63482 2000-05-08  Jim Meyering  <meyering@lucent.com>
63483
63484         * lib/long-options.c: Don't include closeout.h.
63485         (parse_long_options): Don't call close_stdout for --version.
63486
63487 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63488
63489         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63490         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63491         2.1.3 bug.  This avoids a clash when files like regex.c define
63492         _GNU_SOURCE.
63493
63494 2000-05-06  Jim Meyering  <meyering@lucent.com>
63495
63496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63497         (AC_REPLACE_FUNCS): Add strnlen.
63498
63499         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63500         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63501
63502         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63503         AC_SEARCH_LIBS call for nanosleep.
63504         (LIB_NANOSLEEP): Set and AC_SUBST.
63505
63506 2000-05-06  Jim Meyering  <meyering@lucent.com>
63507
63508         * lib/strnlen.c: Undefine __strnlen and strnlen.
63509         [!weak_alias]: Define __strnlen to strnlen.
63510
63511         * lib/atexit.c: New file, from libiberty.
63512
63513 2000-05-06  Jim Meyering  <meyering@lucent.com>
63514
63515         * lib/closeout.c (close_stdout_status): Also check for errors on the
63516         stderr stream.
63517
63518 2000-05-05  Jim Meyering  <meyering@lucent.com>
63519
63520         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63521         AC_SEARCH_LIBS call for clock_gettime.
63522         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63523
63524         * m4/search-libs.m4: Update from autoconf.
63525
63526         su doesn't work on Solaris 2.6.
63527         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63528         <shadow.h>.  Reported by Dragos Harabor.
63529
63530 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63531
63532         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63533         memcpy instead of xmalloc, xrealloc, path_concat.
63534         (locale_charset): Treat empty environment variables as absent.
63535         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63536
63537 2000-05-04  Jim Meyering  <meyering@lucent.com>
63538
63539         * lib/getopt.c: Update from glibc.
63540         * lib/obstack.c: Likewise.
63541         * lib/obstack.h: Likewise.
63542         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63543         file
63544
63545         * lib/regex.h: Likewise.
63546         * lib/strndup.c: Likewise.
63547         * lib/strnlen.c: New file, from glibc.
63548
63549 2000-05-03  Jim Meyering  <meyering@lucent.com>
63550
63551         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63552
63553 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63554
63555         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63556         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63557         compile-time test, rather than inspecting host and OS, to
63558         decide whether to define _LARGEFILE_SOURCE.
63559
63560 2000-05-01  Jim Meyering  <meyering@lucent.com>
63561
63562         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63563
63564         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63565         Based on a patch from Bruno Haible.
63566
63567 2000-05-01  Jim Meyering  <meyering@lucent.com>
63568
63569         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63570
63571 2000-04-29  Jim Meyering  <meyering@lucent.com>
63572
63573         * lib/path-concat.c: Declare strdup only if it's not defined.
63574         * lib/canon-host.c: Likewise.
63575
63576 2000-04-28  Jim Meyering  <meyering@lucent.com>
63577
63578         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63579         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63580         is included first, then limits.h is included by locale.h by libintl.h.
63581         From John David Anglin.
63582
63583 2000-04-25  Jim Meyering  <meyering@lucent.com>
63584
63585         * lib/makepath.c (S_IRWXUGO): Define.
63586         (make_path): Always perform explicit chmod if MODE specifies any
63587         of the `special' permission bits.  Prompted by a bug report against
63588         install from Mate Wierdl and Joost van Baal.
63589
63590 2000-04-18  Jim Meyering  <meyering@lucent.com>
63591
63592         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63593         (jm_PREREQ): Use it.
63594
63595 2000-04-18  Jim Meyering  <meyering@lucent.com>
63596
63597         * lib/README: New file.
63598
63599         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63600         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63601
63602 2000-04-17  Jim Meyering  <meyering@lucent.com>
63603
63604         Get it right :-)
63605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63606         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63607         Suggestion from Akim Demaille.
63608
63609 2000-04-17  Jim Meyering  <meyering@lucent.com>
63610
63611         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63612         the definition of it to rpl_strftime also defined-away the system's
63613         declaration.
63614
63615 2000-04-15  Jim Meyering  <meyering@lucent.com>
63616
63617         Use `C' to denote so-called `contiguous' files, the same way
63618         that tar does.
63619         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63620         (ftypelet): Use S_ISCTG.
63621         From Michael Deutschmann.
63622
63623 2000-04-14  Jim Meyering  <meyering@lucent.com>
63624
63625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63626         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63627         clobbered.
63628
63629 2000-04-14  Jim Meyering  <meyering@lucent.com>
63630
63631         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63632
63633 2000-04-13  Jim Meyering  <meyering@lucent.com>
63634
63635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63636         AH_VERBATIM to insert required #ifndef into config.h.in.
63637         Suggestion from Akim Demaille.
63638
63639 2000-04-12  Jim Meyering  <meyering@lucent.com>
63640
63641         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63642         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63643         Christian Krackowizer.
63644
63645         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63646         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63647         (AC_SYS_LARGEFILE): Require.
63648         (AM_C_PROTOTYPES): Require.
63649
63650 2000-04-08  Jim Meyering  <meyering@lucent.com>
63651
63652         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63653         names don't conflict.  Reported by Eli Zaretskii.
63654
63655 2000-04-07  Jim Meyering  <meyering@lucent.com>
63656
63657         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63658         sys/types.h, to work around system header problems on AIX 3.2.5.
63659         From Bruno Haible.
63660
63661 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63662
63663         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63664         bug.  Deal with the different error behavior of Irix iconv.
63665
63666 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63667
63668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63669         IRIX if the installer said otherwise.
63670
63671 2000-04-05  Jim Meyering  <meyering@lucent.com>
63672
63673         Portability tweaks required for ultrix4.3.
63674         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63675         (jm_CHECK_DECLS): Add getutent to the list of functions.
63676         (_jm_DECL_HEADERS): Add utmpx.h.
63677         From John David Anglin.
63678
63679         * m4/strftime.m4: Back out the 2000-04-02 change.
63680         Instead of that change, simply undefine putenv in the test program.
63681
63682 2000-04-05  Jim Meyering  <meyering@lucent.com>
63683
63684         Portability tweaks required for ultrix4.3.
63685         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
63686         getutent.
63687         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
63688         * lib/canon-host.c: Declare strdup.
63689         * lib/path-concat.c: Likewise.
63690         From John David Anglin.
63691
63692 2000-04-04  Jim Meyering  <meyering@lucent.com>
63693
63694         Be more DOS 8.3-friendly.
63695         * lib/ref-add.sin: Renamed from ref-add.sed.in.
63696         * lib/ref-del.sin: Renamed from ref-del.sed.in.
63697         * lib/Makefile.am: Reflect renaming.
63698         Reported by Eli Zaretskii.
63699
63700         Use a temporary file name that won't clash with `charset.alias'
63701         in the DOS 8.3 name space.
63702         * lib/Makefile.am (charset_tmp): Define.
63703         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
63704         (uninstall-local): Likewise.
63705         Reported by Eli Zaretskii.
63706
63707 2000-04-03  Jim Meyering  <meyering@lucent.com>
63708
63709         * m4/gettext.m4: Fix typo in comment.
63710
63711         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
63712         textutils/configure.in).  Suggestion from Paul Eggert.
63713         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
63714
63715 2000-04-02  Paul Eggert  <eggert@twinsun.com>
63716
63717         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
63718         variable in the shell rather than using putenv, which isn't
63719         portable.  This avoids the configure-time inter-test dependency
63720         on the potentially-renamed putenv function.
63721
63722 2000-03-30  Paul Eggert  <eggert@twinsun.com>
63723
63724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
63725         before checking struct stat.st_blksize, so that
63726         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
63727
63728 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63729
63730         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
63731         since strftime.c uses HAVE_STRFTIME to decide whether to use
63732         the underlying strftime.
63733
63734 2000-03-29  Paul Eggert  <eggert@twinsun.com>
63735
63736         * lib/time/strftime.c (my_strftime): Make sure we call the system
63737         strftime, not ourselves, when invoking the underlying strftime.
63738
63739 2000-03-24  Jim Meyering  <meyering@lucent.com>
63740
63741         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
63742         (charset_alias): Define.
63743         (install-exec-local): Factor out common code.
63744         (uninstall-local): Split lines longer than 80.
63745         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
63746         (SUFFIXES): Define.
63747         (.sed.in.sed): New rule.  Don't redirect directly to $@.
63748         (CLEANFILES): Add ref-add.sed and ref-del.sed.
63749
63750 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
63751
63752         * lib/config.charset: Output a line containing "Packages using this
63753         file".
63754         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
63755         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
63756         ref-del.sed): New rules.
63757
63758 2000-03-17  Jim Meyering  <meyering@lucent.com>
63759
63760         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
63761         Otherwise, include <strings.h>
63762
63763 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
63764
63765         * lib/unicodeio.c (utf8_wctomb): New function.
63766         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
63767         format instead of in UCS-4 with platform dependent endianness.
63768
63769 2000-03-10  Jim Meyering  <meyering@lucent.com>
63770
63771         * m4/lib-check.m4: Look for getspnam in -lgen, too.
63772         From Marco Franzen.
63773
63774 2000-03-07  Paul Eggert  <eggert@twinsun.com>
63775
63776         * lib/savedir.c (savedir): Work even if directory size is
63777         negative; this can happen with some screwy NFS configurations.
63778
63779 2000-03-06  Jim Meyering  <meyering@lucent.com>
63780
63781         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
63782         if it's NULL (because we ran out of memory).  From Bruno Haible.
63783
63784 2000-03-05  Jim Meyering  <meyering@lucent.com>
63785
63786         * lib/localcharset.c ("path-concat.h"): Include.
63787         (get_charset_aliases): Use path_concat instead of ANSI string
63788         concatenation.
63789
63790         * lib/unicodeio.h (PARAMS): Define.
63791         Use it to guard prototype.
63792
63793 2000-03-04  Jim Meyering  <meyering@lucent.com>
63794
63795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
63796         for lib/localcharset.c.
63797
63798 2000-03-04  Jim Meyering  <meyering@lucent.com>
63799
63800         * lib/Makefile.am (install-exec-local): Create $(libdir) before
63801         installing into it.
63802         (uninstall-local): Uncomment this rule so `make distcheck' works
63803         once again.
63804
63805         * lib/unicodeio.c (<errno.h>): Include it.
63806         (errno): Declare if not defined.
63807
63808         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
63809
63810         * lib/config.charset: New version, incorporating remarks from a linux
63811         i18n mailing list.  From Bruno Haible.
63812
63813 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
63814
63815         * m4/codeset.m4: New file.
63816         * m4/iconv.m4: New file.
63817         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
63818
63819 2000-03-03  Jim Meyering  <meyering@lucent.com>
63820
63821         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
63822
63823 2000-03-02  Jim Meyering  <meyering@lucent.com>
63824
63825         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
63826         the messages come out on separate lines.
63827
63828         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
63829         rather than jm_CHECK_DECLARATIONS.
63830         * m4/decl.m4: Remove now-unused file.
63831
63832         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
63833         geteuid.
63834
63835 2000-03-02  Jim Meyering  <meyering@lucent.com>
63836
63837         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
63838
63839 2000-03-01  Jim Meyering  <meyering@lucent.com>
63840
63841         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
63842         * lib/unicodeio.c: Likewise.
63843
63844 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
63845
63846         * lib/config.charset: New file.
63847         * lib/localcharset.c: New file.
63848         * lib/unicodeio.h, lib/unicodeio.c: New files.
63849         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
63850         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
63851         (noinst_HEADERS): Add unicodeio.h.
63852         (all-local, install-exec-local, charset.alias): New targets.
63853
63854 2000-02-28  Paul Eggert  <eggert@twinsun.com>
63855
63856         * lib/quotearg.c (ALERT_CHAR): New macro.
63857         (quotearg_buffer_restyled): Use it.
63858
63859 2000-02-27  Jim Meyering  <meyering@lucent.com>
63860
63861         * m4/check-decl.m4: Add getenv to the list.
63862
63863 2000-02-27  Jim Meyering  <meyering@lucent.com>
63864
63865         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
63866         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
63867
63868         * lib/backupfile.c: Guard inclusion of stdlib.h with
63869         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
63870         Declare malloc if needed.
63871
63872         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
63873         `#ifndef HAVE_DECL..'
63874         now that autoconf always defines the HAVE_DECL_ symbols.
63875         * lib/human.c: Likewise.
63876         * lib/same.c: Likewise.
63877         * lib/strtoumax.c: Likewise.
63878
63879         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
63880         declaration check was not run.
63881         * lib/hash.c: Likewise.
63882         * lib/human.c: Likewise.
63883         * lib/same.c: Likewise.
63884         * lib/strtoumax.c: Likewise.
63885
63886         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
63887         `.', then first look up the entire `.'-containing string as a login
63888         name.
63889
63890 2000-02-23  Jim Meyering  <meyering@lucent.com>
63891
63892         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
63893         in place of my hack.
63894
63895 2000-02-18  Paul Eggert  <eggert@twinsun.com>
63896
63897         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
63898         (textint): New typedef.
63899         (parser_control): Member year changed from int to textint.
63900         All uses changed.
63901         (YYSTYPE): Removed; replaced by %union with int and textint members.
63902         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
63903         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
63904         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
63905         (tSNUMBER, tUNUMBER): Now of type <textintval>.
63906         (date, number, to_year): Use width of number in digits, not its value,
63907         to determine whether it's a 2-digit year, or a 2-digit time.
63908         (yylex): Store number of digits of numeric tokens.
63909         Reported by John Kendall.
63910
63911         (parser_control): Changed from struct parser_control to typedef (for
63912         consistency).  All uses changed.
63913
63914         (tID): Removed; not used.
63915         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
63916
63917 2000-02-14  Paul Eggert  <eggert@twinsun.com>
63918
63919         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
63920         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
63921
63922 2000-02-12  Jim Meyering  <meyering@lucent.com>
63923
63924         * lib/userspec.c (ISDIGIT): Define it.
63925         (isdigit): Remove definition.
63926         (is_number): Use ISDIGIT, not isdigit.
63927         <libintl.h>: Include.
63928         (_ and N_): Define.
63929         (parse_user_spec): Mark translatable strings.
63930
63931 2000-02-10  Jim Meyering  <meyering@lucent.com>
63932
63933         With these changes, nanosleep.[ch] are finally enough like the other
63934         lib/* replacement files to compile on a few more losing systems.
63935
63936         * lib/nanosleep.h: Don't include config.h.
63937         Remove prototype from declaration of nanosleep.
63938         (PARAMS): Remove now-unneeded definition.
63939         * lib/nanosleep.c: #undef nanosleep.
63940         (rpl_nanosleep): Rename from nanosleep.
63941
63942 2000-02-10  Jim Meyering  <meyering@lucent.com>
63943
63944         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
63945         gnu_nanosleep to rpl_nanosleep.
63946
63947 2000-02-09  Jim Meyering  <meyering@lucent.com>
63948
63949         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
63950         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
63951
63952 2000-02-08  Akim Demaille  <akim@epita.fr>
63953
63954         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
63955         `[' and `]' and remove uses of `changequote'.
63956         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
63957         (AC_SYS_LARGEFILE): Likewise.
63958         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
63959         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
63960         of changequote.
63961         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
63962         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
63963         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
63964         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
63965
63966 2000-02-05  Jim Meyering  <meyering@lucent.com>
63967
63968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
63969         Remove explicit use of AC_HEADER_TIME.  It is required by
63970         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
63971         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
63972         in autoconf whereby the expansion of the latter ended up preceding
63973         the expansion of its prerequisite, AC_HEADER_TIME.
63974         Reported by Volker Borchert.
63975
63976 2000-02-03  Jim Meyering  <meyering@lucent.com>
63977
63978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
63979
63980 2000-02-03  Jim Meyering  <meyering@lucent.com>
63981
63982         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
63983         rather than with `#if HAVE_UTMPNAME'.
63984
63985 2000-02-02  Jim Meyering  <meyering@lucent.com>
63986
63987         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
63988         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
63989         Reported by Eli Zaretskii.
63990
63991 2000-02-01  Jim Meyering  <meyering@lucent.com>
63992
63993         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
63994
63995 2000-01-31  Jim Meyering  <meyering@lucent.com>
63996
63997         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
63998         functions.  Add the time.h and sys/time.h headers along with the
63999         AC_REQUIRE'ment of AC_HEADER_TIME.
64000
64001 2000-01-31  Jim Meyering  <meyering@lucent.com>
64002
64003         * lib/nanosleep.h (nanosleep): Guard declaration with
64004         `#if ! HAVE_DECL_NANOSLEEP'.
64005         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64006         the declaration in that vendor's sys/timers.h.
64007         Reported by Christian Krackowizer.
64008
64009         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64010         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64011         (ISPRINT): Likewise.
64012         Reported by Tom Tromey.
64013
64014 2000-01-30  Jim Meyering  <meyering@lucent.com>
64015
64016         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64017
64018         * m4/prereq.m4 (utmp_includes): Define.
64019         Check for ut_user and ut_name members in both struct utmpx
64020         and struct utmp.
64021
64022 2000-01-30  Jim Meyering  <meyering@lucent.com>
64023
64024         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64025         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64026         header files where only utmpx.ut_user is declared.
64027
64028         * lib/readutmp.h (UT_USER): Define.
64029
64030 2000-01-29  Jim Meyering  <meyering@lucent.com>
64031
64032         * m4/lib-check.m4: New file containing library-related checks from
64033         fileutils and sh-utils (textutils had none).
64034
64035 2000-01-28  Jim Meyering  <meyering@lucent.com>
64036
64037         * m4/perl.m4: Change format of warning message to look more like that
64038         from the missing script.  Suggestion from François Pinard.
64039
64040 2000-01-25  Jim Meyering  <meyering@lucent.com>
64041
64042         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64043         well as time.h in the compile check.
64044         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64045         Fix typo in cross-compiling case: s/yes/no/.
64046
64047 2000-01-23  Jim Meyering  <meyering@lucent.com>
64048
64049         * m4/jm-macros.m4: Move df-related tests here from
64050         fileutils/configure.in
64051
64052         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64053         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64054
64055         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64056         s/space/ac_fsusage_space/.
64057         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64058
64059         * m4/ftruncate.m4: New file (derived from part of
64060         fileutils/configure.in).
64061         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64062         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64063
64064         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64065         AC_SUBST these here, rather than just in sh-util/configure.in, so
64066         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64067         all the same.
64068         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64069         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64070         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64071         (AC_SUBST(POW_LIBM)): Likewise.
64072         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64073
64074 2000-01-23  Jim Meyering  <meyering@lucent.com>
64075
64076         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64077         obstack.c.
64078
64079 2000-01-22  Jim Meyering  <meyering@lucent.com>
64080
64081         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64082
64083         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64084
64085         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64086         configure.in
64087         (AC_CHECK_HEADERS): Likewise for sh-utils.
64088         (AC_CHECK_HEADERS): Likewise for textutils.
64089         Merge the three lists of headers.
64090
64091         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64092         from fileutils' configure.in.
64093
64094         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64095         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64096         check-decl.m4.
64097
64098         * m4/check-decl.m4: Use #if rather than #ifdef.
64099         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64100         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64101         (_jm_DECL_HEADERS): Define new function.
64102         (jm_CHECK_DECLARATIONS): Require it.
64103
64104 2000-01-22  Jim Meyering  <meyering@lucent.com>
64105
64106         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64107         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64108         Required for some AIX systems.  Reported by Christian Krackowizer.
64109         [TESTING] (main): New function.
64110
64111         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64112         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64113         letters.
64114
64115         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64116         iswprint.
64117
64118         * lib/strverscmp.c (ISDIGIT): Define.
64119         (strverscmp): Use ISDIGIT, not isdigit.
64120
64121 2000-01-19  Jim Meyering  <meyering@lucent.com>
64122
64123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64124         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64125         defines `struct timespec' in <sys/time.h>
64126
64127         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64128         Thanks to Akim for explaining.
64129
64130 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64131
64132         * lib/nanosleep.c (nanosleep):
64133         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64134         POSIX.1 doesn't require SA_INTERRUPT and some systems
64135         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64136         it's been part of POSIX.1 since day 1 (in 1988).
64137
64138 2000-01-17  Jim Meyering  <meyering@lucent.com>
64139
64140         * lib/interlock: Remove unused file.  Reported by François Pinard.
64141
64142 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64143
64144         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64145         alert, backslash, formfeed, and vertical tab unnecessarily in
64146         shell quoting style.
64147
64148 2000-01-16  Jim Meyering  <meyering@lucent.com>
64149
64150         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64151         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64152         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64153         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64154
64155 2000-01-16  Jim Meyering  <meyering@lucent.com>
64156
64157         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64158         because the latter didn't work.
64159
64160 2000-01-15  Jim Meyering  <meyering@lucent.com>
64161
64162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64163         (AC_REPLACE_FUNCS): Add memcpy and memset.
64164         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64165         Add strpbrk.
64166         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64167
64168 2000-01-12  Jim Meyering  <meyering@lucent.com>
64169
64170         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64171         (jm_PREREQ): Use it.
64172         (jm_PREREQ_READUTMP): New macro.
64173         (jm_PREREQ): Use it.
64174
64175 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64176
64177         Quote multibyte characters correctly.
64178         * m4/c-bs-a.m4: New file.
64179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64180         (jm_PREREQ): Use it.
64181
64182 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64183
64184         * m4/uintmax_t.m4: Port to autoconf 2.13.
64185
64186 2000-01-08  Jim Meyering  <meyering@ascend.com>
64187
64188         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64189         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64190
64191 2000-01-04  Jim Meyering  <meyering@ascend.com>
64192
64193         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64194         jm_STRUCT_DIRENT_D_TYPE.
64195         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64196         jm_STRUCT_DIRENT_D_INO.
64197         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64198         jm_STRUCT_UTIMBUF.
64199         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64200         renamings.
64201         * m4/utime.m4: Likewise.
64202
64203         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64204         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64205
64206 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64207
64208         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64209         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64210
64211 2000-01-02  Jim Meyering  <meyering@ascend.com>
64212
64213         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64214         remember if this is necessary.
64215
64216 1999-12-26  Jim Meyering  <meyering@ascend.com>
64217
64218         * m4/jm-macros.m4: Use it here.
64219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64220
64221 1999-12-23  Jim Meyering  <meyering@ascend.com>
64222
64223         * m4/jm-macros.m4: Check for clock_gettime (moved from
64224         fileutils/configure.in)
64225         Check for gettimeofday.
64226
64227 1999-12-20  Jim Meyering  <meyering@ascend.com>
64228
64229         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64230         autoconf-2.14a-1999-12-20.
64231
64232 1999-12-19  Jim Meyering  <meyering@ascend.com>
64233
64234         * m4/lstat-slash.m4: New file.
64235         * m4/jm-macros.m4: Use the new macro:
64236         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64237
64238 1999-12-07  Jim Meyering  <meyering@ascend.com>
64239
64240         * m4/perl.m4: Require that File::Compare be available, too.
64241         Too many systems seem to lack it.
64242
64243         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64244         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64245
64246 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64247
64248         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64249         problem with the QNX 4.25 shell, which doesn't propagate exit
64250         status of failed commands inside shell assignments.
64251
64252 1999-11-17  Jim Meyering  <meyering@ascend.com>
64253
64254         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64255
64256 1999-11-07  Jim Meyering  <meyering@ascend.com>
64257
64258         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64259
64260 1999-11-06  Jim Meyering  <meyering@ascend.com>
64261
64262         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64263         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64264
64265 1999-11-05  Jim Meyering  <meyering@ascend.com>
64266
64267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64268         configure.in of textutils, fileutils, and sh-utils into this one
64269         (shared between those packages) file.
64270         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64271         AC_STRUCT_ST_BLKSIZE.
64272
64273 1999-11-03  Jim Meyering  <meyering@ascend.com>
64274
64275         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64276         of AC_CHECK_TYPE checks includes unistd.h.
64277         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64278         Suggestion from Akim Demaille.
64279
64280 1999-10-30  Jim Meyering  <meyering@ascend.com>
64281
64282         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64283         m4-quoted string.
64284         * m4/ls-mntd-fs.m4: Likewise.
64285         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64286         * m4/jm-winsz1.m4: Likewise.
64287
64288         * m4/const.m4: Remove file, since the fix made it into the experimental
64289         version of autoconf.
64290         * m4/mktime.m4: Likewise.
64291
64292         * m4/check-type.m4: Remove file, now that the latest version of
64293         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64294
64295         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64296         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64297         AC_CHECK_TYPE.
64298
64299 1999-10-04  Jim Meyering  <meyering@ascend.com>
64300
64301         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64302
64303 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64304
64305         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64306         2.95.1 bug with HP-UX 10.20.
64307
64308 1999-09-17  Jim Meyering  <meyering@ascend.com>
64309
64310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64311         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64312         due to missing strdup (against sh-utils-2.0).
64313
64314 1999-08-29  Jim Meyering  <meyering@ascend.com>
64315
64316         * m4/jm-macros.m4: Require jm_BISON.
64317         * m4/bison.m4: New file.
64318
64319 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64320
64321         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64322         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64323
64324 1999-08-05  Jim Meyering  <meyering@ascend.com>
64325
64326         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64327         to avoid conflicts with `conftest' on 8+3 filesystems.
64328         Suggestion from Eli Zaretskii.
64329
64330 1999-08-04  Jim Meyering  <meyering@ascend.com>
64331
64332         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64333         fileutils and sh-utils (textutils's getline test was inadequate).
64334         (AM_FUNC_GETLINE): Run this test.
64335         (AC_CHECK_FUNCS): Check for getdelim.
64336         Reported by Bob Proulx.
64337
64338 1999-08-02  Jim Meyering  <meyering@ascend.com>
64339
64340         * m4/jm-macros.m4: Add a comment.
64341
64342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64343
64344         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64345         <inttypes.h> defines strtoumax as a macro (and not as a
64346         function).
64347
64348 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64349
64350         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64351         that we can shift, multiply and divide unsigned long long
64352         values; Ultrix cc can't do it.
64353
64354 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64355
64356         * m4/mktime.m4: New file, which is a preview of what should appear
64357         in the next public autoconf release.
64358
64359 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64360
64361         * m4/lfs.m4: Remove this file.
64362         * m4/largefile.m4: New file.  It contains the old contents of
64363         lfs.m4, except that all names with prefix AC_LFS have been
64364         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64365         compatible with future autoconf versions.  Also, some minor m4
64366         quoting problems have been fixed.
64367
64368 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64369
64370         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64371         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64372         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64373         and simplify the shell code.
64374
64375 1999-08-01  Jim Meyering  <meyering@ascend.com>
64376
64377         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64378         m4.
64379
64380 1999-07-20  Jim Meyering  <meyering@ascend.com>
64381
64382         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64383
64384 1999-07-15  Jim Meyering  <meyering@ascend.com>
64385
64386         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64387
64388 1999-05-22  Jim Meyering  <meyering@ascend.com>
64389
64390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64391
64392 1999-05-20  Jim Meyering  <meyering@ascend.com>
64393
64394         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64395         Add a colon after each `then' in case $4 is empty.
64396
64397 1999-05-16  Jim Meyering  <meyering@ascend.com>
64398
64399         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64400
64401 1999-05-10  Jim Meyering  <meyering@ascend.com>
64402
64403         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64404
64405         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64406         AC_FUNC_MKTIME.
64407
64408 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64409
64410         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64411
64412 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64413
64414         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64415         not CPPFLAGS, so that linking works correctly in IRIX.
64416
64417 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64418
64419         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64420
64421 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64422
64423         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64424         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64425         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64426         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64427         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64428
64429         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64430
64431 1999-04-20  Jim Meyering  <meyering@ascend.com>
64432
64433         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64434         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64435         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64436
64437 1999-04-18  Jim Meyering  <meyering@ascend.com>
64438
64439         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64440         * m4/jm-macros.m4: Use it.
64441
64442 1999-04-06  Jim Meyering  <meyering@ascend.com>
64443
64444         * m4/strftime.m4: Remove test for %f.
64445
64446 1999-03-29  Jim Meyering  <meyering@ascend.com>
64447
64448         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64449         superset of the AC_TYPE_* checks in the textutils, fileutils,
64450         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64451         AC_TYPE_PID_T.
64452
64453 1999-03-28  Jim Meyering  <meyering@ascend.com>
64454
64455         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64456         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64457         replaced e.g., in the *.sh files of the sh-utils.
64458
64459 1999-03-20  Jim Meyering  <meyering@ascend.com>
64460
64461         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64462         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64463         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64464
64465 1999-03-19  Jim Meyering  <meyering@ascend.com>
64466
64467         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64468
64469 1999-03-12  Jim Meyering  <meyering@ascend.com>
64470
64471         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64472
64473 1999-03-07  Jim Meyering  <meyering@ascend.com>
64474
64475         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64476         declared.
64477
64478 1999-02-17  Jim Meyering  <meyering@ascend.com>
64479
64480         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64481         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64482
64483 1999-02-07  Jim Meyering  <meyering@ascend.com>
64484
64485         * m4/group-member.m4: New file -- extracted from sh-utils'
64486         configure.in.
64487
64488         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64489         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64490
64491 1999-02-06  Jim Meyering  <meyering@ascend.com>
64492
64493         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64494         * m4/fnmatch.m4: Likewise.
64495         * m4/getgroups.m4: Likewise.
64496         * m4/lstat.m4: Likewise.
64497         * m4/malloc.m4: Likewise.
64498         * m4/putenv.m4: Likewise.
64499         * m4/realloc.m4: Likewise.
64500         * m4/regex.m4: Likewise.
64501         * m4/stat.m4: Likewise.
64502         * m4/strftime.m4: Likewise.
64503         Suggestion from Alain Magloire.
64504
64505         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64506         * m4/fnmatch.m4: Likewise.
64507         * m4/getgroups.m4: Likewise.
64508         * m4/getline.m4: Likewise.
64509         * m4/lstat.m4: Likewise.
64510         * m4/malloc.m4: Likewise.
64511         * m4/memcmp.m4: Likewise.
64512         * m4/putenv.m4: Likewise.
64513         * m4/realloc.m4: Likewise.
64514         * m4/regex.m4: Likewise.
64515         * m4/stat.m4: Likewise.
64516         * m4/strftime.m4: Likewise.
64517         Suggestion from Alain Magloire.
64518
64519         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64520         an argument.
64521
64522         * m4/regex.m4: Add a run-time Test for proper operation of
64523         re_compile_pattern.
64524
64525 1999-01-31  Jim Meyering  <meyering@ascend.com>
64526
64527         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64528
64529 1999-01-30  Jim Meyering  <meyering@ascend.com>
64530
64531         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64532
64533         * m4/jm-mktime.m4: Make this a wrapper around the official
64534         AM_FUNC_MKTIME rather than my private copy, now that the official one
64535         is up to date.
64536         * m4/mktime.m4: Remove file.
64537
64538         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64539         * m4/uptime.m4: Likewise.
64540         * m4/uintmax_t.m4: Likewise.
64541
64542 1999-01-28  Jim Meyering  <meyering@ascend.com>
64543
64544         * m4/jm-macros.m4: Use jm_AFS.
64545         * m4/afs.m4: New file (from fileutils' configure.in).
64546
64547         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64548         * m4/chown.m4: Likewise.
64549         * m4/d-ino.m4: Likewise.
64550         * m4/d-type.m4: Likewise.
64551         * m4/fnmatch.m4: Likewise.
64552         * m4/getgroups.m4: Likewise.
64553         * m4/gettext.m4: Likewise.
64554         * m4/jm-mktime.m4: Likewise.
64555         * m4/jm-winsz2.m4: Likewise.
64556         * m4/lcmessage.m4: Likewise.
64557         * m4/ls-mntd-fs.m4: Likewise.
64558         * m4/malloc.m4: Likewise.
64559         * m4/memcmp.m4: Likewise.
64560         * m4/putenv.m4: Likewise.
64561         * m4/realloc.m4: Likewise.
64562         * m4/st_mtim.m4: Likewise.
64563         * m4/strftime.m4: Likewise.
64564
64565 1999-01-16  Jim Meyering  <meyering@ascend.com>
64566
64567         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64568         (ARGMATCH_DIE_DECL): Define.
64569
64570 1999-01-12  Jim Meyering  <meyering@ascend.com>
64571
64572         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64573         Reported by Lars Hecking.
64574
64575 1999-01-10  Jim Meyering  <meyering@ascend.com>
64576
64577         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64578         gross kludge.
64579         * m4/inttypes_h.m4: Likewise.
64580         * m4/lstat.m4: Likewise.
64581         * m4/malloc.m4: Likewise.
64582         * m4/readdir.m4: Likewise.
64583         * m4/realloc.m4: Likewise.
64584         * m4/st_dm_mode.m4: Likewise.
64585         * m4/stat.m4: Likewise.
64586         * m4/utimbuf.m4: Likewise.
64587         * m4/utimes.m4: Likewise.
64588
64589         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64590         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64591         comments in config.h.in are meaningful.
64592
64593         * m4/jm-macros.m4: Require autoconf-2.13 here.
64594
64595         * m4/regex.m4: By default, don't use the included regex.c on systems
64596         with glibc 2.  Suggestion from Uli Drepper.
64597
64598 1999-01-02  Jim Meyering  <meyering@ascend.com>
64599
64600         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64601
64602 1998-12-18  Jim Meyering  <meyering@ascend.com>
64603
64604         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64605         Based on a suggestion from Lars Hecking.
64606
64607 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64608
64609         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64610
64611 1998-11-16  Jim Meyering  <meyering@ascend.com>
64612
64613         * m4/lfs.m4: Double-quote the `uname...` expression.
64614
64615 1998-11-14  Jim Meyering  <meyering@ascend.com>
64616
64617         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64618         * m4/stat.m4: Likewise.
64619
64620 1998-11-03  Jim Meyering  <meyering@ascend.com>
64621
64622         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64623         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64624
64625 1998-10-18  Jim Meyering  <meyering@ascend.com>
64626
64627         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64628
64629 1998-10-17  Jim Meyering  <meyering@ascend.com>
64630
64631         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64632         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64633         calls for those previously hard-coded headers.  Instead, take a new
64634         parameter.
64635         (jm_CHECK_DECLARATIONS): Reflect interface change.
64636         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64637         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64638
64639         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64640
64641 1998-10-14  Jim Meyering  <meyering@ascend.com>
64642
64643         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64644         instead of "TZ=America/Vancouver".  From Paul Eggert.
64645
64646 1998-10-11  Jim Meyering  <meyering@ascend.com>
64647
64648         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64649         This adds a test for a recently added compatibility fix for mktime.c.
64650         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64651
64652 1998-09-27  Jim Meyering  <meyering@ascend.com>
64653
64654         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64655
64656         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64657         ../configure.in, including a change from Gordon Matzigkeit to allow
64658         cross-compiling for the Hurd.
64659
64660         * m4/glibc.m4: New file/macro to test for the GNU C Library
64661         versions 1 and 2.  From Gordon Matzigkeit.
64662         Indent.
64663
64664 1998-09-21  Jim Meyering  <meyering@ascend.com>
64665
64666         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64667
64668 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64669
64670         Port nanosecond-resolution times to UnixWare 2.1.2 and
64671         pedantic Solaris 2.6.
64672
64673         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64674         AC_STRUCT_ST_MTIM.
64675         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64676         Generate name of ns member, instead of just 1 or undef.
64677         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64678
64679 1998-08-15  Jim Meyering  <meyering@ascend.com>
64680
64681         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
64682         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
64683         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
64684         instead of jm_TYPE_SSIZE_T.
64685
64686 1998-08-12  Jim Meyering  <meyering@ascend.com>
64687
64688         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
64689
64690 1998-08-02  Jim Meyering  <meyering@ascend.com>
64691
64692         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
64693         in acconfig.h manually.
64694
64695 1998-07-31  Paul Eggert  <eggert@twinsun.com>
64696
64697         * m4/st_mtim.m4: New file.
64698
64699 1998-07-28  Jim Meyering  <meyering@ascend.com>
64700
64701         * m4/utimes.m4: Undef stat.
64702
64703 1998-07-25  Jim Meyering  <meyering@ascend.com>
64704
64705         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
64706         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
64707
64708 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
64709
64710         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
64711         uid and gid actually remain unchanged.
64712
64713 1998-07-07  Jim Meyering  <meyering@ascend.com>
64714
64715         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
64716
64717 1998-07-04  Jim Meyering  <meyering@ascend.com>
64718
64719         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
64720         to prove that this macro can be used in packages without regex.c.
64721
64722 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64723
64724         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
64725         is to be used.
64726
64727 1998-07-03  Jim Meyering  <meyering@ascend.com>
64728
64729         * m4/gettext.m4: Add -lintl if it's found to be necessary.
64730
64731         * m4/gettext.m4: New file -- from gettext-0.10.35.
64732         * m4/lcmessage.m4: Likewise.
64733         * m4/progtest.m4: Likewise.
64734
64735         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
64736         * m4/jm-macros.m4: Require the new macro.
64737
64738 1998-06-29  Jim Meyering  <meyering@ascend.com>
64739
64740         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
64741         for the definition of NGROUPS (used in a system header included
64742         by sys/mount.h).
64743
64744 1998-06-28  Jim Meyering  <meyering@ascend.com>
64745
64746         * m4/ls-mntd-fs.m4: New file.
64747         * m4/fstypename.m4: New file.
64748
64749         * m4/jm-macros.m4: Require the new macro.
64750         * m4/jm-glibc-io.m4: New file.
64751
64752 1998-05-19  Jim Meyering  <meyering@ascend.com>
64753
64754         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
64755         * m4/lchown.m4: New file.
64756
64757         * m4/Makefile.am.in: New file.
64758         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
64759
64760 1998-05-14  Jim Meyering  <meyering@ascend.com>
64761
64762         * m4/Makefile.am (EXTRA_DIST): Add them.
64763         * m4/jm-macros.m4: New file.
64764         * m4/utimbuf.m4: New file.
64765
64766 1998-05-12  Jim Meyering  <meyering@ascend.com>
64767
64768         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
64769
64770 1998-05-11  Jim Meyering  <meyering@ascend.com>
64771
64772         * m4/isc-posix.m4: New file.
64773
64774 1998-05-10  Jim Meyering  <meyering@ascend.com>
64775
64776         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
64777
64778 1998-05-09  Jim Meyering  <meyering@ascend.com>
64779
64780         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
64781         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
64782         with automake.
64783
64784         * m4/ssize_t.m4: New file.
64785         * m4/mktime.m4: Remove file -- the new automake has this now.
64786
64787 1998-04-26  Jim Meyering  <meyering@ascend.com>
64788
64789         * m4/assert.m4: New file.
64790         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
64791
64792 1998-04-05  Jim Meyering  <meyering@ascend.com>
64793
64794         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
64795         (jm_PREREQ): Use it here.
64796
64797 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
64798
64799         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
64800         in acconfig.h.
64801
64802 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
64803
64804         * m4/prereq.m4: New file.
64805         * m4/error.m4: New file.
64806         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
64807
64808 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
64809
64810         * m4/getline.m4: Don't set am_cv_func_working_getline before the
64811         cache-check for the same variable -- that defeated the purpose of
64812         the test; the test program was never run.  This was a problem only
64813         on systems with losing getline functions -- HP-UX 10.20 is one.
64814         Reported by Bjorn Helgaas.
64815
64816 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
64817
64818         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
64819
64820 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
64821
64822         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
64823
64824         * m4/const.m4: New file.  Use an initializer in this declaration
64825         typedef int charset[2]; const charset x;
64826         Reported by Bob Glickstein.
64827
64828 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
64829
64830         * m4/chown.m4: Fix reversed types on -1 args to chown.
64831         From Kaveh Ghazi.
64832
64833 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
64834
64835         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
64836         Add lseek and memchr.
64837
64838         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
64839         T.E.Dickey <dickey@clark.net> said that some older preprocessors
64840         have a 20-character limit on names.
64841
64842 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
64843
64844         * m4/inttypes_h.m4: New file.
64845         * m4/uintmax_t.m4: New file.
64846         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
64847
64848
64849         -----
64850
64851         Local Variables:
64852         coding: utf-8
64853         End:
64854
64855         Copyright (C) 1997-2010 Free Software Foundation, Inc.
64856
64857         Copying and distribution of this file, with or without
64858         modification, are permitted provided the copyright notice
64859         and this notice are preserved.